Documentation ¶
Index ¶
- func ExecuteLimit(k msgServer, ctx sdk.Context, denomAsk string, denomBid string, ...) (types.Member, types.Member, error)
- func ExecuteOverlap(k msgServer, ctx sdk.Context, denomAsk string, denomBid string, ...) (types.Member, types.Member, error)
- func ExecuteStop(k msgServer, ctx sdk.Context, denomAsk string, denomBid string, ...) (types.Member, types.Member, error)
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddBurned(ctx sdk.Context, amount sdk.Int) (burned types.Burned)
- func (k Keeper) Book(goCtx context.Context, req *types.QueryBookRequest) (*types.QueryBookResponse, error)
- func (k Keeper) BookEnds(ctx sdk.Context, denomA string, denomB string, orderType string, ...) (ends [2]uint64)
- func (k Keeper) Bookends(goCtx context.Context, req *types.QueryBookendsRequest) (*types.QueryBookendsResponse, error)
- func (k Keeper) Burn(ctx sdk.Context, profit sdk.Int, member types.Member) (types.Member, error)
- func (k Keeper) BurnCoin(ctx sdk.Context) (res string)
- func (k Keeper) BurnRate(ctx sdk.Context) (res string)
- func (k Keeper) BurnTrade(ctx sdk.Context, burnings types.Burnings) (types.Burnings, error)
- func (k Keeper) Burned(c context.Context, req *types.QueryBurnedRequest) (*types.QueryBurnedResponse, error)
- func (k Keeper) Burnings(c context.Context, req *types.QueryGetBurningsRequest) (*types.QueryGetBurningsResponse, error)
- func (k Keeper) BurningsAll(c context.Context, req *types.QueryAllBurningsRequest) (*types.QueryAllBurningsResponse, error)
- func (k Keeper) DenomMetadataProposal(ctx sdk.Context, request *types.DenomMetadataProposal) error
- func (k Keeper) Drop(c context.Context, req *types.QueryDropRequest) (*types.QueryDropResponse, error)
- func (k Keeper) DropAll(c context.Context, req *types.QueryAllDropRequest) (*types.QueryDropsResponse, error)
- func (k Keeper) DropAmounts(c context.Context, req *types.QueryDropAmountsRequest) (*types.QueryDropAmountsResponse, error)
- func (k Keeper) DropCoin(c context.Context, req *types.QueryDropCoinRequest) (*types.QueryDropCoinResponse, error)
- func (k Keeper) DropOwnerPair(c context.Context, req *types.QueryDropOwnerPairRequest) (*types.QueryDropsResponse, error)
- func (k Keeper) DropPairs(c context.Context, req *types.QueryDropPairsRequest) (*types.QueryDropPairsResponse, error)
- func (k Keeper) DropsToCoins(c context.Context, req *types.QueryDropsToCoinsRequest) (*types.QueryDropsToCoinsResponse, error)
- func (k Keeper) EarnRates(ctx sdk.Context) (res string)
- func (k Keeper) GetAllBurnings(ctx sdk.Context) (list []types.Burnings)
- func (k Keeper) GetAllDrop(ctx sdk.Context) (list []types.Drop)
- func (k Keeper) GetAllMember(ctx sdk.Context) (list []types.Member)
- func (k Keeper) GetAllOrder(ctx sdk.Context) (list []types.Order)
- func (k Keeper) GetAllPool(ctx sdk.Context) (list []types.Pool)
- func (k Keeper) GetAllVolumes(ctx sdk.Context) (list []types.Volume)
- func (k Keeper) GetBook(ctx sdk.Context, denomA string, denomB string, orderType string) (list []types.OrderResponse)
- func (k Keeper) GetBurned(ctx sdk.Context) (burned types.Burned)
- func (k Keeper) GetBurnings(ctx sdk.Context, denom string) (val types.Burnings, found bool)
- func (k Keeper) GetDrop(ctx sdk.Context, uid uint64) (val types.Drop, found bool)
- func (k Keeper) GetDropAmounts(ctx sdk.Context, uid uint64) (denom1 string, denom2 string, amount1 sdk.Int, amount2 sdk.Int, found bool)
- func (k Keeper) GetDropCoin(ctx sdk.Context, denomA string, denomB string, amountA sdk.Int) (amountB sdk.Int, drops sdk.Int, found bool)
- func (k Keeper) GetDropOwnerPair(ctx sdk.Context, owner string, pair string) (list []types.Drop, found bool)
- func (k Keeper) GetDropPairs(ctx sdk.Context, address string) (val types.DropPairs, found bool)
- func (k Keeper) GetDropsOwnerPair(ctx sdk.Context, owner string, pair string) (drops types.Drops, found bool)
- func (k Keeper) GetDropsOwnerPairDetail(ctx sdk.Context, owner string, pair string) (list []types.Drop)
- func (k Keeper) GetDropsToCoins(ctx sdk.Context, denom1 string, denom2 string, drops string) (amount1 sdk.Int, amount2 sdk.Int, err error)
- func (k Keeper) GetHistory(ctx sdk.Context, pair string, length string) (list []types.OrderResponse, found bool)
- func (k Keeper) GetMember(ctx sdk.Context, denomA string, denomB string) (val types.Member, found bool)
- func (k Keeper) GetMemberWithPair(ctx sdk.Context, pair string, denomA string, denomB string) (val types.Member, found bool)
- func (k Keeper) GetOrder(ctx sdk.Context, uid uint64) (val types.Order, found bool)
- func (k Keeper) GetOrderOwner(ctx sdk.Context, owner string) (list []types.Order)
- func (k Keeper) GetOrderOwnerUids(ctx sdk.Context, owner string) (orders types.Orders)
- func (k Keeper) GetPairs(ctx sdk.Context, owner string) (pairs types.DropPairs, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPool(ctx sdk.Context, pair string) (val types.Pool, found bool)
- func (k Keeper) GetQuote(ctx sdk.Context, memberAsk types.Member, memberBid types.Member, ...) (string, sdk.Int, error)
- func (k Keeper) GetUidCount(ctx sdk.Context) uint64
- func (k Keeper) GetVolume(ctx sdk.Context, denom string) (val types.Volume, found bool)
- func (k Keeper) History(c context.Context, req *types.QueryHistoryRequest) (*types.QueryHistoryResponse, error)
- func (k Keeper) IncVolume(ctx sdk.Context, denom string, amount sdk.Int) types.Volume
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Member(c context.Context, req *types.QueryGetMemberRequest) (*types.QueryGetMemberResponse, error)
- func (k Keeper) MemberAll(c context.Context, req *types.QueryAllMemberRequest) (*types.QueryAllMemberResponse, error)
- func (k Keeper) Order(c context.Context, req *types.QueryOrderRequest) (*types.QueryOrderResponse, error)
- func (k Keeper) OrderAll(c context.Context, req *types.QueryAllOrderRequest) (*types.QueryOrdersResponse, error)
- func (k Keeper) OrderOwner(c context.Context, req *types.QueryOrderOwnerRequest) (*types.QueryOrdersResponse, error)
- func (k Keeper) OrderOwnerUids(c context.Context, req *types.QueryOrderOwnerRequest) (*types.QueryOrderOwnerUidsResponse, error)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) Payout(ctx sdk.Context, profit sdk.Int, member types.Member, pool types.Pool) (types.Member, error)
- func (k Keeper) Pool(c context.Context, req *types.QueryGetPoolRequest) (*types.QueryGetPoolResponse, error)
- func (k Keeper) PoolAll(c context.Context, req *types.QueryAllPoolRequest) (*types.QueryAllPoolResponse, error)
- func (k Keeper) Profit(productBeg sdk.Int, memberA types.Member, memberB types.Member) (profitA sdk.Int, profitB sdk.Int, err error)
- func (k Keeper) Quote(goCtx context.Context, req *types.QueryQuoteRequest) (*types.QueryQuoteResponse, error)
- func (k Keeper) RemoveBurnings(ctx sdk.Context, denom string)
- func (k Keeper) RemoveDrop(ctx sdk.Context, uid uint64)
- func (k Keeper) RemoveDropOwner(ctx sdk.Context, drop types.Drop) error
- func (k Keeper) RemoveMember(ctx sdk.Context, denomA string, denomB string)
- func (k Keeper) RemoveOrder(ctx sdk.Context, uid uint64)
- func (k Keeper) RemoveOrderOwner(ctx sdk.Context, owner string, uid uint64)
- func (k Keeper) RemovePool(ctx sdk.Context, pair string)
- func (k Keeper) RemoveVolume(ctx sdk.Context, denom string)
- func (k Keeper) SetBurnings(ctx sdk.Context, burnings types.Burnings)
- func (k Keeper) SetDrop(ctx sdk.Context, drop types.Drop)
- func (k Keeper) SetDropOwner(ctx sdk.Context, drop types.Drop)
- func (k Keeper) SetMember(ctx sdk.Context, member types.Member)
- func (k Keeper) SetOrder(ctx sdk.Context, order types.Order)
- func (k Keeper) SetOrderOwner(ctx sdk.Context, owner string, uid uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPool(ctx sdk.Context, pool types.Pool)
- func (k Keeper) SetUidCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetVolume(ctx sdk.Context, volume types.Volume)
- func (k Keeper) Volume(c context.Context, req *types.QueryVolumeRequest) (*types.QueryVolumeResponse, error)
- func (k Keeper) VolumeAll(c context.Context, req *types.QueryAllVolumeRequest) (*types.QueryAllVolumeResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteLimit ¶
func ExecuteOverlap ¶ added in v0.1.2
func ExecuteStop ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace, bankKeeper types.BankKeeper, ) *Keeper
func (Keeper) Book ¶
func (k Keeper) Book(goCtx context.Context, req *types.QueryBookRequest) (*types.QueryBookResponse, error)
func (Keeper) BookEnds ¶
func (k Keeper) BookEnds( ctx sdk.Context, denomA string, denomB string, orderType string, rate []sdk.Int, ) (ends [2]uint64)
BookEnds returns adjacent orders determined by rate
func (Keeper) Bookends ¶
func (k Keeper) Bookends(goCtx context.Context, req *types.QueryBookendsRequest) (*types.QueryBookendsResponse, error)
func (Keeper) Burned ¶ added in v0.1.4
func (k Keeper) Burned(c context.Context, req *types.QueryBurnedRequest) (*types.QueryBurnedResponse, error)
func (Keeper) Burnings ¶
func (k Keeper) Burnings(c context.Context, req *types.QueryGetBurningsRequest) (*types.QueryGetBurningsResponse, error)
func (Keeper) BurningsAll ¶
func (k Keeper) BurningsAll(c context.Context, req *types.QueryAllBurningsRequest) (*types.QueryAllBurningsResponse, error)
func (Keeper) DenomMetadataProposal ¶ added in v1.1.2
DenomMetadataProposal submition.
func (Keeper) Drop ¶
func (k Keeper) Drop(c context.Context, req *types.QueryDropRequest) (*types.QueryDropResponse, error)
func (Keeper) DropAll ¶
func (k Keeper) DropAll(c context.Context, req *types.QueryAllDropRequest) (*types.QueryDropsResponse, error)
func (Keeper) DropAmounts ¶
func (k Keeper) DropAmounts(c context.Context, req *types.QueryDropAmountsRequest) (*types.QueryDropAmountsResponse, error)
func (Keeper) DropCoin ¶
func (k Keeper) DropCoin(c context.Context, req *types.QueryDropCoinRequest) (*types.QueryDropCoinResponse, error)
func (Keeper) DropOwnerPair ¶
func (k Keeper) DropOwnerPair(c context.Context, req *types.QueryDropOwnerPairRequest) (*types.QueryDropsResponse, error)
func (Keeper) DropPairs ¶
func (k Keeper) DropPairs(c context.Context, req *types.QueryDropPairsRequest) (*types.QueryDropPairsResponse, error)
func (Keeper) DropsToCoins ¶ added in v0.1.1
func (k Keeper) DropsToCoins(c context.Context, req *types.QueryDropsToCoinsRequest) (*types.QueryDropsToCoinsResponse, error)
func (Keeper) GetAllBurnings ¶
GetAllBurnings returns all burnings
func (Keeper) GetAllDrop ¶
GetAllDrop returns all drop
func (Keeper) GetAllMember ¶
GetAllMember returns all member
func (Keeper) GetAllOrder ¶
GetAllOrder returns all order
func (Keeper) GetAllPool ¶
GetAllPool returns all pool
func (Keeper) GetAllVolumes ¶ added in v1.1.0
GetAllVolume returns all volumes
func (Keeper) GetBook ¶
func (k Keeper) GetBook( ctx sdk.Context, denomA string, denomB string, orderType string, ) (list []types.OrderResponse)
GetOrder returns a order from its index
func (Keeper) GetBurnings ¶
GetBurnings returns a burnings from its index
func (Keeper) GetDropAmounts ¶
func (k Keeper) GetDropAmounts( ctx sdk.Context, uid uint64, ) (denom1 string, denom2 string, amount1 sdk.Int, amount2 sdk.Int, found bool)
GetOrderOwner returns orders from a single owner
func (Keeper) GetDropCoin ¶
func (k Keeper) GetDropCoin( ctx sdk.Context, denomA string, denomB string, amountA sdk.Int, ) (amountB sdk.Int, drops sdk.Int, found bool)
GetOrderOwner returns orders from a single owner
func (Keeper) GetDropOwnerPair ¶
func (k Keeper) GetDropOwnerPair( ctx sdk.Context, owner string, pair string, ) (list []types.Drop, found bool)
GetOrderOwner returns orders from a single owner
func (Keeper) GetDropPairs ¶
GetDrop returns a drop from its index
func (Keeper) GetDropsOwnerPair ¶
func (k Keeper) GetDropsOwnerPair( ctx sdk.Context, owner string, pair string, ) (drops types.Drops, found bool)
GetOwnerDrops returns drops from a single owner
func (Keeper) GetDropsOwnerPairDetail ¶
func (k Keeper) GetDropsOwnerPairDetail( ctx sdk.Context, owner string, pair string, ) (list []types.Drop)
GetOwnerDrops returns drops from a single owner
func (Keeper) GetDropsToCoins ¶ added in v0.1.1
func (k Keeper) GetDropsToCoins( ctx sdk.Context, denom1 string, denom2 string, drops string, ) (amount1 sdk.Int, amount2 sdk.Int, err error)
GetOrderOwner returns orders from a single owner
func (Keeper) GetHistory ¶
func (k Keeper) GetHistory( ctx sdk.Context, pair string, length string, ) (list []types.OrderResponse, found bool)
GetHistory returns history of pool trades
func (Keeper) GetMember ¶
func (k Keeper) GetMember( ctx sdk.Context, denomA string, denomB string, ) (val types.Member, found bool)
GetMember returns a member from its index
func (Keeper) GetMemberWithPair ¶
func (Keeper) GetOrderOwner ¶
GetOrderOwner returns orders from a single owner
func (Keeper) GetOrderOwnerUids ¶
GetOrderOwner returns order uids from a single owner
func (Keeper) GetQuote ¶ added in v0.1.2
func (k Keeper) GetQuote( ctx sdk.Context, memberAsk types.Member, memberBid types.Member, denomAmount string, amount sdk.Int, ) (string, sdk.Int, error)
BookEnds returns adjacent orders determined by rate
func (Keeper) GetUidCount ¶
GetUidCount get the next uid
func (Keeper) History ¶
func (k Keeper) History(c context.Context, req *types.QueryHistoryRequest) (*types.QueryHistoryResponse, error)
func (Keeper) Member ¶
func (k Keeper) Member(c context.Context, req *types.QueryGetMemberRequest) (*types.QueryGetMemberResponse, error)
func (Keeper) MemberAll ¶
func (k Keeper) MemberAll(c context.Context, req *types.QueryAllMemberRequest) (*types.QueryAllMemberResponse, error)
func (Keeper) Order ¶
func (k Keeper) Order(c context.Context, req *types.QueryOrderRequest) (*types.QueryOrderResponse, error)
func (Keeper) OrderAll ¶
func (k Keeper) OrderAll(c context.Context, req *types.QueryAllOrderRequest) (*types.QueryOrdersResponse, error)
func (Keeper) OrderOwner ¶
func (k Keeper) OrderOwner(c context.Context, req *types.QueryOrderOwnerRequest) (*types.QueryOrdersResponse, error)
func (Keeper) OrderOwnerUids ¶
func (k Keeper) OrderOwnerUids(c context.Context, req *types.QueryOrderOwnerRequest) (*types.QueryOrderOwnerUidsResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) Pool ¶
func (k Keeper) Pool(c context.Context, req *types.QueryGetPoolRequest) (*types.QueryGetPoolResponse, error)
func (Keeper) PoolAll ¶
func (k Keeper) PoolAll(c context.Context, req *types.QueryAllPoolRequest) (*types.QueryAllPoolResponse, error)
func (Keeper) Quote ¶ added in v0.1.2
func (k Keeper) Quote(goCtx context.Context, req *types.QueryQuoteRequest) (*types.QueryQuoteResponse, error)
func (Keeper) RemoveBurnings ¶
RemoveBurnings removes a burnings from the store
func (Keeper) RemoveDrop ¶
RemoveDrop removes a drop from the store
func (Keeper) RemoveDropOwner ¶
RemoveDrop removes a drop from the store
func (Keeper) RemoveMember ¶
RemoveMember removes a member from the store
func (Keeper) RemoveOrder ¶
RemoveOrder removes a order from the store
func (Keeper) RemoveOrderOwner ¶
RemoveOrderOwner removes an order from owner's open orders
func (Keeper) RemovePool ¶
RemovePool removes a pool from the store
func (Keeper) RemoveVolume ¶ added in v1.1.0
RemoveVolume removes a volume from the store
func (Keeper) SetBurnings ¶
SetBurnings set a specific burnings in the store from its index
func (Keeper) SetDropOwner ¶
SetDrop set a specific drop in the store from its index
func (Keeper) SetOrderOwner ¶
SetOrderOwner adds an order to owner's open orders
func (Keeper) SetUidCount ¶
SetUidCount set the next uid
func (Keeper) SetVolume ¶ added in v1.1.0
SetVolume set a specific volume in the store from its index
func (Keeper) Volume ¶ added in v1.1.0
func (k Keeper) Volume(c context.Context, req *types.QueryVolumeRequest) (*types.QueryVolumeResponse, error)
func (Keeper) VolumeAll ¶ added in v1.1.0
func (k Keeper) VolumeAll(c context.Context, req *types.QueryAllVolumeRequest) (*types.QueryAllVolumeResponse, error)
Source Files ¶
- burnings.go
- drop.go
- grpc_query.go
- grpc_query_bookends.go
- grpc_query_burnings.go
- grpc_query_drop.go
- grpc_query_member.go
- grpc_query_order.go
- grpc_query_params.go
- grpc_query_pool.go
- keeper.go
- member.go
- msg_server.go
- msg_server_cancel_order.go
- msg_server_create_drop.go
- msg_server_create_order.go
- msg_server_create_pool.go
- msg_server_market_order.go
- msg_server_redeem_drop.go
- order.go
- params.go
- pool.go
- profit.go
- proposal.go
- uid.go
- volume.go