keeper

package
v0.0.0-...-baf6593 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper types.SendingKeeper) types.MsgServer

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 storetypes.StoreKey,
	accountKeeper types.AccountKeeper,
	bankKeeper types.BankKeeper,
	subaccountsKeeper types.SubaccountsKeeper,
	indexerEventManager indexer_manager.IndexerEventManager,
	authorities []string,
) *Keeper

func (Keeper) GenerateDepositEvent

func (k Keeper) GenerateDepositEvent(deposit *types.MsgDepositToSubaccount) *indexerevents.TransferEventV1

GenerateDepositEvent takes in a deposit and returns a deposit event.

func (Keeper) GenerateTransferEvent

func (k Keeper) GenerateTransferEvent(transfer *types.Transfer) *indexerevents.TransferEventV1

GenerateTransferEvent takes in a transfer and returns a transfer event.

func (Keeper) GenerateWithdrawEvent

func (k Keeper) GenerateWithdrawEvent(withdraw *types.MsgWithdrawFromSubaccount) *indexerevents.TransferEventV1

GenerateWithdrawEvent takes in a withdrawal and returns a withdraw event.

func (Keeper) GetIndexerEventManager

func (k Keeper) GetIndexerEventManager() indexer_manager.IndexerEventManager

func (Keeper) HasAuthority

func (k Keeper) HasAuthority(authority string) bool

func (Keeper) InitializeForGenesis

func (k Keeper) InitializeForGenesis(ctx sdk.Context)

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) ProcessDepositToSubaccount

func (k Keeper) ProcessDepositToSubaccount(
	ctx sdk.Context,
	msgDepositToSubaccount *types.MsgDepositToSubaccount,
) (err error)

ProcessDepositToSubaccount transfers quote balance from an account to a subaccount.

func (Keeper) ProcessTransfer

func (k Keeper) ProcessTransfer(
	ctx sdk.Context,
	pendingTransfer *types.Transfer,
) (err error)

ProcessTransfer transfers quote balance between two subaccounts.

func (Keeper) ProcessWithdrawFromSubaccount

func (k Keeper) ProcessWithdrawFromSubaccount(
	ctx sdk.Context,
	msgWithdrawFromSubaccount *types.MsgWithdrawFromSubaccount,
) (err error)

ProcessWithdrawFromSubaccount transfers quote balance from a subaccount to an account.

func (Keeper) SendFromModuleToAccount

func (k Keeper) SendFromModuleToAccount(
	ctx sdk.Context,
	msg *types.MsgSendFromModuleToAccount,
) (err error)

SendFromModuleToAccount sends coins from a module account to an `x/bank` recipient.

Jump to

Keyboard shortcuts

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