types

package
v0.0.0-...-3ec3047 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AttributeKeyEventsCreator     = "events_creator"
	AttributeKeyMarketsSuccessUID = "markets_success_uid"
	AttributeKeyOrderBookUID      = "markets_book_uid"
)
View Source
const (
	TypeMsgCreateMarkets  = "create_markets"
	TypeMsgUpdateMarkets  = "update_markets"
	TypeMsgResolveMarkets = "resolve_markets"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "market"

	// 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_market"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const (
	// MaxAllowedCharactersForMeta is maximum allowed characters count for market and odds metadata
	MaxAllowedCharactersForMeta = 256
)

Variables

View Source
var (
	// Amino is the legacy amino codec
	Amino = codec.NewLegacyAmino()
	// ModuleCdc is the codec of the module
	ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)
View Source
var (
	ErrMarketCanNotBeAltered           = sdkerrors.Register(ModuleName, 1001, "market cannot be altered if it is not active or inactive")
	ErrMarketAlreadyExist              = sdkerrors.Register(ModuleName, 1002, "market already exist")
	ErrMarketNotFound                  = sdkerrors.Register(ModuleName, 1003, "market not found")
	ErrMarketResolutionNotAllowed      = sdkerrors.Register(ModuleName, 1004, "market resolution is allowed for active or inactive status")
	ErrInvalidWinnerOdds               = sdkerrors.Register(ModuleName, 1005, "the provided winner odds does not exist in the market odds")
	ErrInTicketVerification            = sdkerrors.Register(ModuleName, 1006, "error in ticket verification process")
	ErrInTicketPayloadValidation       = sdkerrors.Register(ModuleName, 1007, "error in ticket payload validation")
	ErrResolutionTimeLessThenStartTime = sdkerrors.Register(ModuleName, 1008, "resolution time cannot be less than market start time")
	ErrInOrderBookInitiation           = sdkerrors.Register(ModuleName, 1009, "error in order book initiation")
)

x/market module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// MarketKeyPrefix is the prefix to retrieve all Market
	MarketKeyPrefix = []byte{0x00}

	// MarketStatsKey is the key for the market statistics
	MarketStatsKey = []byte{0x01}
)
View Source
var (
	ErrInvalidLengthMarket        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMarket          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMarket = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthOdds        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOdds          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOdds = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// KeyMinBetAmount is the min bet amount param key
	KeyMinBetAmount = []byte("MinBetAmount")

	// KeyMinBetFee is the minimum bet fee param key
	KeyMinBetFee = []byte("MinBetFee")

	// KeyMaxSRContribution is the min bet amount param key
	KeyMaxSRContribution = []byte("MaxSRContribution")
)

param keys

View Source
var (
	// DefaultMinBetAmount is the default minimum bet amount allowed
	DefaultMinBetAmount = sdk.NewInt(1000000)

	// DefaultMaxSRContribution is the default maximum sr contribution allowed
	DefaultMaxSRContribution = sdk.NewInt(10000000)

	// DefaultMinBetFee is the default minimum bet fee amount allowed
	DefaultMinBetFee = sdk.NewInt(0)
)

default params

View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthStats        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStats          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStats = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTicket        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTicket          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTicket = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var MarketStatus_name = map[int32]string{
	0: "MARKET_STATUS_UNSPECIFIED",
	1: "MARKET_STATUS_ACTIVE",
	2: "MARKET_STATUS_INACTIVE",
	3: "MARKET_STATUS_CANCELED",
	4: "MARKET_STATUS_ABORTED",
	5: "MARKET_STATUS_RESULT_DECLARED",
}
View Source
var MarketStatus_value = map[string]int32{
	"MARKET_STATUS_UNSPECIFIED":     0,
	"MARKET_STATUS_ACTIVE":          1,
	"MARKET_STATUS_INACTIVE":        2,
	"MARKET_STATUS_CANCELED":        3,
	"MARKET_STATUS_ABORTED":         4,
	"MARKET_STATUS_RESULT_DECLARED": 5,
}

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

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 GenesisState

type GenesisState struct {
	// params are the parameters of the market module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// market_list is the list of markets that are available in the
	// chain init.
	MarketList []Market `protobuf:"bytes,2,rep,name=market_list,json=marketList,proto3" json:"market_list"`
	// stats is the statistics of the markets
	Stats MarketStats `protobuf:"bytes,3,opt,name=stats,proto3" json:"stats"`
}

GenesisState defines the market 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) GetMarketList

func (m *GenesisState) GetMarketList() []Market

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetStats

func (m *GenesisState) GetStats() MarketStats

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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 Market

type Market struct {
	// uid is the universal unique identifier of the market.
	UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
	// start_ts is the start timestamp of the market.
	StartTS uint64 `protobuf:"varint,2,opt,name=start_ts,proto3" json:"start_ts"`
	// end_ts is the end timestamp of the market.
	EndTS uint64 `protobuf:"varint,3,opt,name=end_ts,proto3" json:"end_ts"`
	// odds is the list of odds of the market.
	Odds []*Odds `protobuf:"bytes,4,rep,name=odds,proto3" json:"odds,omitempty"`
	// winner_odds_uids is the list of winner odds universal unique identifiers.
	WinnerOddsUIDs []string `protobuf:"bytes,5,rep,name=winner_odds_uids,proto3" json:"winner_odds_uids"`
	// status is the current status of the market.
	Status MarketStatus `protobuf:"varint,6,opt,name=status,proto3,enum=furynetwork.fury.market.MarketStatus" json:"status,omitempty"`
	// resolution_ts is the timestamp of the resolution of market.
	ResolutionTS uint64 `protobuf:"varint,7,opt,name=resolution_ts,proto3" json:"resolution_ts"`
	// creator is the address of the creator of market.
	Creator string `protobuf:"bytes,8,opt,name=creator,proto3" json:"creator,omitempty"`
	// bet_constraints holds the constraints of market to accept bets.
	BetConstraints *MarketBetConstraints `protobuf:"bytes,9,opt,name=bet_constraints,json=betConstraints,proto3" json:"bet_constraints,omitempty"`
	// meta contains human-readable metadata of the market.
	Meta string `protobuf:"bytes,10,opt,name=meta,proto3" json:"meta,omitempty"`
	// sr_contribution_for_house is the amount of contribution by sr for the house
	SrContributionForHouse github_com_cosmos_cosmos_sdk_types.Int `` /* 144-byte string literal not displayed */
	// book_uid is the unique identifier corresponding to the book
	BookUID string `protobuf:"bytes,12,opt,name=book_uid,proto3" json:"book_uid"`
}

