Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Deposit(ctx sdk.Context, creator string, marketUID string, amount sdk.Int) (participationIndex uint64, err error)
- func (k Keeper) DepositorDeposits(c context.Context, req *types.QueryDepositorDepositsRequest) (*types.QueryDepositorDepositsResponse, error)
- func (k Keeper) DepositorWithdrawals(c context.Context, req *types.QueryDepositorWithdrawalsRequest) (*types.QueryDepositorWithdrawalsResponse, error)
- func (k Keeper) Deposits(c context.Context, req *types.QueryDepositsRequest) (*types.QueryDepositsResponse, error)
- func (k Keeper) GetAllDeposits(ctx sdk.Context) (list []types.Deposit, err error)
- func (k Keeper) GetAllWithdrawals(ctx sdk.Context) (list []types.Withdrawal, err error)
- func (k Keeper) GetDeposit(ctx sdk.Context, depositorAddress, marketUID string, participationIndex uint64) (val types.Deposit, found bool)
- func (k Keeper) GetHouseParticipationFee(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) GetMinDepositAllowedAmount(ctx sdk.Context) (res sdk.Int)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetDeposit(ctx sdk.Context, deposit types.Deposit)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetWithdrawal(ctx sdk.Context, withdrawal types.Withdrawal)
- func (k Keeper) Withdraw(ctx sdk.Context, creator string, marketUID string, participationIndex uint64, ...) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the house MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
keeper of the house store
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, key sdk.StoreKey, srKeeper types.SRKeeper, ps paramtypes.Subspace) *Keeper
NewKeeper creates a new house Keeper instance
func (Keeper) Deposit ¶
func (k Keeper) Deposit(ctx sdk.Context, creator string, marketUID string, amount sdk.Int) (participationIndex uint64, err error)
Deposit performs a deposit, set/update everything necessary within the store.
func (Keeper) DepositorDeposits ¶
func (k Keeper) DepositorDeposits(c context.Context, req *types.QueryDepositorDepositsRequest) (*types.QueryDepositorDepositsResponse, error)
DepositorDeposits queries all deposits of a give depositor address
func (Keeper) DepositorWithdrawals ¶
func (k Keeper) DepositorWithdrawals(c context.Context, req *types.QueryDepositorWithdrawalsRequest) (*types.QueryDepositorWithdrawalsResponse, error)
DepositorWithdrawals queries all withdrawals of a give depositor address
func (Keeper) Deposits ¶
func (k Keeper) Deposits(c context.Context, req *types.QueryDepositsRequest) (*types.QueryDepositsResponse, error)
Deposits queries all deposits
func (Keeper) GetAllDeposits ¶
GetAllDeposits returns all deposits used during genesis dump.
func (Keeper) GetAllWithdrawals ¶
GetAllWithdrawals returns all withdrawals used during genesis dump.
func (Keeper) GetDeposit ¶
func (k Keeper) GetDeposit(ctx sdk.Context, depositorAddress, marketUID string, participationIndex uint64) (val types.Deposit, found bool)
GetDeposit returns a specific deposit.
func (Keeper) GetHouseParticipationFee ¶
GetHouseParticipationFee - % of deposit to be paid for house participation by the user
func (Keeper) GetMinDepositAllowedAmount ¶
GetMinDepositAllowedAmount - Minum amount of deposit acceptable.
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns the params of the module
func (Keeper) SetDeposit ¶
SetDeposit sets a deposit.
func (Keeper) SetWithdrawal ¶
func (k Keeper) SetWithdrawal(ctx sdk.Context, withdrawal types.Withdrawal)
SetWithdrawal sets a withdrawal.