code

package
v1.2.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 1 Imported by: 4

Documentation

Index

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 MewCheckExpired(dueBlock string, currentBlock string) *checkExpired

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 NewCoinAlreadyExists(coinSymbol string, coinId string) *coinAlreadyExists

func NewCoinNotExists added in v1.2.0

func NewCoinNotExists(coinSymbol string, coinId string) *coinNotExists

func NewCoinReserveNotSufficient added in v1.2.0

func NewCoinReserveNotSufficient(coinSymbol string, coinId string, hasBipValue string, requiredBipValue string) *coinReserveNotSufficient

func NewCoinReserveUnderflow added in v1.2.0

func NewCoinReserveUnderflow(delta string, coinReserve string, currentReserve string, minCoinReserve string, coinSymbol string, coinId string) *coinReserveUnderflow

func NewCoinSupplyOverflow added in v1.2.0

func NewCoinSupplyOverflow(delta string, coinSupply string, currentSupply string, maxCoinSupply string, coinSymbol string, coinId string) *coinSupplyOverflow

func NewCrossConvert added in v1.2.0

func NewCrossConvert(coinIdToSell string, coinToSell string, coinIdToBuy string, coinToBuy string) *crossConvert

func NewDecodeError added in v1.2.0

func NewDecodeError() *decodeError

func NewDifferentCountAddressesAndWeights added in v1.2.0

func NewDifferentCountAddressesAndWeights(countAddresses string, countWeights string) *differentCountAddressesAndWeights

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 NewIncorrectWeights(address string, weight string, maxWeight string) *incorrectWeights

func NewInsufficientFunds added in v1.2.0

func NewInsufficientFunds(sender string, neededBipValue string, coinSymbol string, coinId string) *insufficientFunds

func NewInsufficientStake added in v1.2.0

func NewInsufficientStake(publicKey string, owner string, coinId string, coinSymbol string, stakeValue string, neededValue string) *insufficientStake

func NewInsufficientWaitList added in v1.2.0

func NewInsufficientWaitList(waitlistValue, neededValue string) *insufficientWaitList

func NewInvalidCoinName added in v1.2.0

func NewInvalidCoinName(maxBytes string, gotBytes string) *invalidCoinName

func NewInvalidCoinSymbol added in v1.2.0

func NewInvalidCoinSymbol(pattern string, coinSymbol string) *invalidCoinSymbol

func NewInvalidMultisendData added in v1.2.0

func NewInvalidMultisendData(minQuantity string, maxQuantity string, gotQuantity string) *invalidMultisendData

func NewIsNotOwnerOfCandidate added in v1.2.0

func NewIsNotOwnerOfCandidate(sender, pubKey string, owner, control string) *isNotOwnerOfCandidate

func NewIsNotOwnerOfCoin added in v1.2.0

func NewIsNotOwnerOfCoin(coinSymbol string, owner *string) *isNotOwnerOfCoin

func NewMaximumValueToSellReached added in v1.2.0

func NewMaximumValueToSellReached(maximumValueToSell string, neededSpendValue string, coinSymbol string, coinId string) *maximumValueToSellReached

func NewMinimumValueToBuyReached added in v1.2.0

func NewMinimumValueToBuyReached(minimumValueToBuy string, willGetValue string, coinSymbol string, coinId string) *minimumValueToBuyReached

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 NewStakeNotFound(publicKey string, owner string, coinId string, coinSymbol string) *stakeNotFound

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 NewTooLargeOwnersList(countOwners string, maxCountOwners string) *tooLargeOwnersList

func NewTooLongNonce added in v1.2.0

func NewTooLongNonce(nonceBytes string, maxNonceBytes string) *tooLongNonce

func NewTooLowGasPrice added in v1.2.0

func NewTooLowGasPrice(minGasPrice string, gotGasPrice string) *tooLowGasPrice

func NewTooLowStake added in v1.2.0

func NewTooLowStake(sender string, pubKey string, value string, coinId string, coinSymbol string) *tooLowStake

func NewTxFromSenderAlreadyInMempool added in v1.2.0

func NewTxFromSenderAlreadyInMempool(sender string, block string) *txFromSenderAlreadyInMempool

func NewTxPayloadTooLarge added in v1.2.0

func NewTxPayloadTooLarge(maxPayloadLength string, gotPayloadLength string) *txPayloadTooLarge

func NewTxServiceDataTooLarge added in v1.2.0

func NewTxServiceDataTooLarge(maxServiceDataLength string, gotServiceDataLength string) *txServiceDataTooLarge

func NewTxTooLarge added in v1.2.0

func NewTxTooLarge(maxTxLength string, gotTxLength string) *txTooLarge

func NewWrongChainID added in v1.2.0

func NewWrongChainID(currentChainId string, gotChainId string) *wrongChainID

func NewWrongCoinSupply added in v1.2.0

func NewWrongCoinSupply(maxCoinSupply string, currentCoinSupply string, minInitialReserve string, currentInitialReserve string, minInitialAmount string, maxInitialAmount string, currentInitialAmount string) *wrongCoinSupply

func NewWrongCommission added in v1.2.0

func NewWrongCommission(got string, min string, max string) *wrongCommission

func NewWrongCrr added in v1.2.0

func NewWrongCrr(min string, max string, got string) *wrongCrr

func NewWrongGasCoin added in v1.2.0

func NewWrongGasCoin(txCoinSymbol string, txCoinId string, checkGasCoinSymbol, checkGasCoinId string) *wrongGasCoin

func NewWrongHaltHeight added in v1.2.0

func NewWrongHaltHeight(height string, pubkey string) *wrongHaltHeight

func NewWrongNonce added in v1.2.0

func NewWrongNonce(expectedNonce string, gotNonce string) *wrongNonce

Types

This section is empty.

Jump to

Keyboard shortcuts

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