precompiledwithstorage

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrossTxDataShare

type CrossTxDataShare struct{}

CrossTxDataShare is a precompiled contract that supports cross-transaction data sharing

func (*CrossTxDataShare) Execute

func (c *CrossTxDataShare) Execute(caller types.Address, input []byte, dataBlock storage.IDataBlockStorage) ([]byte, error)

Execute runs contract logic

func (*CrossTxDataShare) GasCost

func (c *CrossTxDataShare) GasCost(addr types.Address, input []byte, storage storage.IDataBlockStorage) uint64

GasCost calculates gas consumption

Jump to

Keyboard shortcuts

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