Market is the representation of the market to be stored in the market state.

func NewMarket

func NewMarket(
	uid, creator string,
	startTS, endTS uint64,
	odds []*Odds,
	betConstraints *MarketBetConstraints,
	meta string,
	bookUID string,
	srContributionForHouse sdk.Int,
	status MarketStatus,
) Market

func (*Market) Descriptor

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

func (*Market) GetBetConstraints

func (m *Market) GetBetConstraints() *MarketBetConstraints

func (*Market) GetBookUID

func (m *Market) GetBookUID() string

func (*Market) GetCreator

func (m *Market) GetCreator() string

func (*Market) GetEndTS

func (m *Market) GetEndTS() uint64

func (*Market) GetMeta

func (m *Market) GetMeta() string

func (*Market) GetOdds

func (m *Market) GetOdds() []*Odds

func (*Market) GetResolutionTS

func (m *Market) GetResolutionTS() uint64

func (*Market) GetStartTS

func (m *Market) GetStartTS() uint64

func (*Market) GetStatus

func (m *Market) GetStatus() MarketStatus

func (*Market) GetUID

func (m *Market) GetUID() string

func (*Market) GetWinnerOddsUIDs

func (m *Market) GetWinnerOddsUIDs() []string

func (*Market) IsResolveAllowed

func (m *Market) IsResolveAllowed() bool

IsResolveAllowed returns true if resolving the market is allowed.

func (*Market) IsResolved

func (m *Market) IsResolved() bool

IsResolved returns true if the market is already resolved.

func (*Market) IsUpdateAllowed

func (m *Market) IsUpdateAllowed() bool

IsUpdateAllowed returns true if updating the market is allowed.

func (*Market) Marshal

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

func (*Market) MarshalTo

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

func (*Market) MarshalToSizedBuffer

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

func (*Market) ProtoMessage

func (*Market) ProtoMessage()

func (*Market) Reset

func (m *Market) Reset()

func (*Market) Size

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

func (*Market) String

func (m *Market) String() string

func (*Market) Unmarshal

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

func (*Market) XXX_DiscardUnknown

func (m *Market) XXX_DiscardUnknown()

func (*Market) XXX_Marshal

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

func (*Market) XXX_Merge

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

func (*Market) XXX_Size

func (m *Market) XXX_Size() int

func (*Market) XXX_Unmarshal

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

type MarketAddTicketPayload

type MarketAddTicketPayload struct {
	// uid is the universal unique identifier of the market.
	UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
	// start_ts is the start timestamp of the market.
	StartTS uint64 `protobuf:"varint,2,opt,name=start_ts,proto3" json:"start_ts"`
	// end_ts is the end timestamp of the market.
	EndTS uint64 `protobuf:"varint,3,opt,name=end_ts,proto3" json:"end_ts"`
	// odds is the list of odds of the market.
	Odds []*Odds `protobuf:"bytes,4,rep,name=odds,proto3" json:"odds,omitempty"`
	// status is the current status of the market.
	Status MarketStatus `protobuf:"varint,5,opt,name=status,proto3,enum=furynetwork.fury.market.MarketStatus" json:"status,omitempty"`
	// creator is the address of the creator of the market.
	Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"`
	// min_bet_amount is the minimum allowed bet amount for a market.
	MinBetAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */
	// bet_fee is the fee that the bettor needs to pay to bet on the market.
	BetFee github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=bet_fee,json=betFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bet_fee"`
	// meta contains human-readable metadata of the market.
	Meta string `protobuf:"bytes,9,opt,name=meta,proto3" json:"meta,omitempty"`
	// sr_contribution_for_house is the amount of contribution by sr for the house
	SrContributionForHouse github_com_cosmos_cosmos_sdk_types.Int `` /* 144-byte string literal not displayed */
}

MarketAddTicketPayload indicates data of add market ticket

func (*MarketAddTicketPayload) Descriptor

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

func (*MarketAddTicketPayload) GetCreator

func (m *MarketAddTicketPayload) GetCreator() string

func (*MarketAddTicketPayload) GetEndTS

func (m *MarketAddTicketPayload) GetEndTS() uint64

func (*MarketAddTicketPayload) GetMeta

func (m *MarketAddTicketPayload) GetMeta() string

func (*MarketAddTicketPayload) GetOdds

func (m *MarketAddTicketPayload) GetOdds() []*Odds

func (*MarketAddTicketPayload) GetStartTS

func (m *MarketAddTicketPayload) GetStartTS() uint64

func (*MarketAddTicketPayload) GetStatus

func (m *MarketAddTicketPayload) GetStatus() MarketStatus

func (*MarketAddTicketPayload) GetUID

func (m *MarketAddTicketPayload) GetUID() string

func (*MarketAddTicketPayload) Marshal

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

func (*MarketAddTicketPayload) MarshalTo

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

func (*MarketAddTicketPayload) MarshalToSizedBuffer

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

func (*MarketAddTicketPayload) ProtoMessage

func (*MarketAddTicketPayload) ProtoMessage()

func (*MarketAddTicketPayload) Reset

func (m *MarketAddTicketPayload) Reset()

func (*MarketAddTicketPayload) Size

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

func (*MarketAddTicketPayload) String

func (m *MarketAddTicketPayload) String() string

func (*MarketAddTicketPayload) Unmarshal

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

