types

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	RoundStart                 = 1
	DefaultAllowanceExpiration = 60
)
View Source
const (
	AttributeValueCategory = ModuleName

	TypeParticipationSettlement = "participation_settlement"

	AttributeValueMarketUID                   = "market_uid"
	AttributeValueParticipationIndex          = "participation_index"
	AttributeValueParticipationReimbursedFees = "participation_reimbursed_fee"
	AttributeValueParticipationReturnedAmount = "participation_returned_amount"
	AttributeValueParticipationActualProfit   = "participation_actual_profit"
)
View Source
const (
	// ModuleName is the name of the orderbook module
	ModuleName = "orderbook"

	// StoreKey is the string store representation
	StoreKey = ModuleName

	// RouterKey is the message route for orderbook
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName
)
View Source
const (
	// DefaultMaxOrderBookParticipations Default maximum book participations.
	DefaultMaxOrderBookParticipations uint64 = 100

	// DefaultBatchSettlementCount Default batch settlement count.
	DefaultBatchSettlementCount uint64 = 100

	// DefaultRequeueThreshold Default requeue threshold.
	DefaultRequeueThreshold uint64 = 1000
)

Orderbook params default values

View Source
const (
	ErrTextInvalidDepositor = "invalid depositor address (%s)"
)

ErrTextInvalidDepositor x/orderbook module sentinel error text

Variables

View Source
var (
	ErrInTicketVerification               = sdkerrors.Register(ModuleName, 6001, "ticket verification failed")
	ErrInTicketPayloadValidation          = sdkerrors.Register(ModuleName, 6002, "ticket validation failed")
	ErrOrderBookNotFound                  = sdkerrors.Register(ModuleName, 6003, "order book not found")
	ErrOrderBookNotActive                 = sdkerrors.Register(ModuleName, 6004, "order book not active")
	ErrMaxNumberOfParticipationsReached   = sdkerrors.Register(ModuleName, 6005, "maximum number of participations reached")
	ErrInsufficientAccountBalance         = sdkerrors.Register(ModuleName, 6006, "insufficient account balance.")
	ErrFromBankModule                     = sdkerrors.Register(ModuleName, 6007, "error returned from Bank Module")
	ErrBookParticipationAlreadyExists     = sdkerrors.Register(ModuleName, 6008, "internal error in setting book participation")
	ErrOrderBookAlreadyPresent            = sdkerrors.Register(ModuleName, 6009, "order book already present")
	ErrInsufficientBalanceInModuleAccount = sdkerrors.Register(ModuleName, 6010, "Insufficient Balance in Module Account")
	ErrOrderBookExposureNotFound          = sdkerrors.Register(ModuleName, 6011, "order book exposure not found")
	ErrBookParticipationsNotFound         = sdkerrors.Register(ModuleName, 6012, "book participations not found")
	ErrParticipationExposuresNotFound     = sdkerrors.Register(ModuleName, 6013, "participation exposures not found")
	ErrOrderBookParticipationNotFound     = sdkerrors.Register(ModuleName, 6014, "book participation not found")
	ErrParticipationExposureNotFound      = sdkerrors.Register(ModuleName, 6015, "participation exposure not found")
	ErrParticipationExposureAlreadyFilled = sdkerrors.Register(ModuleName, 6016, "participation exposure already filled")
	ErrInsufficientLiquidityInOrderBook   = sdkerrors.Register(ModuleName, 6017, "insufficient liquidity in orderbook")
	ErrBookParticipationAlreadySettled    = sdkerrors.Register(ModuleName, 6018, "book participation already settled")
	ErrMismatchInDepositorAddress         = sdkerrors.Register(ModuleName, 6019, "mismatch in depositor address")
	ErrWithdrawalAmountIsTooLarge         = sdkerrors.Register(ModuleName, 6020, "withdrawal amount more than available amount for withdrawal")
	ErrMaxWithdrawableAmountIsZero        = sdkerrors.Register(ModuleName, 6021, "maximum withdrawal amount is zero")
	ErrParticipationOnInactiveMarket      = sdkerrors.Register(ModuleName, 6022, "participation is allowed on an active market only")
	ErrMarketNotFound                     = sdkerrors.Register(ModuleName, 6023, "market not found to initialize participation")
	ErrUnknownMarketStatus                = sdkerrors.Register(ModuleName, 6025, "unknown market status of orderbook settlement")
	ErrWithdrawalTooLarge                 = sdkerrors.Register(ModuleName, 6026, "withdrawal is more than unused amount")
	ErrWithdrawalNotAllowedPostRequeing   = sdkerrors.Register(ModuleName, 6027, "withdrawal is not allowed post requeing")
)

x/orderbook module sentinel errors

View Source
var (
	ErrInvalidLengthExposure        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowExposure          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupExposure = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	OrderBookKeyPrefix              = []byte{0x00} // prefix for keys that store books
	OrderBookParticipationKeyPrefix = []byte{
		0x01,
	} // prefix for keys that store book participations
	OrderBookOddsExposureKeyPrefix = []byte{
		0x02,
	} // prefix for keys that store book odds exposures
	ParticipationExposureKeyPrefix = []byte{
		0x03,
	} // prefix for keys that store participation exposures
	ParticipationExposureByIndexKeyPrefix = []byte{
		0x04,
	} // prefix for keys that store participation exposures
	HistoricalParticipationExposureKeyPrefix = []byte{
		0x05,
	} // prefix for keys that store historical participation exposures
	OrderBookStatsKeyPrefix       = []byte{0x06} // prefix for keys that store book stats
	ParticipationBetPairKeyPrefix = []byte{
		0x07,
	} // prefix for keys that store book participation and bet pairs
	FeeGrantPrefix = []byte{0x08} // prefix for keys that store fee grants
	// SettledOrderbookParticipationListPrefix is the prefix to retrieve all settled orderbook participations
	SettledOrderbookParticipationListPrefix = []byte{0x09}
)
View Source
var (
	ErrInvalidLengthOrderbook        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOrderbook          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOrderbook = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParticipation        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParticipation          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParticipation = 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 (
	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 (

	// ModuleCdc is the codec of the module
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var OrderBookStatus_name = map[int32]string{
	0: "ORDER_BOOK_STATUS_UNSPECIFIED",
	1: "ORDER_BOOK_STATUS_STATUS_ACTIVE",
	2: "ORDER_BOOK_STATUS_STATUS_RESOLVED",
	3: "ORDER_BOOK_STATUS_STATUS_SETTLED",
}
View Source
var OrderBookStatus_value = map[string]int32{
	"ORDER_BOOK_STATUS_UNSPECIFIED":     0,
	"ORDER_BOOK_STATUS_STATUS_ACTIVE":   1,
	"ORDER_BOOK_STATUS_STATUS_RESOLVED": 2,
	"ORDER_BOOK_STATUS_STATUS_SETTLED":  3,
}

Functions

func GetHistoricalParticipationExposureKey

func GetHistoricalParticipationExposureKey(bookUID, oddsUID string, index, round uint64) []byte

GetHistoricalParticipationExposureKey creates the key for participation exposure for an odd

func GetOrderBookKey added in v0.0.8

func GetOrderBookKey(bookUID string) []byte

GetOrderBookKey returns the bytes of an book key

func GetOrderBookOddsExposureKey added in v0.0.8

func GetOrderBookOddsExposureKey(bookUID, oddsUID string) []byte

GetOrderBookOddsExposureKey creates the key for book exposure for an odd

func GetOrderBookOddsExposuresKey added in v0.0.8

func GetOrderBookOddsExposuresKey(bookUID string) []byte

GetOrderBookOddsExposuresKey creates the key for book exposure for an book

func GetOrderBookParticipationKey added in v0.0.8

func GetOrderBookParticipationKey(bookUID string, participationIndex uint64) []byte

GetOrderBookParticipationKey creates the key for book participation bond with book

func GetOrderBookParticipationsKey added in v0.0.8

func GetOrderBookParticipationsKey(bookUID string) []byte

GetOrderBookParticipationsKey creates the key for book participations for an book

func GetParticipationBetPairKey

func GetParticipationBetPairKey(bookUID string, bookParticipationIndex, betID uint64) []byte

GetParticipationBetPairKey creates the bond between participation and bet

func GetParticipationByIndexKey

func GetParticipationByIndexKey(bookUID string, index uint64) []byte

GetParticipationByIndexKey creates the key for exposures for a book id and participation index

func GetParticipationExposureByIndexKey

func GetParticipationExposureByIndexKey(bookUID, oddsUID string, index uint64) []byte

GetParticipationExposureByIndexKey creates the key for participation exposure for an odds by participation index

func GetParticipationExposureKey

func GetParticipationExposureKey(bookUID, oddsUID string, index uint64) []byte

GetParticipationExposureKey creates the key for participation exposure for an odd

func GetParticipationExposuresByOrderBookKey added in v0.0.8

func GetParticipationExposuresByOrderBookKey(bookUID string) []byte

GetParticipationExposuresByOrderBookKey creates the key for exposures for a book id

func GetParticipationExposuresKey

func GetParticipationExposuresKey(bookUID, oddsUID string) []byte

GetParticipationExposuresKey creates the key for exposures for a book id and odds id

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable ParamTable for orderbook module

func RegisterInterfaces added in v0.0.8

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers the module interface types

func RegisterLegacyAminoCodec added in v1.1.1

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/orderbook interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer added in v1.4.5

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)

func SettledOrderbookParticipationListOfBlockHeightPrefix added in v1.4.5

func SettledOrderbookParticipationListOfBlockHeightPrefix(blockHeight int64) []byte

SettledOrderbookParticipationListOfBlockHeightPrefix returns prefix of settled orderbook participation list on a certain block height.

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(moduleName string) sdk.AccAddress
}

AccountKeeper defines the expected account keeper methods.

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromAccountToModule(
		ctx sdk.Context,
		senderAddr sdk.AccAddress,
		recipientModule string,
		amt sdk.Coins,
	) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SendCoinsFromModuleToModule(
		ctx sdk.Context,
		senderModule, recipientModule string,
		amt sdk.Coins,
	) error
	SendCoinsFromModuleToAccount(
		ctx sdk.Context,
		senderModule string,
		recipientAddr sdk.AccAddress,
		amt sdk.Coins,
	) error
}

BankKeeper defines the expected bank keeper methods.

type BetKeeper

type BetKeeper interface {
	GetBetID(ctx sdk.Context, uid string) (val bettypes.UID2ID, found bool)
}

BetKeeper defines the expected bet keeper methods.

type FeeGrantKeeper added in v0.0.8

type FeeGrantKeeper interface {
	GrantAllowance(
		ctx sdk.Context,
		granter, grantee sdk.AccAddress,
		feeAllowance sdkfeegrant.FeeAllowanceI,
	) error
	GetAllowance(ctx sdk.Context, granter, grantee sdk.AccAddress) (sdkfeegrant.FeeAllowanceI, error)
}

