Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Methods = builtin6.MethodsPaych
Functions ¶
func GetActorCodeID ¶
func GetActorCodeID(av specactors.Version) (cid.Cid, error)
Types ¶
type MessageBuilder ¶
type MessageBuilder interface { Create(to address.Address, initialAmount abi.TokenAmount) (*internal.Message, error) Update(paych address.Address, voucher *SignedVoucher, secret []byte) (*internal.Message, error) Settle(paych address.Address) (*internal.Message, error) Collect(paych address.Address) (*internal.Message, error) }
func Message ¶
func Message(version specactors.Version, from address.Address) MessageBuilder
type ModVerifyParams ¶
type ModVerifyParams = paych0.ModVerifyParams
type SignedVoucher ¶
type SignedVoucher = paych0.SignedVoucher
func DecodeSignedVoucher ¶
func DecodeSignedVoucher(s string) (*SignedVoucher, error)
DecodeSignedVoucher decodes base64 encoded signed voucher.
type State ¶
type State interface { cbor.Marshaler // 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
¶
Click to show internal directories.
Click to hide internal directories.