mock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockFlowChState

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

NewMockFlowChState constructs a state for a flow channel with the set fixed values that satisfies the flowch.State interface.

func NewMockLaneState

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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