precompiled

package
v0.0.0-...-63185e8 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// non-precompiled contract error code, only used when logic errors occur
	DefaultErrorCode int64 = -1
)

Variables

View Source
var (
	// MaxUint256 is the maximum value that can be represented by a uint256.
	MaxUint256 = new(big.Int).Sub(new(big.Int).Lsh(common.Big1, 256), common.Big1)
)

Functions

func BigIntToInt64

func BigIntToInt64(bigNum *big.Int) (int64, error)

func BigIntToUint64

func BigIntToUint64(bigNum *big.Int) (uint64, error)

func GetCommonErrorCodeMessage

func GetCommonErrorCodeMessage(errorCode int64) string

GetCommonErrorCodeMessage returns the message of common error code

func ParseBigIntFromOutput

func ParseBigIntFromOutput(receipt *types.Receipt) (*big.Int, error)

func Uint64ToInt64

func Uint64ToInt64(num uint64) (int64, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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