channels

package
v0.0.0-...-1a31f93 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	// Symbol of the currency
	Currency string
	// Address of the Ethereum token
	TokenAddress string
	// Capacity of the channel or amount of token that should be sent
	Amount float64
	// Amount that should be pushed to the other side in case of a channel creation
	PushAmount float64
}

This struct has a dualistic nature:

  1. Lightning channel creations "Currency", "Amount" and "PushAmount" need to be set
  1. Ethereum token faucet "Currency", "TokenAddress", "Amount" need to be set

    If the "TokenAddress" is set or the "Currency" equals "ETH" no channels will be created for that currency but the faucet will send tokens on request

type ChannelManager

type ChannelManager struct {
	Interval int `long:"manager.interval" default:"20" description:"Interval in seconds at which new channels should be opened"`
	// contains filtered or unexported fields
}

func (*ChannelManager) Init

func (manager *ChannelManager) Init(channels []Channel, xud *xudrpc.Xud, discord *discord.Discord, database *database.Database)

Jump to

Keyboard shortcuts

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