dynamicGasSetting

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallGas

type CallGas func(
	code opcodes.OpCode,
	availableGas uint64,
	stx *stack.Stack,
	mem *memory.Memory,
	store *storage.Storage,
) (memExpSize uint64, gasCost uint64, sendGas uint64, err error)

func Call

type CommonCalculator

type CommonCalculator func(
	acc *environment.Account,
	stx *stack.Stack,
	mem *memory.Memory,
	store *storage.Storage,
) (memExpSize uint64, gasCost uint64, err error)

type ContractStoreGas

type ContractStoreGas func(code []byte, gasRemaining uint64) (gasCost uint64, err error)

func ContractStore

func ContractStore() ContractStoreGas

type SStoreGas

type SStoreGas func(
	acc *environment.Account,
	stx *stack.Stack,
	store *storage.Storage,
) (gasCost uint64, err error)

Jump to

Keyboard shortcuts

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