Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AccountedPool(goCtx context.Context, req *types.QueryGetAccountedPoolRequest) (*types.QueryGetAccountedPoolResponse, error)
- func (k Keeper) AccountedPoolAll(goCtx context.Context, req *types.QueryAllAccountedPoolRequest) (*types.QueryAllAccountedPoolResponse, error)
- func (k Keeper) AfterAmmExitPool(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
- func (k Keeper) AfterAmmJoinPool(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
- func (k Keeper) AfterAmmPoolCreated(ctx sdk.Context, ammPool ammtypes.Pool)
- func (k Keeper) AfterAmmSwap(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
- func (k Keeper) AfterMarginPositionClosed(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
- func (k Keeper) AfterMarginPositionModified(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
- func (k Keeper) AfterMarginPositionOpen(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
- func (k Keeper) GetAccountedBalance(ctx sdk.Context, poolId uint64, denom string) sdk.Int
- func (k Keeper) GetAccountedPool(ctx sdk.Context, PoolId uint64) (val types.AccountedPool, found bool)
- func (k Keeper) GetAllAccountedPool(ctx sdk.Context) (list []types.AccountedPool)
- func (k Keeper) InitiateAccountedPool(ctx sdk.Context, ammPool ammtypes.Pool) error
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MarginHooks() MarginHooks
- func (k Keeper) PoolExists(ctx sdk.Context, poolId uint64) bool
- func (k Keeper) RemoveAccountedPool(ctx sdk.Context, poolId uint64)
- func (k Keeper) SetAccountedPool(ctx sdk.Context, accountedPool types.AccountedPool)
- func (k Keeper) UpdateAccountedPool(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool) error
- type MarginHooks
- func (h MarginHooks) AfterAmmExitPool(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
- func (h MarginHooks) AfterAmmJoinPool(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
- func (h MarginHooks) AfterAmmPoolCreated(ctx sdk.Context, ammPool ammtypes.Pool)
- func (h MarginHooks) AfterAmmSwap(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
- func (h MarginHooks) AfterMarginPositionClosed(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
- func (h MarginHooks) AfterMarginPositionModified(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
- func (h MarginHooks) AfterMarginPositionOpen(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 storetypes.StoreKey, bk types.BankKeeper, ) *Keeper
func (Keeper) AccountedPool ¶
func (k Keeper) AccountedPool(goCtx context.Context, req *types.QueryGetAccountedPoolRequest) (*types.QueryGetAccountedPoolResponse, error)
func (Keeper) AccountedPoolAll ¶
func (k Keeper) AccountedPoolAll(goCtx context.Context, req *types.QueryAllAccountedPoolRequest) (*types.QueryAllAccountedPoolResponse, error)
func (Keeper) AfterAmmExitPool ¶
func (k Keeper) AfterAmmExitPool(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
AfterExitPool is called after ExitPool, ExitSwapShareAmountIn, and ExitSwapExternAmountOut
func (Keeper) AfterAmmJoinPool ¶
func (k Keeper) AfterAmmJoinPool(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
AfterJoinPool is called after JoinPool, JoinSwapExternAmountIn, and JoinSwapShareAmountOut
func (Keeper) AfterAmmPoolCreated ¶
AfterPoolCreated is called after CreatePool
func (Keeper) AfterAmmSwap ¶
AfterSwap is called after SwapExactAmountIn and SwapExactAmountOut
func (Keeper) AfterMarginPositionClosed ¶
func (Keeper) AfterMarginPositionModified ¶
func (Keeper) AfterMarginPositionOpen ¶ added in v0.13.0
func (Keeper) GetAccountedBalance ¶
Get accounted pool balance
func (Keeper) GetAccountedPool ¶
func (k Keeper) GetAccountedPool(ctx sdk.Context, PoolId uint64) (val types.AccountedPool, found bool)
GetAccountedPool returns a accountedPool from its index
func (Keeper) GetAllAccountedPool ¶
func (k Keeper) GetAllAccountedPool(ctx sdk.Context) (list []types.AccountedPool)
GetAllAccountedPool returns all accountedPool
func (Keeper) InitiateAccountedPool ¶
func (Keeper) PoolExists ¶
PoolExists checks if a pool with the given poolId exists in the list of pools
func (Keeper) RemoveAccountedPool ¶
RemoveAccountedPool removes a accountedPool from the store
func (Keeper) SetAccountedPool ¶
func (k Keeper) SetAccountedPool(ctx sdk.Context, accountedPool types.AccountedPool)
SetAccountedPool set a specific accountedPool in the store from its index
func (Keeper) UpdateAccountedPool ¶
type MarginHooks ¶
type MarginHooks struct {
// contains filtered or unexported fields
}
Hooks wrapper struct for tvl keeper
func (MarginHooks) AfterAmmExitPool ¶
func (h MarginHooks) AfterAmmExitPool(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
func (MarginHooks) AfterAmmJoinPool ¶
func (h MarginHooks) AfterAmmJoinPool(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
func (MarginHooks) AfterAmmPoolCreated ¶
func (h MarginHooks) AfterAmmPoolCreated(ctx sdk.Context, ammPool ammtypes.Pool)
func (MarginHooks) AfterAmmSwap ¶
func (h MarginHooks) AfterAmmSwap(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
func (MarginHooks) AfterMarginPositionClosed ¶
func (h MarginHooks) AfterMarginPositionClosed(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
func (MarginHooks) AfterMarginPositionModified ¶
func (h MarginHooks) AfterMarginPositionModified(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)
func (MarginHooks) AfterMarginPositionOpen ¶ added in v0.13.0
func (h MarginHooks) AfterMarginPositionOpen(ctx sdk.Context, ammPool ammtypes.Pool, marginPool margintypes.Pool)