# Packages
---------------------------------------------------------------------------------------------
* Copyright (c) IBAX.
No description provided by the author
# Functions
BlockGetUnsent returns InfoBlock.
No description provided by the author
No description provided by the author
CreateSpentInfoBatches is creating record of model.
CreateTable is creating table.
CreateTransactionBatches is creating record of model.
CreateView is creating view table.
No description provided by the author
No description provided by the author
DeleteLogTransactionsByHash is deleting record by hash.
DeleteQueueTxByHash is deleting queue tx by hash.
No description provided by the author
DeleteTransactionByHash deleting transaction by hash.
DeleteTransactionIfUnused deleting unused transaction.
No description provided by the author
GetByHash returns TransactionsAttempts existence by hash.
DeleteUsedTransactions deleting used transaction.
DelExternalList deletes sent tx.
DropView is drop view table.
ExecCLBSchema is executing schema for off blockchainService.
ExecSchema is executing schema.
ExecSchemaEcosystem is executing ecosystem schema.
No description provided by the author
No description provided by the author
No description provided by the author
GetAllDelayedContractsForBlockID returns contracts that want to execute for blockID.
No description provided by the author
GetAllPlatformParameters returns all platform parameters.
No description provided by the author
GetAllSystemStatesIDs is retrieving all ecosystems ids.
GetAllUnsentTransactions is retrieving all unset transactions.
GetAllUnusedTransactions is retrieving all unused transactions.
GetAllUnverifiedAndUnusedTransactions is returns all unverified and unused transaction.
GetBlockchain is retrieving chain of blocks from database.
No description provided by the author
No description provided by the author
GetCandidateNode returns last good block.
GetColumnByID returns the value of the column from the table by id.
GetDB is returning gorm.DB.
GetEcoParam is ecosystem combustion percent, digits.
GetEcosystemTxPerDay returns the count of transactions per day for ecosystems, processes data for two days.
GetExcessCommonTokenMovementPerDay returns sum of amounts 24 hours.
GetExcessFromToTokenMovementPerDay returns from to pairs where sum of amount greather than fromToPerDayLimit per 24 hours.
GetExcessTokenMovementQtyPerBlock returns from to pairs where money transactions count greather than tokenMovementQtyPerBlockLimit per 24 hours.
GetExternalList returns the list of network tx.
GetKeysCount returns common count of keys.
GetLogTransactionsCount count records by transaction hash.
GetLogTxCount count records by ecosystemID.
No description provided by the author
GetMemberRoles return map[id]name all roles assign to member in ecosystem.
GetMetricValues returns aggregated metric values in the time interval.
No description provided by the author
GetNotificationsCount returns all unclosed notifications by users and ecosystem through role_id if userIDs is nil or empty then filter will be skipped.
No description provided by the author
GetQueuedTransactionsCount counting queued transactions.
No description provided by the author
GetRoleMembers return []id all members assign to roles in ecosystem.
No description provided by the author
No description provided by the author
No description provided by the author
GetTransactionCountAll count all transactions.
GetTransactionsCount count all transactions by hash.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GormClose is closing Gorm connection.
GormInit is initializes Gorm connection.
No description provided by the author
No description provided by the author
IncrementTxAttemptCount increases attempt column.
InitDB drop all tables and exec db schema.
No description provided by the author
KeyTableName returns name of key table.
MarkTransactionSent is marking transaction as sent.
MarkTransactionSentBatches is marking transaction as sent.
MarkTransactionUnusedAndUnverified is marking transaction unused and unverified.
MarkTransactionUsed is marking transaction as used.
MarkVerifiedAndNotUsedTransactionsUnverified is marking verified and unused transaction as unverified.
MemberHasRole returns true if member has role.
MemberHasRole returns true if member has role.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SetStopNow is updating daemon stopping time to now.
StartTransaction is beginning transaction.
No description provided by the author
UpdateSchema run update migrations.
No description provided by the author
UpdRollbackHash update model rollbacks_hash field.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
OrderASC as ASC.
OrderDESC as DESC.
ProgressComplete status of installation progress.
This constants contains values of transactions priority.
This constants contains values of transactions priority.
This constants contains values of transactions priority.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CodeFileFormatNotSupports = CodeType{40002, "File %s format is not supported", http.StatusOK, ""}.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CodeFileNotExists = CodeType{40001, "File %s not exists", http.StatusOK, ""}CodeFileFormatNotSupports = CodeType{40002, "File %s format is not supported", http.StatusOK, ""}.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrEcosystemNotFound = errors.New("Ecosystem not found")errContract = errType{"E_CONTRACT", "There is not %s contract", http.StatusNotFound}errDBNil = errType{"E_DBNIL", "DB is nil", defaultStatus}errDeletedKey = errType{"E_DELETEDKEY", "The key is deleted", http.StatusForbidden}errEcosystem = errType{"E_ECOSYSTEM", "Ecosystem %d doesn't exist", defaultStatus}errEmptyPublic = errType{"E_EMPTYPUBLIC", "Public key is undefined", http.StatusBadRequest}errKeyNotFound = errType{"E_KEYNOTFOUND", "Key has not been found", http.StatusNotFound}errEmptySign = errType{"E_EMPTYSIGN", "Signature is undefined", defaultStatus}errHashWrong = errType{"E_HASHWRONG", "Hash is incorrect", http.StatusBadRequest}errHashNotFound = errType{"E_HASHNOTFOUND", "Hash has not been found", defaultStatus}errHeavyPage = errType{"E_HEAVYPAGE", "This page is heavy", defaultStatus}errInstalled = errType{"E_INSTALLED", "Chain is already installed", defaultStatus}errInvalidWallet = errType{"E_INVALIDWALLET", "Wallet %s is not valid", http.StatusBadRequest}errLimitForsign = errType{"E_LIMITFORSIGN", "Length of forsign is too big (%d)", defaultStatus}errLimitTxSize = errType{"E_LIMITTXSIZE", "The size of tx is too big (%d)", defaultStatus}errNotFound = errType{"E_NOTFOUND", "Page not found", http.StatusNotFound}errNotFoundRecord = errType{"E_NOTFOUND", "Record not found", http.StatusNotFound}errParamNotFound = errType{"E_PARAMNOTFOUND", "Parameter %s has not been found", http.StatusNotFound}errPermission = errType{"E_PERMISSION", "Permission denied", http.StatusUnauthorized}errQuery = errType{"E_QUERY", "DB query is wrong", http.StatusInternalServerError}errRecovered = errType{"E_RECOVERED", "API recovered", http.StatusInternalServerError}errServer = errType{"E_SERVER", "Server error", defaultStatus}errSignature = errType{"E_SIGNATURE", "Signature is incorrect", http.StatusBadRequest}errUnknownSign = errType{"E_UNKNOWNSIGN", "Unknown signature", defaultStatus}errStateLogin = errType{"E_STATELOGIN", "%s is not a membership of ecosystem %s", http.StatusForbidden}errTableNotFound = errType{"E_TABLENOTFOUND", "Table %s has not been found", http.StatusNotFound}errToken = errType{"E_TOKEN", "Token is not valid", defaultStatus}errTokenExpired = errType{"E_TOKENEXPIRED", "Token is expired by %s", http.StatusUnauthorized}errUnauthorized = errType{"E_UNAUTHORIZED", "Unauthorized", http.StatusUnauthorized}errUndefineval = errType{"E_UNDEFINEVAL", "Value %s is undefined", defaultStatus}errUnknownUID = errType{"E_UNKNOWNUID", "Unknown uid", defaultStatus}errCLB = errType{"E_CLB", "Virtual Dedicated Ecosystem %d doesn't exist", defaultStatus}errCLBCreated = errType{"E_CLBCREATED", "Virtual Dedicated Ecosystem is already created", http.StatusBadRequest}errRequestNotFound = errType{"E_REQUESTNOTFOUND", "Request %s doesn't exist", defaultStatus}errUpdating = errType{"E_UPDATING", "Node is updating blockchain", http.StatusServiceUnavailable}errStopping = errType{"E_STOPPING", "Network is stopping", http.StatusServiceUnavailable}errNotImplemented = errType{"E_NOTIMPLEMENTED", "Not implemented", http.StatusNotImplemented}errParamMoneyDigit = errType{"E_PARAMMONEYDIGIT", "The number of decimal places cannot be exceeded ( %s )", http.StatusBadRequest}errDiffKey = CodeType{"E_DIFKEY", "Sender's key is different from tx key", defaultStatus}errBannded = errType{"E_BANNED", "The key is banned till %s", http.StatusForbidden}errCheckRole = errType{"E_CHECKROLE", "Access denied", http.StatusForbidden}errNewUser = errType{"E_NEWUSER", "Can't create a new user", http.StatusUnauthorized}.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DBConn is orm connection.
No description provided by the author
ErrDBConn database connection error.
ErrRecordNotFound is Not Found Record wrapper.
# Structs
AppParam is model.
No description provided by the author
BanRequests represents count of unique ban requests for node.
Binary represents record of {prefix}_binaries table.
BlockChain is model.
No description provided by the author
No description provided by the author
No description provided by the author
Confirmation is model.
Contract represents record of 1_contracts table.
Cron represents record of {prefix}_cron table.
DbTransaction is gorm.DB wrapper.
DelayedContract represents record of 1_delayed_contracts table.
No description provided by the author
Ecosystem is model.
EcosystemTx represents value of metric.
ExternalBlockchain represents a txinfo table.
No description provided by the author
No description provided by the author
History represent record of history table.
InfoBlock is model.
Install is model.
Key is model.
No description provided by the author
No description provided by the author
Language is model.
ListResult is a structure for the list result.
LogTransaction is model.
Member represents a ecosystem member.
Menu is model.
Metric represents record of system_metrics table.
MigrationHistory is model.
MoneyTransfer from to amount.
No description provided by the author
No description provided by the author
No description provided by the author
Notification structure.
No description provided by the author
OneRow is storing one row result.
Page is model.
No description provided by the author
PlatformParameter is model.
QueueBlock is model.
QueueTx is model.
No description provided by the author
Role is model.
RolesParticipants represents record of {prefix}roles_participants table.
RollbackTx is model.
SenderTxCount struct to scan query result.
Signature is model.
SingleResult is a structure for the single result.
Snippet is code snippet.
SpentInfo is model.
StateParameter is model.
StopDaemon is model.
Table is model.
Transaction is model.
TransactionsAttempts is model.
TransactionStatus is model.
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author