env

package
v0.23.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DevTestnet

func DevTestnet() networktest.Environment

func LocalDevNetwork

func LocalDevNetwork(opts ...LocalNetworkOption) networktest.Environment

func LocalNetworkLiveL1

func LocalNetworkLiveL1(seqWallet wallet.Wallet, validatorWallets []wallet.Wallet, l1RPCURLs []string) networktest.Environment

LocalNetworkLiveL1 creates a local network that points to a live running L1. Note: seqWallet and validatorWallets need funds. seqWallet is used to deploy the L1 contracts

func LongRunningLocalNetwork

func LongRunningLocalNetwork(l1WSURL string) networktest.Environment

LongRunningLocalNetwork is a local network, the l1WSURL is optional (can be empty string), only required if testing L1 interactions

func NewTestnetConnector

func NewTestnetConnector(seqRPCAddr string, validatorRPCAddressses []string, faucetHTTPAddress string, l1WSURL string, tenGatewayURL string) networktest.NetworkConnector

func NewTestnetConnectorWithFaucetAccount

func NewTestnetConnectorWithFaucetAccount(seqRPCAddr string, validatorRPCAddressses []string, faucetPK string, l1RPCAddress string, tenGatewayURL string) networktest.NetworkConnector

func SepoliaTestnet

func SepoliaTestnet() networktest.Environment

func UATTestnet added in v0.21.0

func UATTestnet() networktest.Environment

Types

type LocalNetworkConfig added in v0.22.1

type LocalNetworkConfig struct {
	TenGatewayEnabled bool
}

type LocalNetworkOption added in v0.22.1

type LocalNetworkOption func(*LocalNetworkConfig)

func WithTenGateway added in v0.22.1

func WithTenGateway() LocalNetworkOption

Jump to

Keyboard shortcuts

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