Documentation ¶
Overview ¶
Implements custom AnteHandler.
Implements AppMsModule interface (inherits from AppModule) to manage also multisignature modules.
MsManager implements Manager functional, but also allows to manage multisignature modules.
Multisignature router implementation.
Index ¶
- Constants
- Variables
- func AuthAnteHandler(ak vmauth.VMAccountKeeper, supplyKeeper types.SupplyKeeper, ...) sdk.AnteHandler
- func ErrFeeRequired() sdk.Error
- func ErrWrongFeeDenom(denom string) sdk.Error
- func NewAnteHandler(ak vmauth.VMAccountKeeper, supplyKeeper types.SupplyKeeper, ...) sdk.AnteHandler
- type AppMsModule
- type MsHandler
- type MsManager
- type MsMsg
- type Router
Constants ¶
const ( Codespace sdk.CodespaceType = "core" CodeFeeRequired sdk.CodeType = 101 CodeWrongFeeDenom sdk.CodeType = 102 )
Variables ¶
Functions ¶
func AuthAnteHandler ¶
func AuthAnteHandler(ak vmauth.VMAccountKeeper, supplyKeeper types.SupplyKeeper, sigGasConsumer auth.SignatureVerificationGasConsumer) sdk.AnteHandler
NewAnteHandler returns an AnteHandler that checks and increments sequence numbers, checks signatures & account numbers, and deducts fees from the first signer.
func NewAnteHandler ¶
func NewAnteHandler(ak vmauth.VMAccountKeeper, supplyKeeper types.SupplyKeeper, sigGasConsumer auth.SignatureVerificationGasConsumer) sdk.AnteHandler
Custom antehandler catches and prevents transactions without fees and fees not in "dfi" currency After execution of custom logic, call standard auth.AnteHandler.
Types ¶
type AppMsModule ¶
Message handle for multisignature calls
type MsManager ¶
type MsManager struct { *module.Manager MsModules map[string]AppMsModule }
Multisignature modules manager.
func NewMsManager ¶
func NewMsManager(modules ...interface{}) *MsManager
New multisignature module manager.
func (*MsManager) RegisterMsRoutes ¶
Registering multisignature routes.