{"modulePath":"github.com/MinterTeam/minter-go-node","version":"v1.2.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package code\n\n## Constants\n\n```go\nconst (\n\t// general\n\tOK                           uint32 = 0\n\tWrongNonce                   uint32 = 101\n\tCoinNotExists                uint32 = 102\n\tCoinReserveNotSufficient     uint32 = 103\n\tTxTooLarge                   uint32 = 105\n\tDecodeError                  uint32 = 106\n\tInsufficientFunds            uint32 = 107\n\tTxPayloadTooLarge            uint32 = 109\n\tTxServiceDataTooLarge        uint32 = 110\n\tInvalidMultisendData         uint32 = 111\n\tCoinSupplyOverflow           uint32 = 112\n\tTxFromSenderAlreadyInMempool uint32 = 113\n\tTooLowGasPrice               uint32 = 114\n\tWrongChainID                 uint32 = 115\n\tCoinReserveUnderflow         uint32 = 116\n\tWrongHaltHeight              uint32 = 117\n\tHaltAlreadyExists            uint32 = 118\n\n\t// coin creation\n\tCoinAlreadyExists uint32 = 201\n\tWrongCrr          uint32 = 202\n\tInvalidCoinSymbol uint32 = 203\n\tInvalidCoinName   uint32 = 204\n\tWrongCoinSupply   uint32 = 205\n\n\t// recreate coin\n\tIsNotOwnerOfCoin uint32 = 206\n\n\t// convert\n\tCrossConvert              uint32 = 301\n\tMaximumValueToSellReached uint32 = 302\n\tMinimumValueToBuyReached  uint32 = 303\n\n\t// candidate\n\tCandidateExists       uint32 = 401\n\tWrongCommission       uint32 = 402\n\tCandidateNotFound     uint32 = 403\n\tStakeNotFound         uint32 = 404\n\tInsufficientStake     uint32 = 405\n\tIsNotOwnerOfCandidate uint32 = 406\n\tIncorrectPubKey       uint32 = 407\n\tStakeShouldBePositive uint32 = 408\n\tTooLowStake           uint32 = 409\n\tPublicKeyInBlockList  uint32 = 410\n\tNewPublicKeyIsBad     uint32 = 411\n\tInsufficientWaitList  uint32 = 412\n\n\t// check\n\tCheckInvalidLock uint32 = 501\n\tCheckExpired     uint32 = 502\n\tCheckUsed        uint32 = 503\n\tTooHighGasPrice  uint32 = 504\n\tWrongGasCoin     uint32 = 505\n\tTooLongNonce     uint32 = 506\n\n\t// multisig\n\tIncorrectWeights                  uint32 = 601\n\tMultisigExists                    uint32 = 602\n\tMultisigNotExists                 uint32 = 603\n\tIncorrectMultiSignature           uint32 = 604\n\tTooLargeOwnersList                uint32 = 605\n\tDuplicatedAddresses               uint32 = 606\n\tDifferentCountAddressesAndWeights uint32 = 607\n\tIncorrectTotalWeights             uint32 = 608\n\tNotEnoughMultisigVotes            uint32 = 609\n)\n```\nCodes for transaction checks and delivers responses\n\n## Functions\n\n```go\nfunc MewCheckExpired(dueBlock string, currentBlock string) *checkExpired\n```\n\n```go\nfunc NewCandidateExists(publicKey string) *candidateExists\n```\n\n```go\nfunc NewCandidateNotFound(publicKey string) *candidateNotFound\n```\n\n```go\nfunc NewCheckInvalidLock() *checkInvalidLock\n```\n\n```go\nfunc NewCheckUsed() *checkUsed\n```\n\n```go\nfunc NewCoinAlreadyExists(coinSymbol string, coinId string) *coinAlreadyExists\n```\n\n```go\nfunc NewCoinNotExists(coinSymbol string, coinId string) *coinNotExists\n```\n\n```go\nfunc NewCoinReserveNotSufficient(coinSymbol string, coinId string, hasBipValue string, requiredBipValue string) *coinReserveNotSufficient\n```\n\n```go\nfunc NewCoinReserveUnderflow(delta string, coinReserve string, currentReserve string, minCoinReserve string, coinSymbol string, coinId string) *coinReserveUnderflow\n```\n\n```go\nfunc NewCoinSupplyOverflow(delta string, coinSupply string, currentSupply string, maxCoinSupply string, coinSymbol string, coinId string) *coinSupplyOverflow\n```\n\n```go\nfunc NewCrossConvert(coinIdToSell string, coinToSell string, coinIdToBuy string, coinToBuy string) *crossConvert\n```\n\n```go\nfunc NewDecodeError() *decodeError\n```\n\n```go\nfunc NewDifferentCountAddressesAndWeights(countAddresses string, countWeights string) *differentCountAddressesAndWeights\n```\n\n```go\nfunc NewDuplicatedAddresses(address string) *duplicatedAddresses\n```\n\n```go\nfunc NewIncorrectMultiSignature() *incorrectMultiSignature\n```\n\n```go\nfunc NewIncorrectTotalWeights(totalWeight, threshold string) *incorrectTotalWeights\n```\n\n```go\nfunc NewIncorrectWeights(address string, weight string, maxWeight string) *incorrectWeights\n```\n\n```go\nfunc NewInsufficientFunds(sender string, neededBipValue string, coinSymbol string, coinId string) *insufficientFunds\n```\n\n```go\nfunc NewInsufficientStake(publicKey string, owner string, coinId string, coinSymbol string, stakeValue string, neededValue string) *insufficientStake\n```\n\n```go\nfunc NewInsufficientWaitList(waitlistValue, neededValue string) *insufficientWaitList\n```\n\n```go\nfunc NewInvalidCoinName(maxBytes string, gotBytes string) *invalidCoinName\n```\n\n```go\nfunc NewInvalidCoinSymbol(pattern string, coinSymbol string) *invalidCoinSymbol\n```\n\n```go\nfunc NewInvalidMultisendData(minQuantity string, maxQuantity string, gotQuantity string) *invalidMultisendData\n```\n\n```go\nfunc NewIsNotOwnerOfCandidate(sender, pubKey string, owner, control string) *isNotOwnerOfCandidate\n```\n\n```go\nfunc NewIsNotOwnerOfCoin(coinSymbol string, owner *string) *isNotOwnerOfCoin\n```\n\n```go\nfunc NewMaximumValueToSellReached(maximumValueToSell string, neededSpendValue string, coinSymbol string, coinId string) *maximumValueToSellReached\n```\n\n```go\nfunc NewMinimumValueToBuyReached(minimumValueToBuy string, willGetValue string, coinSymbol string, coinId string) *minimumValueToBuyReached\n```\n\n```go\nfunc NewMultisigExists(address string) *multisigExists\n```\n\n```go\nfunc NewMultisigNotExists(address string) *multisigNotExists\n```\n\n```go\nfunc NewNewPublicKeyIsBad(publicKey, newPublicKey string) *newPublicKeyIsBad\n```\n\n```go\nfunc NewNotEnoughMultisigVotes(neededVotes, gotVotes string) *notEnoughMultisigVotes\n```\n\n```go\nfunc NewPublicKeyInBlockList(publicKey string) *publicKeyInBlockList\n```\n\n```go\nfunc NewStakeNotFound(publicKey string, owner string, coinId string, coinSymbol string) *stakeNotFound\n```\n\n```go\nfunc NewStakeShouldBePositive(stake string) *stakeShouldBePositive\n```\n\n```go\nfunc NewTooHighGasPrice(maxCheckGasPrice, currentGasPrice string) *tooHighGasPrice\n```\n\n```go\nfunc NewTooLargeOwnersList(countOwners string, maxCountOwners string) *tooLargeOwnersList\n```\n\n```go\nfunc NewTooLongNonce(nonceBytes string, maxNonceBytes string) *tooLongNonce\n```\n\n```go\nfunc NewTooLowGasPrice(minGasPrice string, gotGasPrice string) *tooLowGasPrice\n```\n\n```go\nfunc NewTooLowStake(sender string, pubKey string, value string, coinId string, coinSymbol string) *tooLowStake\n```\n\n```go\nfunc NewTxFromSenderAlreadyInMempool(sender string, block string) *txFromSenderAlreadyInMempool\n```\n\n```go\nfunc NewTxPayloadTooLarge(maxPayloadLength string, gotPayloadLength string) *txPayloadTooLarge\n```\n\n```go\nfunc NewTxServiceDataTooLarge(maxServiceDataLength string, gotServiceDataLength string) *txServiceDataTooLarge\n```\n\n```go\nfunc NewTxTooLarge(maxTxLength string, gotTxLength string) *txTooLarge\n```\n\n```go\nfunc NewWrongChainID(currentChainId string, gotChainId string) *wrongChainID\n```\n\n```go\nfunc NewWrongCoinSupply(maxCoinSupply string, currentCoinSupply string, minInitialReserve string, currentInitialReserve string, minInitialAmount string, maxInitialAmount string, currentInitialAmount string) *wrongCoinSupply\n```\n\n```go\nfunc NewWrongCommission(got string, min string, max string) *wrongCommission\n```\n\n```go\nfunc NewWrongCrr(min string, max string, got string) *wrongCrr\n```\n\n```go\nfunc NewWrongGasCoin(txCoinSymbol string, txCoinId string, checkGasCoinSymbol, checkGasCoinId string) *wrongGasCoin\n```\n\n```go\nfunc NewWrongHaltHeight(height string, pubkey string) *wrongHaltHeight\n```\n\n```go\nfunc NewWrongNonce(expectedNonce string, gotNonce string) *wrongNonce\n```\n\n","path":"github.com/MinterTeam/minter-go-node/core/code","name":"code","synopsis":"","isRedistributable":true}
