Documentation ¶
Index ¶
- func DevTestnet() networktest.Environment
- func LocalDevNetwork(opts ...LocalNetworkOption) networktest.Environment
- func LocalNetworkLiveL1(seqWallet wallet.Wallet, validatorWallets []wallet.Wallet, l1RPCURLs []string) networktest.Environment
- func LongRunningLocalNetwork(l1WSURL string) networktest.Environment
- func NewTestnetConnector(seqRPCAddr string, validatorRPCAddressses []string, faucetHTTPAddress string, ...) networktest.NetworkConnector
- func NewTestnetConnectorWithFaucetAccount(seqRPCAddr string, validatorRPCAddressses []string, faucetPK string, ...) networktest.NetworkConnector
- func SepoliaTestnet() networktest.Environment
- func UATTestnet() networktest.Environment
- type LocalNetworkConfig
- type LocalNetworkOption
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
Click to show internal directories.
Click to hide internal directories.