createx

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TrueFlag        = "True"
	FalseFlag       = "False"
	UnspecifiedFlag = "Unspecified"

	MsgSender   = "MsgSender"
	ZeroAddress = "ZeroAddress"
	Random      = "Random"
)

Variables

View Source
var (
	// CreateXAddress is the canonical CreateX factory address.
	CreateXAddress = common.HexToAddress("0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed")
)

Functions

func Create2Address

func Create2Address(salt string, initCodeHash common.Hash, deployer common.Address) common.Address

Create2Address returns the CREATE2 address for a contract deployed via CreateX factory.

func EfficientHash

func EfficientHash(a, b []byte) [32]byte

EfficientHash mimics CreateX's _efficientHash function.

func GuardSalt

func GuardSalt(salt [32]byte, deployer common.Address) [32]byte

GuardSalt applies CreateX's salt guarding logic.

func ParseSalt

func ParseSalt(salt [32]byte, deployer common.Address) (string, string)

ParseSalt parses the salt format according to CreateX's logic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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