Documentation ¶
Index ¶
- Constants
- Variables
- func ExitWithError(v ...interface{})
- func PrintError(v ...interface{})
- 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(op int, status int, info 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() error
Constants ¶
View Source
const ( ZCNSCSmartContractAddress = "6dba10422e368813802877a85039d3985d96760ed844092319743fb3a76712e0" MintFunc = "mint" BurnFunc = "burn" BurnWzcnTicketPath = "/v1/ether/burnticket/" BurnWzcnBurnEventsPath = "/v1/ether/burnevents/" BurnNativeTicketPath = "/v1/0chain/burnticket/" )
Variables ¶
View Source
var Logger logger.Logger
Functions ¶
func ExitWithError ¶
func ExitWithError(v ...interface{})
func PrintError ¶
func PrintError(v ...interface{})
Types ¶
type ZCNStatus ¶
type ZCNStatus struct { Wg *sync.WaitGroup Success bool Err error // contains filtered or unexported fields }
func NewZCNStatus ¶
func NewZCNStatus(value interface{}) (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.