proxy

package
v1.7.0-browser Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeContext

func MakeContext(storeKey sdk.StoreKey) sdk.Context

func PutBackStorePool added in v1.7.0

func PutBackStorePool(cms sdk.CacheMultiStore)

func SetCliContext

func SetCliContext(ctx clientcontext.CLIContext)

Types

type AccountKeeperProxy

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

AccountKeeperProxy defines the expected account keeper interface

func NewAccountKeeperProxy

func NewAccountKeeperProxy() AccountKeeperProxy

func (AccountKeeperProxy) GetAccount

func (AccountKeeperProxy) GetAllAccounts

func (a AccountKeeperProxy) GetAllAccounts(ctx sdk.Context) (accounts []authexported.Account)

func (AccountKeeperProxy) IterateAccounts

func (a AccountKeeperProxy) IterateAccounts(ctx sdk.Context, cb func(account authexported.Account) bool)

func (AccountKeeperProxy) NewAccountWithAddress

func (a AccountKeeperProxy) NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) authexported.Account

func (AccountKeeperProxy) RemoveAccount

func (a AccountKeeperProxy) RemoveAccount(ctx sdk.Context, account authexported.Account)

func (AccountKeeperProxy) SetAccount

func (a AccountKeeperProxy) SetAccount(ctx sdk.Context, account authexported.Account)

func (AccountKeeperProxy) SetObserverKeeper

func (a AccountKeeperProxy) SetObserverKeeper(observer auth.ObserverI)

type BankKeeperProxy

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

func NewBankKeeperProxy

func NewBankKeeperProxy(akp AccountKeeperProxy) BankKeeperProxy

func (BankKeeperProxy) BlacklistedAddr

func (b BankKeeperProxy) BlacklistedAddr(addr sdk.AccAddress) bool

func (BankKeeperProxy) BlockedAddr

func (b BankKeeperProxy) BlockedAddr(addr sdk.AccAddress) bool

func (BankKeeperProxy) GetAllBalances

func (b BankKeeperProxy) GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

func (BankKeeperProxy) GetBalance

func (b BankKeeperProxy) GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin

func (BankKeeperProxy) GetSendEnabled

func (b BankKeeperProxy) GetSendEnabled(ctx sdk.Context) bool

func (BankKeeperProxy) IsSendEnabledCoins

func (b BankKeeperProxy) IsSendEnabledCoins(ctx sdk.Context, coins ...sdk.Coin) error

func (BankKeeperProxy) SendCoins

func (b BankKeeperProxy) SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error

type CapabilityKeeperProxy

type CapabilityKeeperProxy struct{}

func (CapabilityKeeperProxy) AuthenticateCapability

func (c CapabilityKeeperProxy) AuthenticateCapability(ctx sdk.Context, capability *capabilitytypes.Capability, name string) bool

func (CapabilityKeeperProxy) ClaimCapability

func (c CapabilityKeeperProxy) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error

func (CapabilityKeeperProxy) GetCapability

func (c CapabilityKeeperProxy) GetCapability(ctx sdk.Context, name string) (*capabilitytypes.Capability, bool)

type PortKeeperProxy

type PortKeeperProxy struct{}

func (PortKeeperProxy) BindPort

func (p PortKeeperProxy) BindPort(ctx sdk.Context, portID string) *capabilitytypes.Capability

type SubspaceProxy

type SubspaceProxy struct{}

func (SubspaceProxy) GetParamSet

func (s SubspaceProxy) GetParamSet(ctx sdk.Context, ps params.ParamSet)

func (SubspaceProxy) SetParamSet

func (s SubspaceProxy) SetParamSet(ctx sdk.Context, ps params.ParamSet)

type SupplyKeeperProxy

type SupplyKeeperProxy struct{}

func (SupplyKeeperProxy) GetSupply

Jump to

Keyboard shortcuts

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