func (*MarketAddTicketPayload) Validate

func (payload *MarketAddTicketPayload) Validate(ctx sdk.Context, p *Params) error

Validate validates market add ticket payload.

func (*MarketAddTicketPayload) XXX_DiscardUnknown

func (m *MarketAddTicketPayload) XXX_DiscardUnknown()

func (*MarketAddTicketPayload) XXX_Marshal

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

func (*MarketAddTicketPayload) XXX_Merge

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

func (*MarketAddTicketPayload) XXX_Size

func (m *MarketAddTicketPayload) XXX_Size() int

func (*MarketAddTicketPayload) XXX_Unmarshal

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

type MarketBetConstraints

type MarketBetConstraints struct {
	// min_amount is the minimum allowed bet amount for a market.
	MinAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 128-byte string literal not displayed */
	// bet_fee is the fee that the bettor needs to pay to bet on the market.
	BetFee github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=bet_fee,json=betFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bet_fee"`
}

MarketBetConstraints is the bet constrains type for the market

func (*MarketBetConstraints) Descriptor

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

func (*MarketBetConstraints) Marshal

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

func (*MarketBetConstraints) MarshalTo

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

func (*MarketBetConstraints) MarshalToSizedBuffer

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

func (*MarketBetConstraints) ProtoMessage

func (*MarketBetConstraints) ProtoMessage()

func (*MarketBetConstraints) Reset

func (m *MarketBetConstraints) Reset()

func (*MarketBetConstraints) Size

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

func (*MarketBetConstraints) String

func (m *MarketBetConstraints) String() string

func (*MarketBetConstraints) Unmarshal

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

func (*MarketBetConstraints) XXX_DiscardUnknown

func (m *MarketBetConstraints) XXX_DiscardUnknown()

func (*MarketBetConstraints) XXX_Marshal

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

func (*MarketBetConstraints) XXX_Merge

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

func (*MarketBetConstraints) XXX_Size

func (m *MarketBetConstraints) XXX_Size() int

func (*MarketBetConstraints) XXX_Unmarshal

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

type MarketResolutionTicketPayload

type MarketResolutionTicketPayload struct {
	// uid is the universal unique identifier of the market.
	UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
	// resolution_ts is the resolution timestamp of the market.
	ResolutionTS uint64 `protobuf:"varint,2,opt,name=resolution_ts,proto3" json:"resolution_ts"`
	// winner_odds_uids is the universal unique identifier list of the winner
	// odds.
	WinnerOddsUIDs []string `protobuf:"bytes,3,rep,name=winner_odds_uids,proto3" json:"winner_odds_uids"`
	// status is the status of the resolution.
	Status MarketStatus `protobuf:"varint,4,opt,name=status,proto3,enum=furynetwork.fury.market.MarketStatus" json:"status,omitempty"`
}

MarketResolutionTicketPayload indicates data of the resolution of the market ticket.

func (*MarketResolutionTicketPayload) Descriptor

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

func (*MarketResolutionTicketPayload) GetResolutionTS

func (m *MarketResolutionTicketPayload) GetResolutionTS() uint64

func (*MarketResolutionTicketPayload) GetStatus

func (*MarketResolutionTicketPayload) GetUID

func (*MarketResolutionTicketPayload) GetWinnerOddsUIDs

func (m *MarketResolutionTicketPayload) GetWinnerOddsUIDs() []string

func (*MarketResolutionTicketPayload) Marshal

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

func (*MarketResolutionTicketPayload) MarshalTo

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

func (*MarketResolutionTicketPayload) MarshalToSizedBuffer

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

func (*MarketResolutionTicketPayload) ProtoMessage

func (*MarketResolutionTicketPayload) ProtoMessage()

func (*MarketResolutionTicketPayload) Reset

func (m *MarketResolutionTicketPayload) Reset()

func (*MarketResolutionTicketPayload) Size

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

func (*MarketResolutionTicketPayload) String

func (*MarketResolutionTicketPayload) Unmarshal

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

func (*MarketResolutionTicketPayload) Validate

func (payload *MarketResolutionTicketPayload) Validate() error

Validate validates market resolution ticket payload.

func (*MarketResolutionTicketPayload) ValidateWinnerOdds

func (payload *MarketResolutionTicketPayload) ValidateWinnerOdds(market *Market) error

ValidateWinnerOdds validates market resolution ticket payload winner odds.

func (*MarketResolutionTicketPayload) XXX_DiscardUnknown

func (m *MarketResolutionTicketPayload) XXX_DiscardUnknown()

func (*MarketResolutionTicketPayload) XXX_Marshal

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

func (*MarketResolutionTicketPayload) XXX_Merge

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

func (*MarketResolutionTicketPayload) XXX_Size

func (m *MarketResolutionTicketPayload) XXX_Size() int

func (*MarketResolutionTicketPayload) XXX_Unmarshal

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

type MarketStats

type MarketStats struct {
	// resolved_unsettled is the list of universal unique identifiers
	// of resolved markets that have unsettled bets
	ResolvedUnsettled []string `protobuf:"bytes,1,rep,name=resolved_unsettled,json=resolvedUnsettled,proto3" json:"resolved_unsettled,omitempty"`
}

MarketStats holds statistics of the market

func (*MarketStats) Descriptor

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

func (*MarketStats) GetResolvedUnsettled

func (m *MarketStats) GetResolvedUnsettled() []string

func (*MarketStats) Marshal

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

func (*MarketStats) MarshalTo

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

func (*MarketStats) MarshalToSizedBuffer

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

func (*MarketStats) ProtoMessage

func (*MarketStats) ProtoMessage()

func (*MarketStats) Reset

func (m *MarketStats) Reset()

func (*MarketStats) Size

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

func (*MarketStats) String

func (m *MarketStats) String() string

func (*MarketStats) Unmarshal

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

func (*MarketStats) XXX_DiscardUnknown

func (m *MarketStats) XXX_DiscardUnknown()

