Documentation ¶
Index ¶
- Constants
- Variables
- func ExitWithError(v ...interface{})
- func PrintError(v ...interface{})
- type StatusBar
- type Wallet
- type ZCNStatus
- func (zcn *ZCNStatus) Begin()
- func (zcn *ZCNStatus) OnAuthComplete(_ *zcncore.Transaction, status int)
- func (zcn *ZCNStatus) OnAuthorizeSendComplete(status int, _ string, _ int64, _ string, creationDate int64, signature string)
- func (zcn *ZCNStatus) OnBalanceAvailable(status int, value int64, _ string)
- func (zcn *ZCNStatus) OnInfoAvailable(_ int, status int, config string, err string)
- func (zcn *ZCNStatus) OnSetupComplete(_ int, _ string)
- func (zcn *ZCNStatus) OnTransactionComplete(t *zcncore.Transaction, status int)
- func (zcn *ZCNStatus) OnVerifyComplete(t *zcncore.Transaction, status int)
- func (zcn *ZCNStatus) OnVoteComplete(status int, proposal string, err string)
- func (zcn *ZCNStatus) OnWalletCreateComplete(status int, wallet string, err string)
- func (zcn *ZCNStatus) Wait()
Constants ¶
View Source
const ( ZCNSCSmartContractAddress = "6dba10422e368813802877a85039d3985d96760ed844092319743fb3a76712e0" MintFunc = "mint" BurnFunc = "burn" BurnWzcnTicketPath = "/v1/ether/burnticket/get" BurnNativeTicketPath = "/v1/0chain/burnticket/get" )
Variables ¶
View Source
var Logger logger.Logger
Functions ¶
func ExitWithError ¶
func ExitWithError(v ...interface{})
func PrintError ¶
func PrintError(v ...interface{})
Types ¶
type Wallet ¶
Wallet represents a wallet that stores keys and additional info.
func AssignWallet ¶
func CreateWallet ¶
CreateWallet creates initialized Wallet.
func (*Wallet) ID ¶
ID returns the client id. NOTE: client id represents hex encoded SHA3-256 hash of the raw public key.
func (*Wallet) PrivateKey ¶ added in v1.3.5
PrivateKey returns the public key.
func (*Wallet) RegisterToMiners ¶
RegisterToMiners registers wallet to the miners by executing zcncore.RegisterToMiners.
func (*Wallet) StringJSON ¶
StringJSON returns marshalled to JSON string Wallet.ZCNWallet.
type ZCNStatus ¶
type ZCNStatus struct { Wg *sync.WaitGroup Success bool ErrMsg string // contains filtered or unexported fields }
func NewZCNStatus ¶
func NewZCNStatus() (zcns *ZCNStatus)
func (*ZCNStatus) OnAuthComplete ¶
func (zcn *ZCNStatus) OnAuthComplete(_ *zcncore.Transaction, status int)
func (*ZCNStatus) OnAuthorizeSendComplete ¶
func (*ZCNStatus) OnBalanceAvailable ¶
func (*ZCNStatus) OnInfoAvailable ¶
func (*ZCNStatus) OnSetupComplete ¶
func (*ZCNStatus) OnTransactionComplete ¶
func (zcn *ZCNStatus) OnTransactionComplete(t *zcncore.Transaction, status int)
func (*ZCNStatus) OnVerifyComplete ¶
func (zcn *ZCNStatus) OnVerifyComplete(t *zcncore.Transaction, status int)
func (*ZCNStatus) OnVoteComplete ¶
OnVoteComplete callback when a multisig vote is completed
func (*ZCNStatus) OnWalletCreateComplete ¶
Click to show internal directories.
Click to hide internal directories.