Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ModuleName defines the module name ModuleName = "supplier" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_supplier" )
View Source
const (
// SupplierKeyPrefix is the prefix to retrieve all Supplier
SupplierKeyPrefix = "Supplier/address/"
)
View Source
const TypeMsgStakeSupplier = "stake_supplier"
View Source
const TypeMsgUnstakeSupplier = "unstake_supplier"
Variables ¶
View Source
var ( ErrSupplierInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") ErrSupplierInvalidStake = sdkerrors.Register(ModuleName, 1101, "invalid supplier stake") ErrSupplierInvalidAddress = sdkerrors.Register(ModuleName, 1102, "invalid address") ErrSupplierNotFound = sdkerrors.Register(ModuleName, 1104, "supplier not found") ErrSupplierInvalidServiceConfig = sdkerrors.Register(ModuleName, 1105, "invalid service config") ErrSupplierInvalidSessionStartHeight = sdkerrors.Register(ModuleName, 1106, "invalid session start height") ErrSupplierInvalidSessionId = sdkerrors.Register(ModuleName, 1107, "invalid session ID") ErrSupplierInvalidService = sdkerrors.Register(ModuleName, 1108, "invalid service in supplier") ErrSupplierInvalidSessionEndHeight = sdkerrors.Register(ModuleName, 1109, "invalid session ending height") )
x/supplier module sentinel errors
View Source
var ParamsKey = []byte("p_supplier")
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func SupplierKey ¶
SupplierKey returns the store key to retrieve a Supplier from the index fields
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 { 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.