func (*MarketStats) XXX_Marshal

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

func (*MarketStats) XXX_Merge

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

func (*MarketStats) XXX_Size

func (m *MarketStats) XXX_Size() int

func (*MarketStats) XXX_Unmarshal

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

type MarketStatus

type MarketStatus int32

MarketStatus is the market status enumeration

const (
	// unspecified market
	MarketStatus_MARKET_STATUS_UNSPECIFIED MarketStatus = 0
	// market is active
	MarketStatus_MARKET_STATUS_ACTIVE MarketStatus = 1
	// market is inactive
	MarketStatus_MARKET_STATUS_INACTIVE MarketStatus = 2
	// market is canceled
	MarketStatus_MARKET_STATUS_CANCELED MarketStatus = 3
	// market is aborted
	MarketStatus_MARKET_STATUS_ABORTED MarketStatus = 4
	// result of the market is declared
	MarketStatus_MARKET_STATUS_RESULT_DECLARED MarketStatus = 5
)

func (MarketStatus) EnumDescriptor

func (MarketStatus) EnumDescriptor() ([]byte, []int)

func (MarketStatus) String

func (x MarketStatus) String() string

type MarketUpdateTicketPayload

type MarketUpdateTicketPayload struct {
	// uid is the uuid of the market
	UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
	// start_ts is the start timestamp of the market
	StartTS uint64 `protobuf:"varint,2,opt,name=start_ts,proto3" json:"start_ts"`
	// end_ts is the end timestamp of the market
	EndTS uint64 `protobuf:"varint,3,opt,name=end_ts,proto3" json:"end_ts"`
	// min_bet_amount is the minimum allowed bet amount for a market.
	MinBetAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */
	// bet_fee is the fee that the bettor needs to pay to bet on the market.
	BetFee github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=bet_fee,json=betFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bet_fee"`
	// status is the status of the resolution.
	Status MarketStatus `protobuf:"varint,6,opt,name=status,proto3,enum=furynetwork.fury.market.MarketStatus" json:"status,omitempty"`
}

MarketUpdateTicketPayload indicates data of the market update ticket

func (*MarketUpdateTicketPayload) Descriptor

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

func (*MarketUpdateTicketPayload) GetEndTS

func (m *MarketUpdateTicketPayload) GetEndTS() uint64

func (*MarketUpdateTicketPayload) GetStartTS

func (m *MarketUpdateTicketPayload) GetStartTS() uint64

func (*MarketUpdateTicketPayload) GetStatus

func (m *MarketUpdateTicketPayload) GetStatus() MarketStatus

func (*MarketUpdateTicketPayload) GetUID

func (m *MarketUpdateTicketPayload) GetUID() string

func (*MarketUpdateTicketPayload) Marshal

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

func (*MarketUpdateTicketPayload) MarshalTo

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

func (*MarketUpdateTicketPayload) MarshalToSizedBuffer

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

func (*MarketUpdateTicketPayload) ProtoMessage

func (*MarketUpdateTicketPayload) ProtoMessage()

func (*MarketUpdateTicketPayload) Reset

func (m *MarketUpdateTicketPayload) Reset()

func (*MarketUpdateTicketPayload) Size

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

func (*MarketUpdateTicketPayload) String

func (m *MarketUpdateTicketPayload) String() string

func (*MarketUpdateTicketPayload) Unmarshal

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

func (*MarketUpdateTicketPayload) Validate

func (payload *MarketUpdateTicketPayload) Validate(ctx sdk.Context, p *Params) error

Validate validates market update ticket payload.

func (*MarketUpdateTicketPayload) XXX_DiscardUnknown

func (m *MarketUpdateTicketPayload) XXX_DiscardUnknown()

func (*MarketUpdateTicketPayload) XXX_Marshal

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

func (*MarketUpdateTicketPayload) XXX_Merge

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

func (*MarketUpdateTicketPayload) XXX_Size

func (m *MarketUpdateTicketPayload) XXX_Size() int

func (*MarketUpdateTicketPayload) XXX_Unmarshal

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

type MsgAddMarket

type MsgAddMarket struct {
	// creator is the address of the creator account of the market.
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// ticket is the jwt ticket data.
	Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"`
}

MsgAddMarket is the message type for adding the market into the state.

func NewMsgAddMarket

func NewMsgAddMarket(creator string, ticket string) *MsgAddMarket

NewMsgAddMarket creates the new input for adding an market to blockchain

func (*MsgAddMarket) Descriptor

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

func (*MsgAddMarket) GetCreator

func (m *MsgAddMarket) GetCreator() string

func (*MsgAddMarket) GetSignBytes

func (msg *MsgAddMarket) GetSignBytes() []byte

GetSignBytes return the marshalled bytes of the msg

func (*MsgAddMarket) GetSigners

func (msg *MsgAddMarket) GetSigners() []sdk.AccAddress

GetSigners return the creators address

func (*MsgAddMarket) GetTicket

func (m *MsgAddMarket) GetTicket() string

func (*MsgAddMarket) Marshal

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

func (*MsgAddMarket) MarshalTo

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

func (*MsgAddMarket) MarshalToSizedBuffer

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

func (*MsgAddMarket) ProtoMessage

func (*MsgAddMarket) ProtoMessage()

func (*MsgAddMarket) Reset

func (m *MsgAddMarket) Reset()

func (*MsgAddMarket) Route

func (msg *MsgAddMarket) Route() string

Route return the message route for slashing

func (*MsgAddMarket) Size

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

func (*MsgAddMarket) String

func (m *MsgAddMarket) String() string

func (*MsgAddMarket) Type

func (msg *MsgAddMarket) Type() string

Type returns the msg add market type

func (*MsgAddMarket) Unmarshal

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

func (*MsgAddMarket) ValidateBasic

func (msg *MsgAddMarket) ValidateBasic() error

ValidateBasic validates the input creation market

func (*MsgAddMarket) XXX_DiscardUnknown

