utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Big0 = big.NewInt(0)
View Source
var Big1 = big.NewInt(1)
View Source
var ErrNotImplemented = errors.New("Not implemented")
View Source
var ProxyEventIds = []string{
	"0xab64f92ab780ecbf4f3866f57cee465ff36c89450dcce20237ca7a8d81fb7d13",
	"0x50146d0e3c60aa1d17a70635b05494f864e86144a2201275021014fbf08bafe2",
}

Functions

func Add added in v0.3.0

func Add(a *big.Int, b *big.Int) *big.Int

func Dec

func Dec(val *big.Int) *big.Int

func Inc

func Inc(val *big.Int) *big.Int

func IsEq added in v0.3.0

func IsEq(a *big.Int, b *big.Int) bool

a == b

func IsGt added in v0.3.0

func IsGt(a *big.Int, b *big.Int) bool

a > b

func IsGte added in v0.3.0

func IsGte(a *big.Int, b *big.Int) bool

a >= b

func IsLt added in v0.3.0

func IsLt(a *big.Int, b *big.Int) bool

a < b

func IsLte added in v0.3.0

func IsLte(a *big.Int, b *big.Int) bool

a <= b

func IsNonZero added in v0.3.0

func IsNonZero(a *big.Int) bool

func IsZero added in v0.3.0

func IsZero(a *big.Int) bool

a == 0

func Max added in v0.3.0

func Max(a *big.Int, b *big.Int) *big.Int

func Min added in v0.3.0

func Min(a *big.Int, b *big.Int) *big.Int

func Neg added in v0.3.0

func Neg(val *big.Int) *big.Int

func RemoveProxyLogs

func RemoveProxyLogs(logs []*types.Log) []*types.Log

RemoveProxyLogs filters out logs from Proxy events and returns a list of Logs that are safe to Parse using the implementation contract's abi.

func Sub added in v0.3.0

func Sub(a *big.Int, b *big.Int) *big.Int

func Sum

func Sum(values ...*big.Int) *big.Int

Types

This section is empty.

Jump to

Keyboard shortcuts

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