Documentation ¶
Index ¶
- func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
- func NewZeroGasMeter() storetypes.GasMeter
- type AccountKeeper
- type BankKeeper
- type CheckAddressesDecorator
- type DeductFeeDecorator
- type HandlerOptions
- type ScorumKeeper
- type SigVerificationDecorator
- type TrackGasConsumedDecorator
- type ZeroGasTxDecorator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAnteHandler ¶
func NewAnteHandler(options HandlerOptions) (sdk.AnteHandler, error)
func NewZeroGasMeter ¶ added in v1.2.0
func NewZeroGasMeter() storetypes.GasMeter
NewZeroGasMeter returns a reference to a new basicGasMeter.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { ante.AccountKeeper HasAccount(ctx context.Context, addr sdk.AccAddress) bool }
type BankKeeper ¶
type BankKeeper interface { authtypes.BankKeeper GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin }
type CheckAddressesDecorator ¶
type CheckAddressesDecorator struct {
// contains filtered or unexported fields
}
CheckAddressesDecorator checks if all addresses are registered
func NewCheckAddressesDecorator ¶
func NewCheckAddressesDecorator(ak AccountKeeper, sk ScorumKeeper) CheckAddressesDecorator
func (CheckAddressesDecorator) AnteHandle ¶
type DeductFeeDecorator ¶
type DeductFeeDecorator struct {
ante.DeductFeeDecorator
}
DeductFeeDecorator deducts fees from the first signer of the tx This decorator ALLOWS zero fees CONTRACT: Tx must implement FeeTx interface to use DeductFeeDecorator
func NewDeductFeeDecorator ¶
func NewDeductFeeDecorator(ak ante.AccountKeeper, bk types.BankKeeper, fk ante.FeegrantKeeper, tfc ante.TxFeeChecker) DeductFeeDecorator
func (DeductFeeDecorator) AnteHandle ¶
type HandlerOptions ¶
type HandlerOptions struct { ante.HandlerOptions ScorumKeeper ScorumKeeper AccountKeeper AccountKeeper BankKeeper BankKeeper CircuitKeeper circuitante.CircuitBreaker }
type ScorumKeeper ¶
type SigVerificationDecorator ¶ added in v0.0.4
type SigVerificationDecorator struct {
// contains filtered or unexported fields
}
SigVerificationDecorator is a copy of cosmos original SigVerificationDecorator Own implementation is needed to skip signature checking for supervisors to allow use the same key from many integrated services in parallel.
func NewSigVerificationDecorator ¶ added in v0.0.4
func NewSigVerificationDecorator(ak AccountKeeper, sk ScorumKeeper, signModeHandler *txsigning.HandlerMap) SigVerificationDecorator
func (SigVerificationDecorator) AnteHandle ¶ added in v0.0.4
type TrackGasConsumedDecorator ¶
type TrackGasConsumedDecorator struct {
// contains filtered or unexported fields
}
func NewTrackGasConsumedDecorator ¶
func NewTrackGasConsumedDecorator(ak AccountKeeper, bk BankKeeper, sk ScorumKeeper) TrackGasConsumedDecorator
func (TrackGasConsumedDecorator) AnteHandle ¶
type ZeroGasTxDecorator ¶
type ZeroGasTxDecorator struct {
// contains filtered or unexported fields
}
func NewZeroGasTxDecorator ¶
func NewZeroGasTxDecorator(ak AccountKeeper, sk ScorumKeeper) ZeroGasTxDecorator
func (ZeroGasTxDecorator) AnteHandle ¶
Click to show internal directories.
Click to hide internal directories.