func (m *MsgAddMarket) XXX_DiscardUnknown()

func (*MsgAddMarket) XXX_Marshal

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

func (*MsgAddMarket) XXX_Merge

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

func (*MsgAddMarket) XXX_Size

func (m *MsgAddMarket) XXX_Size() int

func (*MsgAddMarket) XXX_Unmarshal

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

type MsgAddMarketResponse

type MsgAddMarketResponse struct {
	// error contains an error if adding a market faces any issues.
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// data is the data of market.
	Data *Market `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}

MsgAddMarketResponse response for adding market.

func (*MsgAddMarketResponse) Descriptor

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

func (*MsgAddMarketResponse) GetData

func (m *MsgAddMarketResponse) GetData() *Market

func (*MsgAddMarketResponse) GetError

func (m *MsgAddMarketResponse) GetError() string

func (*MsgAddMarketResponse) Marshal

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

func (*MsgAddMarketResponse) MarshalTo

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

func (*MsgAddMarketResponse) MarshalToSizedBuffer

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

func (*MsgAddMarketResponse) ProtoMessage

func (*MsgAddMarketResponse) ProtoMessage()

func (*MsgAddMarketResponse) Reset

func (m *MsgAddMarketResponse) Reset()

func (*MsgAddMarketResponse) Size

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

func (*MsgAddMarketResponse) String

func (m *MsgAddMarketResponse) String() string

func (*MsgAddMarketResponse) Unmarshal

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

func (*MsgAddMarketResponse) XXX_DiscardUnknown

func (m *MsgAddMarketResponse) XXX_DiscardUnknown()

func (*MsgAddMarketResponse) XXX_Marshal

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

func (*MsgAddMarketResponse) XXX_Merge

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

func (*MsgAddMarketResponse) XXX_Size

func (m *MsgAddMarketResponse) XXX_Size() int

func (*MsgAddMarketResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// AddMarket defines a method to add the market with the given data.
	AddMarket(ctx context.Context, in *MsgAddMarket, opts ...grpc.CallOption) (*MsgAddMarketResponse, error)
	// ResolveMarket defines a method to resolve the market.
	ResolveMarket(ctx context.Context, in *MsgResolveMarket, opts ...grpc.CallOption) (*MsgResolveMarketResponse, error)
	// UpdateMarket defines a method to update a market.
	UpdateMarket(ctx context.Context, in *MsgUpdateMarket, opts ...grpc.CallOption) (*MsgUpdateMarketResponse, 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 MsgResolveMarket

type MsgResolveMarket struct {
	// creator is the address of the creator account of the market.
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// ticket is the jwt ticket data.
	Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"`
}

MsgResolveMarket is the message type for resolving a market.

func NewMsgResolveMarket

func NewMsgResolveMarket(creator, ticket string) *MsgResolveMarket

NewMsgResolveMarket accepts the params to create new resolution body

func (*MsgResolveMarket) Descriptor

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

func (*MsgResolveMarket) GetCreator

func (m *MsgResolveMarket) GetCreator() string

func (*MsgResolveMarket) GetSignBytes

func (msg *MsgResolveMarket) GetSignBytes() []byte

GetSignBytes return the marshalled bytes of the msg

func (*MsgResolveMarket) GetSigners

func (msg *MsgResolveMarket) GetSigners() []sdk.AccAddress

GetSigners return the creators address

func (*MsgResolveMarket) GetTicket

func (m *MsgResolveMarket) GetTicket() string

func (*MsgResolveMarket) Marshal

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

func (*MsgResolveMarket) MarshalTo

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

func (*MsgResolveMarket) MarshalToSizedBuffer

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

func (*MsgResolveMarket) ProtoMessage

func (*MsgResolveMarket) ProtoMessage()

func (*MsgResolveMarket) Reset

func (m *MsgResolveMarket) Reset()

func (*MsgResolveMarket) Route

func (msg *MsgResolveMarket) Route() string

Route return the message route for slashing

func (*MsgResolveMarket) Size

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

func (*MsgResolveMarket) String

func (m *MsgResolveMarket) String() string

func (*MsgResolveMarket) Type

func (msg *MsgResolveMarket) Type() string

Type return the resolve market type

func (*MsgResolveMarket) Unmarshal

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

func (*MsgResolveMarket) ValidateBasic

func (msg *MsgResolveMarket) ValidateBasic() error

ValidateBasic validates the input resolution market

func (*MsgResolveMarket) XXX_DiscardUnknown

func (m *MsgResolveMarket) XXX_DiscardUnknown()

func (*MsgResolveMarket) XXX_Marshal

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

func (*MsgResolveMarket) XXX_Merge

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

func (*MsgResolveMarket) XXX_Size

func (m *MsgResolveMarket) XXX_Size() int

func (*MsgResolveMarket) XXX_Unmarshal

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

type MsgResolveMarketResponse

