paych

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LaneState

type LaneState struct {
	Closed   bool
	Redeemed types.BigInt
	Nonce    uint64
}

func (*LaneState) MarshalCBOR

func (t *LaneState) MarshalCBOR(w io.Writer) error

func (*LaneState) UnmarshalCBOR

func (t *LaneState) UnmarshalCBOR(r io.Reader) error

type PaymentChannelActorState

type PaymentChannelActorState struct {
	From address.Address
	To   address.Address

	ToSend types.BigInt

	ClosingAt      uint64
	MinCloseHeight uint64

	// TODO: needs to be map[uint64]*laneState
	// waiting on refmt#35 to be fixed
	LaneStates map[string]*LaneState
}

func (*PaymentChannelActorState) MarshalCBOR

func (t *PaymentChannelActorState) MarshalCBOR(w io.Writer) error

func (*PaymentChannelActorState) UnmarshalCBOR

func (t *PaymentChannelActorState) UnmarshalCBOR(r io.Reader) error

type PaymentChannelConstructorParams added in v0.0.3

type PaymentChannelConstructorParams struct {
	To address.Address
}

func (*PaymentChannelConstructorParams) MarshalCBOR added in v0.0.3

func (t *PaymentChannelConstructorParams) MarshalCBOR(w io.Writer) error

func (*PaymentChannelConstructorParams) UnmarshalCBOR added in v0.0.3

func (t *PaymentChannelConstructorParams) UnmarshalCBOR(r io.Reader) error

type PaymentChannelUpdateParams added in v0.0.3

type PaymentChannelUpdateParams struct {
	Sv     types.SignedVoucher
	Secret []byte
	Proof  []byte
}

func (*PaymentChannelUpdateParams) MarshalCBOR added in v0.0.3

func (t *PaymentChannelUpdateParams) MarshalCBOR(w io.Writer) error

func (*PaymentChannelUpdateParams) UnmarshalCBOR added in v0.0.3

func (t *PaymentChannelUpdateParams) UnmarshalCBOR(r io.Reader) error

type PaymentInfo

type PaymentInfo struct {
	PayChActor     address.Address
	Payer          address.Address
	ChannelMessage *cid.Cid

	Vouchers []*types.SignedVoucher
}

func (*PaymentInfo) MarshalCBOR

func (t *PaymentInfo) MarshalCBOR(w io.Writer) error

func (*PaymentInfo) UnmarshalCBOR

func (t *PaymentInfo) UnmarshalCBOR(r io.Reader) error

type PaymentVerifyParams added in v0.0.3

type PaymentVerifyParams struct {
	Extra []byte
	Proof []byte
}

func (*PaymentVerifyParams) MarshalCBOR added in v0.0.3

func (t *PaymentVerifyParams) MarshalCBOR(w io.Writer) error

func (*PaymentVerifyParams) UnmarshalCBOR added in v0.0.3

func (t *PaymentVerifyParams) UnmarshalCBOR(r io.Reader) error

Jump to

Keyboard shortcuts

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