ante

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FeePayLogic

func FeePayLogic(fees sdk.Coins, govPercent sdk.Dec, numPairs int) sdk.Coins

FeePayLogic takes the total fees and splits them based on the governance params and the number of contracts we are executing on. This returns the amount of fees each contract developer should get. tested in ante_test.go

Types

type BankKeeper

type BankKeeper interface {
	SendCoinsFromAccountToModule(
		ctx sdk.Context, senderAddr sdk.AccAddress,
		recipientModule string, amt sdk.Coins,
	) error
	SendCoinsFromModuleToAccount(
		ctx sdk.Context, senderModule string,
		recipientAddr sdk.AccAddress, amt sdk.Coins,
	) error
}

type DevGasPayoutDecorator

type DevGasPayoutDecorator struct {
	// contains filtered or unexported fields
}

DevGasPayoutDecorator Run his after we already deduct the fee from the account with the ante.NewDeductFeeDecorator() decorator. We pull funds from the FeeCollector ModuleAccount

func NewDevGasPayoutDecorator

func NewDevGasPayoutDecorator(
	bk BankKeeper, fs IDevGasKeeper,
) DevGasPayoutDecorator

func (DevGasPayoutDecorator) AnteHandle

func (a DevGasPayoutDecorator) AnteHandle(
	ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler,
) (newCtx sdk.Context, err error)

type FeeSharePayoutEventOutput

type FeeSharePayoutEventOutput struct {
	WithdrawAddress sdk.AccAddress `json:"withdraw_address"`
	FeesPaid        sdk.Coins      `json:"fees_paid"`
}

type IDevGasKeeper

type IDevGasKeeper interface {
	GetParams(ctx sdk.Context) devgastypes.ModuleParams
	GetFeeShare(ctx sdk.Context, contract sdk.Address) (devgastypes.FeeShare, bool)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL