wallet

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ZCNSCSmartContractAddress = "6dba10422e368813802877a85039d3985d96760ed844092319743fb3a76712e0"
	MintFunc                  = "mint"
	BurnFunc                  = "burn"
	BurnWzcnTicketPath        = "/v1/ether/burnticket/"
	BurnWzcnBurnEventsPath    = "/v1/ether/burnevents/"
	BurnNativeTicketPath      = "/v1/0chain/burnticket/"
)

Variables

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) Begin

func (zcn *ZCNStatus) Begin()

func (*ZCNStatus) OnAuthComplete

func (zcn *ZCNStatus) OnAuthComplete(_ *zcncore.Transaction, status int)

func (*ZCNStatus) OnAuthorizeSendComplete

func (zcn *ZCNStatus) OnAuthorizeSendComplete(status int, _ string, _ int64, _ string, creationDate int64, signature string)

func (*ZCNStatus) OnBalanceAvailable

func (zcn *ZCNStatus) OnBalanceAvailable(status int, value int64, _ string)

func (*ZCNStatus) OnInfoAvailable

func (zcn *ZCNStatus) OnInfoAvailable(op int, status int, info string, err string)

func (*ZCNStatus) OnSetupComplete

func (zcn *ZCNStatus) OnSetupComplete(_ int, _ string)

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

func (zcn *ZCNStatus) OnVoteComplete(status int, proposal string, err string)

OnVoteComplete callback when a multisig vote is completed

func (*ZCNStatus) OnWalletCreateComplete

func (zcn *ZCNStatus) OnWalletCreateComplete(status int, wallet string, err string)

func (*ZCNStatus) Wait

func (zcn *ZCNStatus) Wait() error

Jump to

Keyboard shortcuts

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