Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountKeeper ¶
type BankKeeper ¶
type DeductFeeDecorator ¶
type DeductFeeDecorator struct {
// contains filtered or unexported fields
}
ModifiedFeeDecorator is modified version of Cosmos SDK's DeductFeeDecorator implementation which extends it and makes all x/ssi module related transactions incur fixed fee cost. Fixed fee is seperate for each x/ssi module transactions and are updated through Governance based proposals. Please refer HIP-9 to know more: https://github.com/hypersign-protocol/HIPs/blob/main/HIPs/hip-9.md
func NewDeductFeeDecorator ¶
func NewDeductFeeDecorator(ak AccountKeeper, bk BankKeeper, fk FeegrantKeeper, ifk SsiKeeper) DeductFeeDecorator
func (DeductFeeDecorator) AnteHandle ¶
type FeegrantKeeper ¶
type MempoolFeeDecorator ¶
type MempoolFeeDecorator struct{}
MempoolFeeDecorator will check if the transaction's fee is at least as large as the local validator's minimum gasFee (defined in validator config). If fee is too low, decorator returns error and tx is rejected from mempool. Note this only applies when ctx.CheckTx = true and transaction with only non-SSI messages If fee is high enough or not CheckTx or the transaction consists of only SSI messages, then call next AnteHandler CONTRACT: Tx must implement FeeTx to use MempoolFeeDecorator
func NewMempoolFeeDecorator ¶
func NewMempoolFeeDecorator() MempoolFeeDecorator
func (MempoolFeeDecorator) AnteHandle ¶
type SSITxDecorator ¶
type SSITxDecorator struct{}
SSITxDecorator ensures that transactions containing SSI messages are combined with messages from other modules. This is due to the fixed fees associated with SSI messages, irrespective of message size
func NewSSITxDecorator ¶
func NewSSITxDecorator() SSITxDecorator