type MsgResolveMarketResponse struct {
	// error contains an error if resolving a market faces any issues.
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// data is the data of market.
	Data *Market `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}

MsgResolveMarketResponse response for resolving a market.

func (*MsgResolveMarketResponse) Descriptor

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

func (*MsgResolveMarketResponse) GetData

func (m *MsgResolveMarketResponse) GetData() *Market

func (*MsgResolveMarketResponse) GetError

func (m *MsgResolveMarketResponse) GetError() string

func (*MsgResolveMarketResponse) Marshal

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

func (*MsgResolveMarketResponse) MarshalTo

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

func (*MsgResolveMarketResponse) MarshalToSizedBuffer

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

func (*MsgResolveMarketResponse) ProtoMessage

func (*MsgResolveMarketResponse) ProtoMessage()

func (*MsgResolveMarketResponse) Reset

func (m *MsgResolveMarketResponse) Reset()

func (*MsgResolveMarketResponse) Size

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

func (*MsgResolveMarketResponse) String

func (m *MsgResolveMarketResponse) String() string

func (*MsgResolveMarketResponse) Unmarshal

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

func (*MsgResolveMarketResponse) XXX_DiscardUnknown

func (m *MsgResolveMarketResponse) XXX_DiscardUnknown()

func (*MsgResolveMarketResponse) XXX_Marshal

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

func (*MsgResolveMarketResponse) XXX_Merge

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

func (*MsgResolveMarketResponse) XXX_Size

func (m *MsgResolveMarketResponse) XXX_Size() int

func (*MsgResolveMarketResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// AddMarket defines a method to add the market with the given data.
	AddMarket(context.Context, *MsgAddMarket) (*MsgAddMarketResponse, error)
	// ResolveMarket defines a method to resolve the market.
	ResolveMarket(context.Context, *MsgResolveMarket) (*MsgResolveMarketResponse, error)
	// UpdateMarket defines a method to update a market.
	UpdateMarket(context.Context, *MsgUpdateMarket) (*MsgUpdateMarketResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateMarket

type MsgUpdateMarket struct {
	// creator is the address of the creator account of the market.
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	// ticket is the jwt ticket data.
	Ticket string `protobuf:"bytes,2,opt,name=ticket,proto3" json:"ticket,omitempty"`
}

MsgUpdateMarket is the message type for updating market data. in the state

func NewMsgUpdateMarket

func NewMsgUpdateMarket(creator, ticket string) *MsgUpdateMarket

NewMsgUpdateMarket accepts the params to create new update body

func (*MsgUpdateMarket) Descriptor

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

func (*MsgUpdateMarket) GetCreator

func (m *MsgUpdateMarket) GetCreator() string

func (*MsgUpdateMarket) GetSignBytes

func (msg *MsgUpdateMarket) GetSignBytes() []byte

GetSignBytes return the marshalled bytes of the msg

func (*MsgUpdateMarket) GetSigners

func (msg *MsgUpdateMarket) GetSigners() []sdk.AccAddress

GetSigners return the creators address

func (*MsgUpdateMarket) GetTicket

func (m *MsgUpdateMarket) GetTicket() string

func (*MsgUpdateMarket) Marshal

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

func (*MsgUpdateMarket) MarshalTo

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

func (*MsgUpdateMarket) MarshalToSizedBuffer

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

func (*MsgUpdateMarket) ProtoMessage

func (*MsgUpdateMarket) ProtoMessage()

func (*MsgUpdateMarket) Reset

func (m *MsgUpdateMarket) Reset()

func (*MsgUpdateMarket) Route

func (msg *MsgUpdateMarket) Route() string

Route return the message route for slashing

func (*MsgUpdateMarket) Size

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

func (*MsgUpdateMarket) String

func (m *MsgUpdateMarket) String() string

func (*MsgUpdateMarket) Type

func (msg *MsgUpdateMarket) Type() string

Type return the update market type

func (*MsgUpdateMarket) Unmarshal

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

func (*MsgUpdateMarket) ValidateBasic

func (msg *MsgUpdateMarket) ValidateBasic() error

ValidateBasic validates the input update market

func (*MsgUpdateMarket) XXX_DiscardUnknown

func (m *MsgUpdateMarket) XXX_DiscardUnknown()

func (*MsgUpdateMarket) XXX_Marshal

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

func (*MsgUpdateMarket) XXX_Merge

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

func (*MsgUpdateMarket) XXX_Size

func (m *MsgUpdateMarket) XXX_Size() int

func (*MsgUpdateMarket) XXX_Unmarshal

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

type MsgUpdateMarketResponse

type MsgUpdateMarketResponse struct {
	// error contains an error if updating a market faces any issues.
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// data is the data of market
	Data *Market `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}

MsgUpdateMarketResponse response for updating a market.

func (*MsgUpdateMarketResponse) Descriptor

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

func (*MsgUpdateMarketResponse) GetData

func (m *MsgUpdateMarketResponse) GetData() *Market

func (*MsgUpdateMarketResponse) GetError

func (m *MsgUpdateMarketResponse) GetError() string

func (*MsgUpdateMarketResponse) Marshal

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

func (*MsgUpdateMarketResponse) MarshalTo

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

func (*MsgUpdateMarketResponse) MarshalToSizedBuffer

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

func (*MsgUpdateMarketResponse) ProtoMessage

func (*MsgUpdateMarketResponse) ProtoMessage()

func (*MsgUpdateMarketResponse) Reset

func (m *MsgUpdateMarketResponse) Reset()

func (*MsgUpdateMarketResponse) Size

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

func (*MsgUpdateMarketResponse) String

func (m *MsgUpdateMarketResponse) String() string

func (*MsgUpdateMarketResponse) Unmarshal

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

func (*MsgUpdateMarketResponse) XXX_DiscardUnknown

func (m *MsgUpdateMarketResponse) XXX_DiscardUnknown()

func (*MsgUpdateMarketResponse) XXX_Marshal

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

func (*MsgUpdateMarketResponse) XXX_Merge

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

func (*MsgUpdateMarketResponse) XXX_Size

func (m *MsgUpdateMarketResponse) XXX_Size() int

func (*MsgUpdateMarketResponse) XXX_Unmarshal

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

type Odds

