mock

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockLaneState

func NewMockLaneState(redeemed big.Int, nonce uint64) paych.LaneState

NewMockLaneState constructs a state for a payment channel lane with the set fixed values that satisfies the paych.LaneState interface. Useful for populating lanes when calling NewMockPayChState

func NewMockPayChState

func NewMockPayChState(from address.Address,
	to address.Address,
	settlingAt abi.ChainEpoch,
	lanes map[uint64]paych.LaneState,
) paych.State

NewMockPayChState constructs a state for a payment channel with the set fixed values that satisfies the paych.State interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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