Documentation ¶
Index ¶
- Constants
- Variables
- func MakeTestCodec() *codec.Codec
- func NewQuerier(k Keeper) sdk.Querier
- func TestAddr(addr string, bech string) sdk.AccAddress
- type Keeper
- func (k Keeper) GetIterator(ctx sdk.Context, prefix string) sdk.Iterator
- func (k Keeper) GetTransaction(ctx sdk.Context, txID string) types.Transaction
- func (k Keeper) GetWallet(ctx sdk.Context, address string) types.Wallet
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetTransaction(ctx sdk.Context, transaction types.Transaction)
- func (k Keeper) SetWallet(ctx sdk.Context, wallet types.Wallet)
Constants ¶
View Source
const ( QueryListWallets = "listWallets" QueryGetWallet = "getWallet" QueryListTransactions = "listTransactions" QueryGetTransaction = "getTransaction" )
Query endpoints supported by the multisig querier.
Variables ¶
View Source
var (
Addrs = createTestAddrs(500)
)
Functions ¶
func NewQuerier ¶
NewQuerier creates a new querier for multisig clients.
Types ¶
type Keeper ¶
type Keeper struct { AccountKeeper auth.AccountKeeper CoinKeeper coin.Keeper BankKeeper bank.Keeper // contains filtered or unexported fields }
Keeper of the multisig store
func CreateTestInput ¶
func CreateTestInput(t *testing.T, isCheckTx bool) (sdk.Context, Keeper, coin.Keeper, auth.AccountKeeper, bank.Keeper)
Hogpodge of all sorts of input required for testing. `initPower` is converted to an amount of tokens. If `initPower` is 0, no addrs get created.
func NewKeeper ¶
func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, paramspace types.ParamSubspace, accountKeeper auth.AccountKeeper, coinKeeper coin.Keeper, bankKeeper bank.Keeper) Keeper
NewKeeper creates a multisig keeper
func (Keeper) GetIterator ¶
GetIterator returns iterator over KVStore with specified prefix.
func (Keeper) GetTransaction ¶
GetTransaction returns multisig wallet transaction metadata with specified address transaction ID.
func (Keeper) SetTransaction ¶
func (k Keeper) SetTransaction(ctx sdk.Context, transaction types.Transaction)
SetTransaction sets the entire multisig wallet transaction metadata struct for a multisig wallet.
Click to show internal directories.
Click to hide internal directories.