perun

package
v0.0.0-...-6d19cb1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	EthClient       *ethclient.Client
	PerunClient     *client.Client
	Bus             *net.Bus
	Listener        net.Listener
	ContractBackend channel.ContractInterface
	Wallet          *wtest.Wallet
	Account         *wtest.Account
}

func SetupClient

func SetupClient(ctx context.Context, cfg ClientConfig) (*Client, error)

type ClientConfig

type ClientConfig struct {
	PrivateKey    *ecdsa.PrivateKey
	Host          string
	ETHNodeURL    string
	Adjudicator   common.Address
	AssetHolder   common.Address
	DialerTimeout time.Duration
	Peers         []Peer
	TxFinality    uint64
	ChainID       *big.Int
}

type Peer

type Peer struct {
	Peer    wire.Address
	Address string
}

Jump to

Keyboard shortcuts

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