antedecorators

package
v0.0.0-...-bf46863 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GasMultiplierNumerator                   uint64 = 1
	DefaultGasMultiplierDenominator          uint64 = 1
	WasmCorrectDependencyDiscountDenominator uint64 = 2
)

Variables

View Source
var WhitelistedGaslessCancellationAddrs = []sdk.AccAddress{}

WhitelistedGaslessCancellationAddrs TODO: migrate this into params state

Functions

func GetGasMeterSetter

func GetGasMeterSetter(aclkeeper aclkeeper.Keeper) func(bool, sdk.Context, uint64, sdk.Tx) sdk.Context

Types

type ACLWasmDependencyDecorator

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

func NewACLWasmDependencyDecorator

func NewACLWasmDependencyDecorator(aclKeeper aclkeeper.Keeper, wasmKeeper wasm.Keeper) ACLWasmDependencyDecorator

func (ACLWasmDependencyDecorator) AnteDeps

func (ad ACLWasmDependencyDecorator) AnteDeps(txDeps []sdkacltypes.AccessOperation, tx sdk.Tx, txIndex int, next sdk.AnteDepGenerator) (newTxDeps []sdkacltypes.AccessOperation, err error)

func (ACLWasmDependencyDecorator) AnteHandle

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

func (ACLWasmDependencyDecorator) SenderMatchesContractAdmin

func (ad ACLWasmDependencyDecorator) SenderMatchesContractAdmin(ctx sdk.Context, msg *acltypes.MsgRegisterWasmDependency) (bool, error)

type GaslessDecorator

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

func NewGaslessDecorator

func NewGaslessDecorator(wrapped []sdk.AnteFullDecorator, oracleKeeper oraclekeeper.Keeper) GaslessDecorator

func (GaslessDecorator) AnteDeps

func (gd GaslessDecorator) AnteDeps(txDeps []sdkacltypes.AccessOperation, tx sdk.Tx, txIndex int, next sdk.AnteDepGenerator) (newTxDeps []sdkacltypes.AccessOperation, err error)

func (GaslessDecorator) AnteHandle

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

type PriorityDecorator

type PriorityDecorator struct{}

func NewPriorityDecorator

func NewPriorityDecorator() PriorityDecorator

func (PriorityDecorator) AnteHandle

func (pd PriorityDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, next sdk.AnteHandler) (sdk.Context, error)

Assigns higher priority to certain types of transactions including oracle

type TracedAnteDecorator

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

func NewTracedAnteDecorator

func NewTracedAnteDecorator(wrapped sdk.AnteDecorator, tracingInfo *tracing.Info) TracedAnteDecorator

func (TracedAnteDecorator) AnteHandle

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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