FeeGrantKeeper defines the expected interface needed for the fee grant.

type GenesisState

type GenesisState struct {
	// params defines all the parameters related to order book.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// order_book_list defines the order books available at genesis.
	OrderBookList []OrderBook `protobuf:"bytes,2,rep,name=order_book_list,json=orderBookList,proto3" json:"order_book_list"`
	// order_book_participation_list defines the book participations available at
	// genesis.
	OrderBookParticipationList []OrderBookParticipation `` /* 133-byte string literal not displayed */
	// order_book_exposure_list defines the order book exposures available at
	// genesis.
	OrderBookExposureList []OrderBookOddsExposure `protobuf:"bytes,4,rep,name=order_book_exposure_list,json=orderBookExposureList,proto3" json:"order_book_exposure_list"`
	// participation_exposure_list defines the participation exposures available
	// at genesis.
	ParticipationExposureList []ParticipationExposure `` /* 128-byte string literal not displayed */
	// participation_exposure_by_index_list defines the participation exposures by
	// the indices available at genesis.
	ParticipationExposureByIndexList []ParticipationExposure `` /* 153-byte string literal not displayed */
	// historical_participation_exposure_list defines the historical participation
	// exposures available at genesis.
	HistoricalParticipationExposureList []ParticipationExposure `` /* 160-byte string literal not displayed */
	// historical_participation_exposure_list defines the participation bet pair
	// exposures available at genesis.
	ParticipationBetPairExposureList []ParticipationBetPair `` /* 153-byte string literal not displayed */
	// stats is the statistics of the order book.
	Stats OrderBookStats `protobuf:"bytes,9,opt,name=stats,proto3" json:"stats"`
}

GenesisState defines the orderbook 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) GetHistoricalParticipationExposureList

func (m *GenesisState) GetHistoricalParticipationExposureList() []ParticipationExposure

func (*GenesisState) GetOrderBookExposureList added in v0.0.8

func (m *GenesisState) GetOrderBookExposureList() []OrderBookOddsExposure

func (*GenesisState) GetOrderBookList added in v0.0.8

func (m *GenesisState) GetOrderBookList() []OrderBook

func (*GenesisState) GetOrderBookParticipationList added in v0.0.8

func (m *GenesisState) GetOrderBookParticipationList() []OrderBookParticipation

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetParticipationBetPairExposureList

func (m *GenesisState) GetParticipationBetPairExposureList() []ParticipationBetPair

func (*GenesisState) GetParticipationExposureByIndexList

func (m *GenesisState) GetParticipationExposureByIndexList() []ParticipationExposure

func (*GenesisState) GetParticipationExposureList

func (m *GenesisState) GetParticipationExposureList() []ParticipationExposure

func (*GenesisState) GetStats

func (m *GenesisState) GetStats() OrderBookStats

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 HouseKeeper added in v0.0.8

type HouseKeeper interface {
	GetDeposit(
		ctx sdk.Context,
		depositorAddress, marketUID string,
		participationIndex uint64,
	) (val housetypes.Deposit, found bool)
}

HouseKeeper defines the expected market keeper methods.

type MarketKeeper added in v0.0.8

type MarketKeeper interface {
	GetMarket(ctx sdk.Context, marketUID string) (val markettypes.Market, found bool)
}

MarketKeeper defines the expected market keeper methods.

type MsgClient added in v1.4.5

type MsgClient interface {
	// UpdateParams defines a governance operation for updating the x/market
	// module parameters. The authority is defined in the keeper.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 added in v1.4.5

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer added in v1.4.5

type MsgServer interface {
	// UpdateParams defines a governance operation for updating the x/market
	// module parameters. The authority is defined in the keeper.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams added in v1.4.5

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/bet parameters.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor added in v1.4.5

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

func (*MsgUpdateParams) GetAuthority added in v1.4.5

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v1.4.5

func (m *MsgUpdateParams) GetParams() Params

func (MsgUpdateParams) GetSignBytes added in v1.4.5

func (msg MsgUpdateParams) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateParams) GetSigners added in v1.4.5

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

GetSigners returns the expected signers for a MsgUpdateParams message.

func (*MsgUpdateParams) Marshal added in v1.4.5

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

func (*MsgUpdateParams) MarshalTo added in v1.4.5

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v1.4.5

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

func (*MsgUpdateParams) ProtoMessage added in v1.4.5

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v1.4.5

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Route added in v1.4.5

func (*MsgUpdateParams) Route() string

Route returns the module's message router key.

func (*MsgUpdateParams) Size added in v1.4.5

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

func (*MsgUpdateParams) String added in v1.4.5

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Type added in v1.4.5

func (*MsgUpdateParams) Type() string

Type returns type of its message

func (*MsgUpdateParams) Unmarshal added in v1.4.5

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

func (*MsgUpdateParams) ValidateBasic added in v1.4.5

func (msg *MsgUpdateParams) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateParams) XXX_DiscardUnknown added in v1.4.5

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v1.4.5

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

func (*MsgUpdateParams) XXX_Merge added in v1.4.5

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

func (*MsgUpdateParams) XXX_Size added in v1.4.5

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v1.4.5

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

type MsgUpdateParamsResponse added in v1.4.5

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor added in v1.4.5

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

func (*MsgUpdateParamsResponse) Marshal added in v1.4.5

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

func (*MsgUpdateParamsResponse) MarshalTo added in v1.4.5

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v1.4.5

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v1.4.5

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v1.4.5

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v1.4.5

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

func (*MsgUpdateParamsResponse) String added in v1.4.5

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v1.4.5

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v1.4.5

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v1.4.5

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v1.4.5

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

func (*MsgUpdateParamsResponse) XXX_Size added in v1.4.5

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v1.4.5

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

type MultiOrderBookHooks added in v1.3.0

type MultiOrderBookHooks []OrderBookHooks

MultiOrderBookHooks combine multiple orderbook hooks, all hook functions are run in array sequence

func NewMultiOrderBookHooks added in v1.3.0

func NewMultiOrderBookHooks(hooks ...OrderBookHooks) MultiOrderBookHooks

NewMultiOrderBookHooks returns list of hooks defined for the orderbook module.

func (MultiOrderBookHooks) AfterHouseFeeRefund added in v1.3.0

func (h MultiOrderBookHooks) AfterHouseFeeRefund(ctx sdk.Context, house sdk.AccAddress, fee sdkmath.Int)

AfterHouseFeeRefund registers all of hooks for this method.

func (MultiOrderBookHooks) AfterHouseLoss added in v1.3.0

func (h MultiOrderBookHooks) AfterHouseLoss(ctx sdk.Context, house sdk.AccAddress, originalAmount, lostAmt sdkmath.Int)

AfterHouseLoss registers all of hooks for this method.

func (MultiOrderBookHooks) AfterHouseRefund added in v1.3.0

func (h MultiOrderBookHooks) AfterHouseRefund(ctx sdk.Context, house sdk.AccAddress, originalAmount sdkmath.Int)

AfterHouseRefund registers all of hooks for this method.

func (MultiOrderBookHooks) AfterHouseWin added in v1.3.0

func (h MultiOrderBookHooks) AfterHouseWin(ctx sdk.Context, house sdk.AccAddress, originalAmount, profit sdkmath.Int)

AfterHouseWin registers all of hooks for this method.

type OVMKeeper added in v0.0.8

type OVMKeeper interface {
	VerifyTicketUnmarshal(goCtx context.Context, ticket string, clm interface{}) error
}

OVMKeeper defines the expected interface needed to verify ticket and unmarshal it

type OrderBook

type OrderBook struct {
	// uid is the universal unique identifier of the order book.
	UID string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
	// participation_count is the count of participations in the order book.
	ParticipationCount uint64 `` /* 143-byte string literal not displayed */
	// odds_count is the count of the odds in the order book.
	OddsCount uint64 `protobuf:"varint,3,opt,name=odds_count,json=oddsCount,proto3" json:"odds_count,omitempty" yaml:"odds_count"`
	// status represents the status of the order book.
	Status OrderBookStatus `protobuf:"varint,4,opt,name=status,proto3,enum=sgenetwork.sge.orderbook.OrderBookStatus" json:"status,omitempty"`
}

OrderBook represents the order book maintained against a market.

func NewOrderBook

func NewOrderBook(
	bookUID string, oddsCount uint64,
	status OrderBookStatus,
) OrderBook

NewOrderBook creates a new orderbook object

func UnmarshalOrderBook added in v0.0.8

func UnmarshalOrderBook(cdc codec.BinaryCodec, value []byte) (book OrderBook, err error)

UnmarshalOrderBook return the orderbook

func (*OrderBook) Descriptor

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

func (*OrderBook) Marshal

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

func (*OrderBook) MarshalTo

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

func (*OrderBook) MarshalToSizedBuffer

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

func (*OrderBook) ProtoMessage

func (*OrderBook) ProtoMessage()

func (*OrderBook) Reset

func (m *OrderBook) Reset()

func (*OrderBook) Size

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

func (OrderBook) String

func (ob OrderBook) String() string

String returns a human-readable string representation of a OrderBook.

func (*OrderBook) Unmarshal

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

func (*OrderBook) XXX_DiscardUnknown

func (m *OrderBook) XXX_DiscardUnknown()

func (*OrderBook) XXX_Marshal

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

func (*OrderBook) XXX_Merge

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

func (*OrderBook) XXX_Size

func (m *OrderBook) XXX_Size() int

func (*OrderBook) XXX_Unmarshal

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

type OrderBookHooks added in v1.3.0

type OrderBookHooks interface {
	AfterHouseWin(ctx sdk.Context, house sdk.AccAddress, originalAmount, profit sdkmath.Int)
	AfterHouseLoss(ctx sdk.Context, house sdk.AccAddress, originalAmount, lostAmt sdkmath.Int)
	AfterHouseRefund(ctx sdk.Context, house sdk.AccAddress, originalAmount sdkmath.Int)
	AfterHouseFeeRefund(ctx sdk.Context, house sdk.AccAddress, fee sdkmath.Int)
}

OrderBookHooks event hooks for orderbook methods.

type OrderBookLiquidityFunder added in v0.0.8

type OrderBookLiquidityFunder struct{}

func (OrderBookLiquidityFunder) GetModuleAcc added in v0.0.8

func (OrderBookLiquidityFunder) GetModuleAcc() string

type OrderBookOddsExposure added in v0.0.8

type OrderBookOddsExposure struct {
	// order_book_uid is the universally unique identifier corresponding to the
	// order book.
	OrderBookUID string `protobuf:"bytes,1,opt,name=order_book_uid,proto3" json:"order_book_uid"`
	// odds_uid is the universally unique identifier of the odds.
	OddsUID string `protobuf:"bytes,2,opt,name=odds_uid,proto3" json:"odds_uid"`
	// fulfillment_queue is the slice of indices of participations to be
	// fulfilled.
	FulfillmentQueue []uint64 `` /* 142-byte string literal not displayed */
}

OrderBookOddsExposure represents the exposures taken on odds.

func NewOrderBookOddsExposure added in v0.0.8

func NewOrderBookOddsExposure(
	orderBookUID, oddsUID string,
	fulfillmentQueue []uint64,
) OrderBookOddsExposure

NewOrderBookOddsExposure creates a new book odds exposure object

func (*OrderBookOddsExposure) Descriptor added in v0.0.8

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

func (*OrderBookOddsExposure) Marshal added in v0.0.8

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

func (*OrderBookOddsExposure) MarshalTo added in v0.0.8

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

func (*OrderBookOddsExposure) MarshalToSizedBuffer added in v0.0.8

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

func (*OrderBookOddsExposure) ProtoMessage added in v0.0.8

func (*OrderBookOddsExposure) ProtoMessage()

func (*OrderBookOddsExposure) Reset added in v0.0.8

func (m *OrderBookOddsExposure) Reset()

func (*OrderBookOddsExposure) Size added in v0.0.8

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

func (OrderBookOddsExposure) String added in v0.0.8

func (boe OrderBookOddsExposure) String() string

String returns a human-readable string representation of a BookOddsExposure.

func (*OrderBookOddsExposure) Unmarshal added in v0.0.8

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

func (*OrderBookOddsExposure) XXX_DiscardUnknown added in v0.0.8

func (m *OrderBookOddsExposure) XXX_DiscardUnknown()

func (*OrderBookOddsExposure) XXX_Marshal added in v0.0.8

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

func (*OrderBookOddsExposure) XXX_Merge added in v0.0.8

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

func (*OrderBookOddsExposure) XXX_Size added in v0.0.8

func (m *OrderBookOddsExposure) XXX_Size() int

func (*OrderBookOddsExposure) XXX_Unmarshal added in v0.0.8

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

type OrderBookParticipation added in v0.0.8

type OrderBookParticipation struct {
	// index is the index of the participation in the participation queue.
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty" yaml:"index"`
	// order_book_uid is the unique identifier corresponding to the order book.
	OrderBookUID string `protobuf:"bytes,2,opt,name=order_book_uid,proto3" json:"order_book_uid"`
	// participant_address is the bech32-encoded address of the participant.
	ParticipantAddress string `` /* 142-byte string literal not displayed */
	// liquidity is the total initial liquidity provided.
	Liquidity cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=liquidity,proto3,customtype=cosmossdk.io/math.Int" json:"liquidity" yaml:"liquidity"`
	// fee is the amount of fee to be paid if participation happens.
	Fee cosmossdk_io_math.Int `protobuf:"bytes,5,opt,name=fee,proto3,customtype=cosmossdk.io/math.Int" json:"fee" yaml:"fee"`
	// current_round_liquidity is the liquidity provided for the current round.
	CurrentRoundLiquidity cosmossdk_io_math.Int `` /* 180-byte string literal not displayed */
	// exposures_not_filled represents if all of the exposures of the
	// participation are filled or not.
	ExposuresNotFilled uint64 `` /* 146-byte string literal not displayed */
	// total_bet_amount is the total bet amount corresponding to all exposures.
	TotalBetAmount cosmossdk_io_math.Int `` /* 152-byte string literal not displayed */
	// current_round_total_bet_amount is the total bet amount corresponding to all
	// exposures in the current round.
	CurrentRoundTotalBetAmount cosmossdk_io_math.Int `` /* 206-byte string literal not displayed */
	// max_loss is the total bet amount corresponding to all exposure.
	MaxLoss cosmossdk_io_math.Int `protobuf:"bytes,10,opt,name=max_loss,json=maxLoss,proto3,customtype=cosmossdk.io/math.Int" json:"max_loss" yaml:"max_loss"`
	// current_round_max_loss is the current round max loss.
	CurrentRoundMaxLoss cosmossdk_io_math.Int `` /* 176-byte string literal not displayed */
	// current_round_max_loss_odds_uid is the total max loss corresponding to
	// all exposures.
	CurrentRoundMaxLossOddsUID string `` /* 145-byte string literal not displayed */
	// actual_profit is the actual profit of the participation fulfillment.
	ActualProfit cosmossdk_io_math.Int `` /* 142-byte string literal not displayed */
	// is_settled represents if the participation is settled or not.
	IsSettled bool `protobuf:"varint,14,opt,name=is_settled,json=isSettled,proto3" json:"is_settled,omitempty" yaml:"is_settled"`
	// returned_amount is the total returned amount to the user's account
	// including reimbursed fees.
	ReturnedAmount cosmossdk_io_math.Int `` /* 150-byte string literal not displayed */
	// reimbursed_fee is the fee reimbursed because of reasons such as market
	// calcellation.
	ReimbursedFee cosmossdk_io_math.Int `` /* 146-byte string literal not displayed */
}

OrderBookParticipation represents the participants of an order book.

func NewOrderBookParticipation added in v0.0.8

func NewOrderBookParticipation(
	index uint64,
	orderBookUID string,
	participantAddress string,
	exposuresNotFilled uint64,
	liquidity, fee, currentRoundLiquidity, totalBetAmount, currentRoundTotalBetAmount, maxLoss, currentRoundMaxLoss sdkmath.Int,
	currentRoundMaxLossOddsUID string,
	actualProfit sdkmath.Int,
) OrderBookParticipation

NewOrderBookParticipation creates a new book participation object

func (OrderBookParticipation) CalculateMaxLoss added in v0.0.8

func (p OrderBookParticipation) CalculateMaxLoss(betAmount sdkmath.Int) sdkmath.Int

CalculateMaxLoss calculates the maxixmum amount of the tokens expected to be the loss of the participation according to the bet amount

func (*OrderBookParticipation) Descriptor added in v0.0.8

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

func (*OrderBookParticipation) IsEligibleForNextRound added in v0.0.8

func (p *OrderBookParticipation) IsEligibleForNextRound() bool

IsEligibleForNextRound determines if the participation has enough liquidity to be used in the next round or not

func (*OrderBookParticipation) IsEligibleForNextRoundPreLiquidityReduction added in v1.1.1

func (p *OrderBookParticipation) IsEligibleForNextRoundPreLiquidityReduction() bool

IsEligibleForNextRound determines if the participation has enough liquidity to be used in the next round or not

func (*OrderBookParticipation) IsLiquidityInCurrentRound added in v1.1.1

func (p *OrderBookParticipation) IsLiquidityInCurrentRound() bool

IsLiquidityInCurrentRound determines if the participation has liquidity in current round.

func (*OrderBookParticipation) Marshal added in v0.0.8

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

func (*OrderBookParticipation) MarshalTo added in v0.0.8

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

func (*OrderBookParticipation) MarshalToSizedBuffer added in v0.0.8

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

func (*OrderBookParticipation) NotParticipatedInBetFulfillment added in v0.0.8

func (p *OrderBookParticipation) NotParticipatedInBetFulfillment() bool

NotParticipatedInBetFulfillment determines if the participation has participated in the bet fulfillment.

func (*OrderBookParticipation) ProtoMessage added in v0.0.8

func (*OrderBookParticipation) ProtoMessage()

func (*OrderBookParticipation) Reset added in v0.0.8

func (m *OrderBookParticipation) Reset()

func (*OrderBookParticipation) ResetForNextRound added in v0.0.8

func (p *OrderBookParticipation) ResetForNextRound(notFilledExposures uint64)

ResetForNextRound resets the exposures, max loss and current round amount and make the participation ready for the next round

func (*OrderBookParticipation) SetCurrentRound added in v0.0.8

func (p *OrderBookParticipation) SetCurrentRound(
	pe *ParticipationExposure,
	oddsUID string,
	betAmount sdkmath.Int,
)

SetCurrentRound sets the current round total bet amount and max loss.

func (*OrderBookParticipation) SetLiquidityAfterWithdrawal added in v0.0.8

func (p *OrderBookParticipation) SetLiquidityAfterWithdrawal(withdrawalAmt sdkmath.Int)

SetLiquidityAfterWithdrawal sets the liquidity props after withdrawal.

func (*OrderBookParticipation) Size added in v0.0.8

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

func (OrderBookParticipation) String added in v0.0.8

func (p OrderBookParticipation) String() string

String returns a human readable string representation of a BookParticipation.

func (*OrderBookParticipation) TrimCurrentRoundLiquidity added in v0.0.8

func (p *OrderBookParticipation) TrimCurrentRoundLiquidity()

TrimCurrentRoundLiquidity subtracts the max loss from the current round liquidity.

func (*OrderBookParticipation) Unmarshal added in v0.0.8

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

func (*OrderBookParticipation) ValidateWithdraw added in v0.0.8

func (p *OrderBookParticipation) ValidateWithdraw(
	depositorAddress string,
	participationIndex uint64,
) error

ValidateWithdraw determines if the participation is allowed to be withdrawn or not.

func (*OrderBookParticipation) WithdrawableAmount added in v0.0.8

func (p *OrderBookParticipation) WithdrawableAmount(
	mode housetypes.WithdrawalMode,
	amount sdkmath.Int,
) (sdkmath.Int, error)

WithdrawableAmount returns the withdrawal amount according to the withdrawal mode and max withdrawable amount.

func (*OrderBookParticipation) XXX_DiscardUnknown added in v0.0.8

func (m *OrderBookParticipation) XXX_DiscardUnknown()

func (*OrderBookParticipation) XXX_Marshal added in v0.0.8

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

func (*OrderBookParticipation) XXX_Merge added in v0.0.8

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

func (*OrderBookParticipation) XXX_Size added in v0.0.8

func (m *OrderBookParticipation) XXX_Size() int

func (*OrderBookParticipation) XXX_Unmarshal added in v0.0.8

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

type OrderBookStats

type OrderBookStats struct {
	// resolved_unsettled is the list of order book universal unique identifiers
	// that needs to be settled.
	ResolvedUnsettled []string `protobuf:"bytes,1,rep,name=resolved_unsettled,json=resolvedUnsettled,proto3" json:"resolved_unsettled,omitempty"`
}

OrderBookStats holds statistics on the order book.

func (*OrderBookStats) Descriptor

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

func (*OrderBookStats) GetResolvedUnsettled

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

func (*OrderBookStats) Marshal

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

func (*OrderBookStats) MarshalTo

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

func (*OrderBookStats) MarshalToSizedBuffer

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

func (*OrderBookStats) ProtoMessage

func (*OrderBookStats) ProtoMessage()

func (*OrderBookStats) Reset

func (m *OrderBookStats) Reset()

func (*OrderBookStats) Size

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

func (*OrderBookStats) String

func (m *OrderBookStats) String() string

func (*OrderBookStats) Unmarshal

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

func (*OrderBookStats) XXX_DiscardUnknown

func (m *OrderBookStats) XXX_DiscardUnknown()

