Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ModuleName defines the module name ModuleName = "gateway" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_gateway" )
View Source
const (
// GatewayKeyPrefix is the prefix to retrieve all Gateways
GatewayKeyPrefix = "Gateway/address/"
)
Variables ¶
View Source
var ( ErrGatewayInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") ErrGatewayInvalidAddress = sdkerrors.Register(ModuleName, 1101, "invalid gateway address") ErrGatewayInvalidStake = sdkerrors.Register(ModuleName, 1102, "invalid gateway stake") ErrGatewayNotFound = sdkerrors.Register(ModuleName, 1104, "gateway not found") )
x/gateway module sentinel errors
View Source
var ParamsKey = []byte("p_gateway")
Functions ¶
func GatewayKey ¶
GatewayKey returns the store key to retrieve a Gateway from the index fields
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation
}
AccountKeeper defines the expected interface for the Account module.
type BankKeeper ¶
type BankKeeper interface { // We use the bankkeeper SendXXX instead of DelegateXX methods // because their purpose is to "escrow" funds on behalf of an account rather // than "delegate" funds from one account to another which is more closely // linked to staking. SendCoinsFromAccountToModule(ctx context.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error }
BankKeeper defines the expected interface for the Bank module.
Click to show internal directories.
Click to hide internal directories.