preset

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

Package preset defines preset backends that can be used to create backends of different types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

Backend is a backend with preset parameters. It can be created either with the geth testnet or ganache backends.

func GetAvalancheLocal

func GetAvalancheLocal() Backend

GetAvalancheLocal gets the avalanche local config. TODO: this should use avalanche.

func GetBSCTestnet

func GetBSCTestnet() Backend

GetBSCTestnet gets the bsc backend.

func GetBSCTestnetFakeSynDomain added in v0.0.53

func GetBSCTestnetFakeSynDomain() Backend

GetBSCTestnetFakeSynDomain gets the bsc backend.

func GetMaticMumbai

func GetMaticMumbai() Backend

GetMaticMumbai gets the matic backend.

func GetMaticMumbaiFakeSynDomain added in v0.0.53

func GetMaticMumbaiFakeSynDomain() Backend

GetMaticMumbaiFakeSynDomain gets the matic backend.

func GetRinkeby

func GetRinkeby() Backend

GetRinkeby gets the rinkeby preset backend.

func GetRinkebyFakeSynDomain added in v0.0.53

func GetRinkebyFakeSynDomain() Backend

GetRinkebyFakeSynDomain gets the rinkeby preset backend.

func (Backend) GetBigChainID

func (b Backend) GetBigChainID() *big.Int

GetBigChainID gets the chain id for a preset backend.

func (Backend) GetChainID

func (b Backend) GetChainID() uint

GetChainID gets the preset chain id as a uint.

func (Backend) Geth

func (b Backend) Geth(ctx context.Context, t *testing.T) *geth.Backend

Geth creates a new geth version of the preset backend.

Jump to

Keyboard shortcuts

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