type Odds struct {
	// uid is the universal unique identifier of the odds.
	UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
	// meta contains any human-readable metadata of the odds.
	Meta string `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
}

Odds is a representation of market odds.

func (*Odds) Descriptor

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

func (*Odds) GetMeta

func (m *Odds) GetMeta() string

func (*Odds) GetUID

func (m *Odds) GetUID() string

func (*Odds) Marshal

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

func (*Odds) MarshalTo

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

func (*Odds) MarshalToSizedBuffer

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

func (*Odds) ProtoMessage

func (*Odds) ProtoMessage()

func (*Odds) Reset

func (m *Odds) Reset()

func (*Odds) Size

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

func (*Odds) String

func (m *Odds) String() string

func (*Odds) Unmarshal

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

func (*Odds) XXX_DiscardUnknown

func (m *Odds) XXX_DiscardUnknown()

func (*Odds) XXX_Marshal

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

func (*Odds) XXX_Merge

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

func (*Odds) XXX_Size

func (m *Odds) XXX_Size() int

func (*Odds) XXX_Unmarshal

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

type Params

type Params struct {
	// min_bet_amount is the default minimum bet amount for a market.
	MinBetAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 161-byte string literal not displayed */
	// min_bet_fee is the default minimum bet fee for a market.
	MinBetFee github_com_cosmos_cosmos_sdk_types.Int `` /* 149-byte string literal not displayed */
	// max_sr_contribution is the default max sr contribution for a market.
	MaxSrContribution github_com_cosmos_cosmos_sdk_types.Int `` /* 181-byte string literal not displayed */
}

Params defines the parameters for the module. It contains bet constraints associated to a market.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) NewMarketBetConstraints

func (p *Params) NewMarketBetConstraints(minAmount, betFee sdk.Int) *MarketBetConstraints

NewMarketBetConstraints creates new bet constraint pointer

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

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 market by uid.
	Market(ctx context.Context, in *QueryMarketRequest, opts ...grpc.CallOption) (*QueryMarketResponse, error)
	// Queries a list of all the markets
	Markets(ctx context.Context, in *QueryMarketsRequest, opts ...grpc.CallOption) (*QueryMarketsResponse, error)
	// Queries a list of markets by UIDs.
	MarketsByUIDs(ctx context.Context, in *QueryMarketsByUIDsRequest, opts ...grpc.CallOption) (*QueryMarketsByUIDsResponse, 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 QueryMarketRequest

type QueryMarketRequest struct {
	Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
}

QueryMarketRequest is the request type for the Query/{uid} RPC method. Query/Market RPC method.

func (*QueryMarketRequest) Descriptor

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

func (*QueryMarketRequest) GetUid

func (m *QueryMarketRequest) GetUid() string

func (*QueryMarketRequest) Marshal

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

func (*QueryMarketRequest) MarshalTo

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

func (*QueryMarketRequest) MarshalToSizedBuffer

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

func (*QueryMarketRequest) ProtoMessage

func (*QueryMarketRequest) ProtoMessage()

func (*QueryMarketRequest) Reset

func (m *QueryMarketRequest) Reset()

func (*QueryMarketRequest) Size

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

func (*QueryMarketRequest) String

func (m *QueryMarketRequest) String() string

func (*QueryMarketRequest) Unmarshal

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

func (*QueryMarketRequest) XXX_DiscardUnknown

func (m *QueryMarketRequest) XXX_DiscardUnknown()

func (*QueryMarketRequest) XXX_Marshal

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

func (*QueryMarketRequest) XXX_Merge

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

func (*QueryMarketRequest) XXX_Size

func (m *QueryMarketRequest) XXX_Size() int

func (*QueryMarketRequest) XXX_Unmarshal

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

type QueryMarketResponse

type QueryMarketResponse struct {
	Market Market `protobuf:"bytes,1,opt,name=market,proto3" json:"market"`
}

QueryMarketRequest is the response type for the Query/{uid} RPC method. Query/Market RPC method.

func (*QueryMarketResponse) Descriptor

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

func (*QueryMarketResponse) GetMarket

func (m *QueryMarketResponse) GetMarket() Market

func (*QueryMarketResponse) Marshal

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

func (*QueryMarketResponse) MarshalTo

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

func (*QueryMarketResponse) MarshalToSizedBuffer

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

func (*QueryMarketResponse) ProtoMessage

func (*QueryMarketResponse) ProtoMessage()

func (*QueryMarketResponse) Reset

func (m *QueryMarketResponse) Reset()

func (*QueryMarketResponse) Size

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

func (*QueryMarketResponse) String

func (m *QueryMarketResponse) String() string

func (*QueryMarketResponse) Unmarshal

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

func (*QueryMarketResponse) XXX_DiscardUnknown

func (m *QueryMarketResponse) XXX_DiscardUnknown()

func (*QueryMarketResponse) XXX_Marshal

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

func (*QueryMarketResponse) XXX_Merge

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

func (*QueryMarketResponse) XXX_Size

func (m *QueryMarketResponse) XXX_Size() int

func (*QueryMarketResponse) XXX_Unmarshal

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

type QueryMarketsByUIDsRequest

type QueryMarketsByUIDsRequest struct {
	Uids []string `protobuf:"bytes,1,rep,name=uids,proto3" json:"uids"`
}

QueryMarketsByUIDsRequest is the request type for the Query/MarketsByUIDs RPC method.

func (*QueryMarketsByUIDsRequest) Descriptor

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

func (*QueryMarketsByUIDsRequest) GetUids

func (m *QueryMarketsByUIDsRequest) GetUids() []string

func (*QueryMarketsByUIDsRequest) Marshal

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

func (*QueryMarketsByUIDsRequest) MarshalTo

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

func (*QueryMarketsByUIDsRequest) MarshalToSizedBuffer

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

func (*QueryMarketsByUIDsRequest) ProtoMessage

func (*QueryMarketsByUIDsRequest) ProtoMessage()

func (*QueryMarketsByUIDsRequest) Reset

func (m *QueryMarketsByUIDsRequest) Reset()

func (*QueryMarketsByUIDsRequest) Size

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

func (*QueryMarketsByUIDsRequest) String

func (m *QueryMarketsByUIDsRequest) String() string

func (*QueryMarketsByUIDsRequest) Unmarshal

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

func (*QueryMarketsByUIDsRequest) XXX_DiscardUnknown

func (m *QueryMarketsByUIDsRequest) XXX_DiscardUnknown()

func (*QueryMarketsByUIDsRequest) XXX_Marshal

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

func (*QueryMarketsByUIDsRequest) XXX_Merge

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

func (*QueryMarketsByUIDsRequest) XXX_Size

func (m *QueryMarketsByUIDsRequest) XXX_Size() int

func (*QueryMarketsByUIDsRequest) XXX_Unmarshal

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

type QueryMarketsByUIDsResponse

type QueryMarketsByUIDsResponse struct {
	Markets       []Market `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets"`
	FailedMarkets []string `protobuf:"bytes,2,rep,name=failed_markets,json=failedMarkets,proto3" json:"failed_markets,omitempty"`
}

