chain

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0, MIT Imports: 14 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 StartAnvil

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

Types

type ChainOpts

type ChainOpts struct {
	ChainUrl        string
	ChainStartBlock uint64
	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