Documentation
¶
Index ¶
- func PrintSignedSimplexState(state *chain.SignedSimplexState)
- func SigSortedSimplexState(state *rpc.SignedSimplexState) (*chain.SignedSimplexState, error)
- type Processor
- func (p *Processor) ConfirmSettlePaymentChannel(cid ctype.CidType, waitMined bool) error
- func (p *Processor) ConfirmWithdraw(cid ctype.CidType) error
- func (p *Processor) GetCondPayInfoFromRegistry(payID ctype.PayIDType) (*big.Int, uint64, error)
- func (p *Processor) HandleConfirmSettleEventTx(tx *storage.DALTx, args ...interface{}) error
- func (p *Processor) IntendSettlePaymentChannel(cid ctype.CidType, waitMined bool) error
- func (p *Processor) IntendWithdraw(cidFrom ctype.CidType, amount *big.Int, cidTo ctype.CidType) error
- func (p *Processor) OnPaymentUpdatedInRegistry(event *payregistry.PayRegistryPayInfoUpdate) error
- func (p *Processor) SettleConditionalPay(payID ctype.PayIDType) error
- func (p *Processor) VetoWithdraw(cid ctype.CidType) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintSignedSimplexState ¶
func PrintSignedSimplexState(state *chain.SignedSimplexState)
func SigSortedSimplexState ¶
func SigSortedSimplexState(state *rpc.SignedSimplexState) (*chain.SignedSimplexState, error)
Types ¶
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor struct implements the actual disputing logic
func NewProcessor ¶
func NewProcessor( nodeConfig common.GlobalNodeConfig, transactor *eth.Transactor, transactorPool *eth.TransactorPool, routeController *route.Controller, monitorService intfs.MonitorService, dal *storage.DAL, isOSP bool, ) *Processor
NewProcessor creates a new Disputer struct
func (*Processor) ConfirmSettlePaymentChannel ¶
func (*Processor) GetCondPayInfoFromRegistry ¶
func (*Processor) HandleConfirmSettleEventTx ¶
func (*Processor) IntendSettlePaymentChannel ¶
func (*Processor) IntendWithdraw ¶
func (*Processor) OnPaymentUpdatedInRegistry ¶
func (p *Processor) OnPaymentUpdatedInRegistry(event *payregistry.PayRegistryPayInfoUpdate) error
OnPaymentUpdatedInRegistry reacts to a payment resolve event Currently not implemented since dispute by vouched result is not supported
func (*Processor) SettleConditionalPay ¶
SettleConditionalPay resolves a conditonal payment on chain in the PayRegistry
Click to show internal directories.
Click to hide internal directories.