dispute

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

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 (p *Processor) ConfirmSettlePaymentChannel(cid ctype.CidType, waitMined bool) error

func (*Processor) ConfirmWithdraw

func (p *Processor) ConfirmWithdraw(cid ctype.CidType) error

func (*Processor) GetCondPayInfoFromRegistry

func (p *Processor) GetCondPayInfoFromRegistry(payID ctype.PayIDType) (*big.Int, uint64, error)

func (*Processor) HandleConfirmSettleEventTx

func (p *Processor) HandleConfirmSettleEventTx(tx *storage.DALTx, args ...interface{}) error

func (*Processor) IntendSettlePaymentChannel

func (p *Processor) IntendSettlePaymentChannel(cid ctype.CidType, waitMined bool) error

func (*Processor) IntendWithdraw

func (p *Processor) IntendWithdraw(cidFrom ctype.CidType, amount *big.Int, cidTo ctype.CidType) error

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

func (p *Processor) SettleConditionalPay(payID ctype.PayIDType) error

SettleConditionalPay resolves a conditonal payment on chain in the PayRegistry

func (*Processor) VetoWithdraw

func (p *Processor) VetoWithdraw(cid ctype.CidType) error

Jump to

Keyboard shortcuts

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