Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CorrectWrkChainFeeDecorator ¶
type CorrectWrkChainFeeDecorator struct {
// contains filtered or unexported fields
}
CorrectWrkChainFeeDecorator checks if the correct fees have been sent to pay for a WRKChain register/record hash Tx, and if the fee paying account has sufficient funds to pay. It first checks if the Tx contains any WRKChain Msgs, and if not, continues on to the next AnteHandler in the chain. If a WRKChain Msg is detected, it then:
1. Checks sufficient fees have been included in the Tx, via the --fees flag 2. Checks the fee payer is the WRKChain owner 3. Checks if the fee payer has sufficient funds in their account to pay for it, including any locked enterprise und
If any of the checks fail, a suitable error is returned.
func NewCorrectWrkChainFeeDecorator ¶
func NewCorrectWrkChainFeeDecorator(ak auth.AccountKeeper, wrkchainKeeper keeper.Keeper, enterpriseKeeper types.EnterpriseKeeper) CorrectWrkChainFeeDecorator