chain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployContracts

func DeployContracts(ctx context.Context, chainUrl, chainAuthToken, chainPk string) (na common.Address, vpa common.Address, ca common.Address, err error)

DeployContracts deploys the NitroAdjudicator, VirtualPaymentApp and ConsensusApp contracts.

func InitializeEthChainService

func InitializeEthChainService(chainOpts ChainOpts) (*chainservice.EthChainService, error)

func StartAnvil

func StartAnvil() (*exec.Cmd, error)

Types

type ChainOpts

type ChainOpts struct {
	ChainUrl       string
	ChainAuthToken string
	ChainPk        string
	NaAddress      common.Address
	VpaAddress     common.Address
	CaAddress      common.Address
}

Jump to

Keyboard shortcuts

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