Documentation ¶
Index ¶
- Constants
- func MewCheckExpired(dueBlock string, currentBlock string) *checkExpired
- func NewCandidateExists(publicKey string) *candidateExists
- func NewCandidateNotFound(publicKey string) *candidateNotFound
- func NewCheckInvalidLock() *checkInvalidLock
- func NewCheckUsed() *checkUsed
- func NewCoinAlreadyExists(coinSymbol string, coinId string) *coinAlreadyExists
- func NewCoinNotExists(coinSymbol string, coinId string) *coinNotExists
- func NewCoinReserveNotSufficient(coinSymbol string, coinId string, hasBipValue string, requiredBipValue string) *coinReserveNotSufficient
- func NewCoinReserveUnderflow(delta string, coinReserve string, currentReserve string, minCoinReserve string, ...) *coinReserveUnderflow
- func NewCoinSupplyOverflow(delta string, coinSupply string, currentSupply string, maxCoinSupply string, ...) *coinSupplyOverflow
- func NewCrossConvert(coinIdToSell string, coinToSell string, coinIdToBuy string, coinToBuy string) *crossConvert
- func NewDecodeError() *decodeError
- func NewDifferentCountAddressesAndWeights(countAddresses string, countWeights string) *differentCountAddressesAndWeights
- func NewDuplicatedAddresses(address string) *duplicatedAddresses
- func NewIncorrectMultiSignature() *incorrectMultiSignature
- func NewIncorrectTotalWeights(totalWeight, threshold string) *incorrectTotalWeights
- func NewIncorrectWeights(address string, weight string, maxWeight string) *incorrectWeights
- func NewInsufficientFunds(sender string, neededBipValue string, coinSymbol string, coinId string) *insufficientFunds
- func NewInsufficientStake(publicKey string, owner string, coinId string, coinSymbol string, ...) *insufficientStake
- func NewInsufficientWaitList(waitlistValue, neededValue string) *insufficientWaitList
- func NewInvalidCoinName(maxBytes string, gotBytes string) *invalidCoinName
- func NewInvalidCoinSymbol(pattern string, coinSymbol string) *invalidCoinSymbol
- func NewInvalidMultisendData(minQuantity string, maxQuantity string, gotQuantity string) *invalidMultisendData
- func NewIsNotOwnerOfCandidate(sender, pubKey string, owner, control string) *isNotOwnerOfCandidate
- func NewIsNotOwnerOfCoin(coinSymbol string, owner *string) *isNotOwnerOfCoin
- func NewMaximumValueToSellReached(maximumValueToSell string, neededSpendValue string, coinSymbol string, ...) *maximumValueToSellReached
- func NewMinimumValueToBuyReached(minimumValueToBuy string, willGetValue string, coinSymbol string, ...) *minimumValueToBuyReached
- func NewMultisigExists(address string) *multisigExists
- func NewMultisigNotExists(address string) *multisigNotExists
- func NewNewPublicKeyIsBad(publicKey, newPublicKey string) *newPublicKeyIsBad
- func NewNotEnoughMultisigVotes(neededVotes, gotVotes string) *notEnoughMultisigVotes
- func NewPublicKeyInBlockList(publicKey string) *publicKeyInBlockList
- func NewStakeNotFound(publicKey string, owner string, coinId string, coinSymbol string) *stakeNotFound
- func NewStakeShouldBePositive(stake string) *stakeShouldBePositive
- func NewTooHighGasPrice(maxCheckGasPrice, currentGasPrice string) *tooHighGasPrice
- func NewTooLargeOwnersList(countOwners string, maxCountOwners string) *tooLargeOwnersList
- func NewTooLongNonce(nonceBytes string, maxNonceBytes string) *tooLongNonce
- func NewTooLowGasPrice(minGasPrice string, gotGasPrice string) *tooLowGasPrice
- func NewTooLowStake(sender string, pubKey string, value string, coinId string, coinSymbol string) *tooLowStake
- func NewTxFromSenderAlreadyInMempool(sender string, block string) *txFromSenderAlreadyInMempool
- func NewTxPayloadTooLarge(maxPayloadLength string, gotPayloadLength string) *txPayloadTooLarge
- func NewTxServiceDataTooLarge(maxServiceDataLength string, gotServiceDataLength string) *txServiceDataTooLarge
- func NewTxTooLarge(maxTxLength string, gotTxLength string) *txTooLarge
- func NewWrongChainID(currentChainId string, gotChainId string) *wrongChainID
- func NewWrongCoinSupply(maxCoinSupply string, currentCoinSupply string, minInitialReserve string, ...) *wrongCoinSupply
- func NewWrongCommission(got string, min string, max string) *wrongCommission
- func NewWrongCrr(min string, max string, got string) *wrongCrr
- func NewWrongGasCoin(txCoinSymbol string, txCoinId string, ...) *wrongGasCoin
- func NewWrongHaltHeight(height string, pubkey string) *wrongHaltHeight
- func NewWrongNonce(expectedNonce string, gotNonce string) *wrongNonce
Constants ¶
View Source
const ( // general OK uint32 = 0 WrongNonce uint32 = 101 CoinNotExists uint32 = 102 CoinReserveNotSufficient uint32 = 103 TxTooLarge uint32 = 105 DecodeError uint32 = 106 InsufficientFunds uint32 = 107 TxPayloadTooLarge uint32 = 109 TxServiceDataTooLarge uint32 = 110 InvalidMultisendData uint32 = 111 CoinSupplyOverflow uint32 = 112 TxFromSenderAlreadyInMempool uint32 = 113 TooLowGasPrice uint32 = 114 WrongChainID uint32 = 115 CoinReserveUnderflow uint32 = 116 WrongHaltHeight uint32 = 117 HaltAlreadyExists uint32 = 118 // coin creation CoinAlreadyExists uint32 = 201 WrongCrr uint32 = 202 InvalidCoinSymbol uint32 = 203 InvalidCoinName uint32 = 204 WrongCoinSupply uint32 = 205 // recreate coin IsNotOwnerOfCoin uint32 = 206 // convert CrossConvert uint32 = 301 MaximumValueToSellReached uint32 = 302 MinimumValueToBuyReached uint32 = 303 // candidate CandidateExists uint32 = 401 WrongCommission uint32 = 402 CandidateNotFound uint32 = 403 StakeNotFound uint32 = 404 InsufficientStake uint32 = 405 IsNotOwnerOfCandidate uint32 = 406 IncorrectPubKey uint32 = 407 StakeShouldBePositive uint32 = 408 TooLowStake uint32 = 409 PublicKeyInBlockList uint32 = 410 NewPublicKeyIsBad uint32 = 411 InsufficientWaitList uint32 = 412 // check CheckInvalidLock uint32 = 501 CheckExpired uint32 = 502 CheckUsed uint32 = 503 TooHighGasPrice uint32 = 504 WrongGasCoin uint32 = 505 TooLongNonce uint32 = 506 // multisig IncorrectWeights uint32 = 601 MultisigExists uint32 = 602 MultisigNotExists uint32 = 603 IncorrectMultiSignature uint32 = 604 TooLargeOwnersList uint32 = 605 DuplicatedAddresses uint32 = 606 DifferentCountAddressesAndWeights uint32 = 607 IncorrectTotalWeights uint32 = 608 NotEnoughMultisigVotes uint32 = 609 )
Codes for transaction checks and delivers responses
Variables ¶
This section is empty.
Functions ¶
func MewCheckExpired ¶ added in v1.2.0
func NewCandidateExists ¶ added in v1.2.0
func NewCandidateExists(publicKey string) *candidateExists
func NewCandidateNotFound ¶ added in v1.2.0
func NewCandidateNotFound(publicKey string) *candidateNotFound
func NewCheckInvalidLock ¶ added in v1.2.0
func NewCheckInvalidLock() *checkInvalidLock
func NewCheckUsed ¶ added in v1.2.0
func NewCheckUsed() *checkUsed
func NewCoinAlreadyExists ¶ added in v1.2.0
func NewCoinNotExists ¶ added in v1.2.0
func NewCoinReserveNotSufficient ¶ added in v1.2.0
func NewCoinReserveUnderflow ¶ added in v1.2.0
func NewCoinSupplyOverflow ¶ added in v1.2.0
func NewCrossConvert ¶ added in v1.2.0
func NewDecodeError ¶ added in v1.2.0
func NewDecodeError() *decodeError
func NewDifferentCountAddressesAndWeights ¶ added in v1.2.0
func NewDuplicatedAddresses ¶ added in v1.2.0
func NewDuplicatedAddresses(address string) *duplicatedAddresses
func NewIncorrectMultiSignature ¶ added in v1.2.0
func NewIncorrectMultiSignature() *incorrectMultiSignature
func NewIncorrectTotalWeights ¶ added in v1.2.0
func NewIncorrectTotalWeights(totalWeight, threshold string) *incorrectTotalWeights
func NewIncorrectWeights ¶ added in v1.2.0
func NewInsufficientFunds ¶ added in v1.2.0
func NewInsufficientStake ¶ added in v1.2.0
func NewInsufficientWaitList ¶ added in v1.2.0
func NewInsufficientWaitList(waitlistValue, neededValue string) *insufficientWaitList
func NewInvalidCoinName ¶ added in v1.2.0
func NewInvalidCoinSymbol ¶ added in v1.2.0
func NewInvalidMultisendData ¶ added in v1.2.0
func NewIsNotOwnerOfCandidate ¶ added in v1.2.0
func NewIsNotOwnerOfCoin ¶ added in v1.2.0
func NewMaximumValueToSellReached ¶ added in v1.2.0
func NewMinimumValueToBuyReached ¶ added in v1.2.0
func NewMultisigExists ¶ added in v1.2.0
func NewMultisigExists(address string) *multisigExists
func NewMultisigNotExists ¶ added in v1.2.0
func NewMultisigNotExists(address string) *multisigNotExists
func NewNewPublicKeyIsBad ¶ added in v1.2.0
func NewNewPublicKeyIsBad(publicKey, newPublicKey string) *newPublicKeyIsBad
func NewNotEnoughMultisigVotes ¶ added in v1.2.0
func NewNotEnoughMultisigVotes(neededVotes, gotVotes string) *notEnoughMultisigVotes
func NewPublicKeyInBlockList ¶ added in v1.2.0
func NewPublicKeyInBlockList(publicKey string) *publicKeyInBlockList
func NewStakeNotFound ¶ added in v1.2.0
func NewStakeShouldBePositive ¶ added in v1.2.0
func NewStakeShouldBePositive(stake string) *stakeShouldBePositive
func NewTooHighGasPrice ¶ added in v1.2.0
func NewTooHighGasPrice(maxCheckGasPrice, currentGasPrice string) *tooHighGasPrice
func NewTooLargeOwnersList ¶ added in v1.2.0
func NewTooLongNonce ¶ added in v1.2.0
func NewTooLowGasPrice ¶ added in v1.2.0
func NewTooLowStake ¶ added in v1.2.0
func NewTxFromSenderAlreadyInMempool ¶ added in v1.2.0
func NewTxPayloadTooLarge ¶ added in v1.2.0
func NewTxServiceDataTooLarge ¶ added in v1.2.0
func NewTxTooLarge ¶ added in v1.2.0
func NewWrongChainID ¶ added in v1.2.0
func NewWrongCoinSupply ¶ added in v1.2.0
func NewWrongCommission ¶ added in v1.2.0
func NewWrongCrr ¶ added in v1.2.0
func NewWrongGasCoin ¶ added in v1.2.0
func NewWrongHaltHeight ¶ added in v1.2.0
func NewWrongNonce ¶ added in v1.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.