Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSignedVoucher ¶
func DecodeSignedVoucher(s string) (*paychtypes.SignedVoucher, error)
DecodeSignedVoucher decodes base64 encoded signed voucher.
Types ¶
type MessageBuilder ¶
type MessageBuilder interface { Create(to address.Address, initialAmount abi.TokenAmount) (*types.Message, error) Update(paych address.Address, voucher *paychtypes.SignedVoucher, secret []byte) (*types.Message, error) Settle(paych address.Address) (*types.Message, error) Collect(paych address.Address) (*types.Message, error) }
func Message ¶
func Message(version actorstypes.Version, from address.Address) MessageBuilder
type State ¶
type State interface { cbor.Marshaler Code() cid.Cid ActorKey() string ActorVersion() actorstypes.Version // Channel owner, who has funded the actor From() (address.Address, error) // Recipient of payouts from channel To() (address.Address, error) // Height at which the channel can be `Collected` SettlingAt() (abi.ChainEpoch, error) // Amount successfully redeemed through the payment channel, paid out on `Collect()` ToSend() (abi.TokenAmount, error) // Get total number of lanes LaneCount() (uint64, error) // Iterate lane states ForEachLaneState(cb func(idx uint64, dl LaneState) error) error GetState() interface{} }
State is an abstract version of payment channel state that works across versions
Source Files ¶
- actor.go
- message.v0.go
- message.v10.go
- message.v11.go
- message.v12.go
- message.v13.go
- message.v2.go
- message.v3.go
- message.v4.go
- message.v5.go
- message.v6.go
- message.v7.go
- message.v8.go
- message.v9.go
- state.v0.go
- state.v10.go
- state.v11.go
- state.v12.go
- state.v13.go
- state.v2.go
- state.v3.go
- state.v4.go
- state.v5.go
- state.v6.go
- state.v7.go
- state.v8.go
- state.v9.go
Click to show internal directories.
Click to hide internal directories.