Versions in this module Expand all Collapse all v0 v0.1.0 Dec 10, 2018 Changes in this version + var CallMode = "sync" + var EmptyAddressHex = "0x0000000000000000000000000000000000000000" + var ErrContractCreationEmptyCode = errors.New("Fail to deploy contract, please check your input") + var ErrContractCreationTimeout = errors.New("contract creating timeout") + var ErrDuplicatedTemplate = errors.New("template exists already") + var ErrEmptyAddress = errors.New("address is empty") + var ErrEmptyContractABI = errors.New("contract's ABI is empty") + var ErrEmptyContractAddress = errors.New("contract's address is empty") + var ErrEmptyContractCode = errors.New("contract's code is empty") + var ErrEmptyContractCreator = errors.New("contract's creator is empty") + var ErrEmptyJSONRPCID = errors.New("id of JSONRPC request cannot be null") + var ErrEmptyJSONRPCMethod = errors.New("method of JSONRPC request cannot be null") + var ErrEmptyMethod = errors.New("method is empty") + var ErrEmptyPassphrase = errors.New("passphrase is empty") + var ErrEmptyResult = errors.New("result is empty") + var ErrEmptyRingSignTransaction = errors.New("transaction is empty") + var ErrEmptySender = errors.New("sender is empty") + var ErrEmptySignature = errors.New("signature is empty") + var ErrEmptyTemplateABI = errors.New("template's abi is empty") + var ErrEmptyTemplateCode = errors.New("template's code is empty") + var ErrEmptyTemplateName = errors.New("template's name is empty") + var ErrEmptyTemplateSource = errors.New("template's source is empty") + var ErrEmptyTemplateVersion = errors.New("template's version is empty") + var ErrIncorrectPassphrase = errors.New("passphrase is incorrect") + var ErrInsufficientRingSignMember = errors.New("member of ring signature is insufficient (require more than 1)") + var ErrInvalidContractID = errors.New("contract's ID is invalid") + var ErrInvalidContractTemplateID = errors.New("contract's templateID is invalid") + var ErrInvalidOutputsNumber = errors.New("only the constant function that returns exactly one result could be read") + var ErrInvalidTemplateID = errors.New("template's id is invalid") + var ErrMembersExcludeSelf = errors.New("sender does not be contained in members") + var ErrMembersNotFound = errors.New("cannot found all members in database") + var ErrMethodNotConstant = errors.New("method is not constant") + var ErrNegativeValue = errors.New("value cannot be negative") + var ErrNoSuchAuditor = errors.New("no such auditor") + var ErrNoSuchMethod = errors.New("no such method") + var ErrNoSuchParam = errors.New("no such parameter") + var ErrNoSuchReceipt = errors.New("no such transaction receipt") + var ErrNoSuchTemplate = errors.New("no such template") + var ErrNoSuchTransaction = errors.New("no such transaction") + var ErrNonPositiveTransferValue = errors.New("value must be positive") + var ErrUnmatchedParams = errors.New("number of params is unmatched") + var ErrUnmatchedSignLenAndMembers = errors.New("length of signature and members is unmatched") + var ErrUnsupportedOutputType = errors.New("unsupported solidity output type") + var QueryServer = "tcp://localhost:46657" + func ParseArg(input abi.Argument, value interface{}) (interface{}, error) + func ParseArgs(methodName string, abiDef abi.ABI, params []interface{}) ([]interface{}, error)