Documentation ¶
Index ¶
- func CalculatePayment(method string, auxData interface{}) (pmt uint64, er error)
- func CloseChannel(channelID [32]byte, key *ks.Key) (txid string, er error)
- func ConstructSignNSendTx(payment, gasLimit uint64, params [][]byte, methodName string, key *ks.Key) (txid string, er error)
- func GetBalance(address [20]byte) (ret *big.Int, er error)
- func OpenChannel(payment uint64, channelID [32]byte, key *ks.Key) (txid string, er error)
- func OwnerWithdrawal(weiAmt *big.Int, targetAddress gthCommon.Address, ownerKey *ks.Key) (txid string, er error)
- func RedeemSolution(channelID, soln string, tickOrStop TickOrStop, key *ks.Key) (txid string, er error)
- func RegisterNodeID(nodeID string, key *ks.Key) (txid string, er error)
- func TransferOwnership(newOwnerKey *ks.Key, ownerKey *ks.Key) (txid string, er error)
- func TuneParameters(paramName string, newParamValue *big.Int, ownerKey *ks.Key) (txid string, er error)
- func UnregisterNodeID(nodeID string, key *ks.Key) (txid string, er error)
- func UpdateNodeID(nodeID string, key *ks.Key) (txid string, er error)
- func Withdrawal(key *ks.Key) (txid string, er error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculatePayment ¶
func CloseChannel ¶
can be called by anyone after channelLifeSpan to allocate payout
func ConstructSignNSendTx ¶
func GetBalance ¶
called by CheckTxCostAgainstBalance
func OpenChannel ¶
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 TransferOwnership ¶
this tx is valid only when called by contract owner
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.