QueryMarketsByUIDsResponse is the response type for the Query/MarketsByUIDs RPC method.

func (*QueryMarketsByUIDsResponse) Descriptor

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

func (*QueryMarketsByUIDsResponse) GetFailedMarkets

func (m *QueryMarketsByUIDsResponse) GetFailedMarkets() []string

func (*QueryMarketsByUIDsResponse) GetMarkets

func (m *QueryMarketsByUIDsResponse) GetMarkets() []Market

func (*QueryMarketsByUIDsResponse) Marshal

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

func (*QueryMarketsByUIDsResponse) MarshalTo

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

func (*QueryMarketsByUIDsResponse) MarshalToSizedBuffer

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

func (*QueryMarketsByUIDsResponse) ProtoMessage

func (*QueryMarketsByUIDsResponse) ProtoMessage()

func (*QueryMarketsByUIDsResponse) Reset

func (m *QueryMarketsByUIDsResponse) Reset()

func (*QueryMarketsByUIDsResponse) Size

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

func (*QueryMarketsByUIDsResponse) String

func (m *QueryMarketsByUIDsResponse) String() string

func (*QueryMarketsByUIDsResponse) Unmarshal

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

func (*QueryMarketsByUIDsResponse) XXX_DiscardUnknown

func (m *QueryMarketsByUIDsResponse) XXX_DiscardUnknown()

func (*QueryMarketsByUIDsResponse) XXX_Marshal

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

func (*QueryMarketsByUIDsResponse) XXX_Merge

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

func (*QueryMarketsByUIDsResponse) XXX_Size

func (m *QueryMarketsByUIDsResponse) XXX_Size() int

func (*QueryMarketsByUIDsResponse) XXX_Unmarshal

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

type QueryMarketsRequest

type QueryMarketsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryMarketsRequest is the request type for the Query/markets RPC method. Query/Markets RPC method.

func (*QueryMarketsRequest) Descriptor

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

func (*QueryMarketsRequest) GetPagination

func (m *QueryMarketsRequest) GetPagination() *query.PageRequest

func (*QueryMarketsRequest) Marshal

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

func (*QueryMarketsRequest) MarshalTo

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

func (*QueryMarketsRequest) MarshalToSizedBuffer

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

func (*QueryMarketsRequest) ProtoMessage

func (*QueryMarketsRequest) ProtoMessage()

func (*QueryMarketsRequest) Reset

func (m *QueryMarketsRequest) Reset()

func (*QueryMarketsRequest) Size

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

func (*QueryMarketsRequest) String

func (m *QueryMarketsRequest) String() string

func (*QueryMarketsRequest) Unmarshal

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

func (*QueryMarketsRequest) XXX_DiscardUnknown

func (m *QueryMarketsRequest) XXX_DiscardUnknown()

func (*QueryMarketsRequest) XXX_Marshal

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

func (*QueryMarketsRequest) XXX_Merge

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

func (*QueryMarketsRequest) XXX_Size

func (m *QueryMarketsRequest) XXX_Size() int

func (*QueryMarketsRequest) XXX_Unmarshal

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

type QueryMarketsResponse

type QueryMarketsResponse struct {
	Market     []Market            `protobuf:"bytes,1,rep,name=market,proto3" json:"market"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryMarketsResponse is the response type for the Query/markets RPC method. Query/Markets RPC method.

func (*QueryMarketsResponse) Descriptor

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

func (*QueryMarketsResponse) GetMarket

func (m *QueryMarketsResponse) GetMarket() []Market

func (*QueryMarketsResponse) GetPagination

func (m *QueryMarketsResponse) GetPagination() *query.PageResponse

func (*QueryMarketsResponse) Marshal

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

func (*QueryMarketsResponse) MarshalTo

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

func (*QueryMarketsResponse) MarshalToSizedBuffer

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

func (*QueryMarketsResponse) ProtoMessage

func (*QueryMarketsResponse) ProtoMessage()

func (*QueryMarketsResponse) Reset

func (m *QueryMarketsResponse) Reset()

func (*QueryMarketsResponse) Size

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

func (*QueryMarketsResponse) String

func (m *QueryMarketsResponse) String() string

func (*QueryMarketsResponse) Unmarshal

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

func (*QueryMarketsResponse) XXX_DiscardUnknown

func (m *QueryMarketsResponse) XXX_DiscardUnknown()

func (*QueryMarketsResponse) XXX_Marshal

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

func (*QueryMarketsResponse) XXX_Merge

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

func (*QueryMarketsResponse) XXX_Size

func (m *QueryMarketsResponse) XXX_Size() int

func (*QueryMarketsResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC method. 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 hold all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the response type for the Query/Params RPC method. 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 market by uid.
	Market(context.Context, *QueryMarketRequest) (*QueryMarketResponse, error)
	// Queries a list of all the markets
	Markets(context.Context, *QueryMarketsRequest) (*QueryMarketsResponse, error)
	// Queries a list of markets by UIDs.
	MarketsByUIDs(context.Context, *QueryMarketsByUIDsRequest) (*QueryMarketsByUIDsResponse, error)
}

QueryServer is the server API for Query service.

type SRKeeper

type SRKeeper interface {
	InitiateOrderBook(ctx sdk.Context, marketUID string, srContribution sdk.Int, oddsUIDs []string) error
}

SRKeeper defines the expected interface needed to initiate an order book for a market

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddMarket

func (*UnimplementedMsgServer) ResolveMarket

func (*UnimplementedMsgServer) UpdateMarket

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Market

func (*UnimplementedQueryServer) Markets

func (*UnimplementedQueryServer) MarketsByUIDs

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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