keeper

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine.

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey store.StoreKey,
	ps paramtypes.Subspace,
	accountKeeper auth.AccountKeeperI,
	bankKeeper bank.Keeper,
	router *baseapp.MsgServiceRouter,
) *Keeper

NewKeeper creates a multisig keeper

func (Keeper) CreateTransaction

func (Keeper) CreateWallet

func (*Keeper) GetAllTransactions added in v0.0.8

func (k *Keeper) GetAllTransactions(ctx sdk.Context) (transactions []types.Transaction, err error)

func (*Keeper) GetAllWallets added in v0.0.8

func (k *Keeper) GetAllWallets(ctx sdk.Context) (wallets []types.Wallet, err error)

GetAllWallets returns all multisig wallets metadata.

func (*Keeper) GetSigners added in v0.0.8

func (k *Keeper) GetSigners(ctx sdk.Context, txID string) []string

IsSigned check signature for transaction.

func (*Keeper) GetTransaction

func (k *Keeper) GetTransaction(ctx sdk.Context, txID string) (transaction types.Transaction, err error)

func (*Keeper) GetTransactions

func (k *Keeper) GetTransactions(ctx sdk.Context, wallet string) (transactions []types.Transaction, err error)

GetTransactions returns transactions for specified multisig wallet.

func (*Keeper) GetWallet

func (k *Keeper) GetWallet(ctx sdk.Context, address string) (wallet types.Wallet, err error)

GetWallet returns multisig wallet metadata struct with specified address.

func (*Keeper) GetWallets

func (k *Keeper) GetWallets(ctx sdk.Context, owner string) (wallets []types.Wallet, err error)

GetWallets returns multisig wallets metadata struct for specified owner.

func (*Keeper) IsCompleted added in v0.0.8

func (k *Keeper) IsCompleted(ctx sdk.Context, txID string) bool

func (*Keeper) IsSigned added in v0.0.8

func (k *Keeper) IsSigned(ctx sdk.Context, txID, signer string) bool

IsSigned check signature for transaction.

func (*Keeper) Logger

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

Logger returns a module-specific logger.

func (*Keeper) SetCompleted added in v0.0.8

func (k *Keeper) SetCompleted(ctx sdk.Context, txID string)

func (*Keeper) SetSign added in v0.1.0

func (k *Keeper) SetSign(ctx sdk.Context, txID, signer string)

SetSign mark signature for transaction and wallet owner.

func (*Keeper) SetTransaction

func (k *Keeper) SetTransaction(ctx sdk.Context, transaction types.Transaction) error

SetTransaction sets the entire multisig wallet universal transaction metadata struct for a multisig wallet.

func (*Keeper) SetWallet

func (k *Keeper) SetWallet(ctx sdk.Context, wallet types.Wallet)

SetWallet sets the entire wallet metadata struct for a multisig wallet.

func (Keeper) SignTransaction

func (Keeper) Wallet

Jump to

Keyboard shortcuts

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