Documentation
¶
Index ¶
- type Keeper
- func (k Keeper) CreateTransaction(goCtx context.Context, msg *types.MsgCreateTransaction) (*types.MsgCreateTransactionResponse, error)
- func (k Keeper) CreateWallet(goCtx context.Context, msg *types.MsgCreateWallet) (*types.MsgCreateWalletResponse, error)
- func (k *Keeper) GetAllTransactions(ctx sdk.Context) (transactions []types.Transaction, err error)
- func (k *Keeper) GetAllWallets(ctx sdk.Context) (wallets []types.Wallet, err error)
- func (k *Keeper) GetSigners(ctx sdk.Context, txID string) []string
- func (k *Keeper) GetTransaction(ctx sdk.Context, txID string) (transaction types.Transaction, err error)
- func (k *Keeper) GetTransactions(ctx sdk.Context, wallet string) (transactions []types.Transaction, err error)
- func (k *Keeper) GetWallet(ctx sdk.Context, address string) (wallet types.Wallet, err error)
- func (k *Keeper) GetWallets(ctx sdk.Context, owner string) (wallets []types.Wallet, err error)
- func (k *Keeper) IsCompleted(ctx sdk.Context, txID string) bool
- func (k *Keeper) IsSigned(ctx sdk.Context, txID, signer string) bool
- func (k *Keeper) Logger(ctx sdk.Context) log.Logger
- func (k *Keeper) SetCompleted(ctx sdk.Context, txID string)
- func (k *Keeper) SetSign(ctx sdk.Context, txID, signer string)
- func (k *Keeper) SetTransaction(ctx sdk.Context, transaction types.Transaction) error
- func (k *Keeper) SetWallet(ctx sdk.Context, wallet types.Wallet)
- func (k Keeper) SignTransaction(goCtx context.Context, msg *types.MsgSignTransaction) (*types.MsgSignTransactionResponse, error)
- func (k Keeper) Transaction(c context.Context, req *types.QueryTransactionRequest) (*types.QueryTransactionResponse, error)
- func (k Keeper) Transactions(c context.Context, req *types.QueryTransactionsRequest) (*types.QueryTransactionsResponse, error)
- func (k Keeper) Wallet(c context.Context, req *types.QueryWalletRequest) (*types.QueryWalletResponse, error)
- func (k Keeper) Wallets(c context.Context, req *types.QueryWalletsRequest) (*types.QueryWalletsResponse, error)
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 (k Keeper) CreateTransaction(goCtx context.Context, msg *types.MsgCreateTransaction) (*types.MsgCreateTransactionResponse, error)
func (Keeper) CreateWallet ¶
func (k Keeper) CreateWallet(goCtx context.Context, msg *types.MsgCreateWallet) (*types.MsgCreateWalletResponse, error)
func (*Keeper) GetAllTransactions ¶ added in v0.0.8
func (*Keeper) GetAllWallets ¶ added in v0.0.8
GetAllWallets returns all multisig wallets metadata.
func (*Keeper) GetSigners ¶ added in v0.0.8
IsSigned check signature for transaction.
func (*Keeper) GetTransaction ¶
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 ¶
GetWallet returns multisig wallet metadata struct with specified address.
func (*Keeper) GetWallets ¶
GetWallets returns multisig wallets metadata struct for specified owner.
func (*Keeper) IsCompleted ¶ added in v0.0.8
func (*Keeper) SetCompleted ¶ added in v0.0.8
func (*Keeper) SetTransaction ¶
SetTransaction sets the entire multisig wallet universal transaction metadata struct for a multisig wallet.
func (Keeper) SignTransaction ¶
func (k Keeper) SignTransaction(goCtx context.Context, msg *types.MsgSignTransaction) (*types.MsgSignTransactionResponse, error)
func (Keeper) Transaction ¶
func (k Keeper) Transaction(c context.Context, req *types.QueryTransactionRequest) (*types.QueryTransactionResponse, error)
func (Keeper) Transactions ¶
func (k Keeper) Transactions(c context.Context, req *types.QueryTransactionsRequest) (*types.QueryTransactionsResponse, error)
func (Keeper) Wallet ¶
func (k Keeper) Wallet(c context.Context, req *types.QueryWalletRequest) (*types.QueryWalletResponse, error)
func (Keeper) Wallets ¶
func (k Keeper) Wallets(c context.Context, req *types.QueryWalletsRequest) (*types.QueryWalletsResponse, error)
Click to show internal directories.
Click to hide internal directories.