func (*OrderBookStats) XXX_Marshal

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

func (*OrderBookStats) XXX_Merge

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

func (*OrderBookStats) XXX_Size

func (m *OrderBookStats) XXX_Size() int

func (*OrderBookStats) XXX_Unmarshal

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

type OrderBookStatus

type OrderBookStatus int32

OrderBookStatus is the enum type for the status of the order book.

const (
	// invalid
	OrderBookStatus_ORDER_BOOK_STATUS_UNSPECIFIED OrderBookStatus = 0
	// active
	OrderBookStatus_ORDER_BOOK_STATUS_STATUS_ACTIVE OrderBookStatus = 1
	// resolved not settled
	OrderBookStatus_ORDER_BOOK_STATUS_STATUS_RESOLVED OrderBookStatus = 2
	// resolved and settled
	OrderBookStatus_ORDER_BOOK_STATUS_STATUS_SETTLED OrderBookStatus = 3
)

func (OrderBookStatus) EnumDescriptor

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

func (OrderBookStatus) String

func (x OrderBookStatus) String() string

type Params

type Params struct {
	// max_order_book_participations is the maximum number of participations per
	// book.
	MaxOrderBookParticipations uint64 `` /* 181-byte string literal not displayed */
	// batch_settlement_count is the batch settlement deposit count.
	BatchSettlementCount uint64 `` /* 154-byte string literal not displayed */
	// requeue_threshold is the threshold at which a participation is re-queued in
	// orderbook.
	RequeueThreshold uint64 `` /* 135-byte string literal not displayed */
}

Params defines the parameters for the orderbook module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams(maxOrderBookParticipations, batchSettlementCount, requeueThreshold uint64) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetBatchSettlementCount

func (m *Params) GetBatchSettlementCount() uint64

func (*Params) GetMaxOrderBookParticipations added in v0.0.8

func (m *Params) GetMaxOrderBookParticipations() uint64

func (*Params) GetRequeueThreshold added in v0.0.8

func (m *Params) GetRequeueThreshold() uint64

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) ParamSetPairs

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

ParamSetPairs Implements 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 returns a human-readable string representation of the parameters.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates a 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 ParticipationBetPair

type ParticipationBetPair struct {
	// order_book_uid is the unique identifier corresponding to the order book
	OrderBookUID string `protobuf:"bytes,1,opt,name=order_book_uid,proto3" json:"order_book_uid"`
	// participation_index is the index of participation corresponding to the bet
	// fulfillment.
	ParticipationIndex uint64 `` /* 143-byte string literal not displayed */
	// bet_uid is the bet universal unique identifier of the bet that is
	// fulfilled.
	BetUID string `protobuf:"bytes,3,opt,name=bet_uid,proto3" json:"bet_uid"`
}

ParticipationBetPair represents the book participation and bet bond.

func NewParticipationBetPair

func NewParticipationBetPair(
	orderBookUID, betUID string, participationIndex uint64,
) ParticipationBetPair

NewParticipationBetPair creates a new Participation bet pair object

func (*ParticipationBetPair) Descriptor

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

func (*ParticipationBetPair) GetBetUID

func (m *ParticipationBetPair) GetBetUID() string

func (*ParticipationBetPair) GetOrderBookUID added in v0.0.8

func (m *ParticipationBetPair) GetOrderBookUID() string

func (*ParticipationBetPair) GetParticipationIndex

func (m *ParticipationBetPair) GetParticipationIndex() uint64

func (*ParticipationBetPair) Marshal

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

func (*ParticipationBetPair) MarshalTo

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

func (*ParticipationBetPair) MarshalToSizedBuffer

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

func (*ParticipationBetPair) ProtoMessage

func (*ParticipationBetPair) ProtoMessage()

func (*ParticipationBetPair) Reset

func (m *ParticipationBetPair) Reset()

func (*ParticipationBetPair) Size

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

func (*ParticipationBetPair) String

func (m *ParticipationBetPair) String() string

func (*ParticipationBetPair) Unmarshal

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

func (*ParticipationBetPair) XXX_DiscardUnknown

func (m *ParticipationBetPair) XXX_DiscardUnknown()

func (*ParticipationBetPair) XXX_Marshal

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

func (*ParticipationBetPair) XXX_Merge

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

func (*ParticipationBetPair) XXX_Size

func (m *ParticipationBetPair) XXX_Size() int

func (*ParticipationBetPair) XXX_Unmarshal

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

type ParticipationExposure

type ParticipationExposure struct {
	// order_book_uid is the universally unique identifier of the order book that
	// the exposure is being set.
	OrderBookUID string `protobuf:"bytes,1,opt,name=order_book_uid,proto3" json:"order_book_uid"`
	// odds_uid is the odds universal unique identifier that the exposure is being
	// set.
	OddsUID string `protobuf:"bytes,2,opt,name=odds_uid,proto3" json:"odds_uid"`
	// participation_index is the index of participation in the queue.
	ParticipationIndex uint64 `` /* 143-byte string literal not displayed */
	// exposure is the total exposure taken on given odds.
	Exposure cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=exposure,proto3,customtype=cosmossdk.io/math.Int" json:"exposure" yaml:"exposure"`
	// bet_amount is the total bet amount corresponding to the exposure.
	BetAmount cosmossdk_io_math.Int `` /* 129-byte string literal not displayed */
	// is_fulfilled represents if the participation exposure is fulfilled or not.
	IsFulfilled bool `protobuf:"varint,6,opt,name=is_fulfilled,json=isFulfilled,proto3" json:"is_fulfilled,omitempty" yaml:"is_fulfilled"`
	// round is the current round number in the queue.
	Round uint64 `protobuf:"varint,7,opt,name=round,proto3" json:"round,omitempty" yaml:"round"`
}

ParticipationExposure represents the exposures taken on odds by participations.

func NewParticipationExposure

func NewParticipationExposure(
	orderBookUID, oddsUID string,
	exposure, betAmount sdkmath.Int,
	participationIndex, round uint64,
	isFulfilled bool,
) ParticipationExposure

NewParticipationExposure creates a new participation exposure object

func (ParticipationExposure) CalculateMaxLoss added in v0.0.8

func (pe ParticipationExposure) CalculateMaxLoss(totalBetAmount sdkmath.Int) sdkmath.Int

CalculateMaxLoss calculates the maximum amount of loss for an exposure according to the bet amount.

func (*ParticipationExposure) Descriptor

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

func (*ParticipationExposure) Marshal

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

func (*ParticipationExposure) MarshalTo

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

func (*ParticipationExposure) MarshalToSizedBuffer

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

func (ParticipationExposure) NextRound added in v0.0.8

NextRound returns the next round participation object extracted from the current round properties.

func (*ParticipationExposure) ProtoMessage

func (*ParticipationExposure) ProtoMessage()

func (*ParticipationExposure) Reset

func (m *ParticipationExposure) Reset()

func (*ParticipationExposure) SetCurrentRound added in v0.0.8

func (pe *ParticipationExposure) SetCurrentRound(betAmount, payoutProfit sdkmath.Int)

SetCurrentRound sets the current round bet amount and payout profit.

func (*ParticipationExposure) Size

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

func (ParticipationExposure) String

func (pe ParticipationExposure) String() string

String returns a human-readable string representation of a participationExposure.

func (*ParticipationExposure) Unmarshal

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

func (*ParticipationExposure) XXX_DiscardUnknown

func (m *ParticipationExposure) XXX_DiscardUnknown()

func (*ParticipationExposure) XXX_Marshal

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

func (*ParticipationExposure) XXX_Merge

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

func (*ParticipationExposure) XXX_Size

func (m *ParticipationExposure) XXX_Size() int

func (*ParticipationExposure) XXX_Unmarshal

