Versions in this module Expand all Collapse all v0 v0.1.2 Oct 9, 2023 v0.1.1 Sep 14, 2023 Changes in this version type Node + func (n *Node) GetLastBlockNum() (uint64, error) v0.1.0 Sep 1, 2023 Changes in this version + type Node struct + Address *types.Address + func New(messageService messageservice.MessageService, ...) Node + func (c *Node) CreateVoucher(channelId types.Destination, amount *big.Int) (payments.Voucher, error) + func (c *Node) ReceiveVoucher(v payments.Voucher) (payments.ReceiveVoucherSummary, error) + func (n *Node) Close() error + func (n *Node) CloseLedgerChannel(channelId types.Destination) (protocols.ObjectiveId, error) + func (n *Node) ClosePaymentChannel(channelId types.Destination) (protocols.ObjectiveId, error) + func (n *Node) CompletedObjectives() <-chan protocols.ObjectiveId + func (n *Node) CreateLedgerChannel(Counterparty types.Address, ChallengeDuration uint32, outcome outcome.Exit) (directfund.ObjectiveResponse, error) + func (n *Node) CreatePaymentChannel(Intermediaries []types.Address, CounterParty types.Address, ...) (virtualfund.ObjectiveResponse, error) + func (n *Node) FailedObjectives() <-chan protocols.ObjectiveId + func (n *Node) GetAllLedgerChannels() ([]query.LedgerChannelInfo, error) + func (n *Node) GetLedgerChannel(id types.Destination) (query.LedgerChannelInfo, error) + func (n *Node) GetPaymentChannel(id types.Destination) (query.PaymentChannelInfo, error) + func (n *Node) GetPaymentChannelsByLedger(ledgerId types.Destination) ([]query.PaymentChannelInfo, error) + func (n *Node) LedgerUpdatedChan(ledgerId types.Destination) <-chan query.LedgerChannelInfo + func (n *Node) LedgerUpdates() <-chan query.LedgerChannelInfo + func (n *Node) ObjectiveCompleteChan(id protocols.ObjectiveId) <-chan struct{} + func (n *Node) Pay(channelId types.Destination, amount *big.Int) + func (n *Node) PaymentChannelUpdatedChan(ledgerId types.Destination) <-chan query.PaymentChannelInfo + func (n *Node) PaymentUpdates() <-chan query.PaymentChannelInfo + func (n *Node) ReceivedVouchers() <-chan payments.Voucher + func (n *Node) Version() string