contracts

package
v0.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PackInitCode

func PackInitCode(abi *abi.ABI, bytecodeHex string, params ...any) ([]byte, error)

PackInitCode packs the init code for a contract deployment.

func UseStagingOmniRPC

func UseStagingOmniRPC(rpc string)

UseStagingOmniRPC overrides the default staging Omni EVM RPC URL.

Types

type Addresses

type Addresses struct {
	AVS            common.Address
	Create3Factory common.Address
	GasPump        common.Address
	GasStation     common.Address
	L1Bridge       common.Address
	Portal         common.Address
	Token          common.Address
}

func GetAddresses

func GetAddresses(ctx context.Context, network netconf.ID) (Addresses, error)

GetAddresses returns the contract addresses for the given network.

type FundThresholds

type FundThresholds struct {
	// contains filtered or unexported fields
}

func (FundThresholds) MinBalance

func (t FundThresholds) MinBalance() *big.Int

func (FundThresholds) TargetBalance

func (t FundThresholds) TargetBalance() *big.Int

type Salts

type Salts struct {
	AVS        string
	GasPump    string
	GasStation string
	L1Bridge   string
	Portal     string
	Token      string
}

func GetSalts

func GetSalts(ctx context.Context, network netconf.ID) (Salts, error)

GetSalts returns the contract salts for the given network.

type WithFundThreshold

type WithFundThreshold struct {
	Name        string
	OnlyOmniEVM bool
	Address     common.Address
	Thresholds  FundThresholds
}

func ToFund

func ToFund(ctx context.Context, network netconf.ID) ([]WithFundThreshold, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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