func (m *ParticipationExposure) 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)
	// OrderBooks queries all order books that match the given status.
	OrderBooks(ctx context.Context, in *QueryOrderBooksRequest, opts ...grpc.CallOption) (*QueryOrderBooksResponse, error)
	// OrderBook queries order book info for given order book universal unique
	// identifier.
	OrderBook(ctx context.Context, in *QueryOrderBookRequest, opts ...grpc.CallOption) (*QueryOrderBookResponse, error)
	// OrderBookParticipations queries participation info for given order book.
	OrderBookParticipations(ctx context.Context, in *QueryOrderBookParticipationsRequest, opts ...grpc.CallOption) (*QueryOrderBookParticipationsResponse, error)
	// OrderBookParticipation queries participation info for given order book and
	// participation index.
	OrderBookParticipation(ctx context.Context, in *QueryOrderBookParticipationRequest, opts ...grpc.CallOption) (*QueryOrderBookParticipationResponse, error)
	// OrderBookExposures queries exposures info for the given order book.
	OrderBookExposures(ctx context.Context, in *QueryOrderBookExposuresRequest, opts ...grpc.CallOption) (*QueryOrderBookExposuresResponse, error)
	// OrderBookExposure queries exposure info for the given order book and odds
	// universal unique identifier.
	OrderBookExposure(ctx context.Context, in *QueryOrderBookExposureRequest, opts ...grpc.CallOption) (*QueryOrderBookExposureResponse, error)
	// OrderBookParticipationExposures queries exposures info for given order book
	// participations.
	OrderBookParticipationExposures(ctx context.Context, in *QueryOrderBookParticipationExposuresRequest, opts ...grpc.CallOption) (*QueryOrderBookParticipationExposuresResponse, error)
	// ParticipationExposures queries exposure info for given order book
	// participation.
	ParticipationExposures(ctx context.Context, in *QueryParticipationExposuresRequest, opts ...grpc.CallOption) (*QueryParticipationExposuresResponse, error)
	// HistoricalParticipationExposures queries historical exposures info for
	// the given order book participation.
	HistoricalParticipationExposures(ctx context.Context, in *QueryHistoricalParticipationExposuresRequest, opts ...grpc.CallOption) (*QueryHistoricalParticipationExposuresResponse, error)
	// ParticipationFulfilledBets queries fulfilled bets for given order book
	// participation.
	ParticipationFulfilledBets(ctx context.Context, in *QueryParticipationFulfilledBetsRequest, opts ...grpc.CallOption) (*QueryParticipationFulfilledBetsResponse, error)
	// Queries list of settled Orderbook Participation items of a certain height.
	SettledOrderBookParticipationsOfHeight(ctx context.Context, in *QuerySettledOrderBookParticipationsOfHeightRequest, opts ...grpc.CallOption) (*QuerySettledOrderBookParticipationsOfHeightResponse, 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 QueryHistoricalParticipationExposuresRequest

type QueryHistoricalParticipationExposuresRequest struct {
	// order_book_uid defines the order book uid to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// pagination defines optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryHistoricalParticipationExposuresRequest is the request type for the Query/HistoricalParticipationExposures RPC method

func (*QueryHistoricalParticipationExposuresRequest) Descriptor

func (*QueryHistoricalParticipationExposuresRequest) GetOrderBookUid added in v0.0.8

func (*QueryHistoricalParticipationExposuresRequest) GetPagination

func (*QueryHistoricalParticipationExposuresRequest) Marshal

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

func (*QueryHistoricalParticipationExposuresRequest) MarshalTo

func (*QueryHistoricalParticipationExposuresRequest) MarshalToSizedBuffer

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

func (*QueryHistoricalParticipationExposuresRequest) ProtoMessage

func (*QueryHistoricalParticipationExposuresRequest) Reset

func (*QueryHistoricalParticipationExposuresRequest) Size

func (*QueryHistoricalParticipationExposuresRequest) String

func (*QueryHistoricalParticipationExposuresRequest) Unmarshal

func (*QueryHistoricalParticipationExposuresRequest) XXX_DiscardUnknown

func (m *QueryHistoricalParticipationExposuresRequest) XXX_DiscardUnknown()

func (*QueryHistoricalParticipationExposuresRequest) XXX_Marshal

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

func (*QueryHistoricalParticipationExposuresRequest) XXX_Merge

func (*QueryHistoricalParticipationExposuresRequest) XXX_Size

func (*QueryHistoricalParticipationExposuresRequest) XXX_Unmarshal

type QueryHistoricalParticipationExposuresResponse

type QueryHistoricalParticipationExposuresResponse struct {
	ParticipationExposures []ParticipationExposure `protobuf:"bytes,1,rep,name=participation_exposures,json=participationExposures,proto3" json:"participation_exposures"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryHistoricalParticipationExposuresResponse is the response type for the Query/HistoricalParticipationExposures RPC method.

func (*QueryHistoricalParticipationExposuresResponse) Descriptor

func (*QueryHistoricalParticipationExposuresResponse) GetPagination

func (*QueryHistoricalParticipationExposuresResponse) GetParticipationExposures

func (*QueryHistoricalParticipationExposuresResponse) Marshal

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

func (*QueryHistoricalParticipationExposuresResponse) MarshalTo

func (*QueryHistoricalParticipationExposuresResponse) MarshalToSizedBuffer

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

func (*QueryHistoricalParticipationExposuresResponse) ProtoMessage

func (*QueryHistoricalParticipationExposuresResponse) Reset

func (*QueryHistoricalParticipationExposuresResponse) Size

func (*QueryHistoricalParticipationExposuresResponse) String

func (*QueryHistoricalParticipationExposuresResponse) Unmarshal

func (*QueryHistoricalParticipationExposuresResponse) XXX_DiscardUnknown

func (m *QueryHistoricalParticipationExposuresResponse) XXX_DiscardUnknown()

func (*QueryHistoricalParticipationExposuresResponse) XXX_Marshal

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

func (*QueryHistoricalParticipationExposuresResponse) XXX_Merge

func (*QueryHistoricalParticipationExposuresResponse) XXX_Size

func (*QueryHistoricalParticipationExposuresResponse) XXX_Unmarshal

type QueryOrderBookExposureRequest added in v0.0.8

type QueryOrderBookExposureRequest struct {
	// order_book_uid defines the order book uid to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// odds_uid defines the odds id to query for.
	OddsUid string `protobuf:"bytes,2,opt,name=odds_uid,json=oddsUid,proto3" json:"odds_uid,omitempty"`
}

QueryOrderBookExposureRequest is the request type for the Query/OrderBookExposure RPC method.

func (*QueryOrderBookExposureRequest) Descriptor added in v0.0.8

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

func (*QueryOrderBookExposureRequest) GetOddsUid added in v0.0.8

func (m *QueryOrderBookExposureRequest) GetOddsUid() string

func (*QueryOrderBookExposureRequest) GetOrderBookUid added in v0.0.8

func (m *QueryOrderBookExposureRequest) GetOrderBookUid() string

func (*QueryOrderBookExposureRequest) Marshal added in v0.0.8

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

func (*QueryOrderBookExposureRequest) MarshalTo added in v0.0.8

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

func (*QueryOrderBookExposureRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryOrderBookExposureRequest) ProtoMessage added in v0.0.8

func (*QueryOrderBookExposureRequest) ProtoMessage()

func (*QueryOrderBookExposureRequest) Reset added in v0.0.8

func (m *QueryOrderBookExposureRequest) Reset()

func (*QueryOrderBookExposureRequest) Size added in v0.0.8

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

func (*QueryOrderBookExposureRequest) String added in v0.0.8

func (*QueryOrderBookExposureRequest) Unmarshal added in v0.0.8

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

func (*QueryOrderBookExposureRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryOrderBookExposureRequest) XXX_DiscardUnknown()

func (*QueryOrderBookExposureRequest) XXX_Marshal added in v0.0.8

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

func (*QueryOrderBookExposureRequest) XXX_Merge added in v0.0.8

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

func (*QueryOrderBookExposureRequest) XXX_Size added in v0.0.8

func (m *QueryOrderBookExposureRequest) XXX_Size() int

func (*QueryOrderBookExposureRequest) XXX_Unmarshal added in v0.0.8

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

type QueryOrderBookExposureResponse added in v0.0.8

type QueryOrderBookExposureResponse struct {
	// order_book_exposure defines the order book exposure info.
	OrderBookExposure OrderBookOddsExposure `protobuf:"bytes,1,opt,name=order_book_exposure,json=orderBookExposure,proto3" json:"order_book_exposure"`
}

QueryOrderBookExposureResponse is the response type for the Query/OrderBookExposure RPC method.

func (*QueryOrderBookExposureResponse) Descriptor added in v0.0.8

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

func (*QueryOrderBookExposureResponse) GetOrderBookExposure added in v0.0.8

func (m *QueryOrderBookExposureResponse) GetOrderBookExposure() OrderBookOddsExposure

func (*QueryOrderBookExposureResponse) Marshal added in v0.0.8

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

func (*QueryOrderBookExposureResponse) MarshalTo added in v0.0.8

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

func (*QueryOrderBookExposureResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryOrderBookExposureResponse) ProtoMessage added in v0.0.8

func (*QueryOrderBookExposureResponse) ProtoMessage()

func (*QueryOrderBookExposureResponse) Reset added in v0.0.8

func (m *QueryOrderBookExposureResponse) Reset()

func (*QueryOrderBookExposureResponse) Size added in v0.0.8

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

func (*QueryOrderBookExposureResponse) String added in v0.0.8

func (*QueryOrderBookExposureResponse) Unmarshal added in v0.0.8

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

func (*QueryOrderBookExposureResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryOrderBookExposureResponse) XXX_DiscardUnknown()

func (*QueryOrderBookExposureResponse) XXX_Marshal added in v0.0.8

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

func (*QueryOrderBookExposureResponse) XXX_Merge added in v0.0.8

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

func (*QueryOrderBookExposureResponse) XXX_Size added in v0.0.8

func (m *QueryOrderBookExposureResponse) XXX_Size() int

func (*QueryOrderBookExposureResponse) XXX_Unmarshal added in v0.0.8

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

type QueryOrderBookExposuresRequest added in v0.0.8

type QueryOrderBookExposuresRequest struct {
	// order_book_uid defines the order book uid to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// pagination defines optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBookExposuresRequest is the request type for the Query/OrderBookExposures RPC method

func (*QueryOrderBookExposuresRequest) Descriptor added in v0.0.8

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

func (*QueryOrderBookExposuresRequest) GetOrderBookUid added in v0.0.8

func (m *QueryOrderBookExposuresRequest) GetOrderBookUid() string

func (*QueryOrderBookExposuresRequest) GetPagination added in v0.0.8

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

func (*QueryOrderBookExposuresRequest) Marshal added in v0.0.8

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

func (*QueryOrderBookExposuresRequest) MarshalTo added in v0.0.8

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

func (*QueryOrderBookExposuresRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryOrderBookExposuresRequest) ProtoMessage added in v0.0.8

func (*QueryOrderBookExposuresRequest) ProtoMessage()

func (*QueryOrderBookExposuresRequest) Reset added in v0.0.8

func (m *QueryOrderBookExposuresRequest) Reset()

func (*QueryOrderBookExposuresRequest) Size added in v0.0.8

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

func (*QueryOrderBookExposuresRequest) String added in v0.0.8

func (*QueryOrderBookExposuresRequest) Unmarshal added in v0.0.8

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

func (*QueryOrderBookExposuresRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryOrderBookExposuresRequest) XXX_DiscardUnknown()

func (*QueryOrderBookExposuresRequest) XXX_Marshal added in v0.0.8

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

func (*QueryOrderBookExposuresRequest) XXX_Merge added in v0.0.8

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

func (*QueryOrderBookExposuresRequest) XXX_Size added in v0.0.8

func (m *QueryOrderBookExposuresRequest) XXX_Size() int

func (*QueryOrderBookExposuresRequest) XXX_Unmarshal added in v0.0.8

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

type QueryOrderBookExposuresResponse added in v0.0.8

type QueryOrderBookExposuresResponse struct {
	OrderBookExposures []OrderBookOddsExposure `protobuf:"bytes,1,rep,name=order_book_exposures,json=orderBookExposures,proto3" json:"order_book_exposures"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBookExposuresResponse is the response type for the Query/OrderBookExposures RPC method.

func (*QueryOrderBookExposuresResponse) Descriptor added in v0.0.8

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

func (*QueryOrderBookExposuresResponse) GetOrderBookExposures added in v0.0.8

func (m *QueryOrderBookExposuresResponse) GetOrderBookExposures() []OrderBookOddsExposure

func (*QueryOrderBookExposuresResponse) GetPagination added in v0.0.8

func (*QueryOrderBookExposuresResponse) Marshal added in v0.0.8

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

func (*QueryOrderBookExposuresResponse) MarshalTo added in v0.0.8

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

func (*QueryOrderBookExposuresResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryOrderBookExposuresResponse) ProtoMessage added in v0.0.8

func (*QueryOrderBookExposuresResponse) ProtoMessage()

func (*QueryOrderBookExposuresResponse) Reset added in v0.0.8

func (*QueryOrderBookExposuresResponse) Size added in v0.0.8

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

func (*QueryOrderBookExposuresResponse) String added in v0.0.8

func (*QueryOrderBookExposuresResponse) Unmarshal added in v0.0.8

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

func (*QueryOrderBookExposuresResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryOrderBookExposuresResponse) XXX_DiscardUnknown()

func (*QueryOrderBookExposuresResponse) XXX_Marshal added in v0.0.8

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

func (*QueryOrderBookExposuresResponse) XXX_Merge added in v0.0.8

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

func (*QueryOrderBookExposuresResponse) XXX_Size added in v0.0.8

func (m *QueryOrderBookExposuresResponse) XXX_Size() int

func (*QueryOrderBookExposuresResponse) XXX_Unmarshal added in v0.0.8

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

type QueryOrderBookParticipationExposuresRequest added in v0.0.8

type QueryOrderBookParticipationExposuresRequest struct {
	// order_book_uid defines the order book uid to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// pagination defines optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBookParticipationExposuresRequest is the request type for the Query/OrderBookParticipationExposures RPC method

func (*QueryOrderBookParticipationExposuresRequest) Descriptor added in v0.0.8

func (*QueryOrderBookParticipationExposuresRequest) GetOrderBookUid added in v0.0.8

func (*QueryOrderBookParticipationExposuresRequest) GetPagination added in v0.0.8

func (*QueryOrderBookParticipationExposuresRequest) Marshal added in v0.0.8

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

func (*QueryOrderBookParticipationExposuresRequest) MarshalTo added in v0.0.8

func (*QueryOrderBookParticipationExposuresRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryOrderBookParticipationExposuresRequest) ProtoMessage added in v0.0.8

func (*QueryOrderBookParticipationExposuresRequest) Reset added in v0.0.8

func (*QueryOrderBookParticipationExposuresRequest) Size added in v0.0.8

func (*QueryOrderBookParticipationExposuresRequest) String added in v0.0.8

func (*QueryOrderBookParticipationExposuresRequest) Unmarshal added in v0.0.8

func (*QueryOrderBookParticipationExposuresRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryOrderBookParticipationExposuresRequest) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationExposuresRequest) XXX_Marshal added in v0.0.8

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

func (*QueryOrderBookParticipationExposuresRequest) XXX_Merge added in v0.0.8

func (*QueryOrderBookParticipationExposuresRequest) XXX_Size added in v0.0.8

func (*QueryOrderBookParticipationExposuresRequest) XXX_Unmarshal added in v0.0.8

type QueryOrderBookParticipationExposuresResponse added in v0.0.8

type QueryOrderBookParticipationExposuresResponse struct {
	ParticipationExposures []ParticipationExposure `protobuf:"bytes,1,rep,name=participation_exposures,json=participationExposures,proto3" json:"participation_exposures"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBookParticipationExposuresResponse is the response type for the Query/OrderBookParticipationExposures RPC method.

func (*QueryOrderBookParticipationExposuresResponse) Descriptor added in v0.0.8

func (*QueryOrderBookParticipationExposuresResponse) GetPagination added in v0.0.8

func (*QueryOrderBookParticipationExposuresResponse) GetParticipationExposures added in v0.0.8

func (*QueryOrderBookParticipationExposuresResponse) Marshal added in v0.0.8

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

func (*QueryOrderBookParticipationExposuresResponse) MarshalTo added in v0.0.8

func (*QueryOrderBookParticipationExposuresResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryOrderBookParticipationExposuresResponse) ProtoMessage added in v0.0.8

func (*QueryOrderBookParticipationExposuresResponse) Reset added in v0.0.8

func (*QueryOrderBookParticipationExposuresResponse) Size added in v0.0.8

func (*QueryOrderBookParticipationExposuresResponse) String added in v0.0.8

func (*QueryOrderBookParticipationExposuresResponse) Unmarshal added in v0.0.8

func (*QueryOrderBookParticipationExposuresResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryOrderBookParticipationExposuresResponse) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationExposuresResponse) XXX_Marshal added in v0.0.8

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

func (*QueryOrderBookParticipationExposuresResponse) XXX_Merge added in v0.0.8

func (*QueryOrderBookParticipationExposuresResponse) XXX_Size added in v0.0.8

func (*QueryOrderBookParticipationExposuresResponse) XXX_Unmarshal added in v0.0.8

type QueryOrderBookParticipationRequest added in v0.0.8

type QueryOrderBookParticipationRequest struct {
	// order_book_uid defines the order book universal unique identifier to query
	// for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// participation_index defines the participation index to query for.
	ParticipationIndex uint64 `protobuf:"varint,2,opt,name=participation_index,json=participationIndex,proto3" json:"participation_index,omitempty"`
}

QueryOrderBookParticipationRequest is the request type for the Query/OrderBookParticipation RPC method.

func (*QueryOrderBookParticipationRequest) Descriptor added in v0.0.8

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

func (*QueryOrderBookParticipationRequest) GetOrderBookUid added in v0.0.8

func (m *QueryOrderBookParticipationRequest) GetOrderBookUid() string

func (*QueryOrderBookParticipationRequest) GetParticipationIndex added in v0.0.8

func (m *QueryOrderBookParticipationRequest) GetParticipationIndex() uint64

func (*QueryOrderBookParticipationRequest) Marshal added in v0.0.8

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

func (*QueryOrderBookParticipationRequest) MarshalTo added in v0.0.8

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

func (*QueryOrderBookParticipationRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryOrderBookParticipationRequest) ProtoMessage added in v0.0.8

func (*QueryOrderBookParticipationRequest) ProtoMessage()

func (*QueryOrderBookParticipationRequest) Reset added in v0.0.8

func (*QueryOrderBookParticipationRequest) Size added in v0.0.8

func (*QueryOrderBookParticipationRequest) String added in v0.0.8

func (*QueryOrderBookParticipationRequest) Unmarshal added in v0.0.8

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

func (*QueryOrderBookParticipationRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryOrderBookParticipationRequest) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationRequest) XXX_Marshal added in v0.0.8

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

func (*QueryOrderBookParticipationRequest) XXX_Merge added in v0.0.8

func (*QueryOrderBookParticipationRequest) XXX_Size added in v0.0.8

func (*QueryOrderBookParticipationRequest) XXX_Unmarshal added in v0.0.8

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

type QueryOrderBookParticipationResponse added in v0.0.8

type QueryOrderBookParticipationResponse struct {
	// order_book_participation defines the book participation info.
	OrderBookParticipation OrderBookParticipation `protobuf:"bytes,1,opt,name=order_book_participation,json=orderBookParticipation,proto3" json:"order_book_participation"`
}

QueryOrderBookParticipationResponse is the response type for the Query/OrderBookParticipation RPC method.

func (*QueryOrderBookParticipationResponse) Descriptor added in v0.0.8

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

func (*QueryOrderBookParticipationResponse) GetOrderBookParticipation added in v0.0.8

func (m *QueryOrderBookParticipationResponse) GetOrderBookParticipation() OrderBookParticipation

func (*QueryOrderBookParticipationResponse) Marshal added in v0.0.8

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

func (*QueryOrderBookParticipationResponse) MarshalTo added in v0.0.8

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

func (*QueryOrderBookParticipationResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryOrderBookParticipationResponse) ProtoMessage added in v0.0.8

func (*QueryOrderBookParticipationResponse) ProtoMessage()

func (*QueryOrderBookParticipationResponse) Reset added in v0.0.8

func (*QueryOrderBookParticipationResponse) Size added in v0.0.8

func (*QueryOrderBookParticipationResponse) String added in v0.0.8

func (*QueryOrderBookParticipationResponse) Unmarshal added in v0.0.8

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

func (*QueryOrderBookParticipationResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryOrderBookParticipationResponse) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationResponse) XXX_Marshal added in v0.0.8

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

func (*QueryOrderBookParticipationResponse) XXX_Merge added in v0.0.8

func (*QueryOrderBookParticipationResponse) XXX_Size added in v0.0.8

func (*QueryOrderBookParticipationResponse) XXX_Unmarshal added in v0.0.8

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

type QueryOrderBookParticipationsRequest added in v0.0.8

type QueryOrderBookParticipationsRequest struct {
	// order_book_uid defines the order book universal unique identifier to query
	// for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// pagination defines optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBookParticipationsRequest is the request type for the Query/OrderBookParticipations RPC method

func (*QueryOrderBookParticipationsRequest) Descriptor added in v0.0.8

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

func (*QueryOrderBookParticipationsRequest) GetOrderBookUid added in v0.0.8

func (m *QueryOrderBookParticipationsRequest) GetOrderBookUid() string

func (*QueryOrderBookParticipationsRequest) GetPagination added in v0.0.8

func (*QueryOrderBookParticipationsRequest) Marshal added in v0.0.8

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

func (*QueryOrderBookParticipationsRequest) MarshalTo added in v0.0.8

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

func (*QueryOrderBookParticipationsRequest) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryOrderBookParticipationsRequest) ProtoMessage added in v0.0.8

func (*QueryOrderBookParticipationsRequest) ProtoMessage()

func (*QueryOrderBookParticipationsRequest) Reset added in v0.0.8

func (*QueryOrderBookParticipationsRequest) Size added in v0.0.8

func (*QueryOrderBookParticipationsRequest) String added in v0.0.8

func (*QueryOrderBookParticipationsRequest) Unmarshal added in v0.0.8

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

func (*QueryOrderBookParticipationsRequest) XXX_DiscardUnknown added in v0.0.8

func (m *QueryOrderBookParticipationsRequest) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationsRequest) XXX_Marshal added in v0.0.8

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

func (*QueryOrderBookParticipationsRequest) XXX_Merge added in v0.0.8

func (*QueryOrderBookParticipationsRequest) XXX_Size added in v0.0.8

func (*QueryOrderBookParticipationsRequest) XXX_Unmarshal added in v0.0.8

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

type QueryOrderBookParticipationsResponse added in v0.0.8

type QueryOrderBookParticipationsResponse struct {
	OrderBookParticipations []OrderBookParticipation `protobuf:"bytes,1,rep,name=order_book_participations,json=orderBookParticipations,proto3" json:"order_book_participations"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBookParticipationsResponse is the response type for the Query/OrderBookParticipations RPC method

func (*QueryOrderBookParticipationsResponse) Descriptor added in v0.0.8

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

func (*QueryOrderBookParticipationsResponse) GetOrderBookParticipations added in v0.0.8

func (m *QueryOrderBookParticipationsResponse) GetOrderBookParticipations() []OrderBookParticipation

func (*QueryOrderBookParticipationsResponse) GetPagination added in v0.0.8

func (*QueryOrderBookParticipationsResponse) Marshal added in v0.0.8

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

func (*QueryOrderBookParticipationsResponse) MarshalTo added in v0.0.8

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

func (*QueryOrderBookParticipationsResponse) MarshalToSizedBuffer added in v0.0.8

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

func (*QueryOrderBookParticipationsResponse) ProtoMessage added in v0.0.8

func (*QueryOrderBookParticipationsResponse) ProtoMessage()

func (*QueryOrderBookParticipationsResponse) Reset added in v0.0.8

func (*QueryOrderBookParticipationsResponse) Size added in v0.0.8

func (*QueryOrderBookParticipationsResponse) String added in v0.0.8

func (*QueryOrderBookParticipationsResponse) Unmarshal added in v0.0.8

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

func (*QueryOrderBookParticipationsResponse) XXX_DiscardUnknown added in v0.0.8

func (m *QueryOrderBookParticipationsResponse) XXX_DiscardUnknown()

func (*QueryOrderBookParticipationsResponse) XXX_Marshal added in v0.0.8

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

func (*QueryOrderBookParticipationsResponse) XXX_Merge added in v0.0.8

func (*QueryOrderBookParticipationsResponse) XXX_Size added in v0.0.8

func (*QueryOrderBookParticipationsResponse) XXX_Unmarshal added in v0.0.8

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

type QueryOrderBookRequest

type QueryOrderBookRequest struct {
	// order_book_uid defines the order book uid to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
}

QueryOrderBookRequest is the request type for the Query/OrderBook RPC method.

func (*QueryOrderBookRequest) Descriptor

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

func (*QueryOrderBookRequest) GetOrderBookUid added in v0.0.8

func (m *QueryOrderBookRequest) GetOrderBookUid() string

func (*QueryOrderBookRequest) Marshal

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

func (*QueryOrderBookRequest) MarshalTo

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

func (*QueryOrderBookRequest) MarshalToSizedBuffer

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

func (*QueryOrderBookRequest) ProtoMessage

func (*QueryOrderBookRequest) ProtoMessage()

func (*QueryOrderBookRequest) Reset

func (m *QueryOrderBookRequest) Reset()

func (*QueryOrderBookRequest) Size

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

func (*QueryOrderBookRequest) String

func (m *QueryOrderBookRequest) String() string

func (*QueryOrderBookRequest) Unmarshal

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

func (*QueryOrderBookRequest) XXX_DiscardUnknown

func (m *QueryOrderBookRequest) XXX_DiscardUnknown()

func (*QueryOrderBookRequest) XXX_Marshal

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

func (*QueryOrderBookRequest) XXX_Merge

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

func (*QueryOrderBookRequest) XXX_Size

func (m *QueryOrderBookRequest) XXX_Size() int

func (*QueryOrderBookRequest) XXX_Unmarshal

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

type QueryOrderBookResponse

type QueryOrderBookResponse struct {
	// orderBook defines the order book info.
	OrderBook OrderBook `protobuf:"bytes,1,opt,name=order_book,json=orderBook,proto3" json:"order_book"`
}

QueryOrderBookResponse is the response type for the Query/OrderBook RPC method.

func (*QueryOrderBookResponse) Descriptor

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

func (*QueryOrderBookResponse) GetOrderBook added in v0.0.8

func (m *QueryOrderBookResponse) GetOrderBook() OrderBook

func (*QueryOrderBookResponse) Marshal

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

func (*QueryOrderBookResponse) MarshalTo

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

func (*QueryOrderBookResponse) MarshalToSizedBuffer

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

func (*QueryOrderBookResponse) ProtoMessage

func (*QueryOrderBookResponse) ProtoMessage()

func (*QueryOrderBookResponse) Reset

func (m *QueryOrderBookResponse) Reset()

func (*QueryOrderBookResponse) Size

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

func (*QueryOrderBookResponse) String

func (m *QueryOrderBookResponse) String() string

func (*QueryOrderBookResponse) Unmarshal

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

func (*QueryOrderBookResponse) XXX_DiscardUnknown

func (m *QueryOrderBookResponse) XXX_DiscardUnknown()

func (*QueryOrderBookResponse) XXX_Marshal

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

func (*QueryOrderBookResponse) XXX_Merge

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

func (*QueryOrderBookResponse) XXX_Size

func (m *QueryOrderBookResponse) XXX_Size() int

func (*QueryOrderBookResponse) XXX_Unmarshal

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

type QueryOrderBooksRequest

type QueryOrderBooksRequest struct {
	// status enables query for order books matching a given status.
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// pagination defines optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBooksRequest is the request type for the Query/OrderBooks RPC method.

func (*QueryOrderBooksRequest) Descriptor

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

func (*QueryOrderBooksRequest) GetPagination

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

func (*QueryOrderBooksRequest) GetStatus

func (m *QueryOrderBooksRequest) GetStatus() string

func (*QueryOrderBooksRequest) Marshal

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

func (*QueryOrderBooksRequest) MarshalTo

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

func (*QueryOrderBooksRequest) MarshalToSizedBuffer

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

func (*QueryOrderBooksRequest) ProtoMessage

func (*QueryOrderBooksRequest) ProtoMessage()

func (*QueryOrderBooksRequest) Reset

func (m *QueryOrderBooksRequest) Reset()

func (*QueryOrderBooksRequest) Size

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

func (*QueryOrderBooksRequest) String

func (m *QueryOrderBooksRequest) String() string

func (*QueryOrderBooksRequest) Unmarshal

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

func (*QueryOrderBooksRequest) XXX_DiscardUnknown

func (m *QueryOrderBooksRequest) XXX_DiscardUnknown()

func (*QueryOrderBooksRequest) XXX_Marshal

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

func (*QueryOrderBooksRequest) XXX_Merge

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

func (*QueryOrderBooksRequest) XXX_Size

func (m *QueryOrderBooksRequest) XXX_Size() int

func (*QueryOrderBooksRequest) XXX_Unmarshal

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

type QueryOrderBooksResponse

type QueryOrderBooksResponse struct {
	// orderbooks contains all the queried order books.
	Orderbooks []OrderBook `protobuf:"bytes,1,rep,name=orderbooks,proto3" json:"orderbooks"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOrderBooksResponse is the response type for the Query/OrderBooks RPC method.

func (*QueryOrderBooksResponse) Descriptor

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

func (*QueryOrderBooksResponse) GetOrderbooks

func (m *QueryOrderBooksResponse) GetOrderbooks() []OrderBook

func (*QueryOrderBooksResponse) GetPagination

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

func (*QueryOrderBooksResponse) Marshal

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

func (*QueryOrderBooksResponse) MarshalTo

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

func (*QueryOrderBooksResponse) MarshalToSizedBuffer

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

func (*QueryOrderBooksResponse) ProtoMessage

func (*QueryOrderBooksResponse) ProtoMessage()

func (*QueryOrderBooksResponse) Reset

func (m *QueryOrderBooksResponse) Reset()

func (*QueryOrderBooksResponse) Size

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

func (*QueryOrderBooksResponse) String

func (m *QueryOrderBooksResponse) String() string

func (*QueryOrderBooksResponse) Unmarshal

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

func (*QueryOrderBooksResponse) XXX_DiscardUnknown

func (m *QueryOrderBooksResponse) XXX_DiscardUnknown()

func (*QueryOrderBooksResponse) XXX_Marshal

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

func (*QueryOrderBooksResponse) XXX_Merge

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

func (*QueryOrderBooksResponse) XXX_Size

func (m *QueryOrderBooksResponse) XXX_Size() int

func (*QueryOrderBooksResponse) XXX_Unmarshal

func (m *QueryOrderBooksResponse) 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 holds 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 QueryParticipationExposuresRequest

type QueryParticipationExposuresRequest struct {
	// order_book_uid defines the order book id to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// participation_index is the index of participation to query for.
	ParticipationIndex uint64 `protobuf:"varint,2,opt,name=participation_index,json=participationIndex,proto3" json:"participation_index,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryParticipationExposuresRequest is the request type for the Query/ParticipationExposures RPC method.

func (*QueryParticipationExposuresRequest) Descriptor

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

func (*QueryParticipationExposuresRequest) GetOrderBookUid added in v0.0.8

func (m *QueryParticipationExposuresRequest) GetOrderBookUid() string

func (*QueryParticipationExposuresRequest) GetPagination

func (*QueryParticipationExposuresRequest) GetParticipationIndex added in v0.0.8

func (m *QueryParticipationExposuresRequest) GetParticipationIndex() uint64

func (*QueryParticipationExposuresRequest) Marshal

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

func (*QueryParticipationExposuresRequest) MarshalTo

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

func (*QueryParticipationExposuresRequest) MarshalToSizedBuffer

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

func (*QueryParticipationExposuresRequest) ProtoMessage

func (*QueryParticipationExposuresRequest) ProtoMessage()

func (*QueryParticipationExposuresRequest) Reset

func (*QueryParticipationExposuresRequest) Size

func (*QueryParticipationExposuresRequest) String

func (*QueryParticipationExposuresRequest) Unmarshal

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

func (*QueryParticipationExposuresRequest) XXX_DiscardUnknown

func (m *QueryParticipationExposuresRequest) XXX_DiscardUnknown()

func (*QueryParticipationExposuresRequest) XXX_Marshal

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

func (*QueryParticipationExposuresRequest) XXX_Merge

func (*QueryParticipationExposuresRequest) XXX_Size

func (*QueryParticipationExposuresRequest) XXX_Unmarshal

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

type QueryParticipationExposuresResponse

type QueryParticipationExposuresResponse struct {
	// participation_exposure defines the participation exposure info.
	ParticipationExposures []ParticipationExposure `protobuf:"bytes,1,rep,name=participation_exposures,json=participationExposures,proto3" json:"participation_exposures"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryParticipationExposureResponse is the response type for the Query/ParticipationExposures RPC method.

func (*QueryParticipationExposuresResponse) Descriptor

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

func (*QueryParticipationExposuresResponse) GetPagination

func (*QueryParticipationExposuresResponse) GetParticipationExposures

func (m *QueryParticipationExposuresResponse) GetParticipationExposures() []ParticipationExposure

func (*QueryParticipationExposuresResponse) Marshal

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

func (*QueryParticipationExposuresResponse) MarshalTo

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

func (*QueryParticipationExposuresResponse) MarshalToSizedBuffer

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

func (*QueryParticipationExposuresResponse) ProtoMessage

func (*QueryParticipationExposuresResponse) ProtoMessage()

func (*QueryParticipationExposuresResponse) Reset

func (*QueryParticipationExposuresResponse) Size

func (*QueryParticipationExposuresResponse) String

func (*QueryParticipationExposuresResponse) Unmarshal

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

func (*QueryParticipationExposuresResponse) XXX_DiscardUnknown

func (m *QueryParticipationExposuresResponse) XXX_DiscardUnknown()

func (*QueryParticipationExposuresResponse) XXX_Marshal

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

func (*QueryParticipationExposuresResponse) XXX_Merge

func (*QueryParticipationExposuresResponse) XXX_Size

func (*QueryParticipationExposuresResponse) XXX_Unmarshal

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

type QueryParticipationFulfilledBetsRequest

type QueryParticipationFulfilledBetsRequest struct {
	// order_book_uid defines the order book uid to query for.
	OrderBookUid string `protobuf:"bytes,1,opt,name=order_book_uid,json=orderBookUid,proto3" json:"order_book_uid,omitempty"`
	// participation_index is the index of participation to query for.
	ParticipationIndex uint64 `protobuf:"varint,2,opt,name=participation_index,json=participationIndex,proto3" json:"participation_index,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryParticipationFulfilledBetsRequest is the request type for the Query/ParticipationFulfilledBets RPC method.

func (*QueryParticipationFulfilledBetsRequest) Descriptor

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

func (*QueryParticipationFulfilledBetsRequest) GetOrderBookUid added in v0.0.8

func (m *QueryParticipationFulfilledBetsRequest) GetOrderBookUid() string

func (*QueryParticipationFulfilledBetsRequest) GetPagination

func (*QueryParticipationFulfilledBetsRequest) GetParticipationIndex

func (m *QueryParticipationFulfilledBetsRequest) GetParticipationIndex() uint64

func (*QueryParticipationFulfilledBetsRequest) Marshal

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

func (*QueryParticipationFulfilledBetsRequest) MarshalTo

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

func (*QueryParticipationFulfilledBetsRequest) MarshalToSizedBuffer

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

func (*QueryParticipationFulfilledBetsRequest) ProtoMessage

func (*QueryParticipationFulfilledBetsRequest) Reset

func (*QueryParticipationFulfilledBetsRequest) Size

func (*QueryParticipationFulfilledBetsRequest) String

func (*QueryParticipationFulfilledBetsRequest) Unmarshal

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

func (*QueryParticipationFulfilledBetsRequest) XXX_DiscardUnknown

func (m *QueryParticipationFulfilledBetsRequest) XXX_DiscardUnknown()

func (*QueryParticipationFulfilledBetsRequest) XXX_Marshal

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

func (*QueryParticipationFulfilledBetsRequest) XXX_Merge

func (*QueryParticipationFulfilledBetsRequest) XXX_Size

func (*QueryParticipationFulfilledBetsRequest) XXX_Unmarshal

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

type QueryParticipationFulfilledBetsResponse

type QueryParticipationFulfilledBetsResponse struct {
	// participation_bets is the bets of the participation.
	ParticipationBets []ParticipationBetPair `protobuf:"bytes,1,rep,name=participation_bets,json=participationBets,proto3" json:"participation_bets"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryParticipationFulfilledBetsResponse is the response type for the Query/ParticipationFulfilledBets RPC method.

func (*QueryParticipationFulfilledBetsResponse) Descriptor

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

func (*QueryParticipationFulfilledBetsResponse) GetPagination

func (*QueryParticipationFulfilledBetsResponse) GetParticipationBets

func (*QueryParticipationFulfilledBetsResponse) Marshal

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

func (*QueryParticipationFulfilledBetsResponse) MarshalTo

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

func (*QueryParticipationFulfilledBetsResponse) MarshalToSizedBuffer

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

func (*QueryParticipationFulfilledBetsResponse) ProtoMessage

func (*QueryParticipationFulfilledBetsResponse) Reset

func (*QueryParticipationFulfilledBetsResponse) Size

func (*QueryParticipationFulfilledBetsResponse) String

func (*QueryParticipationFulfilledBetsResponse) Unmarshal

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

func (*QueryParticipationFulfilledBetsResponse) XXX_DiscardUnknown

func (m *QueryParticipationFulfilledBetsResponse) XXX_DiscardUnknown()

func (*QueryParticipationFulfilledBetsResponse) XXX_Marshal

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

func (*QueryParticipationFulfilledBetsResponse) XXX_Merge

func (*QueryParticipationFulfilledBetsResponse) XXX_Size

func (*QueryParticipationFulfilledBetsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Params queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// OrderBooks queries all order books that match the given status.
	OrderBooks(context.Context, *QueryOrderBooksRequest) (*QueryOrderBooksResponse, error)
	// OrderBook queries order book info for given order book universal unique
	// identifier.
	OrderBook(context.Context, *QueryOrderBookRequest) (*QueryOrderBookResponse, error)
	// OrderBookParticipations queries participation info for given order book.
	OrderBookParticipations(context.Context, *QueryOrderBookParticipationsRequest) (*QueryOrderBookParticipationsResponse, error)
	// OrderBookParticipation queries participation info for given order book and
	// participation index.
	OrderBookParticipation(context.Context, *QueryOrderBookParticipationRequest) (*QueryOrderBookParticipationResponse, error)
	// OrderBookExposures queries exposures info for the given order book.
	OrderBookExposures(context.Context, *QueryOrderBookExposuresRequest) (*QueryOrderBookExposuresResponse, error)
	// OrderBookExposure queries exposure info for the given order book and odds
	// universal unique identifier.
	OrderBookExposure(context.Context, *QueryOrderBookExposureRequest) (*QueryOrderBookExposureResponse, error)
	// OrderBookParticipationExposures queries exposures info for given order book
	// participations.
	OrderBookParticipationExposures(context.Context, *QueryOrderBookParticipationExposuresRequest) (*QueryOrderBookParticipationExposuresResponse, error)
	// ParticipationExposures queries exposure info for given order book
	// participation.
	ParticipationExposures(context.Context, *QueryParticipationExposuresRequest) (*QueryParticipationExposuresResponse, error)
	// HistoricalParticipationExposures queries historical exposures info for
	// the given order book participation.
	HistoricalParticipationExposures(context.Context, *QueryHistoricalParticipationExposuresRequest) (*QueryHistoricalParticipationExposuresResponse, error)
	// ParticipationFulfilledBets queries fulfilled bets for given order book
	// participation.
	ParticipationFulfilledBets(context.Context, *QueryParticipationFulfilledBetsRequest) (*QueryParticipationFulfilledBetsResponse, error)
	// Queries list of settled Orderbook Participation items of a certain height.
	SettledOrderBookParticipationsOfHeight(context.Context, *QuerySettledOrderBookParticipationsOfHeightRequest) (*QuerySettledOrderBookParticipationsOfHeightResponse, error)
}

QueryServer is the server API for Query service.

type QuerySettledOrderBookParticipationsOfHeightRequest added in v1.4.5

type QuerySettledOrderBookParticipationsOfHeightRequest struct {
	Pagination  *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	BlockHeight int64              `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
}

QuerySettledOrderBookParticipationsOfHeightRequest is the request type for the settled orderbook participations of a certain height list query.

func (*QuerySettledOrderBookParticipationsOfHeightRequest) Descriptor added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightRequest) GetBlockHeight added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightRequest) GetPagination added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightRequest) Marshal added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightRequest) MarshalTo added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightRequest) MarshalToSizedBuffer added in v1.4.5

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

func (*QuerySettledOrderBookParticipationsOfHeightRequest) ProtoMessage added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightRequest) Reset added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightRequest) Size added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightRequest) String added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightRequest) Unmarshal added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightRequest) XXX_DiscardUnknown added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightRequest) XXX_Marshal added in v1.4.5

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

