cli

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2026 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DaySeconds = 86400
)

Variables

This section is empty.

Functions

func CheckFlags

func CheckFlags()

func MakeDeposit

func MakeDeposit()

func OpenChannel

func OpenChannel()

func QueryDeposit

func QueryDeposit()

func QueryPeerOsps

func QueryPeerOsps()

func RegisterStream

func RegisterStream()

func SendToken

func SendToken()

Types

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func (*Processor) ConfigXnet

func (p *Processor) ConfigXnet()

func (*Processor) ConfirmSettle

func (p *Processor) ConfirmSettle()

func (*Processor) ConfirmWithdraw

func (p *Processor) ConfirmWithdraw()

func (*Processor) DeleteBridgeRouting

func (p *Processor) DeleteBridgeRouting()

func (*Processor) DeleteNetBridge

func (p *Processor) DeleteNetBridge()

func (*Processor) DeleteNetToken

func (p *Processor) DeleteNetToken()

func (*Processor) DeregisterRouter

func (p *Processor) DeregisterRouter()

func (*Processor) EthPoolDeposit

func (p *Processor) EthPoolDeposit()

func (*Processor) EthPoolWithdraw

func (p *Processor) EthPoolWithdraw()

func (*Processor) IntendSettle

func (p *Processor) IntendSettle()

func (*Processor) IntendWithdraw

func (p *Processor) IntendWithdraw()

func (*Processor) RegisterRouter

func (p *Processor) RegisterRouter()

func (*Processor) SetBridgeRouting

func (p *Processor) SetBridgeRouting()

func (*Processor) SetNetBridge

func (p *Processor) SetNetBridge()

func (*Processor) SetNetId

func (p *Processor) SetNetId()

func (*Processor) SetNetToken

func (p *Processor) SetNetToken()

func (*Processor) Setup

func (p *Processor) Setup(db, ospkey, disputer bool)

func (*Processor) ViewAppOnChain

func (p *Processor) ViewAppOnChain()

func (*Processor) ViewChannel

func (p *Processor) ViewChannel()

func (*Processor) ViewChannelOnChain

func (p *Processor) ViewChannelOnChain()

func (*Processor) ViewDeposit

func (p *Processor) ViewDeposit()

func (*Processor) ViewPay

func (p *Processor) ViewPay()

func (*Processor) ViewPayOnChain

func (p *Processor) ViewPayOnChain()

func (*Processor) ViewRoute

func (p *Processor) ViewRoute()

func (*Processor) ViewTxOnChain

func (p *Processor) ViewTxOnChain()

func (*Processor) ViewXnet

func (p *Processor) ViewXnet()

func (*Processor) ViewXnetPay

func (p *Processor) ViewXnetPay()

type XnetConfig

type XnetConfig struct {
	NetId         uint64                       `json:"net_id"`         // local net id
	NetBridge     map[string]uint64            `json:"net_bridge"`     // bridgeAddr -> bridgeNetId
	BridgeRouting map[uint64]string            `json:"bridge_routing"` // destNetId -> nextHopBridgeAddr
	NetToken      map[string]map[uint64]string `json:"net_token"`      // localTokenAddr -> map(remoteNetId -> remoteTokenAddr)
}

func ParseXnetConfig

func ParseXnetConfig(path string) (*XnetConfig, error)

Jump to

Keyboard shortcuts

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