client

package
v0.0.0-...-11d313d Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculatePayment

func CalculatePayment(method string,
	auxData interface{}) (pmt uint64, er error)

func CloseChannel

func CloseChannel(channelID [32]byte, key *ks.Key) (txid string, er error)

can be called by anyone after channelLifeSpan to allocate payout

func ConstructSignNSendTx

func ConstructSignNSendTx(payment, gasLimit uint64, params [][]byte,
	methodName string, key *ks.Key) (txid string, er error)

func GetBalance

func GetBalance(address [20]byte) (ret *big.Int, er error)

called by CheckTxCostAgainstBalance

func OpenChannel

func OpenChannel(payment uint64,
	channelID [32]byte, key *ks.Key) (txid string, er error)

caller is channel "owner"

func OwnerWithdrawal

func OwnerWithdrawal(weiAmt *big.Int, targetAddress gthCommon.Address,
	ownerKey *ks.Key) (txid string, er error)

this tx is valid only when called by contract owner

func RedeemSolution

func RedeemSolution(channelID, soln string,
	tickOrStop TickOrStop, key *ks.Key) (txid string, er error)

func RegisterNodeID

func RegisterNodeID(nodeID string, key *ks.Key) (txid string, er error)

func TransferOwnership

func TransferOwnership(newOwnerKey *ks.Key,
	ownerKey *ks.Key) (txid string, er error)

this tx is valid only when called by contract owner

func TuneParameters

func TuneParameters(paramName string, newParamValue *big.Int,
	ownerKey *ks.Key) (txid string, er error)

this tx is valid only when called by contract owner

func UnregisterNodeID

func UnregisterNodeID(nodeID string, key *ks.Key) (txid string, er error)

func UpdateNodeID

func UpdateNodeID(nodeID string, key *ks.Key) (txid string, er error)

func Withdrawal

func Withdrawal(key *ks.Key) (txid string, er error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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