func (*QuerySettledOrderBookParticipationsOfHeightRequest) XXX_Merge added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightRequest) XXX_Size added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightRequest) XXX_Unmarshal added in v1.4.5

type QuerySettledOrderBookParticipationsOfHeightResponse added in v1.4.5

type QuerySettledOrderBookParticipationsOfHeightResponse struct {
	Participations []OrderBookParticipation `protobuf:"bytes,1,rep,name=participations,proto3" json:"participations"`
	Pagination     *query.PageResponse      `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySettledOrderBookParticipationsOfHeightResponse is the response type for the settled orderbook participations of a certain height list query.

func (*QuerySettledOrderBookParticipationsOfHeightResponse) Descriptor added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightResponse) GetPagination added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightResponse) GetParticipations added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightResponse) Marshal added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightResponse) MarshalTo added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightResponse) MarshalToSizedBuffer added in v1.4.5

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

func (*QuerySettledOrderBookParticipationsOfHeightResponse) ProtoMessage added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightResponse) Reset added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightResponse) Size added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightResponse) String added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightResponse) Unmarshal added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightResponse) XXX_DiscardUnknown added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightResponse) XXX_Marshal added in v1.4.5

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

func (*QuerySettledOrderBookParticipationsOfHeightResponse) XXX_Merge added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightResponse) XXX_Size added in v1.4.5

func (*QuerySettledOrderBookParticipationsOfHeightResponse) XXX_Unmarshal added in v1.4.5

type SettledOrderbookParticipation added in v1.4.5

type SettledOrderbookParticipation struct {
	// index is the index of the participation in the participation queue.
	Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty" yaml:"index"`
	// order_book_uid is the unique identifier corresponding to the order book.
	OrderBookUID string `protobuf:"bytes,2,opt,name=order_book_uid,proto3" json:"order_book_uid"`
	// participant_address is the bech32-encoded address of the participant.
	ParticipantAddress string `` /* 142-byte string literal not displayed */
}

SettledOrderbookParticipation is the type for a settled orderbook participation.

func (*SettledOrderbookParticipation) Descriptor added in v1.4.5

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

func (*SettledOrderbookParticipation) GetIndex added in v1.4.5

func (m *SettledOrderbookParticipation) GetIndex() uint64

func (*SettledOrderbookParticipation) GetOrderBookUID added in v1.4.5

func (m *SettledOrderbookParticipation) GetOrderBookUID() string

func (*SettledOrderbookParticipation) GetParticipantAddress added in v1.4.5

func (m *SettledOrderbookParticipation) GetParticipantAddress() string

func (*SettledOrderbookParticipation) Marshal added in v1.4.5

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

func (*SettledOrderbookParticipation) MarshalTo added in v1.4.5

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

func (*SettledOrderbookParticipation) MarshalToSizedBuffer added in v1.4.5

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

func (*SettledOrderbookParticipation) ProtoMessage added in v1.4.5

func (*SettledOrderbookParticipation) ProtoMessage()

func (*SettledOrderbookParticipation) Reset added in v1.4.5

func (m *SettledOrderbookParticipation) Reset()

func (*SettledOrderbookParticipation) Size added in v1.4.5

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

func (*SettledOrderbookParticipation) String added in v1.4.5

func (*SettledOrderbookParticipation) Unmarshal added in v1.4.5

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

func (*SettledOrderbookParticipation) XXX_DiscardUnknown added in v1.4.5

func (m *SettledOrderbookParticipation) XXX_DiscardUnknown()

func (*SettledOrderbookParticipation) XXX_Marshal added in v1.4.5

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

func (*SettledOrderbookParticipation) XXX_Merge added in v1.4.5

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

func (*SettledOrderbookParticipation) XXX_Size added in v1.4.5

func (m *SettledOrderbookParticipation) XXX_Size() int

func (*SettledOrderbookParticipation) XXX_Unmarshal added in v1.4.5

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

type UnimplementedMsgServer added in v1.4.5

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) UpdateParams added in v1.4.5

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) OrderBook

func (*UnimplementedQueryServer) OrderBookExposure added in v0.0.8

func (*UnimplementedQueryServer) OrderBookExposures added in v0.0.8

func (*UnimplementedQueryServer) OrderBookParticipation added in v0.0.8

func (*UnimplementedQueryServer) OrderBookParticipationExposures added in v0.0.8

func (*UnimplementedQueryServer) OrderBookParticipations added in v0.0.8

func (*UnimplementedQueryServer) OrderBooks

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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