SYMBOL INDEX (3834 symbols across 363 files) FILE: cmd/config.go function init (line 52) | func init() { FILE: cmd/generateFirstBlock.go function init (line 42) | func init() { function genesisBlock (line 48) | func genesisBlock() ([]byte, error) { FILE: cmd/generateKeys.go constant fileMode (line 22) | fileMode = 0600 function createFile (line 57) | func createFile(filename string, data []byte) error { function createKeyPair (line 69) | func createKeyPair(privFilename, pubFilename string) (priv, pub []byte, ... FILE: cmd/rollback.go function init (line 61) | func init() { FILE: cmd/root.go function init (line 32) | func init() { function Execute (line 56) | func Execute() { function defautConfigPath (line 62) | func defautConfigPath() string { function loadConfig (line 73) | func loadConfig(cmd *cobra.Command, args []string) { function loadConfigWKey (line 80) | func loadConfigWKey(cmd *cobra.Command, args []string) { FILE: cmd/start.go function init (line 27) | func init() { FILE: cmd/stopNetwork.go function init (line 60) | func init() { FILE: main.go function main (line 13) | func main() { FILE: packages/api/api.go constant multipartBuf (line 24) | multipartBuf = 100000 constant multipartFormData (line 25) | multipartFormData = "multipart/form-data" constant contentType (line 26) | contentType = "Content-Type" type Mode (line 29) | type Mode struct type Client (line 36) | type Client struct method Prefix (line 44) | func (c *Client) Prefix() string { function jsonResponse (line 48) | func jsonResponse(w http.ResponseWriter, v any) { function errorResponse (line 59) | func errorResponse(w http.ResponseWriter, err error, code ...int) { type formValidator (line 76) | type formValidator interface type nopeValidator (line 80) | type nopeValidator struct method Validate (line 82) | func (np nopeValidator) Validate(r *http.Request) error { function parseForm (line 86) | func parseForm(r *http.Request, f formValidator) (err error) { function isMultipartForm (line 104) | func isMultipartForm(r *http.Request) bool { type hexValue (line 108) | type hexValue struct method Bytes (line 112) | func (hv hexValue) Bytes() []byte { method UnmarshalText (line 116) | func (hv *hexValue) UnmarshalText(v []byte) (err error) { FILE: packages/api/api_test.go function PrivateToPublicHex (line 42) | func PrivateToPublicHex(hexkey string) (string, error) { function sendRawRequest (line 54) | func sendRawRequest(rtype, url string, form *url.Values) ([]byte, error) { function sendRequest (line 87) | func sendRequest(rtype, url string, form *url.Values, v any) error { function sendGet (line 96) | func sendGet(url string, form *url.Values, v any) error { function sendPost (line 100) | func sendPost(url string, form *url.Values, v any) error { function keyLogin (line 104) | func keyLogin(state int64) (err error) { function keyLoginToken (line 153) | func keyLoginToken(state int64) (err error) { function keyLoginex (line 204) | func keyLoginex(state int64, m ...string) (err error) { function waitTx (line 253) | func waitTx(hash string) (blockid int64, penalty int64, err error) { function randName (line 301) | func randName(prefix string) string { type getter (line 305) | type getter interface type contractParams (line 309) | type contractParams method Get (line 311) | func (cp *contractParams) Get(key string) string { method GetRaw (line 318) | func (cp *contractParams) GetRaw(key string) any { function postTxResult (line 322) | func postTxResult(name string, form getter) (id int64, msg string, err e... function postTxResultMultipart (line 414) | func postTxResultMultipart(name string, form getter) (id int64, msg stri... function postSignTxResult (line 522) | func postSignTxResult(name string, form getter) (id int64, msg string, e... function postTxResult2 (line 612) | func postTxResult2(name string, form getter) (id int64, msg string, err ... function RawToString (line 702) | func RawToString(input json.RawMessage) string { function postTx (line 707) | func postTx(txname string, form *url.Values) error { function postTxMultipart (line 712) | func postTxMultipart(txname string, form *url.Values) error { function postTransferSelfTxMultipart (line 717) | func postTransferSelfTxMultipart(form *url.Values) error { function postUTXOTxMultipart (line 722) | func postUTXOTxMultipart(form *url.Values) error { function postTransferSelfTxResult (line 727) | func postTransferSelfTxResult(form getter) (id int64, msg string, err er... function postUTXOTxResult (line 778) | func postUTXOTxResult(form getter) (id int64, msg string, err error) { function postSignTx (line 827) | func postSignTx(txname string, form *url.Values) error { function cutErr (line 832) | func cutErr(err error) string { function TestGetAvatar (line 840) | func TestGetAvatar(t *testing.T) { function sendMultipart (line 863) | func sendMultipart(url string, files map[string][]byte, v any) error { FILE: packages/api/app_content.go type appContentResult (line 20) | type appContentResult struct method getAppContentHandler (line 26) | func (m Mode) getAppContentHandler(w http.ResponseWriter, r *http.Reques... FILE: packages/api/app_content_test.go function TestAppContent (line 14) | func TestAppContent(t *testing.T) { FILE: packages/api/appparam.go method GetAppParamHandler (line 19) | func (m Mode) GetAppParamHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/appparams.go type appParamsResult (line 20) | type appParamsResult struct type appParamsForm (line 25) | type appParamsForm struct method Validate (line 30) | func (f *appParamsForm) Validate(r *http.Request) error { method getAppParamsHandler (line 34) | func (m Mode) getAppParamsHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/auth.go type JWTClaims (line 32) | type JWTClaims struct function generateJWTToken (line 41) | func generateJWTToken(claims JWTClaims) (string, error) { function parseJWTToken (line 46) | func parseJWTToken(header string) (*jwt.Token, error) { function getClientFromToken (line 65) | func getClientFromToken(token *jwt.Token, ecosysNameService types.Ecosys... type authStatusResponse (line 91) | type authStatusResponse struct function getAuthStatus (line 96) | func getAuthStatus(w http.ResponseWriter, r *http.Request) { function InitJwtSecret (line 114) | func InitJwtSecret(secret []byte) { FILE: packages/api/balance.go type balanceResult (line 19) | type balanceResult struct method getBalanceHandler (line 28) | func (m Mode) getBalanceHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/balance_test.go function TestBalance (line 14) | func TestBalance(t *testing.T) { function TestMoneyMoreSend (line 39) | func TestMoneyMoreSend(t *testing.T) { FILE: packages/api/block.go type maxBlockResult (line 23) | type maxBlockResult struct function getMaxBlockHandler (line 27) | func getMaxBlockHandler(w http.ResponseWriter, r *http.Request) { type blockInfoResult (line 46) | type blockInfoResult struct function getBlockInfoHandler (line 57) | func getBlockInfoHandler(w http.ResponseWriter, r *http.Request) { type TxInfo (line 87) | type TxInfo struct type blocksTxInfoForm (line 94) | type blocksTxInfoForm struct method Validate (line 99) | func (f *blocksTxInfoForm) Validate(r *http.Request) error { function getBlocksTxInfoHandler (line 113) | func getBlocksTxInfoHandler(w http.ResponseWriter, r *http.Request) { type TxDetailedInfo (line 178) | type TxDetailedInfo struct type BlockHeaderInfo (line 188) | type BlockHeaderInfo struct type BlockDetailedInfo (line 199) | type BlockDetailedInfo struct function getBlocksDetailedInfoHandler (line 217) | func getBlocksDetailedInfoHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/block_test.go function TestGetMaxBlockID (line 14) | func TestGetMaxBlockID(t *testing.T) { function TestGetBlockInfo (line 20) | func TestGetBlockInfo(t *testing.T) { FILE: packages/api/common_forms.go constant defaultPaginatorLimit (line 18) | defaultPaginatorLimit = 25 constant maxPaginatorLimit (line 19) | maxPaginatorLimit = 1000 type paginatorForm (line 22) | type paginatorForm struct method Validate (line 29) | func (f *paginatorForm) Validate(r *http.Request) error { type paramsForm (line 44) | type paramsForm struct method AcceptNames (line 49) | func (f *paramsForm) AcceptNames() map[string]bool { type ecosystemForm (line 60) | type ecosystemForm struct method Validate (line 66) | func (f *ecosystemForm) Validate(r *http.Request) error { FILE: packages/api/config.go type configOptionHandler (line 20) | type configOptionHandler function getConfigOptionHandler (line 22) | func getConfigOptionHandler(w http.ResponseWriter, r *http.Request) { function replaceHttpSchemeToWs (line 41) | func replaceHttpSchemeToWs(centrifugoURL string) string { function centrifugoAddressHandler (line 50) | func centrifugoAddressHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/content.go type contentResult (line 31) | type contentResult struct type hashResult (line 39) | type hashResult struct constant strTrue (line 44) | strTrue = `true` constant strOne (line 45) | strOne = `1` function initVars (line 50) | func initVars(r *http.Request) *map[string]string { function parseEcosystem (line 101) | func parseEcosystem(in string) (string, string) { function pageValue (line 109) | func pageValue(r *http.Request) (*sqldb.Page, string, error) { function getPage (line 142) | func getPage(r *http.Request) (result *contentResult, err error) { function getPageHandler (line 206) | func getPageHandler(w http.ResponseWriter, r *http.Request) { function getPageHashHandler (line 216) | func getPageHashHandler(w http.ResponseWriter, r *http.Request) { function getMenuHandler (line 240) | func getMenuHandler(w http.ResponseWriter, r *http.Request) { type jsonContentForm (line 280) | type jsonContentForm struct method Validate (line 285) | func (f *jsonContentForm) Validate(r *http.Request) error { function jsonContentHandler (line 292) | func jsonContentHandler(w http.ResponseWriter, r *http.Request) { function getSourceHandler (line 310) | func getSourceHandler(w http.ResponseWriter, r *http.Request) { function getPageValidatorsCountHandler (line 324) | func getPageValidatorsCountHandler(w http.ResponseWriter, r *http.Reques... FILE: packages/api/content_test.go function TestContentHash (line 18) | func TestContentHash(t *testing.T) { function TestContent (line 43) | func TestContent(t *testing.T) { FILE: packages/api/context.go type contextKey (line 16) | type contextKey constant contextKeyLogger (line 19) | contextKeyLogger contextKey = iota constant contextKeyToken (line 20) | contextKeyToken constant contextKeyClient (line 21) | contextKeyClient function setContext (line 24) | func setContext(r *http.Request, key, value any) *http.Request { function getContext (line 28) | func getContext(r *http.Request, key any) any { function setLogger (line 32) | func setLogger(r *http.Request, log *log.Entry) *http.Request { function getLogger (line 36) | func getLogger(r *http.Request) *log.Entry { function setToken (line 43) | func setToken(r *http.Request, token *jwt.Token) *http.Request { function getToken (line 47) | func getToken(r *http.Request) *jwt.Token { function setClient (line 54) | func setClient(r *http.Request, client *Client) *http.Request { function getClient (line 58) | func getClient(r *http.Request) *Client { FILE: packages/api/contract_test.go function init (line 22) | func init() { function TestBin (line 26) | func TestBin(t *testing.T) { function TestTransferSelf (line 34) | func TestTransferSelf(t *testing.T) { function TestUTXO (line 41) | func TestUTXO(t *testing.T) { function TestMath (line 48) | func TestMath(t *testing.T) { function TestArray (line 68) | func TestArray(t *testing.T) { function TestCheckCondition (line 76) | func TestCheckCondition(t *testing.T) { function TestDBFindContract (line 95) | func TestDBFindContract(t *testing.T) { function TestErrorContract (line 155) | func TestErrorContract(t *testing.T) { function TestUpdate_HonorNodes (line 190) | func TestUpdate_HonorNodes(t *testing.T) { function TestCrashContract (line 206) | func TestCrashContract(t *testing.T) { function TestHardContract (line 234) | func TestHardContract(t *testing.T) { function TestExistContract (line 258) | func TestExistContract(t *testing.T) { function TestDataContract (line 279) | func TestDataContract(t *testing.T) { function TestTypesContract (line 306) | func TestTypesContract(t *testing.T) { function TestNewContracts (line 329) | func TestNewContracts(t *testing.T) { function timeMustParse (line 808) | func timeMustParse(value string) string { function TestEditContracts (line 813) | func TestEditContracts(t *testing.T) { function TestNewTableWithEmptyName (line 883) | func TestNewTableWithEmptyName(t *testing.T) { function TestContracts (line 923) | func TestContracts(t *testing.T) { function TestSignature (line 938) | func TestSignature(t *testing.T) { function TestImport (line 1063) | func TestImport(t *testing.T) { function TestEditContracts_ChangeWallet (line 1078) | func TestEditContracts_ChangeWallet(t *testing.T) { function TestUpdateFunc (line 1151) | func TestUpdateFunc(t *testing.T) { function TestGlobalVars (line 1247) | func TestGlobalVars(t *testing.T) { function TestContractChain (line 1336) | func TestContractChain(t *testing.T) { function TestLoopCond (line 1416) | func TestLoopCond(t *testing.T) { function TestRand (line 1486) | func TestRand(t *testing.T) { function TestKillNode (line 1516) | func TestKillNode(t *testing.T) { function TestLoopCondExt (line 1524) | func TestLoopCondExt(t *testing.T) { function TestBlockTransactions (line 1575) | func TestBlockTransactions(t *testing.T) { function TestCost (line 1597) | func TestCost(t *testing.T) { function TestHard (line 1652) | func TestHard(t *testing.T) { function TestInsert (line 1676) | func TestInsert(t *testing.T) { function TestErrors (line 1704) | func TestErrors(t *testing.T) { function TestExternalNetwork (line 1768) | func TestExternalNetwork(t *testing.T) { function TestApos (line 1851) | func TestApos(t *testing.T) { function TestCondition (line 1874) | func TestCondition(t *testing.T) { function TestCurrentKeyFromAccount (line 1924) | func TestCurrentKeyFromAccount(t *testing.T) { FILE: packages/api/contracts.go type contractsResult (line 18) | type contractsResult struct function getContractsHandler (line 23) | func getContractsHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/data.go constant binaryColumn (line 26) | binaryColumn = "data" function compareHash (line 28) | func compareHash(data []byte, urlHash string) bool { function getDataHandler (line 43) | func getDataHandler(w http.ResponseWriter, r *http.Request) { function getBinaryHandler (line 73) | func getBinaryHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/ecosystem.go function getEcosystemNameHandler (line 18) | func getEcosystemNameHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/ecosystem_params.go type paramResult (line 21) | type paramResult struct type paramsResult (line 28) | type paramsResult struct method getEcosystemParamsHandler (line 32) | func (m Mode) getEcosystemParamsHandler(w http.ResponseWriter, r *http.R... method getEcosystemParamHandler (line 69) | func (m Mode) getEcosystemParamHandler(w http.ResponseWriter, r *http.Re... FILE: packages/api/ecosystem_test.go function TestNewEcosystem (line 18) | func TestNewEcosystem(t *testing.T) { function TestEditEcosystem (line 38) | func TestEditEcosystem(t *testing.T) { function TestPlatformParams (line 105) | func TestPlatformParams(t *testing.T) { function TestSystemParams (line 120) | func TestSystemParams(t *testing.T) { function TestSomeSystemParam (line 138) | func TestSomeSystemParam(t *testing.T) { function TestEcosystemParam (line 156) | func TestEcosystemParam(t *testing.T) { function TestAppParams (line 182) | func TestAppParams(t *testing.T) { FILE: packages/api/errors.go type errType (line 61) | type errType struct method Error (line 67) | func (et errType) Error() string { method Errorf (line 71) | func (et errType) Errorf(v ...any) errType { FILE: packages/api/getcontract.go type contractField (line 20) | type contractField struct type getContractResult (line 26) | type getContractResult struct function getContractInfoHandler (line 40) | func getContractInfoHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/getuid.go constant jwtUIDExpire (line 21) | jwtUIDExpire = time.Second * 5 type getUIDResult (line 23) | type getUIDResult struct function getUIDHandler (line 35) | func getUIDHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/getuid_test.go function TestGetUID (line 19) | func TestGetUID(t *testing.T) { function TestNetwork (line 49) | func TestNetwork(t *testing.T) { FILE: packages/api/history.go constant rollbackHistoryLimit (line 19) | rollbackHistoryLimit = 100 type historyResult (line 21) | type historyResult struct function getHistoryHandler (line 25) | func getHistoryHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/history_test.go function TestHistory (line 13) | func TestHistory(t *testing.T) { FILE: packages/api/import_test.go function ImportApps (line 22) | func ImportApps(path, appname string) error { function TestImportApps (line 58) | func TestImportApps(t *testing.T) { FILE: packages/api/interface.go type componentModel (line 18) | type componentModel interface function getPageRowHandler (line 23) | func getPageRowHandler(w http.ResponseWriter, r *http.Request) { function getMenuRowHandler (line 27) | func getMenuRowHandler(w http.ResponseWriter, r *http.Request) { function getSnippetRowHandler (line 31) | func getSnippetRowHandler(w http.ResponseWriter, r *http.Request) { function getInterfaceRow (line 35) | func getInterfaceRow(w http.ResponseWriter, r *http.Request, c component... FILE: packages/api/interface_test.go function TestGetInterfaceRow (line 18) | func TestGetInterfaceRow(t *testing.T) { function TestNewMenuNoError (line 56) | func TestNewMenuNoError(t *testing.T) { function TestEditMenuNoError (line 69) | func TestEditMenuNoError(t *testing.T) { function TestAppendMenuNoError (line 82) | func TestAppendMenuNoError(t *testing.T) { FILE: packages/api/lang_test.go function TestLang (line 17) | func TestLang(t *testing.T) { FILE: packages/api/limit_test.go function TestLimit (line 20) | func TestLimit(t *testing.T) { FILE: packages/api/list.go type listResult (line 30) | type listResult struct type sumResult (line 35) | type sumResult struct type listForm (line 39) | type listForm struct method Validate (line 55) | func (f *listForm) Validate(r *http.Request) error { type listWhereForm (line 44) | type listWhereForm struct type SumWhereForm (line 50) | type SumWhereForm struct method Validate (line 62) | func (f *SumWhereForm) Validate(r *http.Request) error { function checkAccess (line 69) | func checkAccess(tableName, columns string, client *Client) (table strin... function getListHandler (line 85) | func getListHandler(w http.ResponseWriter, r *http.Request) { function getListWhereHandler (line 135) | func getListWhereHandler(w http.ResponseWriter, r *http.Request) { function getsumWhereHandler (line 247) | func getsumWhereHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/list_test.go function TestList (line 16) | func TestList(t *testing.T) { FILE: packages/api/login.go function nonceSalt (line 31) | func nonceSalt() string { type loginForm (line 35) | type loginForm struct method Validate (line 54) | func (f *loginForm) Validate(r *http.Request) error { type publicKeyValue (line 44) | type publicKeyValue struct method UnmarshalText (line 48) | func (pk *publicKeyValue) UnmarshalText(v []byte) (err error) { type loginResult (line 62) | type loginResult struct type rolesResult (line 75) | type rolesResult struct method loginHandler (line 80) | func (m Mode) loginHandler(w http.ResponseWriter, r *http.Request) { function getUID (line 339) | func getUID(r *http.Request) (string, error) { function checkRoleFromParam (line 356) | func checkRoleFromParam(role, ecosystemID int64, account string) (int64,... function allowCreateUser (line 383) | func allowCreateUser(c *Client) bool { FILE: packages/api/member.go function getAvatarHandler (line 20) | func getAvatarHandler(w http.ResponseWriter, r *http.Request) { function getMemberHandler (line 79) | func getMemberHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/metrics.go type blockMetric (line 24) | type blockMetric struct type blockMetricByNode (line 28) | type blockMetricByNode struct type txMetric (line 33) | type txMetric struct type ecosysMetric (line 37) | type ecosysMetric struct type keyMetric (line 41) | type keyMetric struct type honorNodeMetric (line 45) | type honorNodeMetric struct type memMetric (line 49) | type memMetric struct type banMetric (line 54) | type banMetric struct function blocksCountHandler (line 59) | func blocksCountHandler(w http.ResponseWriter, r *http.Request) { function blocksCountByNodeHandler (line 79) | func blocksCountByNodeHandler(w http.ResponseWriter, r *http.Request) { function txCountHandler (line 115) | func txCountHandler(w http.ResponseWriter, r *http.Request) { function ecosysCountHandler (line 127) | func ecosysCountHandler(w http.ResponseWriter, r *http.Request) { function keysCountHandler (line 139) | func keysCountHandler(w http.ResponseWriter, r *http.Request) { function honorNodesCountHandler (line 151) | func honorNodesCountHandler(w http.ResponseWriter, _ *http.Request) { function memStatHandler (line 159) | func memStatHandler(w http.ResponseWriter, _ *http.Request) { function banStatHandler (line 166) | func banStatHandler(w http.ResponseWriter, _ *http.Request) { FILE: packages/api/middlewares.go function authRequire (line 23) | func authRequire(next func(w http.ResponseWriter, r *http.Request)) func... function loggerFromRequest (line 37) | func loggerFromRequest(r *http.Request) *log.Entry { function loggerMiddleware (line 45) | func loggerMiddleware(next http.Handler) http.Handler { function recoverMiddleware (line 54) | func recoverMiddleware(next http.Handler) http.Handler { function nodeStateMiddleware (line 72) | func nodeStateMiddleware(next http.Handler) http.Handler { function tokenMiddleware (line 92) | func tokenMiddleware(next http.Handler) http.Handler { method clientMiddleware (line 109) | func (m Mode) clientMiddleware(next http.Handler) http.Handler { function statsdMiddleware (line 129) | func statsdMiddleware(next http.Handler) http.Handler { FILE: packages/api/network.go type HonorNodeJSON (line 18) | type HonorNodeJSON struct type NetworkResult (line 26) | type NetworkResult struct function GetNodesJSON (line 34) | func GetNodesJSON() []HonorNodeJSON { function getNetworkHandler (line 47) | func getNetworkHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/node.go function nodeContractHandler (line 13) | func nodeContractHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/platform_params.go function getPlatformParamsHandler (line 17) | func getPlatformParamsHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/read_test.go function TestRead (line 17) | func TestRead(t *testing.T) { FILE: packages/api/request.go type Connect (line 29) | type Connect struct method SendGet (line 83) | func (connect *Connect) SendGet(url string, form *url.Values, v any) e... method SendPost (line 87) | func (connect *Connect) SendPost(url string, form *url.Values, v any) ... method SendMultipart (line 91) | func (connect *Connect) SendMultipart(url string, files map[string][]b... method WaitTx (line 139) | func (connect *Connect) WaitTx(hash string) (int64, error) { method WaitTxList (line 173) | func (connect *Connect) WaitTxList(hashes []string) (map[string]WaitRe... method PostTxResult (line 212) | func (connect *Connect) PostTxResult(name string, form *url.Values) (i... method Login (line 295) | func (connect *Connect) Login() error { type WaitResult (line 36) | type WaitResult struct function SendRawRequest (line 41) | func SendRawRequest(rtype, url, auth string, form *url.Values) ([]byte, ... function SendRequest (line 74) | func SendRequest(rtype, url, auth string, form *url.Values, v any) error { FILE: packages/api/route.go constant corsMaxAge (line 15) | corsMaxAge = 600 type Router (line 17) | type Router struct method GetAPI (line 22) | func (r Router) GetAPI() *mux.Router { method GetAPIVersion (line 26) | func (r Router) GetAPIVersion(preffix string) *mux.Router { method NewVersion (line 30) | func (r Router) NewVersion(preffix string) *mux.Router { method SetCommonRoutes (line 37) | func (m Mode) SetCommonRoutes(r Router) { method SetBlockchainRoutes (line 84) | func (m Mode) SetBlockchainRoutes(r Router) { function NoneMiddlewareRoutes (line 105) | func NoneMiddlewareRoutes(api *mux.Router, m Mode) { function SetOtherCommonRoutes (line 109) | func SetOtherCommonRoutes(api *mux.Router, m Mode) { function setOtherBlockChainRoutes (line 117) | func setOtherBlockChainRoutes(api *mux.Router, m Mode) { method SetSubNodeRoutes (line 121) | func (m Mode) SetSubNodeRoutes(r Router) {} function NewRouter (line 123) | func NewRouter(m Mode) Router { function WithCors (line 136) | func WithCors(h http.Handler) http.Handler { FILE: packages/api/row.go type rowResult (line 20) | type rowResult struct type rowForm (line 24) | type rowForm struct method Validate (line 28) | func (f *rowForm) Validate(r *http.Request) error { function getRowHandler (line 40) | func getRowHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/sections.go constant defaultSectionsLimit (line 19) | defaultSectionsLimit = 100 type sectionsForm (line 21) | type sectionsForm struct method Validate (line 26) | func (f *sectionsForm) Validate(r *http.Request) error { function getSectionsHandler (line 38) | func getSectionsHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/send_tx.go type sendTxResult (line 21) | type sendTxResult struct function getTxData (line 25) | func getTxData(r *http.Request, key string) ([]byte, error) { method sendTxHandler (line 44) | func (m Mode) sendTxHandler(w http.ResponseWriter, r *http.Request) { function txHandlerBatches (line 88) | func txHandlerBatches(r *http.Request, m Mode, mtx map[string][]byte) ([... FILE: packages/api/smart_test.go type smartParams (line 25) | type smartParams struct type smartContract (line 30) | type smartContract struct function TestUpperName (line 36) | func TestUpperName(t *testing.T) { function TestSmartFields (line 69) | func TestSmartFields(t *testing.T) { function TestMoneyTransfer (line 95) | func TestMoneyTransfer(t *testing.T) { function TestRoleAccess (line 129) | func TestRoleAccess(t *testing.T) { function TestDBFind (line 149) | func TestDBFind(t *testing.T) { function TestPage (line 182) | func TestPage(t *testing.T) { function TestNewTableOnly (line 319) | func TestNewTableOnly(t *testing.T) { function TestUpperTable (line 334) | func TestUpperTable(t *testing.T) { function TestNewTable (line 352) | func TestNewTable(t *testing.T) { type invalidPar (line 429) | type invalidPar struct function TestUpdatePlatformParam (line 434) | func TestUpdatePlatformParam(t *testing.T) { function TestUpdateHonorNodesWithEmptyArray (line 508) | func TestUpdateHonorNodesWithEmptyArray(t *testing.T) { function TestValidateConditions (line 555) | func TestValidateConditions(t *testing.T) { function TestPartitialEdit (line 579) | func TestPartitialEdit(t *testing.T) { function TestContractEdit (line 639) | func TestContractEdit(t *testing.T) { function TestDelayedContracts (line 702) | func TestDelayedContracts(t *testing.T) { function TestJSON (line 736) | func TestJSON(t *testing.T) { function TestBytesToString (line 785) | func TestBytesToString(t *testing.T) { function TestMoneyDigits (line 810) | func TestMoneyDigits(t *testing.T) { function TestMemoryLimit (line 836) | func TestMemoryLimit(t *testing.T) { function TestStack (line 860) | func TestStack(t *testing.T) { function TestPageHistory (line 894) | func TestPageHistory(t *testing.T) { FILE: packages/api/table.go type columnInfo (line 21) | type columnInfo struct type tableResult (line 27) | type tableResult struct function getTableHandler (line 39) | func getTableHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/tables.go type tableInfo (line 18) | type tableInfo struct type tablesResult (line 23) | type tablesResult struct function getTablesHandler (line 28) | func getTablesHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/tables_test.go function TestTables (line 16) | func TestTables(t *testing.T) { function TestTable (line 33) | func TestTable(t *testing.T) { function TestTableName (line 55) | func TestTableName(t *testing.T) { function TestJSONTable (line 134) | func TestJSONTable(t *testing.T) { function TestTableDesc (line 280) | func TestTableDesc(t *testing.T) { FILE: packages/api/template_test.go type tplItem (line 27) | type tplItem struct type tplList (line 32) | type tplList function TestAPI (line 34) | func TestAPI(t *testing.T) { function TestMoney (line 196) | func TestMoney(t *testing.T) { function TestCutoff (line 218) | func TestCutoff(t *testing.T) { function TestBinary (line 299) | func TestBinary(t *testing.T) { function TestStringToBinary (line 365) | func TestStringToBinary(t *testing.T) { FILE: packages/api/trash.go function getContract (line 15) | func getContract(r *http.Request, name string) *smart.Contract { function getContractInfo (line 28) | func getContractInfo(contract *smart.Contract) *script.ContractInfo { FILE: packages/api/tx_record.go function getTxRecord (line 17) | func getTxRecord(w http.ResponseWriter, r *http.Request) { FILE: packages/api/txinfo.go type txinfoResult (line 25) | type txinfoResult struct type txInfoForm (line 31) | type txInfoForm struct type multiTxInfoResult (line 37) | type multiTxInfoResult struct function getTxInfo (line 41) | func getTxInfo(r *http.Request, txHash string, getInfo bool) (*txinfoRes... function getTxInfoHandler (line 76) | func getTxInfoHandler(w http.ResponseWriter, r *http.Request) { function getTxInfoMultiHandler (line 93) | func getTxInfoMultiHandler(w http.ResponseWriter, r *http.Request) { function transactionData (line 115) | func transactionData(blockId int64, txHash string) (*smart.TxInfo, error) { FILE: packages/api/txstatus.go type txstatusError (line 20) | type txstatusError struct type txstatusResult (line 26) | type txstatusResult struct function getTxStatus (line 33) | func getTxStatus(r *http.Request, hash string) (*txstatusResult, error) { type multiTxStatusResult (line 76) | type multiTxStatusResult struct type txstatusRequest (line 80) | type txstatusRequest struct function getTxStatusHandler (line 84) | func getTxStatusHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/api/version.go function getVersionHandler (line 15) | func getVersionHandler(w http.ResponseWriter, r *http.Request) { FILE: packages/block/block.go type Block (line 24) | type Block struct method GetLogger (line 37) | func (b *Block) GetLogger() *log.Entry { method IsGenesis (line 42) | func (b *Block) IsGenesis() bool { method limitMode (line 46) | func (b *Block) limitMode() transaction.LimitMode { function InsertBlockWOForksNew (line 57) | func InsertBlockWOForksNew(data []byte, classifyTxsMap map[int][]*transa... FILE: packages/block/check.go method Check (line 25) | func (b *Block) Check() error { method CheckSign (line 100) | func (b *Block) CheckSign() error { FILE: packages/block/db.go function ProcessBlockByBinData (line 30) | func ProcessBlockByBinData(data []byte, checkSize bool) (*Block, error) { method GetRollbacksHash (line 49) | func (b *Block) GetRollbacksHash(dbTx *sqldb.DbTransaction) ([]byte, err... function GetRollbacksHashWithDiffArr (line 58) | func GetRollbacksHashWithDiffArr(dbTx *sqldb.DbTransaction, bId int64) (... method InsertIntoBlockchain (line 89) | func (b *Block) InsertIntoBlockchain(dbTx *sqldb.DbTransaction) error { function GetBlockHeaderFromBlockChain (line 154) | func GetBlockHeaderFromBlockChain(blockID int64) (*types.BlockHeader, er... function GetDataFromFirstBlock (line 173) | func GetDataFromFirstBlock() (data *types.FirstBlock, ok bool) { method upsertInfoBlock (line 209) | func (b *Block) upsertInfoBlock(dbTx *sqldb.DbTransaction, block *sqldb.... type AfterTxs (line 239) | type AfterTxs struct method GenAfterTxs (line 246) | func (b *Block) GenAfterTxs() *AfterTxs { method AfterPlayTxs (line 287) | func (b *Block) AfterPlayTxs(dbTx *sqldb.DbTransaction) error { FILE: packages/block/play.go method PlaySafe (line 29) | func (b *Block) PlaySafe() error { type badTxStruct (line 62) | type badTxStruct struct method ProcessTxs (line 69) | func (b *Block) ProcessTxs(dbTx *sqldb.DbTransaction) (err error) { method serialExecuteTxs (line 239) | func (b *Block) serialExecuteTxs(dbTx *sqldb.DbTransaction, txBadChan ch... function groupUtxoTxs (line 343) | func groupUtxoTxs(txs []*transaction.Transaction, walletAddress map[int6... function groupTransferSelfTxs (line 396) | func groupTransferSelfTxs(txs []*transaction.Transaction, walletAddress ... FILE: packages/block/serialization.go method repeatMarshallBlock (line 20) | func (b *Block) repeatMarshallBlock() error { function MarshallBlock (line 42) | func MarshallBlock(opts ...types.BlockDataOption) ([]byte, error) { function UnmarshallBlock (line 50) | func UnmarshallBlock(blockBuffer *bytes.Buffer, fill bool) (*Block, erro... FILE: packages/chain/daemonsctl/daemonsctl.go function RunAllDaemons (line 15) | func RunAllDaemons(ctx context.Context) error { FILE: packages/chain/notandroid.go function httpListener (line 19) | func httpListener(ListenHTTPHost string, route http.Handler) { FILE: packages/chain/start.go function init (line 39) | func init() { function Start (line 46) | func Start() { function initStatsd (line 133) | func initStatsd() { function initLogs (line 139) | func initLogs() error { function initRoutes (line 192) | func initRoutes(listenHost string) { FILE: packages/chain/system/pid.go function CreatePidFile (line 24) | func CreatePidFile() error { function RemovePidFile (line 40) | func RemovePidFile() error { function ReadPidFile (line 45) | func ReadPidFile() (int, error) { function killOldPid (line 64) | func killOldPid() { FILE: packages/chain/system/unix.go function KillPid (line 19) | func KillPid(pid string) error { FILE: packages/chain/system/windows.go function KillPid (line 23) | func KillPid(pid string) error { FILE: packages/clbmanager/config.go constant inidDBCommand (line 14) | inidDBCommand = "initDatabase" constant genKeysCommand (line 15) | genKeysCommand = "generateKeys" constant startCommand (line 16) | startCommand = "start" type ChildCLBConfig (line 20) | type ChildCLBConfig struct method configCommand (line 32) | func (c ChildCLBConfig) configCommand() *exec.Cmd { method initDBCommand (line 51) | func (c ChildCLBConfig) initDBCommand() *exec.Cmd { method generateKeysCommand (line 55) | func (c ChildCLBConfig) generateKeysCommand() *exec.Cmd { method startCommand (line 59) | func (c ChildCLBConfig) startCommand() *exec.Cmd { method configPath (line 63) | func (c ChildCLBConfig) configPath() string { method getCommand (line 67) | func (c ChildCLBConfig) getCommand(commandName string) *exec.Cmd { FILE: packages/clbmanager/manager.go constant childFolder (line 28) | childFolder = "configs" constant createRoleTemplate (line 29) | createRoleTemplate = `CREATE ROLE %s WITH ENCRYPTED PASSWORD '%s' NOSUPE... constant createDBTemplate (line 30) | createDBTemplate = `CREATE DATABASE %s OWNER %s` constant dropDBTemplate (line 32) | dropDBTemplate = `DROP DATABASE IF EXISTS %s` constant dropOwnedTemplate (line 33) | dropOwnedTemplate = `DROP OWNED BY %s CASCADE` constant dropDBRoleTemplate (line 34) | dropDBRoleTemplate = `DROP ROLE IF EXISTS %s` constant commandTemplate (line 35) | commandTemplate = `%s start --config=%s` constant alreadyExistsErrorTemplate (line 37) | alreadyExistsErrorTemplate = `clb '%s' already exists` type CLBManager (line 46) | type CLBManager struct method CreateCLB (line 70) | func (mgr *CLBManager) CreateCLB(name, dbUser, dbPassword string, port... method ListProcess (line 161) | func (mgr *CLBManager) ListProcess() (map[string]string, error) { method ListProcessWithPorts (line 176) | func (mgr *CLBManager) ListProcessWithPorts() (map[string]string, erro... method DeleteCLB (line 197) | func (mgr *CLBManager) DeleteCLB(name string) error { method StartCLB (line 223) | func (mgr *CLBManager) StartCLB(name string) error { method StopCLB (line 252) | func (mgr *CLBManager) StopCLB(name string) error { method createCLBDB (line 279) | func (mgr *CLBManager) createCLBDB(clbName, login, pass string) error { method initCLBDir (line 299) | func (mgr *CLBManager) initCLBDir(clbName string) error { method configByName (line 406) | func (mgr *CLBManager) configByName(name string) (*conf.GlobalConfig, ... function prepareWorkDir (line 56) | func prepareWorkDir() (string, error) { function InitCLBManager (line 312) | func InitCLBManager() { function dropDb (line 358) | func dropDb(name, role string) error { function dropCLBDir (line 370) | func dropCLBDir(configsPath, clbName string) error { function directoryExists (line 380) | func directoryExists(path string) bool { function checkCLBName (line 390) | func checkCLBName(name string) error { FILE: packages/common/crypto/asymalgo/asymalgo.go function ParseSign (line 11) | func ParseSign(sign string) (*big.Int, *big.Int, error) { function FillLeft (line 55) | func FillLeft(slice []byte) []byte { FILE: packages/common/crypto/asymalgo/p256.go type P256 (line 14) | type P256 struct method GenKeyPair (line 16) | func (e *P256) GenKeyPair() ([]byte, []byte, error) { method Sign (line 26) | func (e *P256) Sign(privateKey, hash []byte) ([]byte, error) { method Verify (line 40) | func (e *P256) Verify(public, hash, signature []byte) (bool, error) { method PrivateToPublic (line 69) | func (e *P256) PrivateToPublic(key []byte) ([]byte, error) { FILE: packages/common/crypto/asymalgo/secp256k1.go type Secp256k1 (line 15) | type Secp256k1 struct method GenKeyPair (line 17) | func (s *Secp256k1) GenKeyPair() ([]byte, []byte, error) { method Sign (line 26) | func (s *Secp256k1) Sign(privateKey, hash []byte) ([]byte, error) { method Verify (line 44) | func (s *Secp256k1) Verify(public, hash, signature []byte) (bool, erro... method PrivateToPublic (line 73) | func (s *Secp256k1) PrivateToPublic(key []byte) ([]byte, error) { FILE: packages/common/crypto/asymalgo/sm2.go type SM2 (line 12) | type SM2 struct method GenKeyPair (line 14) | func (s *SM2) GenKeyPair() ([]byte, []byte, error) { method Sign (line 22) | func (s *SM2) Sign(privateKey, hash []byte) ([]byte, error) { method Verify (line 32) | func (s *SM2) Verify(public, hash, signature []byte) (bool, error) { method PrivateToPublic (line 56) | func (s *SM2) PrivateToPublic(key []byte) ([]byte, error) { FILE: packages/common/crypto/base58/base58.go function ToHexAddress (line 12) | func ToHexAddress(address string) string { function FromHexAddress (line 16) | func FromHexAddress(hexAddress string) (string, error) { function base58Encode (line 34) | func base58Encode(input []byte) []byte { function base58Decode (line 48) | func base58Decode(input []byte) []byte { function reverseBytes (line 62) | func reverseBytes(data []byte) { FILE: packages/common/crypto/checksum.go function init (line 13) | func init() { function CalcChecksum (line 18) | func CalcChecksum(input []byte) uint64 { FILE: packages/common/crypto/converter.go function CutPub (line 18) | func CutPub(pubKey []byte) []byte { function Address (line 26) | func Address(pubKey []byte) int64 { function AddressSeed (line 36) | func AddressSeed(seed string) int64 { function buildChecksumConvert (line 43) | func buildChecksumConvert(crc uint64) int64 { function RepeatPrefixed (line 52) | func RepeatPrefixed(input string) []byte { function KeyToAddress (line 61) | func KeyToAddress(pubKey []byte) string { function GetWalletIDByPublicKey (line 66) | func GetWalletIDByPublicKey(publicKey []byte) (int64, error) { function HexToPub (line 72) | func HexToPub(pub string) ([]byte, error) { function PubToHex (line 81) | func PubToHex(pub []byte) string { FILE: packages/common/crypto/crypto.go function NewAsymAlgo (line 22) | func NewAsymAlgo(a AsymAlgo) AsymProvider { function InitAsymAlgo (line 34) | func InitAsymAlgo(s string) { function GetAsymProvider (line 43) | func GetAsymProvider() AsymProvider { function NewHashAlgo (line 47) | func NewHashAlgo(a HashAlgo) HashProvider { function InitHashAlgo (line 61) | func InitHashAlgo(s string) { function GetHashProvider (line 70) | func GetHashProvider() HashProvider { function GenKeyPair (line 75) | func GenKeyPair() ([]byte, []byte, error) { function GenHexKeys (line 80) | func GenHexKeys() (string, string, error) { function Sign (line 88) | func Sign(privateKey, data []byte) ([]byte, error) { function Verify (line 92) | func Verify(public, data, signature []byte) (bool, error) { function PrivateToPublic (line 97) | func PrivateToPublic(key []byte) ([]byte, error) { function SignString (line 101) | func SignString(privateKeyHex, data string) ([]byte, error) { function GetHMAC (line 109) | func GetHMAC(secret string, message string) ([]byte, error) { function Hash (line 113) | func Hash(msg []byte) []byte { function DoubleHash (line 117) | func DoubleHash(msg []byte) []byte { function HashHex (line 121) | func HashHex(input []byte) string { FILE: packages/common/crypto/crypto.pb.go constant _ (line 21) | _ = proto.GoGoProtoPackageIsVersion3 type AsymAlgo (line 24) | type AsymAlgo method String (line 47) | func (x AsymAlgo) String() string { method EnumDescriptor (line 51) | func (AsymAlgo) EnumDescriptor() ([]byte, []int) { constant AsymAlgo_ECC_P256 (line 27) | AsymAlgo_ECC_P256 AsymAlgo = 0 constant AsymAlgo_ECC_Secp256k1 (line 28) | AsymAlgo_ECC_Secp256k1 AsymAlgo = 1 constant AsymAlgo_SM2 (line 29) | AsymAlgo_SM2 AsymAlgo = 2 constant AsymAlgo_ECC_P512 (line 30) | AsymAlgo_ECC_P512 AsymAlgo = 3 type SymAlgo (line 56) | type SymAlgo method String (line 73) | func (x SymAlgo) String() string { method EnumDescriptor (line 77) | func (SymAlgo) EnumDescriptor() ([]byte, []int) { constant SymAlgo_AES (line 59) | SymAlgo_AES SymAlgo = 0 constant SymAlgo_SM4 (line 60) | SymAlgo_SM4 SymAlgo = 1 type HashAlgo (line 82) | type HashAlgo method String (line 105) | func (x HashAlgo) String() string { method EnumDescriptor (line 109) | func (HashAlgo) EnumDescriptor() ([]byte, []int) { constant HashAlgo_SHA256 (line 85) | HashAlgo_SHA256 HashAlgo = 0 constant HashAlgo_KECCAK256 (line 86) | HashAlgo_KECCAK256 HashAlgo = 1 constant HashAlgo_SM3 (line 87) | HashAlgo_SM3 HashAlgo = 2 constant HashAlgo_SHA3_256 (line 88) | HashAlgo_SHA3_256 HashAlgo = 3 function init (line 113) | func init() { function init (line 119) | func init() { proto.RegisterFile("crypto.proto", fileDescriptor_527278fb... FILE: packages/common/crypto/crypto_test.go function TestGetCryptoer (line 10) | func TestGetCryptoer(t *testing.T) { FILE: packages/common/crypto/ecies/ecccrypt.go function init (line 22) | func init() { function EccPubEncrypt (line 40) | func EccPubEncrypt(plainText []byte, pub *ecdsa.PublicKey) (cryptText []... function EccPriDeCrypt (line 62) | func EccPriDeCrypt(cryptText []byte, priv *ecdsa.PrivateKey) (msg []byte... function EccCryptoKey (line 71) | func EccCryptoKey(plainText []byte, publickey string) (cryptoText []byte... function EccDeCrypto (line 83) | func EccDeCrypto(cryptoText []byte, prikey []byte) ([]byte, error) { function GetPrivateKeys (line 92) | func GetPrivateKeys(privateKey []byte) (ret *ecdsa.PrivateKey, err error) { function GetPublicKeys (line 103) | func GetPublicKeys(public []byte) (*ecdsa.PublicKey, error) { FILE: packages/common/crypto/ecies/ecies.go type PublicKey (line 35) | type PublicKey struct method ExportECDSA (line 43) | func (pub *PublicKey) ExportECDSA() *ecdsa.PublicKey { function ImportECDSAPublic (line 48) | func ImportECDSAPublic(pub *ecdsa.PublicKey) *PublicKey { type PrivateKey (line 58) | type PrivateKey struct method ExportECDSA (line 64) | func (prv *PrivateKey) ExportECDSA() *ecdsa.PrivateKey { method GenerateShared (line 102) | func (prv *PrivateKey) GenerateShared(pub *PublicKey, skLen, macLen in... method Decrypt (line 276) | func (prv *PrivateKey) Decrypt(c, s1, s2 []byte) (m []byte, err error) { function ImportECDSA (line 71) | func ImportECDSA(prv *ecdsa.PrivateKey) *PrivateKey { function GenerateKey (line 78) | func GenerateKey(rand io.Reader, curve elliptic.Curve, params *ECIESPara... function MaxSharedKeyLength (line 97) | func MaxSharedKeyLength(pub *PublicKey) int { function incCounter (line 132) | func incCounter(ctr []byte) { function concatKDF (line 148) | func concatKDF(hash hash.Hash, z, s1 []byte, kdLen int) (k []byte, err e... function messageTag (line 177) | func messageTag(hash func() hash.Hash, km, msg, shared []byte) []byte { function generateIV (line 186) | func generateIV(params *ECIESParams, rand io.Reader) (iv []byte, err err... function symEncrypt (line 194) | func symEncrypt(rand io.Reader, params *ECIESParams, key, m []byte) (ct ... function symDecrypt (line 214) | func symDecrypt(params *ECIESParams, key, ct []byte) (m []byte, err erro... function Encrypt (line 232) | func Encrypt(rand io.Reader, pub *PublicKey, m, s1, s2 []byte) (ct []byt... function ParamsFromCurve (line 350) | func ParamsFromCurve(curve elliptic.Curve) (params *ECIESParams) { type ECIESParams (line 394) | type ECIESParams struct FILE: packages/common/crypto/hashalgo/keccak256.go type Keccak256 (line 8) | type Keccak256 struct method GetHMAC (line 10) | func (k *Keccak256) GetHMAC(secret string, message string) ([]byte, er... method GetHash (line 16) | func (k *Keccak256) GetHash(msg []byte) []byte { method DoubleHash (line 20) | func (k *Keccak256) DoubleHash(msg []byte) []byte { method usingKeccak256 (line 24) | func (k *Keccak256) usingKeccak256(data []byte) []byte { FILE: packages/common/crypto/hashalgo/sha256.go type SHA256 (line 8) | type SHA256 struct method GetHMAC (line 10) | func (s *SHA256) GetHMAC(secret string, message string) ([]byte, error) { method GetHash (line 15) | func (s *SHA256) GetHash(msg []byte) []byte { method DoubleHash (line 19) | func (s *SHA256) DoubleHash(msg []byte) []byte { method usingSha256 (line 23) | func (s *SHA256) usingSha256(data []byte) []byte { FILE: packages/common/crypto/hashalgo/sha3_256.go type Sha3256 (line 9) | type Sha3256 struct method GetHMAC (line 11) | func (s *Sha3256) GetHMAC(secret string, message string) ([]byte, erro... method GetHash (line 17) | func (s *Sha3256) GetHash(msg []byte) []byte { method DoubleHash (line 21) | func (s *Sha3256) DoubleHash(msg []byte) []byte { method usingSha3 (line 25) | func (s *Sha3256) usingSha3(data []byte) []byte { FILE: packages/common/crypto/hashalgo/sm3.go type SM3 (line 9) | type SM3 struct method GetHMAC (line 11) | func (s *SM3) GetHMAC(secret string, message string) ([]byte, error) { method GetHash (line 17) | func (s *SM3) GetHash(msg []byte) []byte { method DoubleHash (line 21) | func (s *SM3) DoubleHash(msg []byte) []byte { method usingSM3 (line 25) | func (s *SM3) usingSM3(data []byte) []byte { FILE: packages/common/crypto/provider.go type AsymProvider (line 3) | type AsymProvider interface type HashProvider (line 11) | type HashProvider interface FILE: packages/common/crypto/random.go function RandSeq (line 13) | func RandSeq(n int) string { FILE: packages/common/crypto/symalgo/aes/aes.go function Encrypt (line 19) | func Encrypt(msg []byte, key []byte, iv []byte) ([]byte, error) { function Decrypt (line 24) | func Decrypt(msg []byte, key []byte, iv []byte) ([]byte, error) { function encryptCBC (line 44) | func encryptCBC(text, key, iv []byte) ([]byte, error) { function decryptCBC (line 69) | func decryptCBC(ciphertext, key, iv []byte) ([]byte, error) { function pKCS7Padding (line 93) | func pKCS7Padding(src []byte, blockSize int) []byte { function pKCS7UnPadding (line 99) | func pKCS7UnPadding(src []byte) ([]byte, error) { function PKCS5Padding (line 109) | func PKCS5Padding(ciphertext []byte, blockSize int) []byte { function PKCS5UnPadding (line 115) | func PKCS5UnPadding(origData []byte) []byte { function AesEncrypt (line 121) | func AesEncrypt(origData, key []byte) ([]byte, error) { function AesDecrypt (line 134) | func AesDecrypt(crypted, key []byte) ([]byte, error) { FILE: packages/common/crypto/symalgo/aes/aes_test.go function TestAesEncryptAndDecrypt (line 14) | func TestAesEncryptAndDecrypt(t *testing.T) { FILE: packages/common/crypto/x509/cert.go type Cert (line 18) | type Cert struct method Validate (line 22) | func (c *Cert) Validate(pem []byte) error { method EqualBytes (line 35) | func (c *Cert) EqualBytes(bs ...[]byte) bool { function parseCert (line 50) | func parseCert(b []byte) (*x509.Certificate, error) { function ParseCert (line 64) | func ParseCert(b []byte) (c *Cert, err error) { FILE: packages/common/log/filename_hook.go type ContextHook (line 20) | type ContextHook struct method Levels (line 23) | func (hook ContextHook) Levels() []logrus.Level { method Fire (line 28) | func (hook ContextHook) Fire(entry *logrus.Entry) error { FILE: packages/common/log/hex_hook.go type HexHook (line 14) | type HexHook struct method Levels (line 17) | func (hook HexHook) Levels() []logrus.Level { method Fire (line 22) | func (hook HexHook) Fire(entry *logrus.Entry) error { FILE: packages/common/log/syslog_hook.go function init (line 18) | func init() { function NewSyslogHook (line 43) | func NewSyslogHook(priority string, tag string) (*lSyslog.SyslogHook, er... FILE: packages/common/log/syslog_hook_windows.go type SyslogHook (line 15) | type SyslogHook struct method Fire (line 24) | func (hook *SyslogHook) Fire(entry *logrus.Entry) error { method Levels (line 28) | func (hook *SyslogHook) Levels() []logrus.Level { function NewSyslogHook (line 20) | func NewSyslogHook(appName, facility string) (*SyslogHook, error) { FILE: packages/common/random/rand.go type Rand (line 14) | type Rand struct method BytesSeed (line 18) | func (r *Rand) BytesSeed(b []byte) *rand.Rand { function NewRand (line 24) | func NewRand(seed int64) *Rand { function RandInt (line 30) | func RandInt(min, max int) int { constant KC_RAND_KIND_NUM (line 38) | KC_RAND_KIND_NUM = 0 constant KC_RAND_KIND_LOWER (line 39) | KC_RAND_KIND_LOWER = 1 constant KC_RAND_KIND_UPPER (line 40) | KC_RAND_KIND_UPPER = 2 constant KC_RAND_KIND_ALL (line 41) | KC_RAND_KIND_ALL = 3 function Krand (line 45) | func Krand(size int64, kind int) []byte { function RandNumber (line 60) | func RandNumber(size int64) string { FILE: packages/common/random/rand_test.go function TestRand (line 13) | func TestRand(t *testing.T) { FILE: packages/common/size.go type StorageSize (line 14) | type StorageSize method String (line 17) | func (s StorageSize) String() string { method TerminalString (line 33) | func (s StorageSize) TerminalString() string { FILE: packages/conf/conf.go method Str (line 26) | func (h HostPort) Str() string { method GetPidPath (line 31) | func (c *GlobalConfig) GetPidPath() string { function LoadConfig (line 37) | func LoadConfig(path string) error { function LoadConfigToVar (line 47) | func LoadConfigToVar(path string, v *GlobalConfig) error { function GetConfigFromPath (line 67) | func GetConfigFromPath(path string) (*GlobalConfig, error) { function SaveConfig (line 91) | func SaveConfig(path string) error { function FillRuntimePaths (line 115) | func FillRuntimePaths() error { function FillRuntimeKey (line 150) | func FillRuntimeKey() error { function GetNodesAddr (line 168) | func GetNodesAddr() []string { function registerCrypto (line 172) | func registerCrypto(c CryptoSettings) { FILE: packages/conf/runmode.go type RunMode (line 8) | type RunMode method IsCLBMaster (line 19) | func (rm RunMode) IsCLBMaster() bool { method IsCLB (line 24) | func (rm RunMode) IsCLB() bool { method IsNode (line 29) | func (rm RunMode) IsNode() bool { method IsSupportingCLB (line 34) | func (rm RunMode) IsSupportingCLB() bool { method IsSubNode (line 38) | func (rm RunMode) IsSubNode() bool { constant node (line 12) | node RunMode = "NONE" constant clbMaster (line 13) | clbMaster RunMode = "CLBMaster" constant clb (line 14) | clb RunMode = "CLB" constant subNode (line 15) | subNode RunMode = "SubNode" method IsCLB (line 43) | func (c GlobalConfig) IsCLB() bool { method IsCLBMaster (line 48) | func (c GlobalConfig) IsCLBMaster() bool { method IsSupportingCLB (line 53) | func (c GlobalConfig) IsSupportingCLB() bool { method IsNode (line 58) | func (c GlobalConfig) IsNode() bool { method IsSubNode (line 63) | func (c GlobalConfig) IsSubNode() bool { FILE: packages/conf/syspar/honornode.go constant publicKeyLength (line 23) | publicKeyLength = 64 type honorNodeJSON (line 32) | type honorNodeJSON struct type HonorNode (line 41) | type HonorNode struct method UnmarshalJSON (line 50) | func (fn *HonorNode) UnmarshalJSON(b []byte) (err error) { method MarshalJSON (line 73) | func (fn *HonorNode) MarshalJSON() ([]byte, error) { method Validate (line 109) | func (fn *HonorNode) Validate() error { function validateURL (line 91) | func validateURL(rawurl string) error { function DuplicateHonorNode (line 122) | func DuplicateHonorNode(fn []*HonorNode) error { FILE: packages/conf/syspar/honornode_test.go function TestHonorNode (line 16) | func TestHonorNode(t *testing.T) { FILE: packages/conf/syspar/syspar.go constant NumberNodes (line 31) | NumberNodes = `number_of_nodes` constant FuelRate (line 33) | FuelRate = `fuel_rate` constant HonorNodes (line 35) | HonorNodes = `honor_nodes` constant GapsBetweenBlocks (line 37) | GapsBetweenBlocks = `gap_between_blocks` constant MaxBlockSize (line 39) | MaxBlockSize = `max_block_size` constant MaxTxSize (line 41) | MaxTxSize = `max_tx_size` constant MaxForsignSize (line 43) | MaxForsignSize = `max_forsign_size` constant MaxBlockFuel (line 45) | MaxBlockFuel = `max_fuel_block` constant MaxTxFuel (line 47) | MaxTxFuel = `max_fuel_tx` constant MaxTxCount (line 49) | MaxTxCount = `max_tx_block` constant MaxBlockGenerationTime (line 51) | MaxBlockGenerationTime = `max_block_generation_time` constant MaxColumns (line 53) | MaxColumns = `max_columns` constant MaxIndexes (line 55) | MaxIndexes = `max_indexes` constant MaxBlockUserTx (line 57) | MaxBlockUserTx = `max_tx_block_per_user` constant SizeFuel (line 59) | SizeFuel = `price_tx_data` constant TaxesWallet (line 61) | TaxesWallet = `taxes_wallet` constant RbBlocks1 (line 63) | RbBlocks1 = `rollback_blocks` constant BlockReward (line 65) | BlockReward = "block_reward" constant IncorrectBlocksPerDay (line 67) | IncorrectBlocksPerDay = `incorrect_blocks_per_day` constant NodeBanTime (line 69) | NodeBanTime = `node_ban_time` constant LocalNodeBanTime (line 71) | LocalNodeBanTime = `local_node_ban_time` constant TaxesSize (line 73) | TaxesSize = `taxes_size` constant PriceTxSize (line 75) | PriceTxSize = `price_tx_size` constant PriceCreateRate (line 77) | PriceCreateRate = `price_create_rate` constant Test (line 79) | Test = `test` constant PrivateBlockchain (line 81) | PrivateBlockchain = `private_blockchain` constant CostDefault (line 84) | CostDefault = int64(20000000) constant PriceExec (line 86) | PriceExec = "price_exec_" constant AccessExec (line 87) | AccessExec = "access_exec_" constant PriceCreateExec (line 88) | PriceCreateExec = "price_create_exec_" constant PayFreeContract (line 89) | PayFreeContract = "pay_free_contract" function ReadNodeKeys (line 109) | func ReadNodeKeys() (err error) { function GetSysParCache (line 131) | func GetSysParCache() map[string]string { function GetNodePubKey (line 139) | func GetNodePubKey() []byte { function GetNodePrivKey (line 143) | func GetNodePrivKey() []byte { function SysUpdate (line 148) | func SysUpdate(dbTx *sqldb.DbTransaction) error { function updateNodes (line 189) | func updateNodes() (err error) { function addHonorNodeKeys (line 218) | func addHonorNodeKeys(publicKey []byte) { function GetNodes (line 224) | func GetNodes() []HonorNode { function GetThisNodePosition (line 236) | func GetThisNodePosition() (int64, error) { function GetHonorNodeType (line 240) | func GetHonorNodeType() bool { function GetNodePositionByPublicKey (line 252) | func GetNodePositionByPublicKey(publicKey []byte) (int64, error) { function GetCountOfActiveNodes (line 273) | func GetCountOfActiveNodes() int64 { function GetNumberOfNodes (line 278) | func GetNumberOfNodes() int64 { function GetNumberOfNodesFromDB (line 282) | func GetNumberOfNodesFromDB(transaction *sqldb.DbTransaction) int64 { function GetNodeByPosition (line 319) | func GetNodeByPosition(position int64) (*HonorNode, error) { function GetNodeByHost (line 328) | func GetNodeByHost(host string) (HonorNode, error) { function GetNodeHostByPosition (line 341) | func GetNodeHostByPosition(position int64) (string, error) { function GetNodePublicKeyByPosition (line 367) | func GetNodePublicKeyByPosition(position int64) ([]byte, error) { function SysInt64 (line 396) | func SysInt64(name string) int64 { function SysInt (line 401) | func SysInt(name string) int { function GetSizeFuel (line 406) | func GetSizeFuel() int64 { function GetFuelRate (line 411) | func GetFuelRate(ecosystem int64) string { function HasFuelRate (line 421) | func HasFuelRate(ecosystem int64) (string, bool) { function GetTaxesWallet (line 431) | func GetTaxesWallet(ecosystem int64) string { function HasTaxesWallet (line 441) | func HasTaxesWallet(ecosystem int64) (string, bool) { function GetMaxBlockSize (line 451) | func GetMaxBlockSize() int64 { function GetMaxBlockFuel (line 456) | func GetMaxBlockFuel() int64 { function GetMaxTxFuel (line 461) | func GetMaxTxFuel() int64 { function GetMaxBlockGenerationTime (line 466) | func GetMaxBlockGenerationTime() int64 { function GetGapsBetweenBlocks (line 471) | func GetGapsBetweenBlocks() int64 { function GetMaxBlockTimeDuration (line 476) | func GetMaxBlockTimeDuration() time.Duration { function GetMaxTxSize (line 481) | func GetMaxTxSize() int64 { function GetMaxForsignSize (line 486) | func GetMaxForsignSize() int64 { function GetMaxTxCount (line 491) | func GetMaxTxCount() int { function GetMaxColumns (line 496) | func GetMaxColumns() int { function GetMaxIndexes (line 501) | func GetMaxIndexes() int { function GetMaxBlockUserTx (line 506) | func GetMaxBlockUserTx() int { function IsTestMode (line 510) | func IsTestMode() bool { function GetIncorrectBlocksPerDay (line 514) | func GetIncorrectBlocksPerDay() int { function GetNodeBanTime (line 518) | func GetNodeBanTime() time.Duration { function GetLocalNodeBanTime (line 522) | func GetLocalNodeBanTime() time.Duration { function GetDefaultRemoteHosts (line 527) | func GetDefaultRemoteHosts() []string { function GetRemoteHosts (line 546) | func GetRemoteHosts() []string { function SysString (line 562) | func SysString(name string) string { function GetRbBlocks1 (line 570) | func GetRbBlocks1() int64 { function HasSys (line 575) | func HasSys(name string) bool { function SetFirstBlockTimestamp (line 582) | func SetFirstBlockTimestamp(data int64) { function SetFirstBlockData (line 589) | func SetFirstBlockData(data *types.FirstBlock) { function GetFirstBlockTimestamp (line 606) | func GetFirstBlockTimestamp() int64 { function GetFirstBlockData (line 614) | func GetFirstBlockData() (*types.FirstBlock, error) { function IsPrivateBlockchain (line 626) | func IsPrivateBlockchain() bool { function GetMaxCost (line 631) | func GetMaxCost() int64 { function GetAccessExec (line 639) | func GetAccessExec(s string) string { function GetPriceExec (line 643) | func GetPriceExec(s string) (price int64, ok bool) { function GetPriceCreateExec (line 651) | func GetPriceCreateExec(s string) (price int64) { function SysTableColType (line 660) | func SysTableColType(dbTx *sqldb.DbTransaction) error { function GetTableColType (line 673) | func GetTableColType() []map[string]string { function IsByteColumn (line 679) | func IsByteColumn(table, column string) bool { function SetRunModel (line 688) | func SetRunModel(setVal uint8) { function IsHonorNodeMode (line 692) | func IsHonorNodeMode() bool { function IsCandidateNodeMode (line 696) | func IsCandidateNodeMode() bool { FILE: packages/conf/types.go type HostPort (line 5) | type HostPort struct type DBConfig (line 11) | type DBConfig struct type RedisConfig (line 24) | type RedisConfig struct type StatsDConfig (line 33) | type StatsDConfig struct type CentrifugoConfig (line 40) | type CentrifugoConfig struct type Syslog (line 47) | type Syslog struct type LogConfig (line 53) | type LogConfig struct type TokenMovementConfig (line 61) | type TokenMovementConfig struct type BanKeyConfig (line 72) | type BanKeyConfig struct type TLSConfig (line 78) | type TLSConfig struct type DirectoryConfig (line 84) | type DirectoryConfig struct type BootstrapNodeConfig (line 93) | type BootstrapNodeConfig struct type CryptoSettings (line 97) | type CryptoSettings struct type LocalConfig (line 103) | type LocalConfig struct type BlockSyncMethod (line 109) | type BlockSyncMethod struct type GlobalConfig (line 113) | type GlobalConfig struct FILE: packages/consts/conf.go constant DefaultConfigFile (line 10) | DefaultConfigFile = "config.toml" constant DefaultTempDirName (line 13) | DefaultTempDirName = "ibax-temp" constant DefaultWorkdirName (line 16) | DefaultWorkdirName = "data" constant DefaultPidFilename (line 19) | DefaultPidFilename = "go-ibax.pid" constant DefaultLockFilename (line 22) | DefaultLockFilename = "go-ibax.lock" constant FirstBlockFilename (line 25) | FirstBlockFilename = "1block" constant PrivateKeyFilename (line 28) | PrivateKeyFilename = "PrivateKey" constant PublicKeyFilename (line 31) | PublicKeyFilename = "PublicKey" constant NodePrivateKeyFilename (line 34) | NodePrivateKeyFilename = "NodePrivateKey" constant NodePublicKeyFilename (line 37) | NodePublicKeyFilename = "NodePublicKey" constant KeyIDFilename (line 40) | KeyIDFilename = "KeyID" FILE: packages/consts/consts.go constant VERSION (line 15) | VERSION = "1.4.3" constant BvRollbackHash (line 17) | BvRollbackHash = 2 constant BvIncludeRollbackHash (line 18) | BvIncludeRollbackHash = 3 constant BlockVersion (line 21) | BlockVersion = BvIncludeRollbackHash constant DefaultTcpPort (line 24) | DefaultTcpPort = 7078 constant FounderAmount (line 27) | FounderAmount = 5250000 constant MoneyDigits (line 30) | MoneyDigits = 12 constant WaitConfirmedNodes (line 33) | WaitConfirmedNodes = 10 constant MinConfirmedNodes (line 36) | MinConfirmedNodes = 0 constant MaxTxForw (line 39) | MaxTxForw = 600 constant MaxTxBack (line 42) | MaxTxBack = 86400 constant RoundFix (line 45) | RoundFix = 0.00000000001 constant ReadTimeout (line 48) | ReadTimeout = 20 constant WriteTimeout (line 51) | WriteTimeout = 20 constant AddressLength (line 54) | AddressLength = 20 constant PubkeySizeLength (line 57) | PubkeySizeLength = 64 constant PrivkeyLength (line 60) | PrivkeyLength = 32 constant BlockSize (line 63) | BlockSize = 16 constant HashSize (line 66) | HashSize = 32 constant AvailableBCGap (line 68) | AvailableBCGap = 4 constant DefaultNodesConnectDelay (line 70) | DefaultNodesConnectDelay = 6 constant MaxTXAttempt (line 72) | MaxTXAttempt = 10 constant ChainSize (line 75) | ChainSize = 1 << 20 constant DefaultTokenSymbol (line 78) | DefaultTokenSymbol = "IBXC" constant DefaultTokenName (line 81) | DefaultTokenName = "IBAX Coin" constant DefaultEcosystemName (line 84) | DefaultEcosystemName = "platform ecosystem" constant RollbackResultFilename (line 94) | RollbackResultFilename = "rollback_result" constant FromToPerDayLimit (line 97) | FromToPerDayLimit = 10000 constant TokenMovementQtyPerBlockLimit (line 100) | TokenMovementQtyPerBlockLimit = 100 constant TCPConnTimeout (line 103) | TCPConnTimeout = 5 * time.Second constant TxRequestExpire (line 106) | TxRequestExpire = 1 * time.Minute constant DefaultCLB (line 109) | DefaultCLB = 1 constant MoneyLength (line 112) | MoneyLength = 30 constant DefaultTokenEcosystem (line 114) | DefaultTokenEcosystem = 1 constant ShiftContractID (line 117) | ShiftContractID = 5000 constant ContractList (line 120) | ContractList = 200 constant GuestPublic (line 123) | GuestPublic = "ef0ab117793962b7b3ee8d2ae94b58bbd7db1aa856a7dc623fdb28ad... constant GuestKey (line 124) | GuestKey = "-110277540701013350" constant GuestAddress (line 125) | GuestAddress = "1833-6466-5330-0853-8266" constant StatusMainPage (line 128) | StatusMainPage = `2` constant NoneCLB (line 130) | NoneCLB = "none" constant DBFindLimit (line 131) | DBFindLimit = 10000 constant HonorNodeMode (line 133) | HonorNodeMode = 1 constant CandidateNodeMode (line 134) | CandidateNodeMode = 2 constant SavePointMarkBlock (line 138) | SavePointMarkBlock = "block" constant SavePointMarkTx (line 139) | SavePointMarkTx = "tx" function Version (line 142) | func Version() string { function SetSavePointMarkBlock (line 146) | func SetSavePointMarkBlock(idTx string) string { constant UTXO_Type_First_Block (line 151) | UTXO_Type_First_Block = 1 constant UTXO_Type_Self_UTXO (line 152) | UTXO_Type_Self_UTXO = 11 constant UTXO_Type_Self_Account (line 153) | UTXO_Type_Self_Account = 12 constant UTXO_Type_Packaging (line 154) | UTXO_Type_Packaging = 20 constant UTXO_Type_Taxes (line 155) | UTXO_Type_Taxes = 21 constant UTXO_Type_Output (line 156) | UTXO_Type_Output = 22 constant UTXO_Type_Combustion (line 157) | UTXO_Type_Combustion = 23 constant UTXO_Type_Transfer (line 158) | UTXO_Type_Transfer = 26 FILE: packages/consts/log_types.go type LogEventType (line 9) | type LogEventType constant NetworkError (line 13) | NetworkError = "Network" constant JSONMarshallError (line 14) | JSONMarshallError = "JSONMarshall" constant JSONUnmarshallError (line 15) | JSONUnmarshallError = "JSONUnmarshall" constant CommandExecutionError (line 16) | CommandExecutionError = "CommandExecution" constant ConversionError (line 17) | ConversionError = "Conversion" constant TypeError (line 18) | TypeError = "Type" constant ProtocolError (line 19) | ProtocolError = "Protocol" constant MarshallingError (line 20) | MarshallingError = "Marshall" constant UnmarshallingError (line 21) | UnmarshallingError = "Unmarshall" constant ParseError (line 22) | ParseError = "Parse" constant IOError (line 23) | IOError = "IO" constant CryptoError (line 24) | CryptoError = "Crypto" constant ContractError (line 25) | ContractError = "Contract" constant DBError (line 26) | DBError = "DB" constant PanicRecoveredError (line 27) | PanicRecoveredError = "Panic" constant ConnectionError (line 28) | ConnectionError = "Connection" constant ConfigError (line 29) | ConfigError = "Config" constant VMError (line 30) | VMError = "VM" constant JustWaiting (line 31) | JustWaiting = "JustWaiting" constant Ntpdate (line 32) | Ntpdate = "Ntpdate" constant BlockError (line 33) | BlockError = "Block" constant ParserError (line 34) | ParserError = "Parser" constant ContextError (line 35) | ContextError = "Context" constant SessionError (line 36) | SessionError = "Session" constant RouteError (line 37) | RouteError = "Route" constant NotFound (line 38) | NotFound = "NotFound" constant Found (line 39) | Found = "Found" constant EmptyObject (line 40) | EmptyObject = "EmptyObject" constant InvalidObject (line 41) | InvalidObject = "InvalidObject" constant DuplicateObject (line 42) | DuplicateObject = "DuplicateObject" constant UnknownObject (line 43) | UnknownObject = "UnknownObject" constant ParameterExceeded (line 44) | ParameterExceeded = "ParameterExceeded" constant DivisionByZero (line 45) | DivisionByZero = "DivisionByZero" constant EvalError (line 46) | EvalError = "Eval" constant JWTError (line 47) | JWTError = "JWT" constant AccessDenied (line 48) | AccessDenied = "AccessDenied" constant SizeDoesNotMatch (line 49) | SizeDoesNotMatch = "SizeDoesNotMatch" constant NoIndex (line 50) | NoIndex = "NoIndex" constant NoFunds (line 51) | NoFunds = "NoFunds" constant BlockIsFirst (line 52) | BlockIsFirst = "BlockIsFirst" constant IncorrectCallingContract (line 53) | IncorrectCallingContract = "IncorrectCallingContract" constant WritingFile (line 54) | WritingFile = "WritingFile" constant CentrifugoError (line 55) | CentrifugoError = "CentrifugoError" constant StatsdError (line 56) | StatsdError = "StatsdError" constant MigrationError (line 57) | MigrationError = "MigrationError" constant AutoupdateError (line 58) | AutoupdateError = "AutoupdateError" constant BCRelevanceError (line 59) | BCRelevanceError = "BCRelevanceError" constant BCActualizationError (line 60) | BCActualizationError = "BCActualizationError" constant SchedulerError (line 61) | SchedulerError = "SchedulerError" constant SyncProcess (line 62) | SyncProcess = "SyncProcess" constant WrongModeError (line 63) | WrongModeError = "WrongModeError" constant CLBManagerError (line 64) | CLBManagerError = "CLBManagerError" constant TCPClientError (line 65) | TCPClientError = "TCPClientError" constant BadTxError (line 66) | BadTxError = "BadTxError" constant TimeCalcError (line 67) | TimeCalcError = "BlockTimeCounterError" constant RegisterError (line 68) | RegisterError = "RegisterError" constant JsonRpcError (line 69) | JsonRpcError = "JsonRpcError" FILE: packages/converter/address.go type Hole (line 15) | type Hole struct constant BlackHoleAddr (line 21) | BlackHoleAddr = "BlackHole" constant WhiteHoleAddr (line 22) | WhiteHoleAddr = "WhiteHole" function AddressToID (line 33) | func AddressToID(input string) (addr int64) { function IDToAddress (line 60) | func IDToAddress(id int64) (out string) { function AddressToString (line 69) | func AddressToString(int int64) (str string) { function AddressToStringUint64 (line 73) | func AddressToStringUint64(uint uint64) (str string) { function StringToAddress (line 88) | func StringToAddress(str string) (result int64) { function IsValidAddress (line 123) | func IsValidAddress(address string) bool { function CheckSum (line 135) | func CheckSum(val []byte) int { function has4LineContain (line 152) | func has4LineContain(str string) bool { FILE: packages/converter/converter.go function EncodeLenInt64 (line 54) | func EncodeLenInt64(data *[]byte, x int64) *[]byte { function EncodeLenInt64InPlace (line 64) | func EncodeLenInt64InPlace(x int64) []byte { function EncodeLenByte (line 75) | func EncodeLenByte(out *[]byte, buf []byte) *[]byte { function EncodeLength (line 86) | func EncodeLength(length int64) []byte { function DecodeLenInt64 (line 101) | func DecodeLenInt64(data *[]byte) (int64, error) { function DecodeLenInt64Buf (line 117) | func DecodeLenInt64Buf(buf *bytes.Buffer) (int64, error) { function DecodeLength (line 145) | func DecodeLength(buf *[]byte) (ret int64, err error) { function DecodeLengthBuf (line 165) | func DecodeLengthBuf(buf *bytes.Buffer) (int, error) { function DecodeBytesBuf (line 194) | func DecodeBytesBuf(buf *bytes.Buffer) ([]byte, error) { function BinMarshal (line 206) | func BinMarshal(out *[]byte, v any) (*[]byte, error) { function BinUnmarshalBuff (line 265) | func BinUnmarshalBuff(buf *bytes.Buffer, v any) error { function BinUnmarshal (line 361) | func BinUnmarshal(out *[]byte, v any) error { function Sanitize (line 442) | func Sanitize(name string, available string) string { function SanitizeScript (line 454) | func SanitizeScript(input string) string { function SanitizeName (line 459) | func SanitizeName(input string) string { function SanitizeNumber (line 464) | func SanitizeNumber(input string) string { function EscapeSQL (line 468) | func EscapeSQL(name string) string { function EscapeName (line 474) | func EscapeName(name string) string { function float2Bytes (line 491) | func float2Bytes(float float64) []byte { function bytes2Float (line 498) | func bytes2Float(bytes []byte) float64 { function UInt32ToStr (line 503) | func UInt32ToStr(num uint32) string { function Int64ToStr (line 508) | func Int64ToStr(num int64) string { function Int64ToByte (line 513) | func Int64ToByte(num int64) []byte { function IntToStr (line 518) | func IntToStr(num int) string { function DecToBin (line 523) | func DecToBin(v any, sizeBytes int64) []byte { function BinToHex (line 540) | func BinToHex(v any) []byte { function HexToBin (line 554) | func HexToBin(ihexdata any) []byte { function BinToDec (line 574) | func BinToDec(bin []byte) int64 { function BinToDecBytesShift (line 585) | func BinToDecBytesShift(bin *[]byte, num int64) int64 { function BytesShift (line 590) | func BytesShift(str *[]byte, index int64) (ret []byte) { function InterfaceToStr (line 600) | func InterfaceToStr(v any) (string, error) { function InterfaceSliceToStr (line 633) | func InterfaceSliceToStr(i []any) (strs []string, err error) { function InterfaceToFloat64 (line 646) | func InterfaceToFloat64(i any) float64 { function BytesShiftReverse (line 664) | func BytesShiftReverse(str *[]byte, v any) []byte { function StrToInt64 (line 684) | func StrToInt64(s string) int64 { function BytesToInt64 (line 690) | func BytesToInt64(s []byte) int64 { function StrToUint64 (line 696) | func StrToUint64(s string) uint64 { function StrToInt (line 702) | func StrToInt(s string) int { function Float64ToStr (line 708) | func Float64ToStr(f float64) string { function StrToFloat64 (line 713) | func StrToFloat64(s string) float64 { function BytesToFloat64 (line 719) | func BytesToFloat64(s []byte) float64 { function BytesToInt (line 725) | func BytesToInt(s []byte) int { function StrToMoney (line 731) | func StrToMoney(str string) float64 { function EncodeLengthPlusData (line 747) | func EncodeLengthPlusData(idata any) []byte { function FormatMoney (line 763) | func FormatMoney(exp string, digit int32) (string, error) { function EscapeForJSON (line 784) | func EscapeForJSON(data string) string { function ValidateEmail (line 789) | func ValidateEmail(email string) bool { function ParseName (line 796) | func ParseName(in string) (id int64, name string) { function ParseTable (line 809) | func ParseTable(tblname string, defaultEcosystem int64) string { function SubNodeParseTable (line 822) | func SubNodeParseTable(tblname string, defaultEcosystem int64) string { function SliceReverse (line 837) | func SliceReverse(s []int64) []int64 { function SortMap (line 845) | func SortMap(m map[int64]string) []map[int64]string { function RSortMap (line 859) | func RSortMap(m map[int64]string) []map[int64]string { function InSliceString (line 874) | func InSliceString(search string, slice []string) bool { function StripTags (line 884) | func StripTags(value string) string { function IsLatin (line 889) | func IsLatin(name string) bool { function Escape (line 900) | func Escape(data string) string { function FieldToBytes (line 914) | func FieldToBytes(v any, num int) []byte { function NumString (line 939) | func NumString(in string) string { function Round (line 953) | func Round(num float64) int64 { function RoundWithPrecision (line 962) | func RoundWithPrecision(num float64, precision int) float64 { function RoundWithoutPrecision (line 969) | func RoundWithoutPrecision(num float64) int64 { function ValueToInt (line 978) | func ValueToInt(v any) (ret int64, err error) { function ValueToDecimal (line 1015) | func ValueToDecimal(v any) (ret decimal.Decimal, err error) { function Int64ToDateStr (line 1034) | func Int64ToDateStr(date int64, format string) string { function Int64Toint (line 1039) | func Int64Toint(dat int64) (int, error) { function MarshalJson (line 1044) | func MarshalJson(v any) string { FILE: packages/daemons/block_generator.go function BlockGenerator (line 31) | func BlockGenerator(ctx context.Context, d *daemon) error { function generateNextBlock (line 157) | func generateNextBlock(blockHeader, prevBlock *types.BlockHeader, trs []... function processTransactionsNew (line 164) | func processTransactionsNew(logger *log.Entry, txs []*sqldb.Transaction,... FILE: packages/daemons/block_generator_candidate.go function BlockGeneratorCandidate (line 30) | func BlockGeneratorCandidate(ctx context.Context, d *daemon) error { function GetThisNodePosition (line 126) | func GetThisNodePosition(candidateNodes sqldb.CandidateNodes, prevBlock ... function agreeCount (line 262) | func agreeCount(candidateNodes int64, replyCount int64) bool { FILE: packages/daemons/block_generator_tx.go constant callDelayedContract (line 25) | callDelayedContract = "CallDelayedContract" constant firstEcosystemID (line 26) | firstEcosystemID = 1 type DelayedTx (line 30) | type DelayedTx struct method RunForDelayBlockID (line 38) | func (dtx *DelayedTx) RunForDelayBlockID(blockID int64) ([]*sqldb.Tran... method createDelayTxByItem (line 57) | func (dtx *DelayedTx) createDelayTxByItem(name string, keyID, highRate... FILE: packages/daemons/blocks_collection.go function BlocksCollection (line 33) | func BlocksCollection(ctx context.Context, d *daemon) error { function blocksCollection (line 42) | func blocksCollection(ctx context.Context, d *daemon) (err error) { function UpdateChain (line 86) | func UpdateChain(ctx context.Context, d *daemon, host string, maxBlockID... function banNodePause (line 187) | func banNodePause(host string, blockID, blockTime int64, err error) { function getHostWithMaxID (line 209) | func getHostWithMaxID(ctx context.Context, logger *log.Entry) (host stri... function ReplaceBlocksFromHost (line 228) | func ReplaceBlocksFromHost(ctx context.Context, host string, blockID, re... function getBlocks (line 275) | func getBlocks(ctx context.Context, host string, blockID, minCount int64... function processBlocks (line 333) | func processBlocks(blocks []*block.Block) error { FILE: packages/daemons/candidate_node_votings.go type VotingRes (line 21) | type VotingRes struct type VotingTotal (line 26) | type VotingTotal struct function ToUpdateMachineStatus (line 33) | func ToUpdateMachineStatus(currentTcpAddress, tcpAddress string, ch chan... function ToBroadcastNodeConnInfo (line 59) | func ToBroadcastNodeConnInfo(votingTotal VotingTotal, tcpAddress string,... function CandidateNodeVoting (line 72) | func CandidateNodeVoting(ctx context.Context, d *daemon) error { function checkServerSign (line 169) | func checkServerSign(serverVoteMsg network.VoteMsg) error { FILE: packages/daemons/common.go type daemon (line 38) | type daemon struct function daemonLoop (line 62) | func daemonLoop(ctx context.Context, goRoutineName string, handler func(... function StartDaemons (line 101) | func StartDaemons(ctx context.Context, daemonsToStart []string) { function getHostPort (line 139) | func getHostPort(h string) string { function Ntp_Work (line 147) | func Ntp_Work(ctx context.Context) { function generateProcessBlockNew (line 183) | func generateProcessBlockNew(blockHeader, prevBlock *types.BlockHeader, ... function GetRemoteGoodHosts (line 198) | func GetRemoteGoodHosts() ([]string, error) { FILE: packages/daemons/confirmations.go function Confirmations (line 25) | func Confirmations(ctx context.Context, d *daemon) error { function confirmationsBlocks (line 74) | func confirmationsBlocks(ctx context.Context, d *daemon, lastBlockID, st... function IsReachable (line 142) | func IsReachable(host string, blockID int64, ch0 chan string, logger *lo... FILE: packages/daemons/disseminator.go function Disseminator (line 25) | func Disseminator(ctx context.Context, d *daemon) error { function sendTransactions (line 56) | func sendTransactions(ctx context.Context, logger *log.Entry) error { function sendBlockWithTxHashes (line 102) | func sendBlockWithTxHashes(ctx context.Context, honorNodeID int64, logge... FILE: packages/daemons/external_network.go constant errExternalNone (line 29) | errExternalNone = iota constant errExternalTx (line 30) | errExternalTx constant errExternalAttempt (line 31) | errExternalAttempt constant errExternalTimeout (line 32) | errExternalTimeout constant maxAttempts (line 34) | maxAttempts = 10 constant statusTimeout (line 35) | statusTimeout = 60 constant externalDeamonTimeout (line 36) | externalDeamonTimeout = 2 constant apiExt (line 37) | apiExt = `/api/v2/` function loginNetwork (line 47) | func loginNetwork(urlPath string) (connect *api.Connect, err error) { function SendExternalTransaction (line 69) | func SendExternalTransaction() error { function ExternalNetwork (line 190) | func ExternalNetwork(ctx context.Context, d *daemon) error { FILE: packages/daemons/genesis.go function InitialLoad (line 18) | func InitialLoad(logger *log.Entry) error { function loadFirstBlock (line 43) | func loadFirstBlock(logger *log.Entry) error { function firstLoad (line 73) | func firstLoad(logger *log.Entry) error { function needLoad (line 80) | func needLoad(logger *log.Entry) (bool, error) { FILE: packages/daemons/locking.go function WaitDB (line 23) | func WaitDB(ctx context.Context) error { function CheckDB (line 46) | func CheckDB() bool { function DBLock (line 62) | func DBLock() { function DBUnlock (line 67) | func DBUnlock() { FILE: packages/daemons/mode.go type Model (line 14) | type Model interface type HonorNodeMode (line 19) | type HonorNodeMode struct method GetThisNodePosition (line 22) | func (honorNodeMode *HonorNodeMode) GetThisNodePosition() (int64, erro... method GetHostWithMaxID (line 25) | func (honorNodeMode *HonorNodeMode) GetHostWithMaxID() ([]string, erro... type CandidateNodeMode (line 35) | type CandidateNodeMode struct method GetThisNodePosition (line 38) | func (candidateNodeMode *CandidateNodeMode) GetThisNodePosition() (int... method GetHostWithMaxID (line 41) | func (candidateNodeMode *CandidateNodeMode) GetHostWithMaxID() ([]stri... type SelectModel (line 55) | type SelectModel struct method GetThisNodePosition (line 58) | func (s *SelectModel) GetThisNodePosition() (int64, error) { method GetHostWithMaxID (line 61) | func (s *SelectModel) GetHostWithMaxID() ([]string, error) { method GetWorkMode (line 65) | func (s SelectModel) GetWorkMode() Model { function GetCandidateNodePositionByPublicKey (line 72) | func GetCandidateNodePositionByPublicKey() (int64, error) { function GetCandidateNodes (line 87) | func GetCandidateNodes() (sqldb.CandidateNodes, error) { FILE: packages/daemons/monitoring.go function Monitoring (line 22) | func Monitoring(w http.ResponseWriter, r *http.Request) { function addKey (line 65) | func addKey(buf *bytes.Buffer, key string, value any) error { function logError (line 75) | func logError(w http.ResponseWriter, err error) { FILE: packages/daemons/queue_parser_blocks.go function QueueParserBlocks (line 33) | func QueueParserBlocks(ctx context.Context, d *daemon) error { FILE: packages/daemons/queue_parser_tx.go function QueueParserTx (line 16) | func QueueParserTx(ctx context.Context, d *daemon) error { FILE: packages/daemons/scheduler.go function loadContractTasks (line 22) | func loadContractTasks() error { function Scheduler (line 60) | func Scheduler(ctx context.Context, d *daemon) error { FILE: packages/daemons/stopdaemons.go function WaitStopTime (line 21) | func WaitStopTime() { FILE: packages/daemons/wait_for_signals.go function go_callback_int (line 44) | func go_callback_int() { function waitSig (line 51) | func waitSig() { function WaitForSignals (line 56) | func WaitForSignals() { FILE: packages/language/language.go type cacheLang (line 23) | type cacheLang struct function IsLang (line 35) | func IsLang(code string) bool { function DefLang (line 48) | func DefLang() string { function UpdateLang (line 56) | func UpdateLang(state int, name, value string) error { function loadLang (line 78) | func loadLang(transaction *sqldb.DbTransaction, state int) error { function LangText (line 114) | func LangText(transaction *sqldb.DbTransaction, in string, state int, ac... function LangMacro (line 170) | func LangMacro(input string, state int, accept string) string { function GetLang (line 217) | func GetLang(state int, accept string) (lng string) { FILE: packages/migration/clb/scheme.go function GetCLBScript (line 13) | func GetCLBScript() string { FILE: packages/migration/ecosystem.go type SqlData (line 19) | type SqlData struct constant sqlPrimary (line 36) | sqlPrimary = "primary" constant sqlUnique (line 37) | sqlUnique = "unique" constant sqlIndex (line 38) | sqlIndex = "index" constant sqlSeq (line 39) | sqlSeq = "seq" function sqlHeadSequence (line 42) | func sqlHeadSequence(name string) string { function sqlHead (line 49) | func sqlHead(name string) string { function sqlEnd (line 55) | func sqlEnd(options ...string) (ret string) { function sqlConvert (line 101) | func sqlConvert(in []string) (ret string, err error) { function sqlTemplate (line 130) | func sqlTemplate(input []string, data any) (ret string, err error) { function GetEcosystemScript (line 149) | func GetEcosystemScript(data SqlData) (string, error) { function GetFirstEcosystemScript (line 162) | func GetFirstEcosystemScript(data SqlData) (ret string, err error) { function GetFirstTableScript (line 188) | func GetFirstTableScript(data SqlData) (string, error) { function GetCommonEcosystemScript (line 195) | func GetCommonEcosystemScript() (string, error) { FILE: packages/migration/ecosystem_test.go function TestGetEcosystemScript (line 14) | func TestGetEcosystemScript(t *testing.T) { FILE: packages/migration/gen/contracts.go constant ext (line 21) | ext = ".sim" constant defaultPackageName (line 23) | defaultPackageName = "migration" type scenario (line 53) | type scenario struct type contract (line 61) | type contract struct type meta (line 68) | type meta struct function main (line 92) | func main() { function escape (line 100) | func escape(data string) template.HTML { function loadSource (line 107) | func loadSource(srcPath string) (*contract, error) { function loadSources (line 143) | func loadSources(srcPaths []string) ([]*contract, error) { function generate (line 172) | func generate(s scenario) error { FILE: packages/migration/gen/contracts_test.go function TestEscape (line 18) | func TestEscape(t *testing.T) { function tempContract (line 33) | func tempContract(appID int, conditions, value string) (string, error) { function TestLoadSource (line 47) | func TestLoadSource(t *testing.T) { FILE: packages/migration/migration.go constant eVer (line 22) | eVer = `Wrong version %s` type migration (line 37) | type migration struct type database (line 43) | type database interface function compareVer (line 48) | func compareVer(a, b string) (int, error) { function migrate (line 77) | func migrate(db database, appVer string, migrations []*migration) error { function runMigrations (line 116) | func runMigrations(db database, migrationList []*migration) error { function InitMigrate (line 121) | func InitMigrate(db database) error { function UpdateMigrate (line 133) | func UpdateMigrate(db database) error { FILE: packages/migration/migration_test.go type dbMock (line 12) | type dbMock struct method CurrentVersion (line 16) | func (dbm *dbMock) CurrentVersion() (string, error) { method ApplyMigration (line 20) | func (dbm *dbMock) ApplyMigration(version, query string) error { function createDBMock (line 25) | func createDBMock(version string) *dbMock { function TestMockMigration (line 29) | func TestMockMigration(t *testing.T) { FILE: packages/modes/api.go function RegisterRoutes (line 15) | func RegisterRoutes() http.Handler { type JsonRpcRoutes (line 37) | type JsonRpcRoutes struct method ServeHTTP (line 42) | func (s *JsonRpcRoutes) ServeHTTP(w http.ResponseWriter, r *http.Reque... function RegisterJsonRPCRoutes (line 50) | func RegisterJsonRPCRoutes(next http.Handler) http.Handler { FILE: packages/modes/client_tx.go type blockchainTxPreprocessor (line 23) | type blockchainTxPreprocessor struct method ProcessClientTxBatches (line 25) | func (p blockchainTxPreprocessor) ProcessClientTxBatches(txDatas [][]b... type ClbTxPreprocessor (line 39) | type ClbTxPreprocessor struct method ProcessClientTxBatches (line 77) | func (p ClbTxPreprocessor) ProcessClientTxBatches(txData [][]byte, key... function GetClientTxPreprocessor (line 81) | func GetClientTxPreprocessor() types.ClientTxPreprocessor { type BlockchainSCRunner (line 90) | type BlockchainSCRunner struct method RunContract (line 93) | func (runner BlockchainSCRunner) RunContract(data, hash []byte, keyID,... type CLBSCRunner (line 103) | type CLBSCRunner struct method RunContract (line 106) | func (runner CLBSCRunner) RunContract(data, hash []byte, keyID, tnow i... function GetSmartContractRunner (line 118) | func GetSmartContractRunner() types.SmartContractRunner { FILE: packages/modes/ecosystem_getter.go function GetEcosystemGetter (line 12) | func GetEcosystemGetter() types.EcosystemGetter { type BCEcosystemGetter (line 20) | type BCEcosystemGetter struct method GetEcosystemName (line 24) | func (ng BCEcosystemGetter) GetEcosystemName(id int64) (string, error) { method GetEcosystemLookup (line 40) | func (g BCEcosystemGetter) GetEcosystemLookup() ([]int64, []string, er... method ValidateId (line 44) | func (v BCEcosystemGetter) ValidateId(formEcosysID, clientEcosysID int... type CLBEcosystemGetter (line 63) | type CLBEcosystemGetter struct method GetEcosystemLookup (line 65) | func (g CLBEcosystemGetter) GetEcosystemLookup() ([]int64, []string, e... method ValidateId (line 69) | func (CLBEcosystemGetter) ValidateId(id, clientID int64, le *log.Entry... method GetEcosystemName (line 73) | func (ng CLBEcosystemGetter) GetEcosystemName(id int64) (string, error) { FILE: packages/modes/mode_fabrics.go function GetDaemonLoader (line 24) | func GetDaemonLoader() types.DaemonFactory { type BCDaemonFactory (line 43) | type BCDaemonFactory struct method Load (line 48) | func (l BCDaemonFactory) Load(ctx context.Context) error { method GetDaemonsList (line 98) | func (BCDaemonFactory) GetDaemonsList() []string { type SNDaemonFactory (line 113) | type SNDaemonFactory struct method Load (line 118) | func (l SNDaemonFactory) Load(ctx context.Context) error { method GetDaemonsList (line 163) | func (SNDaemonFactory) GetDaemonsList() []string { type CLBDaemonFactory (line 170) | type CLBDaemonFactory struct method Load (line 175) | func (l CLBDaemonFactory) Load(ctx context.Context) error { method GetDaemonsList (line 203) | func (CLBDaemonFactory) GetDaemonsList() []string { function logMode (line 209) | func logMode(logger *log.Entry, mode string) { FILE: packages/modes/rpc.go constant stopTimeout (line 19) | stopTimeout = 5 * time.Second type rpcServer (line 21) | type rpcServer struct method rpcIsEnable (line 82) | func (r *rpcServer) rpcIsEnable() bool { method getApis (line 86) | func (r *rpcServer) getApis(namespace string) []any { method enableRpc (line 105) | func (r *rpcServer) enableRpc(namespaces string) error { method ServeHTTP (line 129) | func (s *rpcServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { method disableRPC (line 147) | func (r *rpcServer) disableRPC() { type rpcHandler (line 27) | type rpcHandler struct type adminAPI (line 32) | type adminAPI struct method GetApis (line 36) | func (a *adminAPI) GetApis() []any { function newAdminApi (line 48) | func newAdminApi(r *rpcServer) *adminAPI { type serverApi (line 54) | type serverApi struct method StartJsonRpc (line 62) | func (s *serverApi) StartJsonRpc(ctx jsonrpc.RequestContext, namespace... method StopJsonRpc (line 75) | func (s *serverApi) StopJsonRpc() (bool, *jsonrpc.Error) { function newServerApi (line 58) | func newServerApi(r *rpcServer) *serverApi { function newRpcServer (line 139) | func newRpcServer(m jsonrpc.Mode) *rpcServer { FILE: packages/network/httpserver/max_body.go type MaxBodyReader (line 9) | type MaxBodyReader struct method ServeHTTP (line 14) | func (h *MaxBodyReader) ServeHTTP(w http.ResponseWriter, r *http.Reque... function NewMaxBodyReader (line 19) | func NewMaxBodyReader(h http.Handler, n int64) http.Handler { FILE: packages/network/machineState.go type VoteMsg (line 5) | type VoteMsg struct method VoteForSign (line 17) | func (voteMsg *VoteMsg) VoteForSign() string { method VerifyVoteForSign (line 21) | func (voteMsg *VoteMsg) VerifyVoteForSign() string { FILE: packages/network/protocol.go type ReqTypesFlag (line 20) | type ReqTypesFlag constant RequestTypeHonorNode (line 24) | RequestTypeHonorNode ReqTypesFlag = iota + 1 constant RequestTypeNotHonorNode (line 25) | RequestTypeNotHonorNode constant RequestTypeStopNetwork (line 26) | RequestTypeStopNetwork constant RequestTypeConfirmation (line 27) | RequestTypeConfirmation constant RequestTypeBlockCollection (line 28) | RequestTypeBlockCollection constant RequestTypeMaxBlock (line 29) | RequestTypeMaxBlock constant RequestTypeVoting (line 30) | RequestTypeVoting constant RequestSyncMatchineState (line 31) | RequestSyncMatchineState constant BlocksPerRequest (line 34) | BlocksPerRequest int = 10 type SelfReaderWriter (line 41) | type SelfReaderWriter interface type RequestType (line 47) | type RequestType struct method Read (line 52) | func (rt *RequestType) Read(r io.Reader) error { method Write (line 56) | func (rt *RequestType) Write(w io.Writer) error { type MaxBlockResponse (line 61) | type MaxBlockResponse struct method Read (line 65) | func (resp *MaxBlockResponse) Read(r io.Reader) error { method Write (line 69) | func (resp *MaxBlockResponse) Write(w io.Writer) error { type GetBodiesRequest (line 74) | type GetBodiesRequest struct method Read (line 79) | func (req *GetBodiesRequest) Read(r io.Reader) error { method Write (line 94) | func (req *GetBodiesRequest) Write(w io.Writer) error { type GetBodyResponse (line 110) | type GetBodyResponse struct method Read (line 114) | func (resp *GetBodyResponse) Read(r io.Reader) error { method Write (line 125) | func (resp *GetBodyResponse) Write(w io.Writer) error { type ConfirmRequest (line 130) | type ConfirmRequest struct method Read (line 134) | func (req *ConfirmRequest) Read(r io.Reader) error { method Write (line 138) | func (req *ConfirmRequest) Write(w io.Writer) error { type ConfirmResponse (line 143) | type ConfirmResponse struct method Read (line 148) | func (resp *ConfirmResponse) Read(r io.Reader) error { method Write (line 159) | func (resp *ConfirmResponse) Write(w io.Writer) error { type DisRequest (line 169) | type DisRequest struct method Read (line 173) | func (req *DisRequest) Read(r io.Reader) error { method Write (line 184) | func (req *DisRequest) Write(w io.Writer) error { type DisHashResponse (line 194) | type DisHashResponse struct method Read (line 198) | func (resp *DisHashResponse) Read(r io.Reader) error { method Write (line 208) | func (resp *DisHashResponse) Write(w io.Writer) error { type StopNetworkRequest (line 212) | type StopNetworkRequest struct method Read (line 216) | func (req *StopNetworkRequest) Read(r io.Reader) error { method Write (line 226) | func (req *StopNetworkRequest) Write(w io.Writer) error { type StopNetworkResponse (line 230) | type StopNetworkResponse struct method Read (line 234) | func (resp *StopNetworkResponse) Read(r io.Reader) error { method Write (line 244) | func (resp *StopNetworkResponse) Write(w io.Writer) error { function readBool (line 248) | func readBool(r io.Reader) (bool, error) { function writeBool (line 257) | func writeBool(w io.Writer, val bool) error { function ReadSlice (line 266) | func ReadSlice(r io.Reader) ([]byte, error) { function ReadSliceWithMaxSize (line 288) | func ReadSliceWithMaxSize(r io.Reader, maxSize uint64) ([]byte, error) { function readSliceToBuf (line 314) | func readSliceToBuf(r io.Reader, buf []byte) ([]byte, error) { function writeSlice (line 335) | func writeSlice(w io.Writer, slice []byte) error { function readSliceWithSize (line 345) | func readSliceWithSize(r io.Reader, size int) ([]byte, error) { function writeSliceWithSize (line 356) | func writeSliceWithSize(w io.Writer, value []byte, size int32) error { function SendRequestType (line 365) | func SendRequestType(reqType int64, w io.Writer) error { function ReadInt (line 370) | func ReadInt(r io.Reader) (int64, error) { function WriteInt (line 381) | func WriteInt(value int64, w io.Writer) error { type CandidateNodeVotingRequest (line 390) | type CandidateNodeVotingRequest struct method Read (line 394) | func (req *CandidateNodeVotingRequest) Read(r io.Reader) error { method Write (line 405) | func (req *CandidateNodeVotingRequest) Write(w io.Writer) error { type CandidateNodeVotingResponse (line 414) | type CandidateNodeVotingResponse struct method Read (line 418) | func (resp *CandidateNodeVotingResponse) Read(r io.Reader) error { method Write (line 428) | func (resp *CandidateNodeVotingResponse) Write(w io.Writer) error { type BroadcastNodeConnInfoRequest (line 432) | type BroadcastNodeConnInfoRequest struct method Read (line 436) | func (req *BroadcastNodeConnInfoRequest) Read(r io.Reader) error { method Write (line 447) | func (req *BroadcastNodeConnInfoRequest) Write(w io.Writer) error { type BroadcastNodeConnInfoResponse (line 456) | type BroadcastNodeConnInfoResponse struct method Read (line 460) | func (resp *BroadcastNodeConnInfoResponse) Read(r io.Reader) error { method Write (line 470) | func (resp *BroadcastNodeConnInfoResponse) Write(w io.Writer) error { FILE: packages/network/protocol_test.go function TestEmptyGetBodyResponse (line 17) | func TestEmptyGetBodyResponse(t *testing.T) { function TestWriteReadInts (line 28) | func TestWriteReadInts(t *testing.T) { function TestRequestType (line 41) | func TestRequestType(t *testing.T) { function TestGetBodyResponse (line 54) | func TestGetBodyResponse(t *testing.T) { function TestBodyResponse (line 67) | func TestBodyResponse(t *testing.T) { FILE: packages/network/tcpclient/blocks_collection.go constant hasVal (line 23) | hasVal = "has value" constant hasntVal (line 24) | hasntVal = "has not value" constant sizeBytesLength (line 26) | sizeBytesLength = 4 function GetBlocksBodies (line 29) | func GetBlocksBodies(ctx context.Context, host string, blockID int64, re... function GetBlockBodiesChan (line 74) | func GetBlockBodiesChan(ctx context.Context, src io.ReadCloser, blocksCo... FILE: packages/network/tcpclient/candidate_node_voting.go function UpdateMachineStatus (line 15) | func UpdateMachineStatus(localAddress, tcpAddress string, logger *log.En... function BroadcastNodeConnInfo (line 79) | func BroadcastNodeConnInfo(tcpAddress string, data []byte, logger *log.E... FILE: packages/network/tcpclient/client.go function NormalizeHostAddress (line 22) | func NormalizeHostAddress(address string, defaultPort int64) (string, er... function newConnection (line 36) | func newConnection(addr string) (net.Conn, error) { FILE: packages/network/tcpclient/client_test.go function init (line 21) | func init() { type BufCloser (line 27) | type BufCloser struct method Close (line 31) | func (bc BufCloser) Close() error { function BenchmarkGetBlockBodiesWithChanReadAll (line 36) | func BenchmarkGetBlockBodiesWithChanReadAll(t *testing.B) { function BenchmarkGetBlockBodiesChanByBlockWithSyncPool (line 74) | func BenchmarkGetBlockBodiesChanByBlockWithSyncPool(t *testing.B) { function BenchmarkGetBlockBodiesChanByBlockWithBytePool (line 110) | func BenchmarkGetBlockBodiesChanByBlockWithBytePool(t *testing.B) { function BenchmarkGetBlockBodiesWithChanReadToStruct (line 154) | func BenchmarkGetBlockBodiesWithChanReadToStruct(t *testing.B) { function BenchmarkGetBlockBodiesAsSlice (line 188) | func BenchmarkGetBlockBodiesAsSlice(t *testing.B) { FILE: packages/network/tcpclient/confirmation.go function CheckConfirmation (line 15) | func CheckConfirmation(host string, blockID int64, logger *log.Entry) (h... FILE: packages/network/tcpclient/disseminator.go function sendRawTransacitionsToHost (line 32) | func sendRawTransacitionsToHost(host string, packet []byte) error { function SendTransacitionsToAll (line 48) | func SendTransacitionsToAll(ctx context.Context, hosts []string, txes []... function SendFullBlockToAll (line 85) | func SendFullBlockToAll(ctx context.Context, hosts []string, block *sqld... function sendFullBlockRequest (line 163) | func sendFullBlockRequest(con net.Conn, data []byte) (response []byte, e... function MarshalTxPacket (line 174) | func MarshalTxPacket(txes []sqldb.Transaction) ([]byte, error) { function prepareFullBlockRequest (line 192) | func prepareFullBlockRequest(block *sqldb.InfoBlock, trs []sqldb.Transac... function resieveRequiredTransactions (line 213) | func resieveRequiredTransactions(con net.Conn) (response []byte, err err... function parseTxHashesFromResponse (line 231) | func parseTxHashesFromResponse(resp []byte) (hashes [][]byte) { function sendDisseminatorRequest (line 240) | func sendDisseminatorRequest(con net.Conn, requestType network.ReqTypesF... FILE: packages/network/tcpclient/max_block.go function HostWithMaxBlock (line 19) | func HostWithMaxBlock(ctx context.Context, hosts []string) (bestHost str... function GetMaxBlockID (line 27) | func GetMaxBlockID(host string) (blockID int64, err error) { function getMaxBlock (line 31) | func getMaxBlock(host string) (blockID int64, err error) { function hostWithMaxBlock (line 61) | func hostWithMaxBlock(ctx context.Context, hosts []string) (bestHost str... FILE: packages/network/tcpclient/pools.go function powerOfTwo (line 12) | func powerOfTwo(v int) int64 { function init (line 25) | func init() { type bytePool (line 31) | type bytePool struct method Get (line 35) | func (p *bytePool) Get(size int64) []byte { method Put (line 49) | func (p *bytePool) Put(buf []byte) { FILE: packages/network/tcpclient/pools_test.go function TestBytesPoolGet (line 15) | func TestBytesPoolGet(t *testing.T) { function TestBytesPoolPut (line 21) | func TestBytesPoolPut(t *testing.T) { function TestBytesPoolCicle (line 34) | func TestBytesPoolCicle(t *testing.T) { FILE: packages/network/tcpclient/stop_network.go function SendStopNetwork (line 12) | func SendStopNetwork(addr string, req *network.StopNetworkRequest) error { FILE: packages/network/tcpserver/blocks_collection.go function BlockCollection (line 19) | func BlockCollection(request *network.GetBodiesRequest, w net.Conn) error { function lenOfBlockData (line 58) | func lenOfBlockData(blocks []sqldb.BlockChain) int64 { FILE: packages/network/tcpserver/candidate_node_voting.go function CandidateNodeVoting (line 16) | func CandidateNodeVoting(r *network.CandidateNodeVotingRequest) (*networ... type VotingRes (line 38) | type VotingRes struct type VotingTotal (line 42) | type VotingTotal struct function SyncMatchineStateRes (line 49) | func SyncMatchineStateRes(request *network.BroadcastNodeConnInfoRequest)... function checkClientVote (line 75) | func checkClientVote(r *network.CandidateNodeVotingRequest, voteMsgParam... function sign (line 138) | func sign(voteMsg *network.VoteMsg) ([]byte, error) { FILE: packages/network/tcpserver/confirmation.go function Confirmation (line 17) | func Confirmation(r *network.ConfirmRequest) (*network.ConfirmResponse, ... FILE: packages/network/tcpserver/disseminate_tx.go function DisseminateTxs (line 30) | func DisseminateTxs(rw io.ReadWriter) error { function DecryptData (line 113) | func DecryptData(binaryTx *[]byte) ([]byte, []byte, []byte, error) { function UnmarshalTxPacket (line 182) | func UnmarshalTxPacket(dat []byte) ([][]byte, error) { FILE: packages/network/tcpserver/disseminator.go function Disseminator (line 30) | func Disseminator(rw io.ReadWriter) error { function resieveTxBodies (line 109) | func resieveTxBodies(con io.Reader) ([]byte, error) { function processBlock (line 126) | func processBlock(buf *bytes.Buffer, honorNodeID int64) error { function getUnknownTransactions (line 165) | func getUnknownTransactions(buf *bytes.Buffer) ([]byte, error) { function readHashes (line 213) | func readHashes(buf *bytes.Buffer) ([][]byte, error) { function saveNewTransactions (line 228) | func saveNewTransactions(binaryTxs []byte) error { FILE: packages/network/tcpserver/max_block.go function MaxBlock (line 18) | func MaxBlock() (*network.MaxBlockResponse, error) { FILE: packages/network/tcpserver/stop_network.go function StopNetwork (line 29) | func StopNetwork(req *network.StopNetworkRequest, w net.Conn) error { function processStopNetwork (line 44) | func processStopNetwork(b []byte) ([]byte, error) { FILE: packages/network/tcpserver/tcpserver.go function HandleTCPRequest (line 20) | func HandleTCPRequest(rw net.Conn) { function TcpListener (line 97) | func TcpListener(laddr string) error { FILE: packages/notificator/notificator.go type notificationRecord (line 18) | type notificationRecord struct function UpdateNotifications (line 25) | func UpdateNotifications(ecosystemID int64, accounts []string) { function UpdateRolesNotifications (line 37) | func UpdateRolesNotifications(ecosystemID int64, roles []int64) { function getEcosystemNotificationStats (line 42) | func getEcosystemNotificationStats(ecosystemID int64, users []string) (m... function parseRecipientNotification (line 52) | func parseRecipientNotification(rows []sqldb.NotificationsCount, systemI... function sendUserStats (line 82) | func sendUserStats(account string, stats []notificationRecord) { FILE: packages/notificator/queue.go type Queue (line 11) | type Queue struct method Size (line 26) | func (q *Queue) Size() int { method AddAccounts (line 30) | func (q *Queue) AddAccounts(ecosystem int64, list ...string) { method AddRoles (line 37) | func (q *Queue) AddRoles(ecosystem int64, list ...int64) { method Send (line 44) | func (q *Queue) Send() { type Accounts (line 16) | type Accounts struct type Roles (line 21) | type Roles struct function NewQueue (line 54) | func NewQueue() types.Notifications { FILE: packages/notificator/token_movements.go constant networkPerDayLimit (line 24) | networkPerDayLimit = 100000000 constant networkPerDayMsgTemplate (line 25) | networkPerDayMsgTemplate = "day chain movement volume = %s" constant fromToDayLimitMsgTemplate (line 26) | fromToDayLimitMsgTemplate = "from %d to %d sended volume = %s" constant perBlockTokenMovementTemplate (line 27) | perBlockTokenMovementTemplate = "from wallet %d token movement count = %... constant networkPerDayEvent (line 29) | networkPerDayEvent = 1 constant fromToDayLimitEvent (line 30) | fromToDayLimitEvent = 2 constant perBlockTokenMovementEvent (line 31) | perBlockTokenMovementEvent = 3 function init (line 36) | func init() { function sendEmail (line 40) | func sendEmail(conf conf.TokenMovementConfig, message string) error { function CheckTokenMovementLimits (line 56) | func CheckTokenMovementLimits(tx *sqldb.DbTransaction, conf conf.TokenMo... function needCheck (line 101) | func needCheck(event uint8) bool { FILE: packages/pbgo/tx.pb.go constant _ (line 23) | _ = proto.GoGoProtoPackageIsVersion3 type TransactionTypes (line 26) | type TransactionTypes method String (line 46) | func (x TransactionTypes) String() string { method EnumDescriptor (line 50) | func (TransactionTypes) EnumDescriptor() ([]byte, []int) { constant TransactionTypes_SMARTCONTRACT (line 29) | TransactionTypes_SMARTCONTRACT TransactionTypes = 0 constant TransactionTypes_FIRSTBLOCK (line 30) | TransactionTypes_FIRSTBLOCK TransactionTypes = 1 constant TransactionTypes_STOPNETWORK (line 31) | TransactionTypes_STOPNETWORK TransactionTypes = 2 type TxInvokeStatusCode (line 55) | type TxInvokeStatusCode method String (line 78) | func (x TxInvokeStatusCode) String() string { method EnumDescriptor (line 82) | func (TxInvokeStatusCode) EnumDescriptor() ([]byte, []int) { constant TxInvokeStatusCode_SUCCESS (line 58) | TxInvokeStatusCode_SUCCESS TxInvokeStatusCode = 0 constant TxInvokeStatusCode_PENALTY (line 59) | TxInvokeStatusCode_PENALTY TxInvokeStatusCode = 1 constant TxInvokeStatusCode_FAILED (line 60) | TxInvokeStatusCode_FAILED TxInvokeStatusCode = 2 constant TxInvokeStatusCode_PENDING (line 61) | TxInvokeStatusCode_PENDING TxInvokeStatusCode = 3 type FirstBlock (line 86) | type FirstBlock struct method Reset (line 96) | func (m *FirstBlock) Reset() { *m = FirstBlock{} } method String (line 97) | func (m *FirstBlock) String() string { return proto.CompactTextString(... method ProtoMessage (line 98) | func (*FirstBlock) ProtoMessage() {} method Descriptor (line 99) | func (*FirstBlock) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 102) | func (m *FirstBlock) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 105) | func (m *FirstBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte... method XXX_Merge (line 117) | func (m *FirstBlock) XXX_Merge(src proto.Message) { method XXX_Size (line 120) | func (m *FirstBlock) XXX_Size() int { method XXX_DiscardUnknown (line 123) | func (m *FirstBlock) XXX_DiscardUnknown() { method GetKeyId (line 129) | func (m *FirstBlock) GetKeyId() int64 { method GetTimestamp (line 136) | func (m *FirstBlock) GetTimestamp() int64 { method GetPublicKey (line 143) | func (m *FirstBlock) GetPublicKey() []byte { method GetNodePublicKey (line 150) | func (m *FirstBlock) GetNodePublicKey() []byte { method GetStopNetworkCertBundle (line 157) | func (m *FirstBlock) GetStopNetworkCertBundle() []byte { method GetTest (line 164) | func (m *FirstBlock) GetTest() int64 { method GetPrivateBlockchain (line 171) | func (m *FirstBlock) GetPrivateBlockchain() uint64 { method Marshal (line 361) | func (m *FirstBlock) Marshal() (dAtA []byte, err error) { method MarshalTo (line 371) | func (m *FirstBlock) MarshalTo(dAtA []byte) (int, error) { method MarshalToSizedBuffer (line 376) | func (m *FirstBlock) MarshalToSizedBuffer(dAtA []byte) (int, error) { method Size (line 530) | func (m *FirstBlock) Size() (n int) { method Unmarshal (line 615) | func (m *FirstBlock) Unmarshal(dAtA []byte) error { type StopNetwork (line 178) | type StopNetwork struct method Reset (line 184) | func (m *StopNetwork) Reset() { *m = StopNetwork{} } method String (line 185) | func (m *StopNetwork) String() string { return proto.CompactTextString... method ProtoMessage (line 186) | func (*StopNetwork) ProtoMessage() {} method Descriptor (line 187) | func (*StopNetwork) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 190) | func (m *StopNetwork) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 193) | func (m *StopNetwork) XXX_Marshal(b []byte, deterministic bool) ([]byt... method XXX_Merge (line 205) | func (m *StopNetwork) XXX_Merge(src proto.Message) { method XXX_Size (line 208) | func (m *StopNetwork) XXX_Size() int { method XXX_DiscardUnknown (line 211) | func (m *StopNetwork) XXX_DiscardUnknown() { method GetKeyId (line 217) | func (m *StopNetwork) GetKeyId() int64 { method GetTimestamp (line 224) | func (m *StopNetwork) GetTimestamp() int64 { method GetStopNetworkCert (line 231) | func (m *StopNetwork) GetStopNetworkCert() []byte { method Marshal (line 425) | func (m *StopNetwork) Marshal() (dAtA []byte, err error) { method MarshalTo (line 435) | func (m *StopNetwork) MarshalTo(dAtA []byte) (int, error) { method MarshalToSizedBuffer (line 440) | func (m *StopNetwork) MarshalToSizedBuffer(dAtA []byte) (int, error) { method Size (line 563) | func (m *StopNetwork) Size() (n int) { method Unmarshal (line 843) | func (m *StopNetwork) Unmarshal(dAtA []byte) error { type TxResult (line 238) | type TxResult struct method Reset (line 246) | func (m *TxResult) Reset() { *m = TxResult{} } method String (line 247) | func (m *TxResult) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 248) | func (*TxResult) ProtoMessage() {} method Descriptor (line 249) | func (*TxResult) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 252) | func (m *TxResult) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 255) | func (m *TxResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, ... method XXX_Merge (line 267) | func (m *TxResult) XXX_Merge(src proto.Message) { method XXX_Size (line 270) | func (m *TxResult) XXX_Size() int { method XXX_DiscardUnknown (line 273) | func (m *TxResult) XXX_DiscardUnknown() { method GetHash (line 279) | func (m *TxResult) GetHash() []byte { method GetBlockId (line 286) | func (m *TxResult) GetBlockId() int64 { method GetCode (line 293) | func (m *TxResult) GetCode() TxInvokeStatusCode { method GetResult (line 300) | func (m *TxResult) GetResult() string { method GetError (line 307) | func (m *TxResult) GetError() string { method Marshal (line 465) | func (m *TxResult) Marshal() (dAtA []byte, err error) { method MarshalTo (line 475) | func (m *TxResult) MarshalTo(dAtA []byte) (int, error) { method MarshalToSizedBuffer (line 480) | func (m *TxResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { method Size (line 582) | func (m *TxResult) Size() (n int) { method Unmarshal (line 965) | func (m *TxResult) Unmarshal(dAtA []byte) error { function init (line 314) | func init() { function init (line 322) | func init() { proto.RegisterFile("tx.proto", fileDescriptor_0fd2153dc07d... function encodeVarintTx (line 519) | func encodeVarintTx(dAtA []byte, offset int, v uint64) int { function sovTx (line 609) | func sovTx(x uint64) (n int) { function sozTx (line 612) | func sozTx(x uint64) (n int) { function skipTx (line 1151) | func skipTx(dAtA []byte) (n int, err error) { FILE: packages/protocols/block_counter.go type intervalBlocksCounter (line 9) | type intervalBlocksCounter interface type blocksCounter (line 13) | type blocksCounter struct method count (line 16) | func (bc *blocksCounter) count(state blockGenerationState) (int, error) { FILE: packages/protocols/block_counter_mock.go type mockIntervalBlocksCounter (line 10) | type mockIntervalBlocksCounter struct method count (line 15) | func (_m *mockIntervalBlocksCounter) count(state blockGenerationState)... FILE: packages/protocols/block_time_calculator.go type BlockTimeCalculator (line 18) | type BlockTimeCalculator struct method TimeToGenerate (line 48) | func (btc *BlockTimeCalculator) TimeToGenerate(nodePosition int64) (bo... method ValidateBlock (line 66) | func (btc *BlockTimeCalculator) ValidateBlock(nodePosition int64, at t... method SetClock (line 84) | func (btc *BlockTimeCalculator) SetClock(clock utils.Clock) *BlockTime... method setBlockCounter (line 89) | func (btc *BlockTimeCalculator) setBlockCounter(counter intervalBlocks... method countBlockTime (line 94) | func (btc *BlockTimeCalculator) countBlockTime(blockTime time.Time) (b... type blockGenerationState (line 29) | type blockGenerationState struct function NewBlockTimeCalculator (line 36) | func NewBlockTimeCalculator(firstBlockTime time.Time, generationTime, bl... function BuildBlockTimeCalculator (line 121) | func BuildBlockTimeCalculator(transaction *sqldb.DbTransaction) (BlockTi... FILE: packages/protocols/block_time_calculator_test.go function TestBlockTimeCalculator_TimeToGenerate (line 17) | func TestBlockTimeCalculator_TimeToGenerate(t *testing.T) { function TestBlockTimeCalculator_ValidateBlock (line 111) | func TestBlockTimeCalculator_ValidateBlock(t *testing.T) { function TestBlockTImeCalculator_countBlockTime (line 191) | func TestBlockTImeCalculator_countBlockTime(t *testing.T) { FILE: packages/protocols/block_time_counter_test.go function TestBlockTimeCounter (line 16) | func TestBlockTimeCounter(t *testing.T) { function TestRangeByTime (line 44) | func TestRangeByTime(t *testing.T) { function TestBlockOnlineTime (line 69) | func TestBlockOnlineTime(t *testing.T) { FILE: packages/protocols/generation-queue.go type BlockTimeChecker (line 17) | type BlockTimeChecker interface type BlockTimeCounter (line 29) | type BlockTimeCounter struct method queue (line 36) | func (btc *BlockTimeCounter) queue(t time.Time) (int, error) { method nodePosition (line 47) | func (btc *BlockTimeCounter) nodePosition(t time.Time) (int, error) { method NodeTimeExists (line 56) | func (btc *BlockTimeCounter) NodeTimeExists(t time.Time, nodePosition ... method BlockForTimeExists (line 75) | func (btc *BlockTimeCounter) BlockForTimeExists(t time.Time, nodePosit... method nextTime (line 91) | func (btc *BlockTimeCounter) nextTime(t time.Time, nodePosition int) (... method RangeByTime (line 111) | func (btc *BlockTimeCounter) RangeByTime(t time.Time) (start, end time... method TimeToGenerate (line 124) | func (btc *BlockTimeCounter) TimeToGenerate(at time.Time, nodePosition... function NewBlockTimeCounter (line 134) | func NewBlockTimeCounter() *BlockTimeCounter { FILE: packages/publisher/publisher.go type ClientsChannels (line 22) | type ClientsChannels struct method Set (line 27) | func (cn *ClientsChannels) Set(id int64, s string) { method Get (line 33) | func (cn *ClientsChannels) Get(id int64) string { type CentJWT (line 46) | type CentJWT struct function InitCentrifugo (line 52) | func InitCentrifugo(cfg conf.CentrifugoConfig) { function GetJWTCent (line 60) | func GetJWTCent(userID, expire int64) (string, string, error) { function Write (line 80) | func Write(account string, data string) error { function GetStats (line 87) | func GetStats() (gocent.InfoResult, error) { FILE: packages/rollback/block.go function RollbackBlock (line 26) | func RollbackBlock(data []byte) error { function rollbackBlock (line 91) | func rollbackBlock(dbTx *sqldb.DbTransaction, block *block.Block) error { FILE: packages/rollback/rollback.go function ToBlockID (line 23) | func ToBlockID(blockID int64, dbTx *sqldb.DbTransaction, logger *log.Ent... FILE: packages/rollback/transaction.go function rollbackUpdatedRow (line 22) | func rollbackUpdatedRow(tx map[string]string, where string, dbTx *sqldb.... function rollbackInsertedRow (line 47) | func rollbackInsertedRow(tx map[string]string, where string, dbTx *sqldb... function rollbackTransaction (line 55) | func rollbackTransaction(txHash []byte, dbTx *sqldb.DbTransaction, logge... FILE: packages/scheduler/contract/request.go constant headerAuthPrefix (line 27) | headerAuthPrefix = "Bearer " type authResult (line 30) | type authResult struct type contractResult (line 35) | type contractResult struct function NodeContract (line 47) | func NodeContract(Name string) (result contractResult, err error) { function sendAPIRequest (line 89) | func sendAPIRequest(rtype, url string, form *url.Values, v any, auth str... FILE: packages/scheduler/contract/task.go type ContractHandler (line 15) | type ContractHandler struct method Run (line 20) | func (ch *ContractHandler) Run(t *scheduler.Task) { FILE: packages/scheduler/scheduler.go function init (line 16) | func init() { type Scheduler (line 21) | type Scheduler struct method AddTask (line 26) | func (s *Scheduler) AddTask(t *Task) error { method UpdateTask (line 39) | func (s *Scheduler) UpdateTask(t *Task) error { function NewScheduler (line 68) | func NewScheduler() *Scheduler { function AddTask (line 75) | func AddTask(t *Task) error { function UpdateTask (line 80) | func UpdateTask(t *Task) error { function Parse (line 85) | func Parse(cronSpec string) (cron.Schedule, error) { FILE: packages/scheduler/scheduler_test.go function TestParse (line 12) | func TestParse(t *testing.T) { type mockHandler (line 36) | type mockHandler struct method Run (line 40) | func (mh *mockHandler) Run(t *Task) { function TestTask (line 46) | func TestTask(t *testing.T) { FILE: packages/scheduler/task.go type Handler (line 17) | type Handler interface type Task (line 22) | type Task struct method String (line 32) | func (t *Task) String() string { method ParseCron (line 37) | func (t *Task) ParseCron() error { method Next (line 48) | func (t *Task) Next(tm time.Time) time.Time { method Run (line 56) | func (t *Task) Run() { FILE: packages/script/cmds_list.go constant cmdPush (line 10) | cmdPush = iota + 1 constant cmdVar (line 11) | cmdVar constant cmdExtend (line 12) | cmdExtend constant cmdCallExtend (line 13) | cmdCallExtend constant cmdPushStr (line 14) | cmdPushStr constant cmdCall (line 15) | cmdCall constant cmdCallVariadic (line 16) | cmdCallVariadic constant cmdReturn (line 17) | cmdReturn constant cmdIf (line 18) | cmdIf constant cmdElse (line 19) | cmdElse constant cmdAssignVar (line 20) | cmdAssignVar constant cmdAssign (line 21) | cmdAssign constant cmdLabel (line 22) | cmdLabel constant cmdContinue (line 23) | cmdContinue constant cmdWhile (line 24) | cmdWhile constant cmdBreak (line 25) | cmdBreak constant cmdIndex (line 26) | cmdIndex constant cmdSetIndex (line 27) | cmdSetIndex constant cmdFuncName (line 28) | cmdFuncName constant cmdUnwrapArr (line 29) | cmdUnwrapArr constant cmdMapInit (line 30) | cmdMapInit constant cmdArrayInit (line 31) | cmdArrayInit constant cmdError (line 32) | cmdError constant cmdNot (line 37) | cmdNot = iota | 0x0100 constant cmdSign (line 38) | cmdSign constant cmdAdd (line 42) | cmdAdd = iota | 0x0200 constant cmdSub (line 43) | cmdSub constant cmdMul (line 44) | cmdMul constant cmdDiv (line 45) | cmdDiv constant cmdAnd (line 46) | cmdAnd constant cmdOr (line 47) | cmdOr constant cmdEqual (line 48) | cmdEqual constant cmdNotEq (line 49) | cmdNotEq constant cmdLess (line 50) | cmdLess constant cmdNotLess (line 51) | cmdNotLess constant cmdGreat (line 52) | cmdGreat constant cmdNotGreat (line 53) | cmdNotGreat constant cmdSys (line 55) | cmdSys = 0xff constant cmdUnary (line 56) | cmdUnary uint16 = 50 FILE: packages/script/code_block.go type CodeBlock (line 26) | type CodeBlock struct method GetInfo (line 47) | func (m *CodeBlock) GetInfo() isCodeBlockInfo { method GetFuncInfo (line 54) | func (m *CodeBlock) GetFuncInfo() *FuncInfo { method GetContractInfo (line 61) | func (m *CodeBlock) GetContractInfo() *ContractInfo { method isObjInfoValue (line 148) | func (*CodeBlock) isObjInfoValue() {} method Extend (line 199) | func (b *CodeBlock) Extend(ext *ExtendData) { method getObjByNameExt (line 227) | func (b *CodeBlock) getObjByNameExt(name string, state uint32) (ret *O... method getObjByName (line 235) | func (block *CodeBlock) getObjByName(name string) (ret *ObjInfo) { method contractBaseCost (line 254) | func (cb *CodeBlock) contractBaseCost() int64 { method isParentContract (line 267) | func (block *CodeBlock) isParentContract() bool { type isCodeBlockInfo (line 40) | type isCodeBlockInfo interface method isCodeBlockInfo (line 44) | func (*FuncInfo) isCodeBlockInfo() {} method isCodeBlockInfo (line 45) | func (*ContractInfo) isCodeBlockInfo() {} type ByteCode (line 69) | type ByteCode struct type CodeBlocks (line 76) | type CodeBlocks method push (line 78) | func (bs *CodeBlocks) push(x any) { method peek (line 82) | func (bs *CodeBlocks) peek() *CodeBlock { method get (line 90) | func (bs *CodeBlocks) get(idx int) *CodeBlock { type ByteCodes (line 98) | type ByteCodes method push (line 100) | func (bs *ByteCodes) push(x any) { method peek (line 104) | func (bs *ByteCodes) peek() *ByteCode { function newByteCode (line 112) | func newByteCode(cmd uint16, line uint16, value any) *ByteCode { type OwnerInfo (line 117) | type OwnerInfo struct type ObjInfo (line 126) | type ObjInfo struct method GetValue (line 153) | func (m *ObjInfo) GetValue() isObjInfoValue { method GetCodeBlock (line 160) | func (m *ObjInfo) GetCodeBlock() *CodeBlock { method GetExtFuncInfo (line 167) | func (m *ObjInfo) GetExtFuncInfo() *ExtFuncInfo { method GetVariable (line 174) | func (m *ObjInfo) GetVariable() *ObjInfo_Variable { method GetExtendVariable (line 181) | func (m *ObjInfo) GetExtendVariable() *ObjInfo_ExtendVariable { method getInParams (line 285) | func (ret *ObjInfo) getInParams() int { type isObjInfoValue (line 136) | type isObjInfoValue interface type ObjInfo_Variable (line 139) | type ObjInfo_Variable struct method isObjInfoValue (line 150) | func (*ObjInfo_Variable) isObjInfoValue() {} type ObjInfo_ExtendVariable (line 143) | type ObjInfo_ExtendVariable struct method isObjInfoValue (line 151) | func (*ObjInfo_ExtendVariable) isObjInfoValue() {} method isObjInfoValue (line 149) | func (*ExtFuncInfo) isObjInfoValue() {} function NewCodeBlock (line 188) | func NewCodeBlock() *CodeBlock { function setWritable (line 274) | func setWritable(block *CodeBlocks) { FILE: packages/script/compile.go type operPrior (line 18) | type operPrior struct type compileState (line 24) | type compileState struct function newCompileState (line 30) | func newCompileState(newState stateTypes, funcFlag int) compileState { constant mapConst (line 35) | mapConst = iota constant mapVar (line 36) | mapVar constant mapMap (line 37) | mapMap constant mapExtend (line 38) | mapExtend constant mapArray (line 39) | mapArray constant mustKey (line 41) | mustKey constant mustColon (line 42) | mustColon constant mustComma (line 43) | mustComma constant mustValue (line 44) | mustValue type mapItem (line 47) | type mapItem struct constant errUnknownCmd (line 59) | errUnknownCmd = iota + 1 constant errMustName (line 60) | errMustName constant errMustLCurly (line 61) | errMustLCurly constant errMustRCurly (line 62) | errMustRCurly constant errParams (line 63) | errParams constant errVars (line 64) | errVars constant errVarType (line 65) | errVarType constant errAssign (line 66) | errAssign constant errStrNum (line 67) | errStrNum function StateName (line 93) | func StateName(state uint32, name string) string { method CompileBlock (line 103) | func (vm *VM) CompileBlock(input []rune, owner *OwnerInfo) (*CodeBlock, ... method FlushBlock (line 213) | func (vm *VM) FlushBlock(root *CodeBlock) { method FlushExtern (line 253) | func (vm *VM) FlushExtern() { method Compile (line 259) | func (vm *VM) Compile(input []rune, owner *OwnerInfo) error { function findVar (line 267) | func findVar(name string, block *CodeBlocks) (ret *ObjInfo, owner *CodeB... method findObj (line 279) | func (vm *VM) findObj(name string, block *CodeBlocks) (ret *ObjInfo, own... method getInitValue (line 295) | func (vm *VM) getInitValue(lexemes *Lexemes, ind *int, block *CodeBlocks... method getInitMap (line 332) | func (vm *VM) getInitMap(lexemes *Lexemes, ind *int, block *CodeBlocks, ... method getInitArray (line 405) | func (vm *VM) getInitArray(lexemes *Lexemes, ind *int, block *CodeBlocks... method compileEval (line 452) | func (vm *VM) compileEval(lexemes *Lexemes, ind *int, block *CodeBlocks)... function ContractsList (line 829) | func ContractsList(value string) ([]string, error) { FILE: packages/script/compile_test.go type TestVM (line 19) | type TestVM struct method String (line 25) | func (block *CodeBlock) String() (ret string) { function getMap (line 40) | func getMap() *types.Map { function getArray (line 47) | func getArray() []any { function str (line 56) | func str(v any) (ret string) { function lenArray (line 60) | func lenArray(par []any) int64 { function Money (line 64) | func Money(v any) (ret decimal.Decimal) { function outMap (line 69) | func outMap(v *types.Map) string { function TestVMCompile (line 73) | func TestVMCompile(t *testing.T) { function TestContractList (line 723) | func TestContractList(t *testing.T) { function TestVM_CompileBlock (line 763) | func TestVM_CompileBlock(t *testing.T) { FILE: packages/script/errors.go constant eContractLoop (line 10) | eContractLoop = `there is loop in %s contract` constant eSysVar (line 11) | eSysVar = `system variable $%s cannot be changed` constant eSysFunc (line 12) | eSysFunc = `system function '%s' cannot be changed` constant eDataParamVarCollides (line 13) | eDataParamVarCollides = `param variable '%s' in the data section of the ... constant eTypeParam (line 14) | eTypeParam = `parameter %d has wrong type` constant eUndefinedParam (line 15) | eUndefinedParam = `%s is not defined` constant eUnknownContract (line 16) | eUnknownContract = `unknown contract %s` constant eWrongParams (line 17) | eWrongParams = `function %s must have %d parameters` constant eArrIndex (line 18) | eArrIndex = `index of array cannot be type %s` constant eMapIndex (line 19) | eMapIndex = `index of map cannot be type %s` constant eUnknownIdent (line 20) | eUnknownIdent = `unknown identifier %s` constant eWrongVar (line 21) | eWrongVar = `wrong var %v` constant eDataType (line 22) | eDataType = `expecting type of the data field [Ln:%d Col:%d]` constant eDataName (line 23) | eDataName = `expecting name of the data field [Ln:%d Col:%d]` constant eDataTag (line 24) | eDataTag = `unexpected tag [Ln:%d Col:%d]` constant eConditionNotAllowed (line 25) | eConditionNotAllowed = `condition %s is not allowed` FILE: packages/script/eval.go type evalCode (line 14) | type evalCode struct method CompileEval (line 24) | func (vm *VM) CompileEval(input string, state uint32) error { method EvalIf (line 47) | func (vm *VM) EvalIf(input string, state uint32, vars map[string]any) (b... FILE: packages/script/eval_test.go type TestComp (line 12) | type TestComp struct function Multi (line 17) | func Multi(a, b int64) (int64, error) { function TestEvalIf (line 21) | func TestEvalIf(t *testing.T) { FILE: packages/script/extend.go constant Extend_type (line 4) | Extend_type = `type` constant Extend_time (line 5) | Extend_time = `time` constant Extend_ecosystem_id (line 6) | Extend_ecosystem_id = `ecosystem_id` constant Extend_node_position (line 7) | Extend_node_position = `node_position` constant Extend_block (line 8) | Extend_block = `block` constant Extend_key_id (line 9) | Extend_key_id = `key_id` constant Extend_account_id (line 10) | Extend_account_id = `account_id` constant Extend_block_key_id (line 11) | Extend_block_key_id = `block_key_id` constant Extend_parent (line 12) | Extend_parent = `parent` constant Extend_txcost (line 13) | Extend_txcost = `txcost` constant Extend_txhash (line 14) | Extend_txhash = `txhash` constant Extend_result (line 15) | Extend_result = `result` constant Extend_sc (line 16) | Extend_sc = `sc` constant Extend_contract (line 17) | Extend_contract = `contract` constant Extend_block_time (line 18) | Extend_block_time = `block_time` constant Extend_original_contract (line 19) | Extend_original_contract = `original_contract` constant Extend_this_contract (line 20) | Extend_this_contract = `this_contract` constant Extend_guest_key (line 21) | Extend_guest_key = `guest_key` constant Extend_guest_account (line 22) | Extend_guest_account = `guest_account` constant Extend_black_hole_key (line 23) | Extend_black_hole_key = `black_hole_key` constant Extend_black_hole_account (line 24) | Extend_black_hole_account = `black_hole_account` constant Extend_white_hole_key (line 25) | Extend_white_hole_key = `white_hole_key` constant Extend_white_hole_account (line 26) | Extend_white_hole_account = `white_hole_account` constant Extend_pre_block_data_hash (line 27) | Extend_pre_block_data_hash = `pre_block_data_hash` constant Extend_gen_block (line 28) | Extend_gen_block = `gen_block` constant Extend_time_limit (line 29) | Extend_time_limit = `time_limit` constant Extend_rt_state (line 31) | Extend_rt_state = `rt_state` constant Extend_rt (line 32) | Extend_rt = `rt` constant Extend_stack (line 33) | Extend_stack = `stack` constant Extend_loop (line 34) | Extend_loop = `loop_` constant sysVars_block (line 38) | sysVars_block = `block` constant sysVars_block_key_id (line 39) | sysVars_block_key_id = `block_key_id` constant sysVars_block_time (line 40) | sysVars_block_time = `block_time` constant sysVars_data (line 41) | sysVars_data = `data` constant sysVars_ecosystem_id (line 42) | sysVars_ecosystem_id = `ecosystem_id` constant sysVars_key_id (line 43) | sysVars_key_id = `key_id` constant sysVars_account_id (line 44) | sysVars_account_id = `account_id` constant sysVars_node_position (line 45) | sysVars_node_position = `node_position` constant sysVars_parent (line 46) | sysVars_parent = `parent` constant sysVars_original_contract (line 47) | sysVars_original_contract = `original_contract` constant sysVars_sc (line 48) | sysVars_sc = `sc` constant sysVars_contract (line 49) | sysVars_contract = `contract` constant sysVars_stack (line 50) | sysVars_stack = `stack` constant sysVars_this_contract (line 51) | sysVars_this_contract = `this_contract` constant sysVars_time (line 52) | sysVars_time = `time` constant sysVars_type (line 53) | sysVars_type = `type` constant sysVars_txcost (line 54) | sysVars_txcost = `txcost` constant sysVars_txhash (line 55) | sysVars_txhash = `txhash` constant sysVars_guest_key (line 56) | sysVars_guest_key = `guest_key` constant sysVars_guest_account (line 57) | sysVars_guest_account = `guest_account` constant sysVars_black_hole_key (line 58) | sysVars_black_hole_key = `black_hole_key` constant sysVars_white_hole_key (line 59) | sysVars_white_hole_key = `white_hole_key` constant sysVars_black_hole_account (line 60) | sysVars_black_hole_account = `black_hole_account` constant sysVars_white_hole_account (line 61) | sysVars_white_hole_account = `white_hole_account` constant sysVars_gen_block (line 62) | sysVars_gen_block = `gen_block` constant sysVars_time_limit (line 63) | sysVars_time_limit = `time_limit` constant sysVars_pre_block_data_hash (line 64) | sysVars_pre_block_data_hash = `pre_block_data_hash` FILE: packages/script/func.go type ExtendData (line 15) | type ExtendData struct function NewExtendData (line 21) | func NewExtendData() *ExtendData { function ExecContract (line 39) | func ExecContract(rt *RunTime, name, txs string, params ...any) (any, er... function ExContract (line 169) | func ExContract(rt *RunTime, state uint32, name string, params *types.Ma... function GetSettings (line 204) | func GetSettings(rt *RunTime, cntname, name string) (any, error) { function MemoryUsage (line 220) | func MemoryUsage(rt *RunTime) int64 { FILE: packages/script/handle.go type compileFunc (line 12) | type compileFunc constant cfNothing (line 17) | cfNothing = iota constant cfError (line 18) | cfError constant cfNameBlock (line 19) | cfNameBlock constant cfFResult (line 20) | cfFResult constant cfReturn (line 21) | cfReturn constant cfIf (line 22) | cfIf constant cfElse (line 23) | cfElse constant cfFParam (line 24) | cfFParam constant cfFType (line 25) | cfFType constant cfFTail (line 26) | cfFTail constant cfFNameParam (line 27) | cfFNameParam constant cfAssignVar (line 28) | cfAssignVar constant cfAssign (line 29) | cfAssign constant cfTX (line 30) | cfTX constant cfSettings (line 31) | cfSettings constant cfConstName (line 32) | cfConstName constant cfConstValue (line 33) | cfConstValue constant cfField (line 34) | cfField constant cfFieldType (line 35) | cfFieldType constant cfFieldTag (line 36) | cfFieldTag constant cfFields (line 37) | cfFields constant cfFieldComma (line 38) | cfFieldComma constant cfFieldLine (line 39) | cfFieldLine constant cfWhile (line 40) | cfWhile constant cfContinue (line 41) | cfContinue constant cfBreak (line 42) | cfBreak constant cfCmdError (line 43) | cfCmdError function fError (line 84) | func fError(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fNameBlock (line 105) | func fNameBlock(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fFuncResult (line 129) | func fFuncResult(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fReturn (line 135) | func fReturn(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fCmdError (line 140) | func fCmdError(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fFparam (line 145) | func fFparam(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fFtype (line 185) | func fFtype(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fFtail (line 216) | func fFtail(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fFNameParam (line 260) | func fFNameParam(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fIf (line 277) | func fIf(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fWhile (line 282) | func fWhile(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fContinue (line 288) | func fContinue(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fBreak (line 293) | func fBreak(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fAssignVar (line 298) | func fAssignVar(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fAssign (line 332) | func fAssign(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fTx (line 337) | func fTx(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fSettings (line 348) | func fSettings(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fConstName (line 359) | func fConstName(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fConstValue (line 365) | func fConstValue(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fField (line 376) | func fField(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fFields (line 400) | func fFields(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fFieldComma (line 408) | func fFieldComma(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fFieldLine (line 417) | func fFieldLine(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fFieldType (line 430) | func fFieldType(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fFieldTag (line 444) | func fFieldTag(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { function fElse (line 459) | func fElse(buf *CodeBlocks, state stateTypes, lexeme *Lexeme) error { FILE: packages/script/lex.go constant lexUnknown (line 26) | lexUnknown = iota constant lexSys (line 27) | lexSys constant lexOper (line 28) | lexOper constant lexNumber (line 29) | lexNumber constant lexIdent (line 30) | lexIdent constant lexNewLine (line 31) | lexNewLine constant lexString (line 32) | lexString constant lexComment (line 33) | lexComment constant lexKeyword (line 34) | lexKeyword constant lexType (line 35) | lexType constant lexExtend (line 36) | lexExtend constant lexError (line 38) | lexError = 0xff constant lexfNext (line 40) | lexfNext = 1 constant lexfPush (line 41) | lexfPush = 2 constant lexfPop (line 42) | lexfPop = 4 constant lexfSkip (line 43) | lexfSkip = 8 constant isLPar (line 46) | isLPar = 0x2801 constant isRPar (line 47) | isRPar = 0x2901 constant isComma (line 48) | isComma = 0x2c01 constant isDot (line 49) | isDot = 0x2e01 constant isColon (line 50) | isColon = 0x3a01 constant isEq (line 51) | isEq = 0x3d01 constant isLCurly (line 52) | isLCurly = 0x7b01 constant isRCurly (line 53) | isRCurly = 0x7d01 constant isLBrack (line 54) | isLBrack = 0x5b01 constant isRBrack (line 55) | isRBrack = 0x5d01 constant isNot (line 58) | isNot = 0x0021 constant isAsterisk (line 59) | isAsterisk = 0x002a constant isPlus (line 60) | isPlus = 0x002b constant isMinus (line 61) | isMinus = 0x002d constant isSign (line 62) | isSign = 0x012d constant isSolidus (line 63) | isSolidus = 0x002f constant isLess (line 64) | isLess = 0x003c constant isGreat (line 65) | isGreat = 0x003e constant isNotEq (line 66) | isNotEq = 0x213d constant isAnd (line 67) | isAnd = 0x2626 constant isLessEq (line 68) | isLessEq = 0x3c3d constant isEqEq (line 69) | isEqEq = 0x3d3d constant isGrEq (line 70) | isGrEq = 0x3e3d constant isOr (line 71) | isOr = 0x7c7c constant keyContract (line 79) | keyContract = iota + 1 constant keyFunc (line 80) | keyFunc constant keyReturn (line 81) | keyReturn constant keyIf (line 82) | keyIf constant keyElif (line 83) | keyElif constant keyElse (line 84) | keyElse constant keyWhile (line 85) | keyWhile constant keyTrue (line 86) | keyTrue constant keyFalse (line 87) | keyFalse constant keyVar (line 88) | keyVar constant keyTX (line 89) | keyTX constant keySettings (line 90) | keySettings constant keyBreak (line 91) | keyBreak constant keyContinue (line 92) | keyContinue constant keyWarning (line 93) | keyWarning constant keyInfo (line 94) | keyInfo constant keyNil (line 95) | keyNil constant keyAction (line 96) | keyAction constant keyCond (line 97) | keyCond constant keyTail (line 98) | keyTail constant keyError (line 99) | keyError constant msgWarning (line 103) | msgWarning = `warning` constant msgError (line 104) | msgError = `error` constant msgInfo (line 105) | msgInfo = `info` constant DtBool (line 109) | DtBool uint32 = iota + 1 constant DtBytes (line 110) | DtBytes constant DtInt (line 111) | DtInt constant DtAddress (line 112) | DtAddress constant DtArray (line 113) | DtArray constant DtMap (line 114) | DtMap constant DtMoney (line 115) | DtMoney constant DtFloat (line 116) | DtFloat constant DtString (line 117) | DtString constant DtFile (line 118) | DtFile type typeInfo (line 121) | type typeInfo struct function GetFieldDefaultValue (line 167) | func GetFieldDefaultValue(fieldType uint32) any { type Lexeme (line 192) | type Lexeme struct method GetLogger (line 205) | func (l *Lexeme) GetLogger() *log.Entry { function NewLexeme (line 200) | func NewLexeme(t uint32, ext uint32, value any, line uint16, column uint... type ifBuf (line 209) | type ifBuf struct type Lexemes (line 216) | type Lexemes function lexParser (line 223) | func lexParser(input []rune) (Lexemes, error) { function OriginalToString (line 408) | func OriginalToString(original uint32) string { FILE: packages/script/lex_test.go type TestLexeme (line 12) | type TestLexeme struct method String (line 17) | func (lexemes Lexemes) String(source []rune) (ret string) { function TestLexParser (line 28) | func TestLexParser(t *testing.T) { FILE: packages/script/lextable/lextable.go type Action (line 17) | type Action type States (line 20) | type States constant AlphaSize (line 24) | AlphaSize = 34 function main (line 197) | func main() { FILE: packages/script/runtime.go constant statusNormal (line 25) | statusNormal = iota constant statusReturn (line 26) | statusReturn constant statusContinue (line 27) | statusContinue constant statusBreak (line 28) | statusBreak constant Decimal (line 31) | Decimal = `decimal.Decimal` constant Interface (line 33) | Interface = `interface` constant File (line 34) | File = `*types.Map` constant brackets (line 36) | brackets = `[]` constant maxArrayIndex (line 38) | maxArrayIndex = 1000000 constant maxMapCount (line 39) | maxMapCount = 100000 constant maxCallDepth (line 40) | maxCallDepth = 1000 constant memoryLimit (line 41) | memoryLimit = 128 << 20 constant MaxErrLen (line 42) | MaxErrLen = 150 type VMError (line 82) | type VMError struct type blockStack (line 87) | type blockStack struct type ErrInfo (line 93) | type ErrInfo struct type RunTime (line 99) | type RunTime struct method callFunc (line 132) | func (rt *RunTime) callFunc(cmd uint16, obj *ObjInfo) (err error) { method extendFunc (line 300) | func (rt *RunTime) extendFunc(name string) error { method setExtendVar (line 369) | func (rt *RunTime) setExtendVar(k string, v any) { method recalcMemExtendVar (line 374) | func (rt *RunTime) recalcMemExtendVar(k string) { method addVar (line 380) | func (rt *RunTime) addVar(v any) { method setVar (line 387) | func (rt *RunTime) setVar(k int, v any) { method recalcMemVar (line 392) | func (rt *RunTime) recalcMemVar(k int) { method SetCost (line 473) | func (rt *RunTime) SetCost(cost int64) { method SubCost (line 477) | func (rt *RunTime) SubCost(cost int64) error { method Cost (line 488) | func (rt *RunTime) Cost() int64 { method getResultValue (line 506) | func (rt *RunTime) getResultValue(item mapItem) (value any, err error) { method getResultArray (line 537) | func (rt *RunTime) getResultArray(cmd []mapItem) ([]any, error) { method getResultMap (line 549) | func (rt *RunTime) getResultMap(cmd *types.Map) (*types.Map, error) { method RunCode (line 590) | func (rt *RunTime) RunCode(block *CodeBlock) (status int, err error) { method Run (line 1392) | func (rt *RunTime) Run(block *CodeBlock, params []any, extend map[stri... function NewRunTime (line 116) | func NewRunTime(vm *VM, cost int64) *RunTime { function isSysVar (line 125) | func isSysVar(name string) bool { function calcMem (line 331) | func calcMem(v any) (mem int64) { function valueToBool (line 398) | func valueToBool(v any) bool { function ValueToFloat (line 434) | func ValueToFloat(v any) (ret float64) { function ValueToDecimal (line 453) | func ValueToDecimal(v any) (ret decimal.Decimal, err error) { function SetVMError (line 493) | func SetVMError(eType string, eText any) error { function isSelfAssignment (line 562) | func isSelfAssignment(dest, value any) bool { FILE: packages/script/runtime_test.go function TestCalcMem (line 13) | func TestCalcMem(t *testing.T) { FILE: packages/script/stack.go method Stack (line 3) | func (rt *RunTime) Stack() []any { method push (line 7) | func (rt *RunTime) push(d any) { method pop (line 11) | func (rt *RunTime) pop() (ret any) { method len (line 17) | func (rt *RunTime) len() int { method swap (line 21) | func (rt *RunTime) swap(n int) { method dup (line 25) | func (rt *RunTime) dup(n int) { method peek (line 29) | func (rt *RunTime) peek() any { method getStack (line 33) | func (rt *RunTime) getStack(idx int) any { method resetByIdx (line 40) | func (rt *RunTime) resetByIdx(idx int) { method popBlock (line 44) | func (rt *RunTime) popBlock() (ret *blockStack) { FILE: packages/script/state.go type stateTypes (line 4) | type stateTypes type stateLine (line 5) | type stateLine type compileStates (line 7) | type compileStates constant stateRoot (line 12) | stateRoot stateTypes = iota constant stateBody (line 13) | stateBody constant stateBlock (line 14) | stateBlock constant stateContract (line 15) | stateContract constant stateFunc (line 16) | stateFunc constant stateFParams (line 17) | stateFParams constant stateFParam (line 18) | stateFParam constant stateFParamTYPE (line 19) | stateFParamTYPE constant stateFTail (line 20) | stateFTail constant stateFResult (line 21) | stateFResult constant stateFDot (line 22) | stateFDot constant stateVar (line 23) | stateVar constant stateVarType (line 24) | stateVarType constant stateAssignEval (line 25) | stateAssignEval constant stateAssign (line 26) | stateAssign constant stateTX (line 27) | stateTX constant stateSettings (line 28) | stateSettings constant stateConsts (line 29) | stateConsts constant stateConstsAssign (line 30) | stateConstsAssign constant stateConstsValue (line 31) | stateConstsValue constant stateFields (line 32) | stateFields constant stateEval (line 33) | stateEval constant statePush (line 36) | statePush = 0x0100 constant statePop (line 37) | statePop = 0x0200 constant stateStay (line 38) | stateStay = 0x0400 constant stateToBlock (line 39) | stateToBlock = 0x0800 constant stateToBody (line 40) | stateToBody = 0x1000 constant stateFork (line 41) | stateFork = 0x2000 constant stateToFork (line 42) | stateToFork = 0x4000 constant stateLabel (line 43) | stateLabel = 0x8000 constant stateMustEval (line 44) | stateMustEval = 0x010000 constant flushMark (line 46) | flushMark = 0x100000 FILE: packages/script/vm.go type GlobalVm (line 20) | type GlobalVm struct function init (line 25) | func init() { function newVM (line 33) | func newVM() *GlobalVm { function GetVM (line 41) | func GetVM() *VM { function SavepointSmartVMObjects (line 50) | func SavepointSmartVMObjects() { function RollbackSmartVMObjects (line 58) | func RollbackSmartVMObjects() { function ReleaseSmartVMObjects (line 68) | func ReleaseSmartVMObjects() { function VMCompileEval (line 73) | func VMCompileEval(vm *VM, src string, prefix uint32) error { function getContractList (line 103) | func getContractList(src string) (list []string) { function VMGetContractByID (line 117) | func VMGetContractByID(vm *VM, id int32) *ContractInfo { function RunContractById (line 136) | func RunContractById(vm *VM, id int32, methods []string, extend map[stri... function RunContractByName (line 144) | func RunContractByName(vm *VM, name string, methods []string, extend map... function VMRun (line 177) | func VMRun(vm *VM, block *CodeBlock, params []any, extend map[string]any... function VMObjectExists (line 197) | func VMObjectExists(vm *VM, name string, state uint32) bool { method SetExtendCost (line 204) | func (vm *VM) SetExtendCost(ext func(string) int64) { method SetFuncCallsDB (line 209) | func (vm *VM) SetFuncCallsDB(funcCallsDB map[string]struct{}) { function LoadSysFuncs (line 213) | func LoadSysFuncs(vm *VM, state int) error { FILE: packages/script/vm.pb.go constant _ (line 21) | _ = proto.GoGoProtoPackageIsVersion3 type VMType (line 24) | type VMType method String (line 51) | func (x VMType) String() string { method EnumDescriptor (line 55) | func (VMType) EnumDescriptor() ([]byte, []int) { constant VMType_INVALID (line 28) | VMType_INVALID VMType = 0 constant VMType_Smart (line 30) | VMType_Smart VMType = 1 constant VMType_CLB (line 32) | VMType_CLB VMType = 2 constant VMType_CLBMaster (line 34) | VMType_CLBMaster VMType = 3 type ObjectType (line 60) | type ObjectType method String (line 95) | func (x ObjectType) String() string { method EnumDescriptor (line 99) | func (ObjectType) EnumDescriptor() ([]byte, []int) { constant ObjectType_Unknown (line 64) | ObjectType_Unknown ObjectType = 0 constant ObjectType_Contract (line 66) | ObjectType_Contract ObjectType = 1 constant ObjectType_Func (line 68) | ObjectType_Func ObjectType = 2 constant ObjectType_ExtFunc (line 70) | ObjectType_ExtFunc ObjectType = 3 constant ObjectType_Var (line 72) | ObjectType_Var ObjectType = 4 constant ObjectType_ExtVar (line 74) | ObjectType_ExtVar ObjectType = 5 function init (line 103) | func init() { function init (line 108) | func init() { proto.RegisterFile("vm.proto", fileDescriptor_cab246c8c7c5... FILE: packages/script/vminit.go constant CostCall (line 20) | CostCall = 50 constant CostContract (line 22) | CostContract = 100 constant CostExtend (line 24) | CostExtend = 10 constant TagFile (line 26) | TagFile = "file" constant TagAddress (line 27) | TagAddress = "address" constant TagSignature (line 28) | TagSignature = "signature" constant TagOptional (line 29) | TagOptional = "optional" type ExtFuncInfo (line 33) | type ExtFuncInfo struct type FieldInfo (line 44) | type FieldInfo struct method ContainsTag (line 52) | func (fi *FieldInfo) ContainsTag(tag string) bool { type ContractInfo (line 57) | type ContractInfo struct method TxMap (line 67) | func (c *ContractInfo) TxMap() map[string]*FieldInfo { type FuncNameCmd (line 79) | type FuncNameCmd struct type FuncName (line 85) | type FuncName struct type FuncInfo (line 92) | type FuncInfo struct type VarInfo (line 104) | type VarInfo struct type IndexInfo (line 110) | type IndexInfo struct type VM (line 117) | type VM struct method Call (line 155) | func (vm *VM) Call(name string, params []any, extend map[string]any) (... type Stacker (line 127) | type Stacker interface function NewVM (line 133) | func NewVM() *VM { function getNameByObj (line 143) | func getNameByObj(obj *ObjInfo) (name string) { FILE: packages/service/jsonrpc/accounts.go type accountsApi (line 18) | type accountsApi struct method GetKeysCount (line 26) | func (c *accountsApi) GetKeysCount(ctx RequestContext) (*int64, *Error) { method GetBalance (line 96) | func (b *accountsApi) GetBalance(ctx RequestContext, info *AccountOrKe... function newAccountsApi (line 22) | func newAccountsApi(m Mode) *accountsApi { type BalanceResult (line 38) | type BalanceResult struct type AccountOrKeyId (line 47) | type AccountOrKeyId struct method Validate (line 52) | func (bh *AccountOrKeyId) Validate(r *http.Request) error { method UnmarshalJSON (line 64) | func (bh *AccountOrKeyId) UnmarshalJSON(data []byte) error { FILE: packages/service/jsonrpc/api.go constant multipartBuf (line 17) | multipartBuf = 100000 constant multipartFormData (line 18) | multipartFormData = "multipart/form-data" type Mode (line 21) | type Mode struct type UserClient (line 27) | type UserClient struct method Prefix (line 35) | func (c *UserClient) Prefix() string { type formValidator (line 39) | type formValidator interface function parameterValidator (line 43) | func parameterValidator(r *http.Request, f formValidator) (err error) { function isMultipartForm (line 47) | func isMultipartForm(r *http.Request) bool { type hexValue (line 51) | type hexValue struct method Bytes (line 55) | func (hv hexValue) Bytes() []byte { method UnmarshalText (line 59) | func (hv *hexValue) UnmarshalText(v []byte) (err error) { FILE: packages/service/jsonrpc/auth.go type AuthStatusResponse (line 31) | type AuthStatusResponse struct type Auth (line 36) | type Auth struct function authRequire (line 40) | func authRequire(r *http.Request) *Error { type authApi (line 51) | type authApi struct method GetAuthStatus (line 62) | func (a *authApi) GetAuthStatus(ctx RequestContext) (*AuthStatusRespon... method GetUid (line 93) | func (a *authApi) GetUid(ctx RequestContext) (*GetUIDResult, *Error) { method Login (line 182) | func (a authApi) Login(ctx RequestContext, form *loginForm) (*LoginRes... function newAuthApi (line 55) | func newAuthApi(mode Mode) *authApi { type GetUIDResult (line 81) | type GetUIDResult struct function nonceSalt (line 130) | func nonceSalt() string { type loginForm (line 134) | type loginForm struct method Validate (line 153) | func (f *loginForm) Validate(r *http.Request) error { type publicKeyValue (line 143) | type publicKeyValue struct method UnmarshalText (line 147) | func (pk *publicKeyValue) UnmarshalText(v []byte) (err error) { type LoginResult (line 164) | type LoginResult struct type rolesResult (line 177) | type rolesResult struct function getUID (line 412) | func getUID(r *http.Request) (string, error) { function checkRoleFromParam (line 429) | func checkRoleFromParam(role, ecosystemID int64, account string) (int64,... function allowCreateUser (line 456) | func allowCreateUser(c *UserClient) bool { FILE: packages/service/jsonrpc/block.go type blockChainApi (line 29) | type blockChainApi struct method MaxBlockId (line 36) | func (b *blockChainApi) MaxBlockId(ctx RequestContext) (*int64, *Error) { method GetBlockInfo (line 65) | func (b *blockChainApi) GetBlockInfo(blockID int64) (*BlockInfoResult,... method HonorNodesCount (line 89) | func (b *blockChainApi) HonorNodesCount() (*int64, *Error) { method AppParams (line 116) | func (b *blockChainApi) AppParams(ctx RequestContext, auth Auth, appId... method GetAppContent (line 172) | func (b *blockChainApi) GetAppContent(ctx RequestContext, auth Auth, a... method History (line 217) | func (b *blockChainApi) History(ctx RequestContext, auth Auth, tableNa... method GetBlocksTxInfo (line 281) | func (b *blockChainApi) GetBlocksTxInfo(ctx RequestContext, blockId, c... method DetailedBlocks (line 380) | func (b *blockChainApi) DetailedBlocks(ctx RequestContext, blockId, co... method DetailedBlock (line 550) | func (b *blockChainApi) DetailedBlock(ctx RequestContext, bh *BlockIdO... method GetTransactionCount (line 644) | func (b *blockChainApi) GetTransactionCount(ctx RequestContext, bh *Bl... method GetEcosystemParams (line 670) | func (b *blockChainApi) GetEcosystemParams(ctx RequestContext, auth Au... method EcosystemInfo (line 735) | func (b *blockChainApi) EcosystemInfo(ctx RequestContext, ecosystemId ... method SystemParams (line 837) | func (b *blockChainApi) SystemParams(ctx RequestContext, auth Auth, na... method GetMember (line 891) | func (b *blockChainApi) GetMember(ctx RequestContext, account string, ... method GetBlocksCountByNode (line 944) | func (b *blockChainApi) GetBlocksCountByNode(ctx RequestContext, nodeP... method GetOpenEcosystem (line 988) | func (b *blockChainApi) GetOpenEcosystem(ctx RequestContext, verbosity... function newBlockChainApi (line 32) | func newBlockChainApi() *blockChainApi { type BlockInfoResult (line 54) | type BlockInfoResult struct type AppParamsForm (line 94) | type AppParamsForm struct method Validate (line 100) | func (f *AppParamsForm) Validate(r *http.Request) error { type AppParamsResult (line 111) | type AppParamsResult struct type AppContentResult (line 166) | type AppContentResult struct type blocksTxInfoForm (line 252) | type blocksTxInfoForm struct method Validate (line 257) | func (f *blocksTxInfoForm) Validate(r *http.Request) error { type TxInfo (line 274) | type TxInfo struct type TxDetailedInfo (line 341) | type TxDetailedInfo struct type BlockHeaderInfo (line 351) | type BlockHeaderInfo struct type BlockDetailedInfo (line 362) | type BlockDetailedInfo struct type BlockIdOrHash (line 477) | type BlockIdOrHash struct method GetHash (line 483) | func (bh *BlockIdOrHash) GetHash() ([]byte, bool) { method GetBlock (line 494) | func (bh *BlockIdOrHash) GetBlock() (int64, bool) { method Validate (line 501) | func (bh *BlockIdOrHash) Validate(r *http.Request) error { method UnmarshalJSON (line 516) | func (bh *BlockIdOrHash) UnmarshalJSON(data []byte) error { type EcosystemInfo (line 717) | type EcosystemInfo struct type MemberInfo (line 884) | type MemberInfo struct type ListWhereForm (line 926) | type ListWhereForm struct method Validate (line 932) | func (f *ListWhereForm) Validate(r *http.Request) error { type blockMetricByNode (line 939) | type blockMetricByNode struct type openSystemInfo (line 975) | type openSystemInfo struct type openSystemList (line 980) | type openSystemList struct FILE: packages/service/jsonrpc/callback.go type callback (line 22) | type callback struct method getArgsTypes (line 32) | func (c *callback) getArgsTypes() { method call (line 58) | func (c *callback) call(ctx RequestContext, m Mode, args []reflect.Val... function suitableCallbacks (line 109) | func suitableCallbacks(receiver reflect.Value) map[string]*callback { function newCallback (line 128) | func newCallback(receiver, fn reflect.Value) *callback { function isErrorType (line 158) | func isErrorType(t reflect.Type) bool { function formatName (line 166) | func formatName(name string) string { FILE: packages/service/jsonrpc/common.go type commonApi (line 35) | type commonApi struct method GetContractInfo (line 82) | func (c *commonApi) GetContractInfo(ctx RequestContext, auth Auth, con... method GetContracts (line 136) | func (c *commonApi) GetContracts(ctx RequestContext, auth Auth, offset... method GetKeyInfo (line 229) | func (c *commonApi) GetKeyInfo(ctx RequestContext, accountAddress stri... method GetList (line 357) | func (c *commonApi) GetList(ctx RequestContext, auth Auth, form *ListW... method GetSections (line 511) | func (c *commonApi) GetSections(ctx RequestContext, auth Auth, params ... method GetRow (line 593) | func (c *commonApi) GetRow(ctx RequestContext, auth Auth, tableName st... method GetPageRow (line 686) | func (c *commonApi) GetPageRow(ctx RequestContext, auth Auth, name str... method GetMenuRow (line 693) | func (c *commonApi) GetMenuRow(ctx RequestContext, auth Auth, name str... method GetSnippetRow (line 700) | func (c *commonApi) GetSnippetRow(ctx RequestContext, auth Auth, name ... method GetTable (line 725) | func (c *commonApi) GetTable(ctx RequestContext, auth Auth, name strin... method GetTableCount (line 790) | func (c *commonApi) GetTableCount(ctx RequestContext, auth Auth, offse... method GetVersion (line 846) | func (c *commonApi) GetVersion() string { method GetConfig (line 870) | func (c *commonApi) GetConfig(ctx RequestContext, option string) (map[... method GetPageValidatorsCount (line 931) | func (c *commonApi) GetPageValidatorsCount(ctx RequestContext, name st... method GetSource (line 1007) | func (c *commonApi) GetSource(ctx RequestContext, auth Auth, name stri... method GetPage (line 1088) | func (c *commonApi) GetPage(ctx RequestContext, auth Auth, name string... method GetPageHash (line 1101) | func (c *commonApi) GetPageHash(ctx RequestContext, name string, ecosy... method GetMenu (line 1122) | func (c *commonApi) GetMenu(ctx RequestContext, auth Auth, name string... method GetContent (line 1171) | func (c *commonApi) GetContent(ctx RequestContext, form *jsonContentFo... method GetTxCount (line 1189) | func (c *commonApi) GetTxCount(ctx RequestContext) (*int64, *Error) { method GetEcosystemCount (line 1201) | func (c *commonApi) GetEcosystemCount(ctx RequestContext) (*int64, *Er... function newCommonApi (line 39) | func newCommonApi(m Mode) *commonApi { type contractField (line 45) | type contractField struct type GetContractResult (line 51) | type GetContractResult struct function getContract (line 65) | func getContract(r *http.Request, name string) *smart.Contract { function getContractInfo (line 78) | func getContractInfo(contract *smart.Contract) *script.ContractInfo { type ListResult (line 131) | type ListResult struct type roleInfo (line 185) | type roleInfo struct type notifyInfo (line 190) | type notifyInfo struct type KeyInfoResult (line 195) | type KeyInfoResult struct type keyEcosystemInfo (line 201) | type keyEcosystemInfo struct function getNotifications (line 209) | func getNotifications(ecosystemID int64, key *sqldb.Key) ([]notifyInfo, ... type ListForm (line 309) | type ListForm struct method Validate (line 315) | func (f *ListForm) Validate(r *http.Request) error { type rowForm (line 325) | type rowForm struct method Validate (line 329) | func (f *rowForm) Validate(r *http.Request) error { function checkAccess (line 341) | func checkAccess(tableName, columns string, client *UserClient) (table s... type HonorNodeJSON (line 460) | type HonorNodeJSON struct type NetworkResult (line 468) | type NetworkResult struct function getNodesJSON (line 476) | func getNodesJSON() []HonorNodeJSON { constant defaultSectionsLimit (line 489) | defaultSectionsLimit = 100 type SectionsForm (line 491) | type SectionsForm struct method Validate (line 496) | func (f *SectionsForm) Validate(r *http.Request) error { type RowResult (line 585) | type RowResult struct type PartModel (line 654) | type PartModel interface function getPageRowMux (line 659) | func getPageRowMux(ctx RequestContext, name string) (PartModel, *Error) { function getMenuRowMux (line 663) | func getMenuRowMux(ctx RequestContext, name string) (PartModel, *Error) { function getSnippetRowMux (line 667) | func getSnippetRowMux(ctx RequestContext, name string) (PartModel, *Erro... function getInterfaceRow (line 671) | func getInterfaceRow(ctx RequestContext, name string, c PartModel) (Part... type columnInfo (line 707) | type columnInfo struct type TableResult (line 713) | type TableResult struct type tableInfo (line 780) | type tableInfo struct type TableCountResult (line 785) | type TableCountResult struct function replaceHttpSchemeToWs (line 850) | func replaceHttpSchemeToWs(centrifugoURL string) string { function centrifugoAddressHandler (line 859) | func centrifugoAddressHandler(r *http.Request) (string, error) { function parseEcosystem (line 892) | func parseEcosystem(in string) (string, string) { function pageValue (line 900) | func pageValue(r *http.Request, name string) (*sqldb.Page, string, error) { function initVars (line 945) | func initVars(r *http.Request, vals *map[string]string) *map[string]stri... type ContentResult (line 997) | type ContentResult struct constant strOne (line 1005) | strOne = `1` function getPage (line 1024) | func getPage(r *http.Request, name string, vals *map[string]string) (res... type hashResult (line 1097) | type hashResult struct type jsonContentForm (line 1159) | type jsonContentForm struct method Validate (line 1164) | func (f *jsonContentForm) Validate(r *http.Request) error { FILE: packages/service/jsonrpc/common_forms.go constant defaultPaginatorLimit (line 19) | defaultPaginatorLimit = 25 constant maxPaginatorLimit (line 20) | maxPaginatorLimit = 100 type paginatorForm (line 23) | type paginatorForm struct method Validate (line 30) | func (f *paginatorForm) Validate(r *http.Request) error { type paramsForm (line 46) | type paramsForm struct method AcceptNames (line 57) | func (f *paramsForm) AcceptNames(names string) { type nopeValidator (line 51) | type nopeValidator struct method Validate (line 53) | func (np nopeValidator) Validate(r *http.Request) error { type ecosystemForm (line 63) | type ecosystemForm struct method Validate (line 69) | func (f *ecosystemForm) Validate(r *http.Request) error { FILE: packages/service/jsonrpc/context.go type contextKey (line 15) | type contextKey constant contextKeyLogger (line 18) | contextKeyLogger contextKey = iota constant contextKeyToken (line 19) | contextKeyToken constant contextKeyClient (line 20) | contextKeyClient function setContext (line 23) | func setContext(r *http.Request, key, value any) *http.Request { function getContext (line 27) | func getContext(r *http.Request, key any) any { function setLogger (line 31) | func setLogger(r *http.Request, log *log.Entry) *http.Request { function getLogger (line 35) | func getLogger(r *http.Request) *log.Entry { function setToken (line 42) | func setToken(r *http.Request, token *jwt.Token) *http.Request { function getToken (line 46) | func getToken(r *http.Request) *jwt.Token { function setClient (line 53) | func setClient(r *http.Request, client *UserClient) *http.Request { function getClient (line 57) | func getClient(r *http.Request) *UserClient { FILE: packages/service/jsonrpc/data.go type NotSingle (line 16) | type NotSingle struct type dataApi (line 19) | type dataApi struct method BinaryVerify (line 41) | func (d *dataApi) BinaryVerify(ctx RequestContext, notSingle NotSingle... method DataVerify (line 75) | func (d *dataApi) DataVerify(ctx RequestContext, notSingle NotSingle, ... method GetAvatar (line 100) | func (d *dataApi) GetAvatar(ctx RequestContext, notSingle NotSingle, a... function newDataApi (line 22) | func newDataApi() *dataApi { function compareHash (line 26) | func compareHash(data []byte, urlHash string) bool { FILE: packages/service/jsonrpc/debug.go type debugApi (line 13) | type debugApi struct method GetMemStat (line 25) | func (c *debugApi) GetMemStat() (*memMetric, *Error) { method GetNodeBanStat (line 39) | func (c *debugApi) GetNodeBanStat() (*[]banMetric, *Error) { function newDebugApi (line 16) | func newDebugApi() *debugApi { type memMetric (line 20) | type memMetric struct type banMetric (line 34) | type banMetric struct FILE: packages/service/jsonrpc/ecosystem_params.go type ParamResult (line 7) | type ParamResult struct type ParamsResult (line 14) | type ParamsResult struct FILE: packages/service/jsonrpc/errors.go type ErrorCode (line 8) | type ErrorCode type Error (line 10) | type Error struct method Error (line 40) | func (e *Error) Error() string { constant ErrCodeDefault (line 17) | ErrCodeDefault = -32000 constant ErrCodeInvalidInput (line 18) | ErrCodeInvalidInput = -32001 constant ErrCodeResourceNotFound (line 19) | ErrCodeResourceNotFound = -32002 constant ErrCodeResourceUnavailable (line 20) | ErrCodeResourceUnavailable = -32003 constant ErrCodeTransactionRejected (line 21) | ErrCodeTransactionRejected = -32004 constant ErrCodeMethodNotSupported (line 22) | ErrCodeMethodNotSupported = -32005 constant ErrCodeLimitExceeded (line 23) | ErrCodeLimitExceeded = -32006 constant ErrCodeParseError (line 24) | ErrCodeParseError = -32007 constant ErrCodeInvalidRequest (line 25) | ErrCodeInvalidRequest = -32008 constant ErrCodeMethodNotFound (line 26) | ErrCodeMethodNotFound = -32009 constant ErrCodeInvalidParams (line 27) | ErrCodeInvalidParams = -32010 constant ErrCodeInternalError (line 28) | ErrCodeInternalError = -32011 constant ErrCodeNotFound (line 29) | ErrCodeNotFound = -32012 constant ErrCodeUnknownUID (line 30) | ErrCodeUnknownUID = -32013 constant ErrCodeUnauthorized (line 31) | ErrCodeUnauthorized = -32014 constant ErrCodeParamsInvalid (line 32) | ErrCodeParamsInvalid = -32015 constant paramsEmpty (line 36) | paramsEmpty = "params can not be empty" constant invalidParams (line 37) | invalidParams = "params %s invalid" function NewError (line 44) | func NewError(code ErrorCode, message string, data ...map[string]any) *E... function DefaultError (line 57) | func DefaultError(message string) *Error { function ParseError (line 64) | func ParseError(message string) *Error { function InvalidRequest (line 71) | func InvalidRequest(message string, data ...map[string]any) *Error { function MethodNotFound (line 75) | func MethodNotFound(method string, data ...map[string]any) *Error { function InvalidParamsError (line 80) | func InvalidParamsError(message string, data ...map[string]any) *Error { function InternalError (line 84) | func InternalError(message string, data ...map[string]any) *Error { function InvalidInput (line 88) | func InvalidInput(message string, data ...map[string]any) *Error { function ResourceNotFound (line 92) | func ResourceNotFound(message string, data ...map[string]any) *Error { function ResourceUnavailable (line 96) | func ResourceUnavailable(message string, data ...map[string]any) *Error { function TransactionRejected (line 100) | func TransactionRejected(message string, data ...map[string]any) *Error { function MethodNotSupported (line 104) | func MethodNotSupported(method string, data ...map[string]any) *Error { function LimitExceeded (line 109) | func LimitExceeded(message string, data ...map[string]any) *Error { function NotFoundError (line 113) | func NotFoundError() *Error { function UnauthorizedError (line 117) | func UnauthorizedError() *Error { function UnUnknownUIDError (line 121) | func UnUnknownUIDError() *Error { FILE: packages/service/jsonrpc/handlers.go function RequestHandlerFunc (line 21) | func RequestHandlerFunc(fn requestHandlerFunc) *requestHandlerFunc { type RequestContext (line 25) | type RequestContext struct method HTTPRequest (line 29) | func (rc *RequestContext) HTTPRequest() *http.Request { method HTTPResponseWriter (line 33) | func (rc *RequestContext) HTTPResponseWriter() http.ResponseWriter { method RawJSON (line 37) | func (rc *RequestContext) RawJSON() json.RawMessage { type ctxKey (line 41) | type ctxKey method String (line 43) | func (c ctxKey) String() string { type requestHandlerFunc (line 53) | type requestHandlerFunc method ServeHTTP (line 55) | func (h requestHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.R... function WriteResponse (line 83) | func WriteResponse(w http.ResponseWriter, request *Request, result any, ... function generateResponse (line 104) | func generateResponse(request *Request, result any, e *Error) any { function WriteBatchResponse (line 122) | func WriteBatchResponse(w http.ResponseWriter, resp any) { FILE: packages/service/jsonrpc/history.go constant rollbackHistoryLimit (line 7) | rollbackHistoryLimit = 100 type HistoryResult (line 9) | type HistoryResult struct FILE: packages/service/jsonrpc/http.go constant maxRequestContentLength (line 23) | maxRequestContentLength = 1024 * 1024 * 5 constant contentType (line 24) | contentType = "application/json" function validateRequest (line 27) | func validateRequest(r *http.Request) (int, error) { function NewMiddlewares (line 50) | func NewMiddlewares(srv http.Handler, m Mode) http.Handler { type gzipResponseWriter (line 60) | type gzipResponseWriter struct method init (line 79) | func (w *gzipResponseWriter) init() { method Header (line 104) | func (w *gzipResponseWriter) Header() http.Header { method WriteHeader (line 108) | func (w *gzipResponseWriter) WriteHeader(status int) { method Write (line 113) | func (w *gzipResponseWriter) Write(b []byte) (int, error) { method Flush (line 132) | func (w *gzipResponseWriter) Flush() { method close (line 141) | func (w *gzipResponseWriter) close() { function newGzipHandler (line 150) | func newGzipHandler(next http.Handler) http.Handler { function ContextRequestTimeout (line 164) | func ContextRequestTimeout(ctx context.Context) (time.Duration, bool) { FILE: packages/service/jsonrpc/id.go type ID (line 10) | type ID struct method String (line 37) | func (id ID) String() string { method MarshalJSON (line 45) | func (id ID) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 53) | func (id *ID) UnmarshalJSON(data []byte) error { function StringID (line 23) | func StringID(s string) ID { function IntID (line 30) | func IntID(i uint64) ID { FILE: packages/service/jsonrpc/jwt.go type JWTClaims (line 27) | type JWTClaims struct function generateJWTToken (line 36) | func generateJWTToken(claims JWTClaims) (string, error) { function parseJWTToken (line 41) | func parseJWTToken(header string) (*jwt.Token, error) { function getClientFromToken (line 60) | func getClientFromToken(token *jwt.Token, ecosysNameService types.Ecosys... function InitJwtSecret (line 86) | func InitJwtSecret(secret []byte) { FILE: packages/service/jsonrpc/middlewares.go function clientMiddleware (line 19) | func clientMiddleware(next http.Handler, m Mode) http.Handler { function loggerFromRequest (line 39) | func loggerFromRequest(r *http.Request) *log.Entry { function loggerMiddleware (line 47) | func loggerMiddleware(next http.Handler) http.Handler { function recoverMiddleware (line 56) | func recoverMiddleware(next http.Handler) http.Handler { function nodeStateMiddleware (line 73) | func nodeStateMiddleware(next http.Handler) http.Handler { function tokenMiddleware (line 89) | func tokenMiddleware(next http.Handler) http.Handler { function statsdMiddleware (line 106) | func statsdMiddleware(next http.Handler) http.Handler { function limiterMiddleware (line 124) | func limiterMiddleware(next http.Handler) http.Handler { FILE: packages/service/jsonrpc/namespace.go type space (line 11) | type space constant namespaceSeparator (line 14) | namespaceSeparator = "." constant namespaceRPC (line 18) | namespaceRPC space = "rpc" constant NamespaceDebug (line 19) | NamespaceDebug space = "debug" constant NamespaceIBAX (line 21) | NamespaceIBAX space = "ibax" constant NamespaceAdmin (line 22) | NamespaceAdmin space = "admin" constant NamespaceNet (line 23) | NamespaceNet space = "net" type RpcApis (line 26) | type RpcApis interface type RpcServers (line 30) | type RpcServers struct method Modules (line 70) | func (r *RpcServers) Modules() ([]string, *Error) { type NewApiService (line 34) | type NewApiService interface type Method (line 39) | type Method struct method Delete (line 43) | func (a *Method) Delete(name string) { method New (line 52) | func (a *Method) New(structObject any) (name string) { function GetStructValue (line 82) | func GetStructValue(structObject any) reflect.Value { FILE: packages/service/jsonrpc/namespace_debug.go type DebugApi (line 7) | type DebugApi struct method GetApis (line 11) | func (p *DebugApi) GetApis() []any { function NewDebugApi (line 23) | func NewDebugApi() *DebugApi { FILE: packages/service/jsonrpc/namespace_ibax.go type IbaxApi (line 7) | type IbaxApi struct method GetApis (line 16) | func (p *IbaxApi) GetApis() []any { function NewIbaxApi (line 42) | func NewIbaxApi(m Mode) *IbaxApi { FILE: packages/service/jsonrpc/namespace_net.go type NetApi (line 14) | type NetApi struct method GetApis (line 24) | func (p *NetApi) GetApis() []any { function NewNetApi (line 18) | func NewNetApi() *NetApi { type networkApi (line 35) | type networkApi struct method Status (line 43) | func (n *networkApi) Status() string { method GetNetwork (line 47) | func (c *networkApi) GetNetwork() (*NetworkResult, *Error) { function NewNetworkApi (line 38) | func NewNetworkApi() *networkApi { FILE: packages/service/jsonrpc/params.go type Param (line 16) | type Param method MarshalJSON (line 20) | func (m Param) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 28) | func (m *Param) UnmarshalJSON(data []byte) error { type Params (line 17) | type Params method UnmarshalInto (line 87) | func (p Params) UnmarshalInto(receivers ...any) error { method UnmarshalValue (line 106) | func (p Params) UnmarshalValue(types []reflect.Type) (args []reflect.V... method UnmarshalSingleParam (line 150) | func (p Params) UnmarshalSingleParam(pos int, receiver any) error { function MustParams (line 42) | func MustParams(params ...any) Params { function MakeParams (line 58) | func MakeParams(params ...any) (Params, error) { FILE: packages/service/jsonrpc/raw_response.go type RawResponse (line 10) | type RawResponse struct method MarshalJSON (line 19) | func (r RawResponse) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 53) | func (r *RawResponse) UnmarshalJSON(data []byte) error { FILE: packages/service/jsonrpc/request.go constant JsonRPCVersion (line 10) | JsonRPCVersion = "2.0" type Request (line 12) | type Request struct method MarshalJSON (line 59) | func (r Request) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 75) | func (r *Request) UnmarshalJSON(data []byte) error { type BatchRequest (line 19) | type BatchRequest type RequestWithNetwork (line 21) | type RequestWithNetwork struct method MarshalJSON (line 165) | func (r RequestWithNetwork) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 183) | func (r *RequestWithNetwork) UnmarshalJSON(data []byte) error { function NewRequest (line 26) | func NewRequest() *Request { function MakeRequest (line 32) | func MakeRequest(id int, method string, params ...any) (*Request, error) { function MustRequest (line 48) | func MustRequest(id int, method string, params ...any) *Request { function getBatch (line 116) | func getBatch(r io.ReadCloser, ctxer func(json.RawMessage)) (reqs []*Req... function parseRequest (line 136) | func parseRequest(raw json.RawMessage) ([]*Request, bool) { function isBatch (line 152) | func isBatch(raw json.RawMessage) bool { FILE: packages/service/jsonrpc/response.go type Response (line 11) | type Response struct method MarshalJSON (line 26) | func (r Response) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 60) | func (r *Response) UnmarshalJSON(data []byte) error { type BatchResponse (line 18) | type BatchResponse function NewResponse (line 20) | func NewResponse() *Response { FILE: packages/service/jsonrpc/server.go type Server (line 14) | type Server struct method ServeHTTP (line 19) | func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { method RegisterName (line 54) | func (s *Server) RegisterName(namespace string, function any) error { method Stop (line 58) | func (s *Server) Stop() { function NewServer (line 37) | func NewServer(m Mode) *Server { FILE: packages/service/jsonrpc/service.go type service (line 19) | type service struct type serviceRegistry (line 23) | type serviceRegistry struct method registerName (line 34) | func (r *serviceRegistry) registerName(namespace string, stct any) err... method ServeHTTP (line 63) | func (s *serviceRegistry) ServeHTTP(w http.ResponseWriter, r *http.Req... method close (line 93) | func (s *serviceRegistry) close(err error) { method findCallback (line 102) | func (r *serviceRegistry) findCallback(method string) *callback { method run (line 112) | func (s *serviceRegistry) run(ctx RequestContext, isBatch bool, reqs [... method runBatch (line 139) | func (s *serviceRegistry) runBatch(reqCtx RequestContext, reqs []*Requ... method callProc (line 175) | func (s *serviceRegistry) callProc(fn func(ctx context.Context)) { function GetNamespace (line 98) | func GetNamespace(name space) string { function runMethod (line 135) | func runMethod(ctx RequestContext, m Mode, args []reflect.Value, cb *cal... type batchCallBuffer (line 185) | type batchCallBuffer struct method nextRequest (line 193) | func (b *batchCallBuffer) nextRequest() *Request { method pushResponse (line 205) | func (b *batchCallBuffer) pushResponse(answer *any, err *Error, req *R... method write (line 214) | func (b *batchCallBuffer) write(ctx RequestContext, isTimeOut bool) { FILE: packages/service/jsonrpc/transaction.go type transactionApi (line 22) | type transactionApi struct method SendTx (line 54) | func (t *transactionApi) SendTx(ctx RequestContext, auth Auth, mtx map... method TxStatus (line 133) | func (t *transactionApi) TxStatus(ctx RequestContext, auth Auth, hashe... method TxInfo (line 154) | func (b *transactionApi) TxInfo(hash string, contractInfo *bool) (*TxI... method TxInfoMultiple (line 169) | func (b *transactionApi) TxInfoMultiple(hashList []string, contractInf... function newTransactionApi (line 25) | func newTransactionApi() *transactionApi { type sendTxResult (line 29) | type sendTxResult struct function txHandlerBatches (line 33) | func txHandlerBatches(r *http.Request, m Mode, mtx map[string][]byte) ([... type txstatusError (line 77) | type txstatusError struct type txstatusResult (line 83) | type txstatusResult struct function getTxStatus (line 90) | func getTxStatus(r *http.Request, hash string) (*txstatusResult, error) { FILE: packages/service/jsonrpc/txinfo.go type feeInfo (line 20) | type feeInfo struct type TxInfoResult (line 26) | type TxInfoResult struct type MultiTxInfoResult (line 32) | type MultiTxInfoResult struct type TxDetailResult (line 36) | type TxDetailResult struct function getTxInfo (line 39) | func getTxInfo(txHash string, getInfo bool) (*TxInfoResult, error) { function transactionData (line 73) | func transactionData(blockId int64, txHash string) (*smart.TxInfo, error) { FILE: packages/service/node/node_actualization.go constant DefaultBlockchainGap (line 22) | DefaultBlockchainGap int64 = 10 type NodeActualizer (line 24) | type NodeActualizer struct method Run (line 35) | func (n *NodeActualizer) Run(ctx context.Context) { method checkBlockchainActuality (line 65) | func (n *NodeActualizer) checkBlockchainActuality(ctx context.Context)... method pauseNodeActivity (line 102) | func (n *NodeActualizer) pauseNodeActivity() { method resumeNodeActivity (line 106) | func (n *NodeActualizer) resumeNodeActivity() { function NewNodeActualizer (line 28) | func NewNodeActualizer(availableBlockchainGap int64) NodeActualizer { FILE: packages/service/node/node_ban.go type localBannedNode (line 23) | type localBannedNode struct type NodesBanService (line 28) | type NodesBanService struct method RegisterBadBlock (line 54) | func (nbs *NodesBanService) RegisterBadBlock(node syspar.HonorNode, ba... method IsBanned (line 72) | func (nbs *NodesBanService) IsBanned(node syspar.HonorNode) bool { method refreshNodes (line 107) | func (nbs *NodesBanService) refreshNodes() { method localBan (line 113) | func (nbs *NodesBanService) localBan(node syspar.HonorNode) { method newBadBlock (line 129) | func (nbs *NodesBanService) newBadBlock(producer syspar.HonorNode, blo... method FilterHosts (line 174) | func (nbs *NodesBanService) FilterHosts(hosts []string) ([]string, []s... method FilterBannedHosts (line 192) | func (nbs *NodesBanService) FilterBannedHosts(hosts []string) (goodHos... function GetNodesBanService (line 38) | func GetNodesBanService() *NodesBanService { function InitNodesBanService (line 43) | func InitNodesBanService() error { FILE: packages/service/node/node_paused.go constant NoPause (line 12) | NoPause PauseType = 0 constant PauseTypeUpdatingBlockchain (line 14) | PauseTypeUpdatingBlockchain PauseType = 1 + iota constant PauseTypeStopingNetwork (line 15) | PauseTypeStopingNetwork type PauseType (line 21) | type PauseType method String (line 29) | func (p PauseType) String() string { type NodePaused (line 23) | type NodePaused struct method Set (line 41) | func (np *NodePaused) Set(pt PauseType) { method Unset (line 48) | func (np *NodePaused) Unset() { method Get (line 55) | func (np *NodePaused) Get() PauseType { method IsSet (line 62) | func (np *NodePaused) IsSet() bool { function IsNodePaused (line 69) | func IsNodePaused() bool { function PauseNodeActivity (line 73) | func PauseNodeActivity(pt PauseType) { function NodePauseType (line 77) | func NodePauseType() PauseType { FILE: packages/service/node/node_relevance.go type NodeRelevanceService (line 22) | type NodeRelevanceService struct method Run (line 41) | func (n *NodeRelevanceService) Run(ctx context.Context) { method checkNodeRelevance (line 75) | func (n *NodeRelevanceService) checkNodeRelevance(ctx context.Context)... method pauseNodeActivity (line 139) | func (n *NodeRelevanceService) pauseNodeActivity() { method resumeNodeActivity (line 143) | func (n *NodeRelevanceService) resumeNodeActivity() { function NewNodeRelevanceService (line 27) | func NewNodeRelevanceService() *NodeRelevanceService { function NodeDoneUpdatingBlockchain (line 69) | func NodeDoneUpdatingBlockchain() { FILE: packages/smart/builtin_excel.go function GetDataFromXLSX (line 19) | func GetDataFromXLSX(sc *SmartContract, binaryID, startLine, linesCount,... function GetRowsCountXLSX (line 43) | func GetRowsCountXLSX(sc *SmartContract, binaryID, sheetNum int64) (int6... function excelBookFromStoredBinary (line 54) | func excelBookFromStoredBinary(sc *SmartContract, binaryID int64) (*xl.F... FILE: packages/smart/contract.go type Contract (line 12) | type Contract struct method Info (line 24) | func (c *Contract) Info() *script.ContractInfo { method GetFunc (line 116) | func (contract *Contract) GetFunc(name string) *script.CodeBlock { function LoadContracts (line 29) | func LoadContracts() error { function LoadContract (line 52) | func LoadContract(transaction *sqldb.DbTransaction, ecosystem int64) (er... function VMGetContract (line 67) | func VMGetContract(vm *script.VM, name string, state uint32) *Contract { function VMGetContractByID (line 80) | func VMGetContractByID(vm *script.VM, id int32) *Contract { function GetContract (line 101) | func GetContract(name string, state uint32) *Contract { function GetUsedContracts (line 106) | func GetUsedContracts(name string, state uint32, full bool) []string { function GetContractByID (line 111) | func GetContractByID(id int32) *Contract { function loadContractList (line 123) | func loadContractList(list []sqldb.Contract) error { function vmGetUsedContracts (line 148) | func vmGetUsedContracts(vm *script.VM, name string, state uint32, full b... FILE: packages/smart/datetime.go constant dateTimeFormat (line 14) | dateTimeFormat = "2006-01-02 15:04:05" function Date (line 18) | func Date(timeFormat string, timestamp int64) string { function BlockTime (line 23) | func BlockTime(sc *SmartContract) string { function DateTime (line 34) | func DateTime(unix int64) string { function DateTimeLocation (line 38) | func DateTimeLocation(unix int64, locationName string) (string, error) { function AddDate (line 46) | func AddDate(unix, years, months, days int64) int64 { function UnixDateTime (line 50) | func UnixDateTime(value string) int64 { function UnixDateTimeLocation (line 58) | func UnixDateTimeLocation(value, locationName string) (int64, error) { FILE: packages/smart/errors.go constant eContractLoop (line 13) | eContractLoop = `there is loop in %s contract` constant eContractExist (line 14) | eContractExist = `contract %s already exists` constant eLatin (line 15) | eLatin = `Name %s must only contain latin, digit and '_'... constant eAccessContract (line 16) | eAccessContract = `%s can only be called with condition: %s` constant eColumnExist (line 17) | eColumnExist = `column %s exists` constant eColumnNotExist (line 18) | eColumnNotExist = `column %s doesn't exist` constant eColumnType (line 19) | eColumnType = `Type '%s' of columns is not supported` constant eNotCustomTable (line 20) | eNotCustomTable = `%s is not a custom table` constant eEmptyCond (line 21) | eEmptyCond = `%v condition is empty` constant eIncorrectSignature (line 22) | eIncorrectSignature = `incorrect signature %s` constant eItemNotFound (line 23) | eItemNotFound = `item %d has not been found` constant eManyColumns (line 24) | eManyColumns = `Too many columns. Limit is %d` constant eNotCondition (line 25) | eNotCondition = `There is not %s in parameters` constant eParamNotFound (line 26) | eParamNotFound = `Parameter %s has not been found` constant eRecordNotFound (line 27) | eRecordNotFound = `Record %s has not been found` constant eTableExists (line 28) | eTableExists = `table %s exists` constant eTableNotFound (line 29) | eTableNotFound = `table %s has not been found` constant eTypeJSON (line 30) | eTypeJSON = `Type %T doesn't support json marshalling` constant eUnknownContract (line 31) | eUnknownContract = `Unknown contract %s` constant eUnsupportedType (line 32) | eUnsupportedType = "Unsupported type %T" constant eWrongRandom (line 33) | eWrongRandom = `wrong random parameters min: %v, max: %v` constant eGreaterThan (line 34) | eGreaterThan = `%s must be greater than 0` constant eTableNotEmpty (line 35) | eTableNotEmpty = `Table %s is not empty` constant eColumnNotDeleted (line 36) | eColumnNotDeleted = `Column %s cannot be deleted` constant eRollbackContract (line 37) | eRollbackContract = `Wrong rollback of the latest contract %d != %d` constant eExternalNet (line 38) | eExternalNet = `External network %s is not defined` constant eKeyNotFound (line 39) | eKeyNotFound = `sender %s has not been found` constant eEcoKeyNotFound (line 40) | eEcoKeyNotFound = `sender %s has not been found in ecosystem %d` constant eEcoKeyDisable (line 41) | eEcoKeyDisable = `%s disable in ecosystem %d` constant eEcoFuelRate (line 42) | eEcoFuelRate = `fuel rate must be greater than 0 or empty in e... constant eEcoCurrentBalance (line 43) | eEcoCurrentBalance = `account %s current balance is not enough in ec... constant eEcoCurrentBalanceDiff (line 44) | eEcoCurrentBalanceDiff = eEcoCurrentBalance + `, at least [%s] difference` FILE: packages/smart/funcs.go constant nodeBanNotificationHeader (line 50) | nodeBanNotificationHeader = "Your node was banned" constant historyLimit (line 51) | historyLimit = 250 constant contractTxType (line 52) | contractTxType = 128 type permTable (line 61) | type permTable struct type permColumn (line 69) | type permColumn struct type TxInfo (line 74) | type TxInfo struct type TableInfo (line 88) | type TableInfo struct type FlushInfo (line 93) | type FlushInfo struct method FlushVM (line 100) | func (finfo *FlushInfo) FlushVM() { type NotifyInfo (line 115) | type NotifyInfo struct function EmbedFuncs (line 176) | func EmbedFuncs(vt script.VMType) map[string]any { function accessContracts (line 329) | func accessContracts(sc *SmartContract, names ...string) bool { function CompileContract (line 341) | func CompileContract(sc *SmartContract, code string, state, id, token in... function ContractAccess (line 349) | func ContractAccess(sc *SmartContract, names ...any) bool { function RoleAccess (line 377) | func RoleAccess(sc *SmartContract, ids ...any) (bool, error) { function ContractConditions (line 401) | func ContractConditions(sc *SmartContract, names ...any) (bool, error) { function contractName (line 439) | func contractName(value string) (name string, err error) { function ValidateEditContractNewValue (line 449) | func ValidateEditContractNewValue(sc *SmartContract, newValue, oldValue ... function UpdateContract (line 476) | func UpdateContract(sc *SmartContract, id int64, value, conditions strin... function CreateContract (line 513) | func CreateContract(sc *SmartContract, name, value, conditions string, t... function getColumns (line 553) | func getColumns(columns string) (colsSQL string, colout []byte, err erro... function CreateView (line 608) | func CreateView(sc *SmartContract, vname, columns, where string, applica... type ViewColSch (line 652) | type ViewColSch struct function parseViewColumnSql (line 658) | func parseViewColumnSql(sc *SmartContract, columns string) (colsSQL stri... type ViewWheSch (line 712) | type ViewWheSch struct function parseViewWhereSql (line 720) | func parseViewWhereSql(sc *SmartContract, columns string) (tabsSQL, whsS... function CreateTable (line 815) | func CreateTable(sc *SmartContract, name, columns, permissions string, a... function columnType (line 873) | func columnType(colType string) (string, error) { function mapToParams (line 880) | func mapToParams(values *types.Map) (params []string, val []any, err err... function DBInsert (line 893) | func DBInsert(sc *SmartContract, tblname string, values *types.Map) (qco... function PrepareColumns (line 927) | func PrepareColumns(columns []string) string { function DBSelect (line 947) | func DBSelect(sc *SmartContract, tblname string, inColumns any, id int64... function DBUpdateExt (line 1061) | func DBUpdateExt(sc *SmartContract, tblname string, where *types.Map, function DBUpdate (line 1082) | func DBUpdate(sc *SmartContract, tblname string, id int64, values *types... function EcosysParam (line 1087) | func EcosysParam(sc *SmartContract, name string) string { function AppParam (line 1098) | func AppParam(sc *SmartContract, app int64, name string, ecosystem int64... function Eval (line 1109) | func Eval(sc *SmartContract, condition string) error { function CheckCondition (line 1124) | func CheckCondition(sc *SmartContract, condition string) (bool, error) { function FlushContract (line 1136) | func FlushContract(sc *SmartContract, iroot any, id int64) error { function IsObject (line 1181) | func IsObject(sc *SmartContract, name string, state int64) bool { function Len (line 1186) | func Len(in []any) int64 { function PermTable (line 1194) | func PermTable(sc *SmartContract, name, permissions string) error { function columnConditions (line 1222) | func columnConditions(sc *SmartContract, columns string) (err error) { function TableConditions (line 1280) | func TableConditions(sc *SmartContract, name, columns, permissions strin... function ValidateCondition (line 1341) | func ValidateCondition(sc *SmartContract, condition string, state int64)... function ColumnCondition (line 1349) | func ColumnCondition(sc *SmartContract, tableName, name, coltype, permis... function AllowChangeCondition (line 1406) | func AllowChangeCondition(sc *SmartContract, tblname string) error { function RowConditions (line 1416) | func RowConditions(sc *SmartContract, tblname string, id int64, conditio... function checkColumnName (line 1445) | func checkColumnName(name string) error { function checkTableNameRule (line 1457) | func checkTableNameRule(name string) error { function CreateColumn (line 1471) | func CreateColumn(sc *SmartContract, tableName, name, colType, permissio... function PermColumn (line 1532) | func PermColumn(sc *SmartContract, tableName, name, permissions string) ... function HMac (line 1562) | func HMac(key, data string, raw_output bool) (ret string, err error) { function GetMapKeys (line 1574) | func GetMapKeys(in *types.Map) []any { function SortedKeys (line 1583) | func SortedKeys(m *types.Map) []any { function httpRequest (line 1598) | func httpRequest(req *http.Request, headers map[string]any) (string, err... function HTTPRequest (line 1620) | func HTTPRequest(requrl, method string, head *types.Map, params *types.M... function HTTPPostJSON (line 1646) | func HTTPPostJSON(requrl string, head *types.Map, json_str string) (stri... function RandomInt (line 1660) | func RandomInt(sc *SmartContract, min int64, max int64) (int64, error) { function RandomFloat (line 1667) | func RandomFloat(sc *SmartContract, min float64, max float64) (float64, ... function RandomDecimal (line 1674) | func RandomDecimal(sc *SmartContract, min decimal.Decimal, max decimal.D... function ValidateCron (line 1681) | func ValidateCron(cronSpec string) (err error) { function UpdateCron (line 1686) | func UpdateCron(sc *SmartContract, id int64) error { function UpdateNodesBan (line 1709) | func UpdateNodesBan(smartContract *SmartContract, timestamp int64) error { function GetBlock (line 1811) | func GetBlock(blockID int64) (*types.Map, error) { function DecodeBase64 (line 1829) | func DecodeBase64(input string) (out string, err error) { function EncodeBase64 (line 1839) | func EncodeBase64(input string) (out string) { function Hash (line 1844) | func Hash(data any) (string, error) { function GetColumnType (line 1862) | func GetColumnType(sc *SmartContract, tableName, columnName string) (str... function GetType (line 1867) | func GetType(val any) string { function StringToBytes (line 1875) | func StringToBytes(src string) []byte { function BytesToString (line 1880) | func BytesToString(src []byte) string { function CreateCLB (line 1888) | func CreateCLB(sc *SmartContract, name, dbUser, dbPassword string, port ... function DeleteCLB (line 1893) | func DeleteCLB(sc *SmartContract, name string) error { function StartCLB (line 1898) | func StartCLB(sc *SmartContract, name string) error { function StopCLBProcess (line 1903) | func StopCLBProcess(sc *SmartContract, name string) error { function GetCLBList (line 1908) | func GetCLBList(sc *SmartContract) map[string]string { function GetHistoryRaw (line 1913) | func GetHistoryRaw(dbTx *sqldb.DbTransaction, ecosystem int64, tableName... constant AddressLength (line 2010) | AddressLength = 20 type Address (line 2013) | type Address method Hex (line 2015) | func (a Address) Hex() string { method checksumHex (line 2019) | func (a *Address) checksumHex() []byte { method hex (line 2040) | func (a Address) hex() []byte { function getBtcNetParams (line 2047) | func getBtcNetParams() *chaincfg.Params { function BitcoinLegacyAddress (line 2056) | func BitcoinLegacyAddress(pubKeyBytes []byte) (string, error) { function BitcoinBip32Address (line 2075) | func BitcoinBip32Address(pubKeyBytes []byte) (string, error) { function BitcoinBip49Address (line 2094) | func BitcoinBip49Address(pubKeyBytes []byte) (string, error) { function BitcoinBip84Address (line 2122) | func BitcoinBip84Address(pubKeyBytes []byte) (string, error) { function BitcoinBip86Address (line 2142) | func BitcoinBip86Address(pubKeyBytes []byte) (string, error) { function EthereumAddress (line 2177) | func EthereumAddress(pub []byte) string { function TronAddress (line 2184) | func TronAddress(pub []byte) (string, error) { function GetLogTxCount (line 2191) | func GetLogTxCount(sc *SmartContract, ecosystemID int64) (int64, error) { function TopAmounts (line 2195) | func TopAmounts(sc *SmartContract, ecosystem int64, rank int64, dense bo... function GetHistory (line 2199) | func GetHistory(sc *SmartContract, tableName string, id int64) ([]any, e... function GetHistoryRow (line 2203) | func GetHistoryRow(sc *SmartContract, tableName string, id, idRollback i... function UpdateNotifications (line 2219) | func UpdateNotifications(sc *SmartContract, ecosystemID int64, accounts ... function UpdateRolesNotifications (line 2235) | func UpdateRolesNotifications(sc *SmartContract, ecosystemID int64, role... function DelColumn (line 2252) | func DelColumn(sc *SmartContract, tableName, name string) (err error) { function DelTable (line 2330) | func DelTable(sc *SmartContract, tableName string) (err error) { function FormatMoney (line 2398) | func FormatMoney(sc *SmartContract, exp string, digit int64) (string, er... function PubToHex (line 2413) | func PubToHex(in any) (ret string) { function SendExternalTransaction (line 2423) | func SendExternalTransaction(sc *SmartContract, uid, url, externalContra... function IsHonorNodeKey (line 2453) | func IsHonorNodeKey(id int64) bool { FILE: packages/smart/gas.go type FuelCategory (line 24) | type FuelCategory struct method writeFuelType (line 72) | func (f *FuelCategory) writeFuelType(fuelType FuelType) { f.FuelT... method writeDecimal (line 73) | func (f *FuelCategory) writeDecimal(decimal decimal.Decimal) { f.Decim... method writeArithmetic (line 74) | func (f *FuelCategory) writeArithmetic(a Arithmetic) { f.Arith... method resetArithmetic (line 75) | func (f *FuelCategory) resetArithmetic() { f.Arith... method writeFlag (line 76) | func (f *FuelCategory) writeFlag(tf GasPayAbleType) { method writeConversionRate (line 83) | func (f *FuelCategory) writeConversionRate(cr float64) { method Detail (line 91) | func (f *FuelCategory) Detail() (string, any) { method FeesInfo (line 95) | func (f *FuelCategory) FeesInfo() any { method Fees (line 107) | func (f *FuelCategory) Fees() decimal.Decimal { type Combustion (line 31) | type Combustion struct method Fees (line 122) | func (c Combustion) Fees(sum decimal.Decimal) decimal.Decimal { method Detail (line 126) | func (c Combustion) Detail(sum decimal.Decimal) any { type PaymentInfo (line 35) | type PaymentInfo struct method PushFuelCategories (line 139) | func (pay *PaymentInfo) PushFuelCategories(fes ...FuelCategory) { method SetDecimalByType (line 143) | func (pay *PaymentInfo) SetDecimalByType(fuelType FuelType, decimal de... method GetPayMoney (line 152) | func (pay *PaymentInfo) GetPayMoney() decimal.Decimal { method GetEstimate (line 161) | func (pay *PaymentInfo) GetEstimate() decimal.Decimal { method Detail (line 173) | func (pay *PaymentInfo) Detail() any { method DetailCombustion (line 187) | func (pay *PaymentInfo) DetailCombustion() any { method checkVerify (line 207) | func (f *PaymentInfo) checkVerify(sc *SmartContract) error { type multiPays (line 50) | type multiPays function newCombustion (line 53) | func newCombustion(flag int64, percent int64) *Combustion { function NewFuelCategory (line 63) | func NewFuelCategory(fuelType FuelType, decimal decimal.Decimal, flag Ga... method resetFromIDForNativePay (line 250) | func (sc *SmartContract) resetFromIDForNativePay(from int64) *PaymentInfo { method payContract (line 268) | func (sc *SmartContract) payContract(errNeedPay bool) error { method accountBalanceSingle (line 317) | func (sc *SmartContract) accountBalanceSingle(eco, id int64) (decimal.De... method payTaxes (line 328) | func (sc *SmartContract) payTaxes(pay *PaymentInfo, sum decimal.Decimal,... method needPayment (line 408) | func (sc *SmartContract) needPayment() bool { method hasExistKeyID (line 412) | func (sc *SmartContract) hasExistKeyID(eco, id int64) error { method getFromIdAndPayType (line 444) | func (sc *SmartContract) getFromIdAndPayType(eco int64) (int64, PaymentT... method getChangeAddress (line 476) | func (sc *SmartContract) getChangeAddress(eco int64) ([]*PaymentInfo, er... method prepareMultiPay (line 624) | func (sc *SmartContract) prepareMultiPay() error { method appendTokens (line 646) | func (sc *SmartContract) appendTokens(nums ...int64) error { method getTokenEcos (line 671) | func (sc *SmartContract) getTokenEcos() []int64 { method payFreeContract (line 680) | func (sc *SmartContract) payFreeContract() bool { method fuelRate (line 699) | func (sc *SmartContract) fuelRate(eco int64, followFuel float64) (decima... method taxesWallet (line 743) | func (sc *SmartContract) taxesWallet(eco int64) (taxesID int64, err erro... function storageFeeBy (line 783) | func storageFeeBy(txSize int64, digits int32) decimal.Decimal { function expediteFeeBy (line 798) | func expediteFeeBy(expedite string, digits int32) (decimal.Decimal, erro... FILE: packages/smart/gas.pb.go constant _ (line 21) | _ = proto.GoGoProtoPackageIsVersion3 type PaymentType (line 23) | type PaymentType method String (line 46) | func (x PaymentType) String() string { method EnumDescriptor (line 50) | func (PaymentType) EnumDescriptor() ([]byte, []int) { constant PaymentType_INVALID (line 26) | PaymentType_INVALID PaymentType = 0 constant PaymentType_ContractCaller (line 27) | PaymentType_ContractCaller PaymentType = 1 constant PaymentType_ContractBinder (line 28) | PaymentType_ContractBinder PaymentType = 2 constant PaymentType_EcosystemAddress (line 29) | PaymentType_EcosystemAddress PaymentType = 3 type GasScenesType (line 54) | type GasScenesType method String (line 83) | func (x GasScenesType) String() string { method EnumDescriptor (line 87) | func (GasScenesType) EnumDescriptor() ([]byte, []int) { constant GasScenesType_Unknown (line 57) | GasScenesType_Unknown GasScenesType = 0 constant GasScenesType_Reward (line 58) | GasScenesType_Reward GasScenesType = 1 constant GasScenesType_Taxes (line 59) | GasScenesType_Taxes GasScenesType = 2 constant GasScenesType_Direct (line 60) | GasScenesType_Direct GasScenesType = 15 constant GasScenesType_Combustion (line 61) | GasScenesType_Combustion GasScenesType = 16 constant GasScenesType_TransferSelf (line 62) | GasScenesType_TransferSelf GasScenesType = 24 type GasPayAbleType (line 91) | type GasPayAbleType method String (line 111) | func (x GasPayAbleType) String() string { method EnumDescriptor (line 115) | func (GasPayAbleType) EnumDescriptor() ([]byte, []int) { constant GasPayAbleType_Invalid (line 94) | GasPayAbleType_Invalid GasPayAbleType = 0 constant GasPayAbleType_Unable (line 95) | GasPayAbleType_Unable GasPayAbleType = 1 constant GasPayAbleType_Capable (line 96) | GasPayAbleType_Capable GasPayAbleType = 2 type FuelType (line 119) | type FuelType method String (line 142) | func (x FuelType) String() string { method EnumDescriptor (line 146) | func (FuelType) EnumDescriptor() ([]byte, []int) { constant FuelType_UNKNOWN (line 122) | FuelType_UNKNOWN FuelType = 0 constant FuelType_vmCost_fee (line 123) | FuelType_vmCost_fee FuelType = 1 constant FuelType_storage_fee (line 124) | FuelType_storage_fee FuelType = 2 constant FuelType_expedite_fee (line 125) | FuelType_expedite_fee FuelType = 3 type Arithmetic (line 150) | type Arithmetic method String (line 170) | func (x Arithmetic) String() string { method EnumDescriptor (line 174) | func (Arithmetic) EnumDescriptor() ([]byte, []int) { constant Arithmetic_NATIVE (line 153) | Arithmetic_NATIVE Arithmetic = 0 constant Arithmetic_MUL (line 154) | Arithmetic_MUL Arithmetic = 3 constant Arithmetic_DIV (line 155) | Arithmetic_DIV Arithmetic = 4 function init (line 178) | func init() { function init (line 186) | func init() { proto.RegisterFile("gas.proto", fileDescriptor_df176b4a803... FILE: packages/smart/math.go function parseFloat (line 13) | func parseFloat(x any) (float64, error) { function isValidFloat (line 33) | func isValidFloat(x float64) bool { function Floor (line 38) | func Floor(x any) (int64, error) { function Log (line 50) | func Log(x any) (float64, error) { function Log10 (line 62) | func Log10(x any) (float64, error) { function Pow (line 74) | func Pow(x, y any) (float64, error) { function Round (line 90) | func Round(x any) (int64, error) { function Sqrt (line 102) | func Sqrt(x any) (float64, error) { function SqrtDecimal (line 113) | func SqrtDecimal(str string) decimal.Decimal { function Div (line 133) | func Div(str1 string, str2 string) string { function GreaterThan (line 139) | func GreaterThan(str1 string, str2 string) bool { function GreaterThanOrEqual (line 146) | func GreaterThanOrEqual(str1 string, str2 string) bool { function LessThan (line 153) | func LessThan(str1 string, str2 string) bool { function LessThanOrEqual (line 160) | func LessThanOrEqual(str1 string, str2 string) bool { FILE: packages/smart/selective.go function addRollback (line 22) | func addRollback(sc *SmartContract, table, tableID, rollbackInfoStr, rol... method selectiveLoggingAndUpd (line 34) | func (sc *SmartContract) selectiveLoggingAndUpd(fields []string, ivalues... method insert (line 177) | func (sc *SmartContract) insert(fields []string, ivalues []any, method updateWhere (line 182) | func (sc *SmartContract) updateWhere(fields []string, values []any, method update (line 187) | func (sc *SmartContract) update(fields []string, values []any, function shortString (line 193) | func shortString(raw string, length int) string { FILE: packages/smart/smart.go constant MaxPrice (line 36) | MaxPrice = 100000000000000000 constant CallDelayedContract (line 40) | CallDelayedContract = "@1CallDelayedContract" constant NewUserContract (line 41) | NewUserContract = "@1NewUser" constant NewBadBlockContract (line 42) | NewBadBlockContract = "@1NewBadBlock" type SmartContract (line 54) | type SmartContract struct method AppendStack (line 97) | func (sc *SmartContract) AppendStack(fn string) error { method PopStack (line 111) | func (sc *SmartContract) PopStack(fn string) { method isAllowStack (line 121) | func (sc *SmartContract) isAllowStack(fn string) bool { method GetLogger (line 149) | func (sc *SmartContract) GetLogger() *log.Entry { method getExtend (line 197) | func (sc *SmartContract) getExtend() map[string]any { method IsCustomTable (line 254) | func (sc *SmartContract) IsCustomTable(table string) (isCustom bool, e... method AccessTablePerm (line 270) | func (sc *SmartContract) AccessTablePerm(table, action string) (map[st... method AccessTable (line 318) | func (sc *SmartContract) AccessTable(table, action string) error { method AccessColumns (line 336) | func (sc *SmartContract) AccessColumns(table string, columns *[]string... method CheckAccess (line 445) | func (sc *SmartContract) CheckAccess(tableName, columns string, ecosys... method AccessRights (line 470) | func (sc *SmartContract) AccessRights(condition string, iscondition bo... method EvalIf (line 498) | func (sc *SmartContract) EvalIf(conditions string) (bool, error) { method GetContractLimit (line 503) | func (sc *SmartContract) GetContractLimit() (ret int64) { method GetSignedBy (line 513) | func (sc *SmartContract) GetSignedBy(public []byte) (int64, error) { method CallContract (line 550) | func (sc *SmartContract) CallContract(point string) (string, error) { method checkTxSign (line 644) | func (sc *SmartContract) checkTxSign() error { function InitVM (line 127) | func InitVM() { function defineVMType (line 138) | func defineVMType() script.VMType { function GetAllContracts (line 157) | func GetAllContracts() (string, error) { function ActivateContract (line 170) | func ActivateContract(tblid, state int64, active bool) { function SetContractWallet (line 182) | func SetContractWallet(sc *SmartContract, tblid, state int64, wallet int... function PrefixName (line 245) | func PrefixName(table string) (prefix, name string) { function getPermColumns (line 326) | func getPermColumns(input string) (perm permColumn, err error) { FILE: packages/smart/smart_p.go constant nBindWallet (line 39) | nBindWallet = "BindWallet" constant nUnbindWallet (line 40) | nUnbindWallet = "UnbindWallet" constant nEditColumn (line 41) | nEditColumn = "EditColumn" constant nEditContract (line 42) | nEditContract = "EditContract" constant nEditEcosystemName (line 43) | nEditEcosystemName = "EditEcosystemName" constant nEditLang (line 44) | nEditLang = "EditLang" constant nEditLangJoint (line 45) | nEditLangJoint = "EditLangJoint" constant nEditTable (line 46) | nEditTable = "EditTable" constant nImport (line 47) | nImport = "Import" constant nNewColumn (line 48) | nNewColumn = "NewColumn" constant nNewContract (line 49) | nNewContract = "NewContract" constant nNewEcosystem (line 50) | nNewEcosystem = "NewEcosystem" constant nNewLang (line 51) | nNewLang = "NewLang" constant nNewLangJoint (line 52) | nNewLangJoint = "NewLangJoint" constant nNewTable (line 53) | nNewTable = "NewTable" constant nNewTableJoint (line 54) | nNewTableJoint = "NewTableJoint" constant nNewUser (line 55) | nNewUser = "NewUser" constant nBlockReward (line 56) | nBlockReward = "BlockReward" constant nCallDelayedContract (line 57) | nCallDelayedContract = "CallDelayedContract" type SignRes (line 61) | type SignRes struct type TxSignJSON (line 67) | type TxSignJSON struct function getCost (line 74) | func getCost(name string) int64 { function UpdatePlatformParam (line 82) | func UpdatePlatformParam(sc *SmartContract, name, value, conditions stri... function SysParamString (line 194) | func SysParamString(name string) string { function SysParamInt (line 199) | func SysParamInt(name string) int64 { function SysFuel (line 204) | func SysFuel(state int64) string { function Int (line 209) | func Int(v any) (int64, error) { function Str (line 214) | func Str(v any) (ret string) { function Money (line 222) | func Money(v any) (decimal.Decimal, error) { function Float (line 227) | func Float(v any) (ret float64) { function Join (line 232) | func Join(input []any, sep string) string { function Split (line 244) | func Split(input, sep string) []any { function PubToID (line 254) | func PubToID(hexkey string) int64 { function CheckSign (line 263) | func CheckSign(pub, data, sign string) (bool, error) { function CheckNumberChars (line 276) | func CheckNumberChars(data string) bool { function HexToBytes (line 290) | func HexToBytes(hexdata string) ([]byte, error) { function LangRes (line 295) | func LangRes(sc *SmartContract, idRes string) string { function CreateLanguage (line 301) | func CreateLanguage(sc *SmartContract, name, trans string) (id int64, er... function EditLanguage (line 318) | func EditLanguage(sc *SmartContract, id int64, name, trans string) error { function GetContractByName (line 334) | func GetContractByName(sc *SmartContract, name string) int64 { function GetContractById (line 348) | func GetContractById(sc *SmartContract, id int64) string { function EvalCondition (line 368) | func EvalCondition(sc *SmartContract, table, name, condfield string) err... function Replace (line 382) | func Replace(s, old, new string) string { function CreateEcosystem (line 387) | func CreateEcosystem(sc *SmartContract, wallet int64, name string) (int6... function EditEcosysName (line 497) | func EditEcosysName(sc *SmartContract, sysID int64, newName string) error { function Size (line 508) | func Size(s string) int64 { function Substr (line 513) | func Substr(s string, off int64, slen int64) string { function BndWallet (line 525) | func BndWallet(sc *SmartContract, tblid int64, state int64) error { function UnbndWallet (line 540) | func UnbndWallet(sc *SmartContract, tblid int64, state int64) error { function CheckSignature (line 554) | func CheckSignature(sc *SmartContract, i map[string]any, name string) er... function DBSelectMetrics (line 595) | func DBSelectMetrics(sc *SmartContract, metric, timeInterval, aggregateF... function DBCollectMetrics (line 610) | func DBCollectMetrics(sc *SmartContract) []any { function JSONDecode (line 623) | func JSONDecode(input string) (ret any, err error) { function JSONEncodeIndent (line 630) | func JSONEncodeIndent(input any, indent string) (string, error) { function JSONEncode (line 658) | func JSONEncode(input any) (string, error) { function Append (line 663) | func Append(slice []any, val any) []any { function HasSlice (line 667) | func HasSlice(element any, slice any) bool { function RegexpMatch (line 681) | func RegexpMatch(str, reg string) bool { function DBCount (line 693) | func DBCount(sc *SmartContract, tableName string, inWhere *types.Map) (c... function MathMod (line 703) | func MathMod(x, y float64) float64 { function MathModDecimal (line 707) | func MathModDecimal(x, y decimal.Decimal) decimal.Decimal { function TransferSelf (line 710) | func TransferSelf(sc *SmartContract, value string, source string, target... function UtxoToken (line 833) | func UtxoToken(sc *SmartContract, toID int64, value string) (flag bool, ... FILE: packages/smart/smart_test.go type TestSmart (line 14) | type TestSmart struct function TestNewContract (line 19) | func TestNewContract(t *testing.T) { function TestCheckAppend (line 62) | func TestCheckAppend(t *testing.T) { FILE: packages/smart/sysrollback.go constant SysName (line 22) | SysName = `@system` type SysRollData (line 25) | type SysRollData struct function SysRollback (line 33) | func SysRollback(sc *SmartContract, data SysRollData) error { function SysRollbackTable (line 51) | func SysRollbackTable(dbTx *sqldb.DbTransaction, sysData SysRollData) er... function SysRollbackView (line 61) | func SysRollbackView(DbTransaction *sqldb.DbTransaction, sysData SysRoll... function SysRollbackColumn (line 71) | func SysRollbackColumn(dbTx *sqldb.DbTransaction, sysData SysRollData) e... function SysRollbackContract (line 76) | func SysRollbackContract(name string, EcosystemID int64) error { function SysRollbackNewContract (line 92) | func SysRollbackNewContract(sysData SysRollData, EcosystemID string) err... function SysFlushContract (line 106) | func SysFlushContract(iroot any, id int64, active bool) error { function SysSetContractWallet (line 124) | func SysSetContractWallet(tblid, state int64, wallet int64) error { function SysRollbackEditContract (line 137) | func SysRollbackEditContract(transaction *sqldb.DbTransaction, sysData S... function SysRollbackEcosystem (line 185) | func SysRollbackEcosystem(dbTx *sqldb.DbTransaction, sysData SysRollData... function SysRollbackActivate (line 219) | func SysRollbackActivate(sysData SysRollData) error { function SysRollbackDeactivate (line 225) | func SysRollbackDeactivate(sysData SysRollData) error { function SysRollbackDeleteColumn (line 231) | func SysRollbackDeleteColumn(dbTx *sqldb.DbTransaction, sysData SysRollD... function SysRollbackDeleteTable (line 251) | func SysRollbackDeleteTable(dbTx *sqldb.DbTransaction, sysData SysRollDa... FILE: packages/smart/utils.go function logError (line 25) | func logError(err error, errType string, comment string) error { function logErrorf (line 30) | func logErrorf(pattern string, param any, errType string, comment string... function logErrorShort (line 36) | func logErrorShort(err error, errType string) error { function logErrorfShort (line 40) | func logErrorfShort(pattern string, param any, errType string) error { function logErrorValue (line 44) | func logErrorValue(err error, errType string, comment, value string) err... function logErrorDB (line 49) | func logErrorDB(err error, comment string) error { function unmarshalJSON (line 53) | func unmarshalJSON(input []byte, v any, comment string) (err error) { function marshalJSON (line 62) | func marshalJSON(v any, comment string) (out []byte, err error) { function validateAccess (line 70) | func validateAccess(sc *SmartContract, funcName string) error { function FillTxData (line 81) | func FillTxData(fieldInfos []*script.FieldInfo, params map[string]any) (... FILE: packages/statsd/statsd.go constant Count (line 17) | Count = ".count" constant Time (line 18) | Time = ".time" function Init (line 23) | func Init(conf conf.StatsDConfig) error { function Close (line 37) | func Close() { function APIRouteCounterName (line 43) | func APIRouteCounterName(method, pattern string) string { function DaemonCounterName (line 48) | func DaemonCounterName(daemonName string) string { FILE: packages/storage/kvdb/leveldb/leveldb.go type levelDBGetterPutterDeleter (line 17) | type levelDBGetterPutterDeleter interface function GetLevelDB (line 25) | func GetLevelDB(tx *leveldb.Transaction) levelDBGetterPutterDeleter { function prefixFunc (line 32) | func prefixFunc(prefix string) func([]byte) []byte { function prefixStringFunc (line 38) | func prefixStringFunc(prefix string) func(key string) []byte { function Init_leveldb (line 44) | func Init_leveldb(filename string) error { function Struct2Map (line 54) | func Struct2Map(obj any) map[string]any { function DBGetAllKey (line 64) | func DBGetAllKey(prefix string, bvalue bool) (*[]string, error) { FILE: packages/storage/kvdb/redis/goredis.go type RedisParams (line 19) | type RedisParams struct method Setdb (line 55) | func (rp *RedisParams) Setdb() error { method Getdb (line 64) | func (rp *RedisParams) Getdb() error { method Getdbsize (line 74) | func (rp *RedisParams) Getdbsize() (int64, error) { method Cleardb (line 82) | func (rp *RedisParams) Cleardb() error { method Getdb1 (line 115) | func (rp *RedisParams) Getdb1() error { function RedisInit (line 24) | func RedisInit(conf conf.RedisConfig) error { FILE: packages/storage/kvdb/redis/maxblockid.go type BlockID (line 13) | type BlockID struct method Marshal (line 22) | func (b *BlockID) Marshal() ([]byte, error) { method Unmarshal (line 31) | func (b *BlockID) Unmarshal(bt []byte) error { method GetbyName (line 39) | func (b *BlockID) GetbyName(name string) (bool, error) { method GetRangeByName (line 53) | func (b *BlockID) GetRangeByName(n1, n2 string, count int64) (bool, er... FILE: packages/storage/sqldb/app_param.go type AppParam (line 12) | type AppParam struct method TableName (line 22) | func (sp *AppParam) TableName() string { method SetTablePrefix (line 30) | func (sp *AppParam) SetTablePrefix(tablePrefix string) { method Get (line 35) | func (sp *AppParam) Get(dbTx *DbTransaction, app int64, name string) (... method GetAllAppParameters (line 41) | func (sp *AppParam) GetAllAppParameters(app int64, offset, limit *int,... FILE: packages/storage/sqldb/bad_blocks.go type BadBlocks (line 12) | type BadBlocks struct method TableName (line 22) | func (r BadBlocks) TableName() string { method GetNeedToBanNodes (line 33) | func (r *BadBlocks) GetNeedToBanNodes(now time.Time, blocksPerNode int... method GetNodeBlocks (line 67) | func (r *BadBlocks) GetNodeBlocks(nodeId int64, now time.Time) ([]BadB... type BanRequests (line 27) | type BanRequests struct FILE: packages/storage/sqldb/binary.go constant BinaryTableSuffix (line 14) | BinaryTableSuffix = "_binaries" type Binary (line 17) | type Binary struct method SetTablePrefix (line 27) | func (b *Binary) SetTablePrefix(prefix string) { method SetTableName (line 32) | func (b *Binary) SetTableName(tableName string) { method TableName (line 38) | func (b *Binary) TableName() string { method Get (line 46) | func (b *Binary) Get(appID int64, account, name string) (bool, error) { method Link (line 52) | func (b *Binary) Link() string { method GetByID (line 57) | func (b *Binary) GetByID(id int64) (bool, error) { FILE: packages/storage/sqldb/blockchain.go type BlockChain (line 13) | type BlockChain struct method TableName (line 28) | func (BlockChain) TableName() string { method Create (line 33) | func (b *BlockChain) Create(dbTx *DbTransaction) error { method Get (line 38) | func (b *BlockChain) Get(blockID int64) (bool, error) { method GetByHash (line 43) | func (b *BlockChain) GetByHash(BlockHash []byte) (bool, error) { method GetMaxBlock (line 48) | func (b *BlockChain) GetMaxBlock() (bool, error) { method GetMaxForeignBlock (line 53) | func (b *BlockChain) GetMaxForeignBlock(keyId int64) (bool, error) { method GetBlocks (line 77) | func (b *BlockChain) GetBlocks(startFromID int64, limit int) ([]BlockC... method GetBlocksFrom (line 89) | func (b *BlockChain) GetBlocksFrom(startFromID int64, ordering string,... method GetReverseBlockchain (line 100) | func (b *BlockChain) GetReverseBlockchain(endBlockID int64, limit int)... method GetNodeBlocksAtTime (line 108) | func (b *BlockChain) GetNodeBlocksAtTime(from, to time.Time, node int6... method DeleteById (line 116) | func (b *BlockChain) DeleteById(dbTx *DbTransaction, id int64) error { method GetRecentBlockChain (line 136) | func (b *BlockChain) GetRecentBlockChain(startBlockId int64, maxBlockI... function GetBlockchain (line 58) | func GetBlockchain(startBlockID int64, endblockID int64, order ordering)... function GetTxCount (line 120) | func GetTxCount() (int64, error) { function GetBlockCountByNode (line 128) | func GetBlockCountByNode(NodePosition int64, consensusMode int32) (int64... FILE: packages/storage/sqldb/candidate_node.go type CandidateNode (line 8) | type CandidateNode struct method TableName (line 39) | func (ib *CandidateNode) TableName() string { method UpdateCandidateNodeInfo (line 57) | func (c *CandidateNode) UpdateCandidateNodeInfo() error { method GetCandidateNodeByAddress (line 69) | func (c *CandidateNode) GetCandidateNodeByAddress(tcpAddress string) e... method GetCandidateNodeByPublicKey (line 81) | func (c *CandidateNode) GetCandidateNodeByPublicKey(nodePublicKey stri... method GetCandidateNodeById (line 93) | func (c *CandidateNode) GetCandidateNodeById(id int64) error { type CandidateNodes (line 25) | type CandidateNodes method Len (line 27) | func (nodes CandidateNodes) Len() int { method Swap (line 30) | func (nodes CandidateNodes) Swap(i, j int) { method Less (line 34) | func (nodes CandidateNodes) Less(i, j int) bool { function GetCandidateNode (line 44) | func GetCandidateNode(numberOfNodes int) (CandidateNodes, error) { function GetPledgeAmount (line 106) | func GetPledgeAmount() (int64, error) { FILE: packages/storage/sqldb/confirmations.go type Confirmation (line 9) | type Confirmation struct method GetGoodBlock (line 17) | func (c *Confirmation) GetGoodBlock(goodCount int) (bool, error) { method GetConfirmation (line 22) | func (c *Confirmation) GetConfirmation(blockID int64) (bool, error) { method Save (line 27) | func (c *Confirmation) Save() error { method GetGoodBlockLast (line 32) | func (c *Confirmation) GetGoodBlockLast() (bool, error) { method CheckAllowGenBlock (line 42) | func (c *Confirmation) CheckAllowGenBlock() (bool, error) { FILE: packages/storage/sqldb/contract.go type Contract (line 11) | type Contract struct method TableName (line 24) | func (c *Contract) TableName() string { method Get (line 29) | func (c *Contract) Get(Id int64) (bool, error) { method GetList (line 34) | func (c *Contract) GetList(offset, limit int) ([]Contract, error) { method GetFromEcosystem (line 41) | func (c *Contract) GetFromEcosystem(db *DbTransaction, ecosystem int64... method Count (line 48) | func (c *Contract) Count(db *DbTransaction) (count int64, err error) { method GetListByEcosystem (line 53) | func (c *Contract) GetListByEcosystem(offset, limit int) ([]Contract, ... method CountByEcosystem (line 61) | func (c *Contract) CountByEcosystem() (n int64, err error) { method ToMap (line 66) | func (c *Contract) ToMap() (v map[string]string) { method GetByApp (line 80) | func (c *Contract) GetByApp(appID int64, ecosystemID int64) ([]Contrac... FILE: packages/storage/sqldb/cron.go type Cron (line 13) | type Cron struct method SetTablePrefix (line 21) | func (c *Cron) SetTablePrefix(prefix string) { method TableName (line 26) | func (c *Cron) TableName() string { method Get (line 31) | func (c *Cron) Get(id int64) (bool, error) { method GetAllCronTasks (line 36) | func (c *Cron) GetAllCronTasks() ([]*Cron, error) { method UID (line 43) | func (c *Cron) UID() string { FILE: packages/storage/sqldb/database.go function GetNodeRows (line 10) | func GetNodeRows(tableName string) (int64, error) { function GetRowsInfo (line 22) | func GetRowsInfo(rows *sql.Rows, sqlQuest string) ([]map[string]any, err... FILE: packages/storage/sqldb/db.go constant notAutoIncrementCost (line 41) | notAutoIncrementCost int64 = 1 type KeyTableChecker (line 43) | type KeyTableChecker struct method IsKeyTable (line 45) | func (ktc KeyTableChecker) IsKeyTable(tableName string) bool { type NextIDGetter (line 50) | type NextIDGetter struct method GetNextID (line 54) | func (g NextIDGetter) GetNextID(tableName string) (int64, error) { function isFound (line 57) | func isFound(db *gorm.DB) (bool, error) { function InitDB (line 65) | func InitDB(cfg conf.DBConfig) error { function GormInit (line 117) | func GormInit(conf conf.DBConfig) error { function createDatabase (line 159) | func createDatabase(dsn string, dbName string) error { function setupConnOptions (line 174) | func setupConnOptions(conr *gorm.DB) error { function GormClose (line 188) | func GormClose() error { type DbTransaction (line 203) | type DbTransaction struct method Debug (line 212) | func (d *DbTransaction) Debug() *DbTransaction { method Rollback (line 235) | func (tr *DbTransaction) Rollback() error { method Commit (line 240) | func (tr *DbTransaction) Commit() error { method Connection (line 245) | func (tr *DbTransaction) Connection() *gorm.DB { method Savepoint (line 250) | func (tr *DbTransaction) Savepoint(mark string) error { method RollbackSavepoint (line 255) | func (tr *DbTransaction) RollbackSavepoint(mark string) error { method ResetSavepoint (line 259) | func (tr *DbTransaction) ResetSavepoint(mark string) error { method DropTables (line 275) | func (dbTx *DbTransaction) DropTables() error { method GetRecordsCountTx (line 288) | func (dbTx *DbTransaction) GetRecordsCountTx(tableName, where string) ... method Update (line 306) | func (dbTx *DbTransaction) Update(tblname, set, where string) error { method ExecSql (line 312) | func (dbTx *DbTransaction) ExecSql(sql string) error { method Delete (line 325) | func (dbTx *DbTransaction) Delete(tblname, where string) error { method GetColumnCount (line 330) | func (dbTx *DbTransaction) GetColumnCount(tableName string) (int64, er... method AlterTableAddColumn (line 344) | func (dbTx *DbTransaction) AlterTableAddColumn(tableName, columnName, ... method AlterTableDropColumn (line 349) | func (dbTx *DbTransaction) AlterTableDropColumn(tableName, columnName ... method CreateIndex (line 354) | func (dbTx *DbTransaction) CreateIndex(indexName, tableName, onColumn ... method GetColumnDataTypeCharMaxLength (line 359) | func (dbTx *DbTransaction) GetColumnDataTypeCharMaxLength(tableName, c... method GetAllColumnTypes (line 366) | func (dbTx *DbTransaction) GetAllColumnTypes(tblname string) ([]map[st... method GetColumnType (line 397) | func (dbTx *DbTransaction) GetColumnType(tblname, column string) (ityp... method DropTable (line 409) | func (dbTx *DbTransaction) DropTable(tableName string) error { method NumIndexes (line 414) | func (dbTx *DbTransaction) NumIndexes(tblname string) (int, error) { method IsIndex (line 429) | func (dbTx *DbTransaction) IsIndex(tblname, column string) (bool, erro... method GetNextID (line 438) | func (dbTx *DbTransaction) GetNextID(table string) (int64, error) { method IsTable (line 452) | func (dbTx *DbTransaction) IsTable(tblname string) bool { method HasTableOrView (line 464) | func (dbTx *DbTransaction) HasTableOrView(names string) bool { method DropDatabase (line 506) | func (dbTx *DbTransaction) DropDatabase(name string) error { method GetSumColumn (line 528) | func (dbTx *DbTransaction) GetSumColumn(table, column, where string) (... method GetSumColumnCount (line 537) | func (dbTx *DbTransaction) GetSumColumnCount(table, column, where stri... function NewDbTransaction (line 208) | func NewDbTransaction(conn *gorm.DB) *DbTransaction { function StartTransaction (line 218) | func StartTransaction() (*DbTransaction, error) { function GetDB (line 267) | func GetDB(tr *DbTransaction) *gorm.DB { function DataTypeToColumnType (line 373) | func DataTypeToColumnType(dataType string) string { function GetColumnByID (line 474) | func GetColumnByID(table, column string, id int64) (result string, err e... type Namer (line 545) | type Namer struct method HasExists (line 553) | func (v Namer) HasExists(tr *DbTransaction, names string) bool { type SchemaInter (line 549) | type SchemaInter interface FILE: packages/storage/sqldb/delayed_contract.go constant tableDelayedContracts (line 8) | tableDelayedContracts = "1_delayed_contracts" constant availableDelayedContracts (line 9) | availableDelayedContracts = 0 type DelayedContract (line 12) | type DelayedContract struct method TableName (line 26) | func (DelayedContract) TableName() string { method Get (line 41) | func (dc *DelayedContract) Get(id int64) (bool, error) { method GetByContract (line 46) | func (dc *DelayedContract) GetByContract(dbTx *DbTransaction, contract... function GetAllDelayedContractsForBlockID (line 31) | func GetAllDelayedContractsForBlockID(blockID int64) ([]*DelayedContract... function GetAllDelayedContract (line 50) | func GetAllDelayedContract() ([]*DelayedContract, error) { FILE: packages/storage/sqldb/ecosystem.go constant ecosysTable (line 16) | ecosysTable = "1_ecosystems" type Ecosystem (line 19) | type Ecosystem struct method TableName (line 68) | func (sys *Ecosystem) TableName() string { method Get (line 127) | func (sys *Ecosystem) Get(dbTx *DbTransaction, id int64) (bool, error) { method Delete (line 132) | func (sys *Ecosystem) Delete(dbTx *DbTransaction) error { method FeeMode (line 137) | func (sys *Ecosystem) FeeMode() (*FeeModeInfo, error) { method GetTokenSymbol (line 150) | func (sys *Ecosystem) GetTokenSymbol(dbTx *DbTransaction, id int64) (b... type FeeModeFlag (line 33) | type FeeModeFlag struct method FlagToInt (line 44) | func (f FeeModeFlag) FlagToInt() int64 { method ConversionRateToFloat (line 50) | func (f FeeModeFlag) ConversionRateToFloat() float64 { type EcoParam (line 38) | type EcoParam struct type Combustion (line 55) | type Combustion struct type FeeModeInfo (line 60) | type FeeModeInfo struct function GetAllSystemStatesIDs (line 73) | func GetAllSystemStatesIDs() ([]int64, []string, error) { function GetAllSystemCount (line 93) | func GetAllSystemCount() (int64, error) { function GetEcoParam (line 106) | func GetEcoParam(db *DbTransaction, ids []int64) ([]EcoParam, error) { FILE: packages/storage/sqldb/ecosystem_parameter.go type StateParameter (line 17) | type StateParameter struct method TableName (line 26) | func (sp *StateParameter) TableName() string { method SetTablePrefix (line 34) | func (sp *StateParameter) SetTablePrefix(prefix string) *StateParameter { method Get (line 40) | func (sp *StateParameter) Get(dbTx *DbTransaction, name string) (bool,... method GetAllStateParameters (line 45) | func (sp *StateParameter) GetAllStateParameters(offset, limit *int, na... FILE: packages/storage/sqldb/external_blockchain.go type ExternalBlockchain (line 15) | type ExternalBlockchain struct function GetExternalList (line 29) | func GetExternalList() (list []ExternalBlockchain, err error) { function DelExternalList (line 36) | func DelExternalList(list []int64) error { function HashExternalTx (line 45) | func HashExternalTx(id int64, hash []byte) error { function IncExternalAttempt (line 49) | func IncExternalAttempt(id int64) error { FILE: packages/storage/sqldb/history.go type History (line 16) | type History struct method SetTablePrefix (line 32) | func (h *History) SetTablePrefix(prefix int64) *History { method TableName (line 38) | func (h *History) TableName() string { method Get (line 59) | func (ts *History) Get(transactionHash []byte) (bool, error) { type MoneyTransfer (line 46) | type MoneyTransfer struct type SenderTxCount (line 53) | type SenderTxCount struct function GetExcessCommonTokenMovementPerDay (line 64) | func GetExcessCommonTokenMovementPerDay(tx *DbTransaction) (amount decim... function GetExcessFromToTokenMovementPerDay (line 78) | func GetExcessFromToTokenMovementPerDay(tx *DbTransaction) (excess []Mon... function GetExcessTokenMovementQtyPerBlock (line 91) | func GetExcessTokenMovementQtyPerBlock(tx *DbTransaction, blockID int64)... function GetWalletRecordHistory (line 103) | func GetWalletRecordHistory(tx *DbTransaction, keyId string, searchType ... FILE: packages/storage/sqldb/info_block.go type InfoBlock (line 13) | type InfoBlock struct method TableName (line 28) | func (ib *InfoBlock) TableName() string { method Get (line 33) | func (ib *InfoBlock) Get() (bool, error) { method Update (line 38) | func (ib *InfoBlock) Update(dbTx *DbTransaction) error { method GetUnsent (line 43) | func (ib *InfoBlock) GetUnsent() (bool, error) { method Create (line 48) | func (ib *InfoBlock) Create(dbTx *DbTransaction) error { method MarkSent (line 53) | func (ib *InfoBlock) MarkSent() error { method Marshall (line 73) | func (ib *InfoBlock) Marshall() []byte { function UpdRollbackHash (line 58) | func UpdRollbackHash(dbTx *DbTransaction, hash []byte) error { function BlockGetUnsent (line 63) | func BlockGetUnsent() (*InfoBlock, error) { FILE: packages/storage/sqldb/install.go constant ProgressComplete (line 9) | ProgressComplete = "complete" type Install (line 12) | type Install struct method TableName (line 17) | func (i *Install) TableName() string { method Get (line 22) | func (i *Install) Get() error { method Create (line 27) | func (i *Install) Create() error { FILE: packages/storage/sqldb/keys.go type Key (line 17) | type Key struct method SetTablePrefix (line 31) | func (m *Key) SetTablePrefix(prefix int64) *Key { method TableName (line 37) | func (m Key) TableName() string { method Disable (line 43) | func (m *Key) Disable() bool { method CapableAmount (line 46) | func (m *Key) CapableAmount() decimal.Decimal { method Get (line 62) | func (m *Key) Get(db *DbTransaction, wallet int64) (bool, error) { method AccountKeyID (line 66) | func (m *Key) AccountKeyID() int64 { function KeyTableName (line 74) | func KeyTableName(prefix int64) string { function GetKeysCount (line 79) | func GetKeysCount() (int64, error) { FILE: packages/storage/sqldb/language.go type Language (line 13) | type Language struct method SetTablePrefix (line 22) | func (l *Language) SetTablePrefix(prefix string) { method TableName (line 27) | func (l *Language) TableName() string { method GetAll (line 35) | func (l *Language) GetAll(dbTx *DbTransaction, prefix string) ([]Langu... method ToMap (line 42) | func (l *Language) ToMap() map[string]string { FILE: packages/storage/sqldb/log_transaction.go type LogTransaction (line 13) | type LogTransaction struct method GetByHash (line 25) | func (lt *LogTransaction) GetByHash(dbTx *DbTransaction, hash []byte) ... method Create (line 30) | func (lt *LogTransaction) Create(dbTx *DbTransaction) error { function CreateLogTransactionBatches (line 34) | func CreateLogTransactionBatches(dbTx *gorm.DB, lts []*LogTransaction) e... function DeleteLogTransactionsByHash (line 42) | func DeleteLogTransactionsByHash(dbTx *DbTransaction, hash []byte) (int6... function GetLogTransactionsCount (line 48) | func GetLogTransactionsCount(hash []byte) (int64, error) { function GetLogTxCount (line 57) | func GetLogTxCount(dbTx *DbTransaction, ecosystemID int64) (int64, error) { FILE: packages/storage/sqldb/members.go type Member (line 11) | type Member struct method SetTablePrefix (line 20) | func (m *Member) SetTablePrefix(prefix string) { method TableName (line 25) | func (m *Member) TableName() string { method Count (line 33) | func (m *Member) Count() (count int64, err error) { method Get (line 39) | func (m *Member) Get(account string) (bool, error) { FILE: packages/storage/sqldb/menu.go type Menu (line 11) | type Menu struct method SetTablePrefix (line 21) | func (m *Menu) SetTablePrefix(prefix string) { method TableName (line 26) | func (m Menu) TableName() string { method Get (line 34) | func (m *Menu) Get(name string) (bool, error) { FILE: packages/storage/sqldb/metric.go constant tableNameMetrics (line 14) | tableNameMetrics = "1_metrics" type Metric (line 17) | type Metric struct method TableName (line 26) | func (Metric) TableName() string { type EcosystemTx (line 31) | type EcosystemTx struct function GetEcosystemTxPerDay (line 39) | func GetEcosystemTxPerDay(timeBlock int64) ([]*EcosystemTx, error) { function GetMetricValues (line 60) | func GetMetricValues(metric, timeInterval, aggregateFunc, timeBlock stri... FILE: packages/storage/sqldb/migration_history.go constant noVersion (line 12) | noVersion = "0.0.0" type MigrationHistory (line 15) | type MigrationHistory struct method TableName (line 22) | func (mh *MigrationHistory) TableName() string { method CurrentVersion (line 27) | func (mh *MigrationHistory) CurrentVersion() (string, error) { method ApplyMigration (line 42) | func (mh *MigrationHistory) ApplyMigration(version, query string) error { FILE: packages/storage/sqldb/node_ban_logs.go type NodeBanLogs (line 10) | type NodeBanLogs struct method TableName (line 18) | func (r NodeBanLogs) TableName() string { FILE: packages/storage/sqldb/notification.go constant notificationTableSuffix (line 15) | notificationTableSuffix = "_notifications" constant NotificationTypeSingle (line 17) | NotificationTypeSingle = 1 constant NotificationTypeRole (line 18) | NotificationTypeRole = 2 type Notification (line 22) | type Notification struct method SetTablePrefix (line 38) | func (n *Notification) SetTablePrefix(tablePrefix string) { method TableName (line 43) | func (n *Notification) TableName() string { type NotificationsCount (line 50) | type NotificationsCount struct function GetNotificationsCount (line 59) | func GetNotificationsCount(ecosystemID int64, accounts []string) ([]Noti... function getNotificationCountFilter (line 86) | func getNotificationCountFilter(users []int64, ecosystemID int64) (filte... FILE: packages/storage/sqldb/notification_test.go type testItem (line 14) | type testItem struct function TestGetNotificationCountFilter (line 20) | func TestGetNotificationCountFilter(t *testing.T) { FILE: packages/storage/sqldb/ordering.go type ordering (line 8) | type ordering constant OrderASC (line 12) | OrderASC = ordering("ASC") constant OrderDESC (line 14) | OrderDESC = ordering("DESC") FILE: packages/storage/sqldb/pages.go type Page (line 11) | type Page struct method SetTablePrefix (line 23) | func (p *Page) SetTablePrefix(prefix string) { method TableName (line 28) | func (p *Page) TableName() string { method Get (line 36) | func (p *Page) Get(name string) (bool, error) { method Count (line 41) | func (p *Page) Count() (count int64, err error) { method GetByApp (line 47) | func (p *Page) GetByApp(appID int64, ecosystemID int64) ([]Page, error) { FILE: packages/storage/sqldb/platform_parameter.go type PlatformParameter (line 12) | type PlatformParameter struct method TableName (line 20) | func (sp PlatformParameter) TableName() string { method Get (line 25) | func (sp *PlatformParameter) Get(dbTx *DbTransaction, name string) (bo... method GetTransaction (line 30) | func (sp *PlatformParameter) GetTransaction(dbTx *DbTransaction, name ... method GetJSONField (line 35) | func (sp *PlatformParameter) GetJSONField(jsonField string, name strin... method GetValueParameterByName (line 42) | func (sp *PlatformParameter) GetValueParameterByName(name, value strin... method ToMap (line 73) | func (sp *PlatformParameter) ToMap() map[string]string { method Update (line 82) | func (sp PlatformParameter) Update(dbTx *DbTransaction, value string) ... method SaveArray (line 87) | func (sp *PlatformParameter) SaveArray(dbTx *DbTransaction, list [][]s... method GetNumberOfHonorNodes (line 95) | func (sp *PlatformParameter) GetNumberOfHonorNodes() (int, error) { function GetAllPlatformParameters (line 52) | func GetAllPlatformParameters(dbTx *DbTransaction, offset, limit *int, n... FILE: packages/storage/sqldb/queryBuilder/expression.go function GetOrder (line 11) | func GetOrder(tblname string, inOrder any, withDefault bool) (string, er... function GetColumns (line 87) | func GetColumns(inColumns any) ([]string, error) { function GetTableName (line 115) | func GetTableName(ecosystem int64, tblname string) string { FILE: packages/storage/sqldb/queryBuilder/query_builder.go constant prefTimestamp (line 25) | prefTimestamp = "timestamp" constant prefTimestampSpace (line 26) | prefTimestampSpace = "timestamp " type KeyTableChecker (line 35) | type KeyTableChecker interface type NextIDGetter (line 39) | type NextIDGetter interface type SQLQueryBuilder (line 43) | type SQLQueryBuilder struct method Prepare (line 60) | func (b *SQLQueryBuilder) Prepare() error { method SetTableID (line 109) | func (b *SQLQueryBuilder) SetTableID(id string) { method TableID (line 113) | func (b *SQLQueryBuilder) TableID() string { method GetSelectExpr (line 117) | func (b *SQLQueryBuilder) GetSelectExpr() (string, error) { method GetSQLSelectFieldsExpr (line 136) | func (b *SQLQueryBuilder) GetSQLSelectFieldsExpr() (string, error) { method GetSQLWhereExpr (line 152) | func (b *SQLQueryBuilder) GetSQLWhereExpr() (string, error) { method GetSQLUpdateExpr (line 180) | func (b *SQLQueryBuilder) GetSQLUpdateExpr(logData map[string]string) ... method GetSQLInsertQuery (line 244) | func (b *SQLQueryBuilder) GetSQLInsertQuery(idGetter NextIDGetter) (st... method GenerateRollBackInfoString (line 308) | func (b SQLQueryBuilder) GenerateRollBackInfoString(logData map[string... method toSQLValue (line 334) | func (b SQLQueryBuilder) toSQLValue(rawValue, rawField string) string { method normalizeValues (line 354) | func (b SQLQueryBuilder) normalizeValues() error { method GetEcosystem (line 447) | func (b *SQLQueryBuilder) GetEcosystem() string { method IsEmptyWhere (line 451) | func (b *SQLQueryBuilder) IsEmptyWhere() bool { function isParamsContainsEcosystem (line 375) | func isParamsContainsEcosystem(fields []string, ivalues []any) (bool, in... function toSQLHexExpr (line 384) | func toSQLHexExpr(value string) string { function toArithmeticUpdateExpr (line 388) | func toArithmeticUpdateExpr(field, value string) string { function toTimestampUpdateExpr (line 392) | func toTimestampUpdateExpr(field, value string) string { function toWrapedTimestamp (line 396) | func toWrapedTimestamp(value string) string { function toTimestamp (line 400) | func toTimestamp(value string) string { function toSQLField (line 404) | func toSQLField(rawField string) string { function wrapString (line 420) | func wrapString(raw, wrapper string) string { function escapeSingleQuotes (line 424) | func escapeSingleQuotes(val string) string { function CheckNow (line 429) | func CheckNow(inputs ...string) error { function getFieldIndex (line 438) | func getFieldIndex(fields []string, name string) int { FILE: packages/storage/sqldb/queryBuilder/query_builder_test.go type TestKeyTableChecker (line 25) | type TestKeyTableChecker struct method IsKeyTable (line 29) | func (tc TestKeyTableChecker) IsKeyTable(tableName string) bool { function TestSqlFields (line 32) | func TestSqlFields(t *testing.T) { FILE: packages/storage/sqldb/queryBuilder/where.go function PrepareWhere (line 21) | func PrepareWhere(where string) string { function GetWhere (line 56) | func GetWhere(inWhere *types.Map) (string, error) { FILE: packages/storage/sqldb/querycost/explain.go function explainQueryCost (line 22) | func explainQueryCost(dbTx *sqldb.DbTransaction, withAnalyze bool, query... FILE: packages/storage/sqldb/querycost/formula.go constant Select (line 19) | Select = "select" constant Insert (line 20) | Insert = "insert" constant Update (line 21) | Update = "update" constant Delete (line 22) | Delete = "delete" constant Set (line 24) | Set = "set" constant From (line 25) | From = "from" constant Into (line 26) | Into = "into" constant Quote (line 28) | Quote = `"` constant Lparen (line 29) | Lparen = "(" constant SelectCost (line 33) | SelectCost = 1 constant UpdateCost (line 34) | UpdateCost = 1 constant InsertCost (line 35) | InsertCost = 1 constant DeleteCost (line 36) | DeleteCost = 1 constant SelectRowCoeff (line 38) | SelectRowCoeff = 0.0001 constant InsertRowCoeff (line 39) | InsertRowCoeff = 0.0001 constant DeleteRowCoeff (line 40) | DeleteRowCoeff = 0.0001 constant UpdateRowCoeff (line 41) | UpdateRowCoeff = 0.0001 function strSliceIndex (line 50) | func strSliceIndex(fields []string, fieldToFind string) (index int) { type TableRowCounter (line 60) | type TableRowCounter interface type DBCountQueryRowCounter (line 64) | type DBCountQueryRowCounter struct method RowCount (line 67) | func (d *DBCountQueryRowCounter) RowCount(transaction *sqldb.DbTransac... type FormulaQueryCoster (line 75) | type FormulaQueryCoster struct method QueryCost (line 156) | func (f *FormulaQueryCoster) QueryCost(transaction *sqldb.DbTransactio... type QueryType (line 79) | type QueryType interface type SelectQueryType (line 84) | type SelectQueryType method GetTableName (line 86) | func (s SelectQueryType) GetTableName() (string, error) { method CalculateCost (line 95) | func (s SelectQueryType) CalculateCost(rowCount int64) int64 { type UpdateQueryType (line 99) | type UpdateQueryType method GetTableName (line 101) | func (s UpdateQueryType) GetTableName() (string, error) { method CalculateCost (line 110) | func (s UpdateQueryType) CalculateCost(rowCount int64) int64 { type InsertQueryType (line 114) | type InsertQueryType method GetTableName (line 116) | func (s InsertQueryType) GetTableName() (string, error) { method CalculateCost (line 133) | func (s InsertQueryType) CalculateCost(rowCount int64) int64 { type DeleteQueryType (line 137) | type DeleteQueryType method GetTableName (line 139) | func (s DeleteQueryType) GetTableName() (string, error) { method CalculateCost (line 152) | func (s DeleteQueryType) CalculateCost(rowCount int64) int64 { FILE: packages/storage/sqldb/querycost/formula_test.go type TestTableRowCounter (line 18) | type TestTableRowCounter struct method RowCount (line 23) | func (t *TestTableRowCounter) RowCount(tx *sqldb.DbTransaction, tableN... constant tableRowCount (line 21) | tableRowCount = 10000 type QueryCostByFormulaTestSuite (line 30) | type QueryCostByFormulaTestSuite struct method SetupTest (line 35) | func (s *QueryCostByFormulaTestSuite) SetupTest() { method TestQueryCostUnknownQueryType (line 39) | func (s *QueryCostByFormulaTestSuite) TestQueryCostUnknownQueryType() { method TestGetTableNameFromSelectNoTable (line 45) | func (s *QueryCostByFormulaTestSuite) TestGetTableNameFromSelectNoTabl... method TestGetTableNameFromSelect (line 51) | func (s *QueryCostByFormulaTestSuite) TestGetTableNameFromSelect() { method TestGetTableNameFromInsertNoInto (line 60) | func (s *QueryCostByFormulaTestSuite) TestGetTableNameFromInsertNoInto... method TestGetTableNameFromInsert (line 66) | func (s *QueryCostByFormulaTestSuite) TestGetTableNameFromInsert() { method TestGetTableNameFromUpdateNoSet (line 75) | func (s *QueryCostByFormulaTestSuite) TestGetTableNameFromUpdateNoSet() { method TestGetTableNameFromUpdate (line 81) | func (s *QueryCostByFormulaTestSuite) TestGetTableNameFromUpdate() { method TestGetTableNameFromDeleteNoFrom (line 90) | func (s *QueryCostByFormulaTestSuite) TestGetTableNameFromDeleteNoFrom... method TestGetTableNameFromDeleteNoTable (line 96) | func (s *QueryCostByFormulaTestSuite) TestGetTableNameFromDeleteNoTabl... method TestGetTableNameFromDelete (line 102) | func (s *QueryCostByFormulaTestSuite) TestGetTableNameFromDelete() { method TestQueryCostSelect (line 111) | func (s *QueryCostByFormulaTestSuite) TestQueryCostSelect() { method TestQueryCostUpdate (line 117) | func (s *QueryCostByFormulaTestSuite) TestQueryCostUpdate() { method TestQueryCostDelete (line 123) | func (s *QueryCostByFormulaTestSuite) TestQueryCostDelete() { method TestQueryCostInsert (line 129) | func (s *QueryCostByFormulaTestSuite) TestQueryCostInsert() { method TestQueryCostInsertWrongTable (line 135) | func (s *QueryCostByFormulaTestSuite) TestQueryCostInsertWrongTable() { function TestQueryCostFormula (line 140) | func TestQueryCostFormula(t *testing.T) { FILE: packages/storage/sqldb/querycost/querycost.go type QueryCosterType (line 12) | type QueryCosterType constant ExplainQueryCosterType (line 15) | ExplainQueryCosterType QueryCosterType = iota constant ExplainAnalyzeQueryCosterType (line 16) | ExplainAnalyzeQueryCosterType QueryCosterType = iota constant FormulaQueryCosterType (line 17) | FormulaQueryCosterType QueryCosterType = iota type QueryCoster (line 20) | type QueryCoster interface type ExplainQueryCoster (line 24) | type ExplainQueryCoster struct method QueryCost (line 27) | func (*ExplainQueryCoster) QueryCost(transaction *sqldb.DbTransaction,... type ExplainAnalyzeQueryCoster (line 31) | type ExplainAnalyzeQueryCoster struct method QueryCost (line 34) | func (*ExplainAnalyzeQueryCoster) QueryCost(transaction *sqldb.DbTrans... function GetQueryCoster (line 38) | func GetQueryCoster(tp QueryCosterType) QueryCoster { FILE: packages/storage/sqldb/queue_block.go type QueueBlock (line 9) | type QueueBlock struct method Get (line 16) | func (qb *QueueBlock) Get() (bool, error) { method GetQueueBlockByHash (line 21) | func (qb *QueueBlock) GetQueueBlockByHash(hash []byte) (bool, error) { method Delete (line 26) | func (qb *QueueBlock) Delete() error { method DeleteQueueBlockByHash (line 31) | func (qb *QueueBlock) DeleteQueueBlockByHash() error { method DeleteOldBlocks (line 37) | func (qb *QueueBlock) DeleteOldBlocks() error { method Create (line 43) | func (qb *QueueBlock) Create() error { FILE: packages/storage/sqldb/queue_tx.go type QueueTx (line 13) | type QueueTx struct method TableName (line 22) | func (qt *QueueTx) TableName() string { method DeleteTx (line 27) | func (qt *QueueTx) DeleteTx(dbTx *DbTransaction) error { method Save (line 32) | func (qt *QueueTx) Save(dbTx *DbTransaction) error { method Create (line 37) | func (qt *QueueTx) Create() error { method GetByHash (line 42) | func (qt *QueueTx) GetByHash(dbTx *DbTransaction, hash []byte) (bool, ... function DeleteQueueTxByHash (line 47) | func DeleteQueueTxByHash(dbTx *DbTransaction, hash []byte) (int64, error) { function GetQueuedTransactionsCount (line 53) | func GetQueuedTransactionsCount(hash []byte) (int64, error) { function GetAllUnverifiedAndUnusedTransactions (line 60) | func GetAllUnverifiedAndUnusedTransactions(dbTx *DbTransaction, limit in... function DeleteQueueTxs (line 80) | func DeleteQueueTxs(dbTx *DbTransaction, hs [][]byte) error { FILE: packages/storage/sqldb/responecode.go type CodeType (line 112) | type CodeType struct method Errorf (line 135) | func (ct CodeType) Errorf(err error) CodeType { method String (line 145) | func (ct CodeType) String(dat string) CodeType { method Success (line 151) | func (ct CodeType) Success() CodeType { type errType (line 120) | type errType struct method Error (line 126) | func (et errType) Error() string { method Errorf (line 130) | func (et errType) Errorf(v ...any) errType { FILE: packages/storage/sqldb/result.go type SingleResult (line 17) | type SingleResult struct method Int64 (line 36) | func (r *SingleResult) Int64() (int64, error) { method Int (line 44) | func (r *SingleResult) Int() (int, error) { method Float64 (line 52) | func (r *SingleResult) Float64() (float64, error) { method String (line 60) | func (r *SingleResult) String() (string, error) { method Bytes (line 68) | func (r *SingleResult) Bytes() ([]byte, error) { method Single (line 23) | func (dbTx *DbTransaction) Single(query string, args ...any) *SingleResu... type OneRow (line 76) | type OneRow struct method String (line 83) | func (r *OneRow) String() (map[string]string, error) { method Bytes (line 91) | func (r *OneRow) Bytes() (map[string][]byte, error) { method Int64 (line 103) | func (r *OneRow) Int64() (map[string]int64, error) { method Float64 (line 115) | func (r *OneRow) Float64() (map[string]float64, error) { method Int (line 127) | func (r *OneRow) Int() (map[string]int, error) { method GetAllTransaction (line 139) | func (dbTx *DbTransaction) GetAllTransaction(query string, countRows int... method GetOneRowTransaction (line 157) | func (dbTx *DbTransaction) GetOneRowTransaction(query string, args ...an... method GetOneRow (line 170) | func (dbTx *DbTransaction) GetOneRow(query string, args ...any) *OneRow { method GetRows (line 174) | func (dbTx *DbTransaction) GetRows(tableName, columns string, offset, li... function GetResult (line 188) | func GetResult(rows *sql.Rows) ([]map[string]string, error) { type ListResult (line 193) | type ListResult struct method String (line 199) | func (r *ListResult) String() ([]string, error) { method GetList (line 207) | func (dbTx *DbTransaction) GetList(query string, args ...any) *ListResult { function getResult (line 221) | func getResult(rows *sql.Rows, countRows int) ([]map[string]string, erro... FILE: packages/storage/sqldb/role.go type Role (line 9) | type Role struct method SetTablePrefix (line 19) | func (r *Role) SetTablePrefix(prefix int64) { method TableName (line 24) | func (r *Role) TableName() string { method Get (line 32) | func (r *Role) Get(dbTx *DbTransaction, id int64) (bool, error) { FILE: packages/storage/sqldb/roles_participants.go type RolesParticipants (line 13) | type RolesParticipants struct method SetTablePrefix (line 25) | func (r *RolesParticipants) SetTablePrefix(prefix int64) *RolesPartici... method TableName (line 31) | func (r RolesParticipants) TableName() string { method GetActiveMemberRoles (line 39) | func (r *RolesParticipants) GetActiveMemberRoles(account string) ([]Ro... function MemberHasRole (line 47) | func MemberHasRole(tx *DbTransaction, role, ecosys int64, account string... function MemberHasRolebyName (line 59) | func MemberHasRolebyName(tx *DbTransaction, ecosys int64, role, account ... function GetMemberRoles (line 71) | func GetMemberRoles(tx *DbTransaction, ecosys int64, account string) (ro... function GetRoleMembers (line 86) | func GetRoleMembers(tx *DbTransaction, ecosys int64, roles []int64) (mem... FILE: packages/storage/sqldb/rollback_tx.go type RollbackTx (line 16) | type RollbackTx struct method TableName (line 27) | func (*RollbackTx) TableName() string { method GetRollbackTransactions (line 32) | func (rt *RollbackTx) GetRollbackTransactions(dbTx *DbTransaction, tra... method GetBlockRollbackTransactions (line 37) | func (rt *RollbackTx) GetBlockRollbackTransactions(dbTx *DbTransaction... method GetRollbackTxsByTableIDAndTableName (line 44) | func (rt *RollbackTx) GetRollbackTxsByTableIDAndTableName(tableID, tab... method DeleteByHash (line 54) | func (rt *RollbackTx) DeleteByHash(dbTx *DbTransaction) error { method DeleteByHashAndTableName (line 59) | func (rt *RollbackTx) DeleteByHashAndTableName(dbTx *DbTransaction) er... method Get (line 79) | func (rt *RollbackTx) Get(dbTx *DbTransaction, transactionHash []byte,... method GetRollbacksDiff (line 84) | func (rt *RollbackTx) GetRollbacksDiff(dbTx *DbTransaction, blockID in... function CreateBatchesRollbackTx (line 63) | func CreateBatchesRollbackTx(dbTx *gorm.DB, rts []*RollbackTx) error { FILE: packages/storage/sqldb/schema.go function ExecSchemaEcosystem (line 21) | func ExecSchemaEcosystem(db *DbTransaction, data migration.SqlData) error { function ExecSubSchema (line 59) | func ExecSubSchema() error { function ExecCLBSchema (line 70) | func ExecCLBSchema(id int, wallet int64) error { function ExecSchema (line 121) | func ExecSchema() error { function UpdateSchema (line 126) | func UpdateSchema() error { FILE: packages/storage/sqldb/send_tx.go type RawTx (line 52) | type RawTx struct method GetExpedite (line 61) | func (rtx *RawTx) GetExpedite() decimal.Decimal { function SendTxBatches (line 66) | func SendTxBatches(rtxs []*RawTx) error { FILE: packages/storage/sqldb/signatures.go type Signature (line 9) | type Signature struct method SetTablePrefix (line 17) | func (s *Signature) SetTablePrefix(prefix string) { method TableName (line 22) | func (s *Signature) TableName() string { method Get (line 27) | func (s *Signature) Get(name string) (bool, error) { FILE: packages/storage/sqldb/snippet.go type Snippet (line 11) | type Snippet struct method SetTablePrefix (line 20) | func (bi *Snippet) SetTablePrefix(prefix string) { method TableName (line 25) | func (bi *Snippet) TableName() string { method Get (line 33) | func (bi *Snippet) Get(name string) (bool, error) { method GetByApp (line 38) | func (bi *Snippet) GetByApp(appID int64, ecosystemID int64) ([]Snippet... FILE: packages/storage/sqldb/spent_info.go type SpentInfo (line 22) | type SpentInfo struct method TableName (line 46) | func (si *SpentInfo) TableName() string { method GetBalance (line 124) | func (si *SpentInfo) GetBalance(db *DbTransaction, keyId, ecosystem in... type KeyUTXO (line 34) | type KeyUTXO struct method String (line 41) | func (k *KeyUTXO) String() string { function CreateSpentInfoBatches (line 51) | func CreateSpentInfoBatches(dbTx *gorm.DB, spentInfos []SpentInfo) error { function GetTxOutputsEcosystem (line 67) | func GetTxOutputsEcosystem(db *DbTransaction, ecosystem int64, keyIds []... function GetTxOutputs (line 81) | func GetTxOutputs(db *DbTransaction, keyIds []int64) ([]SpentInfo, error) { function RollbackOutputs (line 95) | func RollbackOutputs(blockID int64, db *DbTransaction, transferSelfHashe... function GetBlockOutputs (line 118) | func GetBlockOutputs(dbTx *DbTransaction, blockID int64) ([]SpentInfo, e... function GetTopAmounts (line 139) | func GetTopAmounts(db *DbTransaction, ecosystem int64, rank int64, dense... FILE: packages/storage/sqldb/stop_daemons.go type StopDaemon (line 13) | type StopDaemon struct method TableName (line 18) | func (sd *StopDaemon) TableName() string { method Create (line 23) | func (sd *StopDaemon) Create() error { method Delete (line 28) | func (sd *StopDaemon) Delete() error { method Get (line 33) | func (sd *StopDaemon) Get() (bool, error) { function SetStopNow (line 38) | func SetStopNow() error { FILE: packages/storage/sqldb/tables.go type Table (line 23) | type Table struct method SetTablePrefix (line 57) | func (t *Table) SetTablePrefix(prefix string) { method TableName (line 62) | func (t *Table) TableName() string { method Get (line 70) | func (t *Table) Get(dbTx *DbTransaction, name string) (bool, error) { method Create (line 75) | func (t *Table) Create(dbTx *DbTransaction) error { method Delete (line 80) | func (t *Table) Delete(dbTx *DbTransaction) error { method IsExistsByPermissionsAndTableName (line 85) | func (t *Table) IsExistsByPermissionsAndTableName(dbTx *DbTransaction,... method GetColumns (line 91) | func (t *Table) GetColumns(dbTx *DbTransaction, name, jsonKey string) ... method GetPermissions (line 115) | func (t *Table) GetPermissions(dbTx *DbTransaction, name, jsonKey stri... method Count (line 138) | func (t *Table) Count() (count int64, err error) { method GetAll (line 164) | func (t *Table) GetAll(prefix string) ([]Table, error) { type Permissions (line 33) | type Permissions struct method Value (line 41) | func (p Permissions) Value() (driver.Value, error) { method Scan (line 48) | func (p *Permissions) Scan(v any) error { function CreateTable (line 144) | func CreateTable(dbTx *DbTransaction, tableName, colsSQL string) error { function CreateView (line 153) | func CreateView(dbTx *DbTransaction, inViewName, inTables, inWhere, inCo... function DropView (line 159) | func DropView(dbTx *DbTransaction, inViewName string) error { method GetRowConditionsByTableNameAndID (line 177) | func (dbTx *DbTransaction) GetRowConditionsByTableNameAndID(tblname stri... function GetTableQuery (line 182) | func GetTableQuery(table string, ecosystemID int64) *gorm.DB { function GetTableListQuery (line 190) | func GetTableListQuery(table string, ecosystemID int64) *gorm.DB { FILE: packages/storage/sqldb/transaction.go constant TransactionRateOnBlock (line 17) | TransactionRateOnBlock transactionRate = iota + 1 constant TransactionRateApiContract (line 18) | TransactionRateApiContract constant TransactionRateStopNetwork (line 19) | TransactionRateStopNetwork constant expediteOrder (line 21) | expediteOrder = `high_rate,expedite DESC,time ASC` type transactionRate (line 23) | type transactionRate type Transaction (line 26) | type Transaction struct method Read (line 132) | func (t *Transaction) Read(hash []byte) (bool, error) { method Get (line 137) | func (t *Transaction) Get(transactionHash []byte) (bool, error) { method GetVerified (line 142) | func (t *Transaction) GetVerified(transactionHash []byte) (bool, error) { method BeforeCreate (line 146) | func (t *Transaction) BeforeCreate(db *gorm.DB) error { method Create (line 154) | func (t *Transaction) Create(db *DbTransaction) error { method BeforeUpdate (line 163) | func (t *Transaction) BeforeUpdate(db *gorm.DB) error { method Update (line 167) | func (t *Transaction) Update(db *DbTransaction) error { method GetStopNetwork (line 190) | func (t *Transaction) GetStopNetwork() (bool, error) { method GetTransactionRateStopNetwork (line 194) | func (t *Transaction) GetTransactionRateStopNetwork() bool { function GetAllUnusedTransactions (line 40) | func GetAllUnusedTransactions(dbTx *DbTransaction, limit int) ([]*Transa... function GetAllUnsentTransactions (line 55) | func GetAllUnsentTransactions(limit int) (*[]Transaction, error) { function GetTransactionCountAll (line 68) | func GetTransactionCountAll() (int64, error) { function GetTransactionsCount (line 77) | func GetTransactionsCount(hash []byte) (int64, error) { function DeleteTransactionByHash (line 86) | func DeleteTransactionByHash(dbTx *DbTransaction, hash []byte) error { function DeleteUsedTransactions (line 91) | func DeleteUsedTransactions(dbTx *DbTransaction) (int64, error) { function DeleteTransactionIfUnused (line 97) | func DeleteTransactionIfUnused(dbTx *DbTransaction, transactionHash []by... function MarkTransactionSent (line 103) | func MarkTransactionSent(transactionHash []byte) (int64, error) { function MarkTransactionSentBatches (line 109) | func MarkTransactionSentBatches(hashArr [][]byte) error { function MarkTransactionUsed (line 114) | func MarkTransactionUsed(dbTx *DbTransaction, transactionHash []byte) (i... function MarkTransactionUnusedAndUnverified (line 120) | func MarkTransactionUnusedAndUnverified(dbTx *DbTransaction, transaction... function MarkVerifiedAndNotUsedTransactionsUnverified (line 126) | func MarkVerifiedAndNotUsedTransactionsUnverified() (int64, error) { function CreateTransactionBatches (line 159) | func CreateTransactionBatches(db *DbTransaction, trs []*Transaction) err... function GetTxRateByTxType (line 171) | func GetTxRateByTxType(txType int8) transactionRate { function GetManyTransactions (line 180) | func GetManyTransactions(dbtx *DbTransaction, hashes [][]byte) ([]Transa... function DeleteTransactions (line 198) | func DeleteTransactions(dbTx *gorm.DB, hs [][]byte) error { FILE: packages/storage/sqldb/transaction_status.go type TransactionStatus (line 17) | type TransactionStatus struct method TableName (line 28) | func (ts *TransactionStatus) TableName() string { method Create (line 33) | func (ts *TransactionStatus) Create() error { method Get (line 38) | func (ts *TransactionStatus) Get(transactionHash []byte) (bool, error) { method UpdateBlockID (line 43) | func (ts *TransactionStatus) UpdateBlockID(dbTx *DbTransaction, newBlo... method SetError (line 77) | func (ts *TransactionStatus) SetError(dbTx *DbTransaction, errorText s... method UpdatePenalty (line 82) | func (ts *TransactionStatus) UpdatePenalty(dbTx *DbTransaction, transa... function UpdateBlockMsgBatches (line 47) | func UpdateBlockMsgBatches(dbTx *gorm.DB, newBlockID int64, updBlockMsg ... FILE: packages/storage/sqldb/transactions_attempts.go type TransactionsAttempts (line 9) | type TransactionsAttempts struct method TableName (line 15) | func (m TransactionsAttempts) TableName() string { method GetByHash (line 20) | func (ta *TransactionsAttempts) GetByHash(dbTx *DbTransaction, hash []... function IncrementTxAttemptCount (line 25) | func IncrementTxAttemptCount(dbTx *DbTransaction, transactionHash []byte... function DecrementTxAttemptCount (line 51) | func DecrementTxAttemptCount(dbTx *DbTransaction, transactionHash []byte... function FindTxAttemptCount (line 56) | func FindTxAttemptCount(dbTx *DbTransaction, count int) ([]*Transactions... function DeleteTransactionsAttemptsByHash (line 65) | func DeleteTransactionsAttemptsByHash(dbTx *DbTransaction, hash []byte) ... FILE: packages/storage/sqldb/tx_record.go function GetTxRecord (line 16) | func GetTxRecord(tx *DbTransaction, hashStr string) (resultList []any, e... FILE: packages/storage/sqldb/utxo_token.go function InsertTxOutputs (line 11) | func InsertTxOutputs(outputTxHash []byte, txOutputsMapCtx map[KeyUTXO][]... function UpdateTxInputs (line 24) | func UpdateTxInputs(inputTxHash []byte, txInputsMapCtx map[KeyUTXO][]Spe... function PutAllOutputsMap (line 40) | func PutAllOutputsMap(outputs []SpentInfo, outputsMap map[KeyUTXO][]Spen... function PutOutputsMap (line 54) | func PutOutputsMap(keyUTXO KeyUTXO, outputs []SpentInfo, outputsMap map[... function GetUnusedOutputsMap (line 58) | func GetUnusedOutputsMap(keyUTXO KeyUTXO, outputsMap map[KeyUTXO][]Spent... function GetAllOutputs (line 74) | func GetAllOutputs(outputsMap map[KeyUTXO][]SpentInfo) []SpentInfo { FILE: packages/system/system_notwindows.go function killChildProc (line 9) | func killChildProc() { FILE: packages/system/system_windows.go function killChildProc (line 51) | func killChildProc() { FILE: packages/template/calculate.go constant tkNumber (line 20) | tkNumber = iota constant tkAdd (line 21) | tkAdd constant tkSub (line 22) | tkSub constant tkMul (line 23) | tkMul constant tkDiv (line 24) | tkDiv constant tkLPar (line 25) | tkLPar constant tkRPar (line 26) | tkRPar constant expInt (line 28) | expInt = 0 constant expFloat (line 29) | expFloat = 1 constant expMoney (line 30) | expMoney = 2 type token (line 33) | type token struct type opFunc (line 38) | type opFunc function parsing (line 47) | func parsing(input string, itype int) (*[]token, error) { function calcExp (line 124) | func calcExp(tokens []token, resType int, prec string) string { function calculate (line 228) | func calculate(exp, etype, prec string) string { FILE: packages/template/dbfind.go constant columnTypeText (line 19) | columnTypeText = "text" constant columnTypeLongText (line 20) | columnTypeLongText = "long_text" constant columnTypeBlob (line 21) | columnTypeBlob = "blob" constant substringLength (line 23) | substringLength = 32 constant errComma (line 25) | errComma = `unexpected comma` function dbfindExpressionBlob (line 28) | func dbfindExpressionBlob(column string) string { function dbfindExpressionLongText (line 32) | func dbfindExpressionLongText(column string) string { type valueLink (line 38) | type valueLink struct method link (line 47) | func (vl *valueLink) link() string { method marshal (line 54) | func (vl *valueLink) marshal() (string, error) { function trimString (line 66) | func trimString(in []rune) string { function ParseObject (line 74) | func ParseObject(in []rune) (any, int, error) { FILE: packages/template/funcs.go type Composite (line 33) | type Composite struct type Action (line 39) | type Action struct constant columnNameKey (line 51) | columnNameKey = "column_name" constant dataTypeKey (line 52) | dataTypeKey = "data_type" function init (line 55) | func init() { function defaultTag (line 191) | func defaultTag(par parFunc) string { function lowerTag (line 197) | func lowerTag(par parFunc) string { function moneyTag (line 201) | func moneyTag(par parFunc) string { function menugroupTag (line 222) | func menugroupTag(par parFunc) string { function forlistTag (line 235) | func forlistTag(par parFunc) (ret string) { function addressTag (line 290) | func addressTag(par parFunc) string { function pubToIdTag (line 303) | func pubToIdTag(par parFunc) string { function addressIDTag (line 316) | func addressIDTag(par parFunc) string { function calculateTag (line 328) | func calculateTag(par parFunc) string { function paramToSource (line 333) | func paramToSource(par parFunc, val string) string { function paramToIndex (line 354) | func paramToIndex(par parFunc, val string) (ret string) { function ecosysparTag (line 364) | func ecosysparTag(par parFunc) string { function appparTag (line 390) | func appparTag(par parFunc) string { function langresTag (line 416) | func langresTag(par parFunc) string { function sysparTag (line 426) | func sysparTag(par parFunc) (ret string) { function andTag (line 433) | func andTag(par parFunc) string { function orTag (line 443) | func orTag(par parFunc) string { function alertTag (line 453) | func alertTag(par parFunc) string { function actionTag (line 459) | func actionTag(par parFunc) string { function defaultTailFull (line 486) | func defaultTailFull(par parFunc) string { function dataTag (line 492) | func dataTag(par parFunc) string { function dbfindTag (line 571) | func dbfindTag(par parFunc) string { function compositeTag (line 874) | func compositeTag(par parFunc) string { function errredirTag (line 890) | func errredirTag(par parFunc) string { function popupTag (line 903) | func popupTag(par parFunc) string { function customTag (line 915) | func customTag(par parFunc) string { function customTagFull (line 929) | func customTagFull(par parFunc) string { function tailTag (line 936) | func tailTag(par parFunc) string { function showHideTag (line 949) | func showHideTag(par parFunc, action string) string { function showTag (line 973) | func showTag(par parFunc) string { function hideTag (line 977) | func hideTag(par parFunc) string { function includeTag (line 981) | func includeTag(par parFunc) string { function setvarTag (line 1015) | func setvarTag(par parFunc) string { function varasisTag (line 1025) | func varasisTag(par parFunc) string { function getvarTag (line 1041) | func getvarTag(par parFunc) string { function tableTag (line 1048) | func tableTag(par parFunc) string { function validateTag (line 1068) | func validateTag(par parFunc) string { function validateFull (line 1074) | func validateFull(par parFunc) string { function defaultTail (line 1080) | func defaultTail(par parFunc, tag string) { function defaultTailTag (line 1091) | func defaultTailTag(par parFunc) string { function buttonTag (line 1097) | func buttonTag(par parFunc) string { function ifTag (line 1122) | func ifTag(par parFunc) string { function ifFull (line 1145) | func ifFull(par parFunc) string { function elseifTag (line 1159) | func elseifTag(par parFunc) string { function elseifFull (line 1171) | func elseifFull(par parFunc) string { function elseTag (line 1177) | func elseTag(par parFunc) string { function elseFull (line 1184) | func elseFull(par parFunc) string { function dateTimeTag (line 1189) | func dateTimeTag(par parFunc) string { function cmpTimeTag (line 1239) | func cmpTimeTag(par parFunc) string { type byFirst (line 1258) | type byFirst method Len (line 1260) | func (s byFirst) Len() int { method Swap (line 1263) | func (s byFirst) Swap(i, j int) { method Less (line 1266) | func (s byFirst) Less(i, j int) bool { function jsontosourceTag (line 1270) | func jsontosourceTag(par parFunc) string { function arraytosourceTag (line 1315) | func arraytosourceTag(par parFunc) string { function chartTag (line 1338) | func chartTag(par parFunc) string { function rangeTag (line 1353) | func rangeTag(par parFunc) string { function imageTag (line 1381) | func imageTag(par parFunc) string { function binaryTag (line 1388) | func binaryTag(par parFunc) string { function columntypeTag (line 1427) | func columntypeTag(par parFunc) string { function getHistoryTag (line 1441) | func getHistoryTag(par parFunc) string { FILE: packages/template/template.go constant tagText (line 29) | tagText = `text` constant maxDeep (line 30) | maxDeep = 16 type node (line 33) | type node struct type Source (line 42) | type Source struct type Var (line 48) | type Var struct type Workspace (line 54) | type Workspace struct method SetSource (line 62) | func (w *Workspace) SetSource(name string, source *Source) { type parFunc (line 70) | type parFunc struct method Param (line 79) | func (p *parFunc) Param(key string) string { method ParamWithMacros (line 83) | func (p *parFunc) ParamWithMacros(key string) string { type nodeFunc (line 88) | type nodeFunc type tplFunc (line 90) | type tplFunc struct type tailInfo (line 97) | type tailInfo struct type forTails (line 102) | type forTails struct function newSource (line 106) | func newSource(par parFunc) { function setAttr (line 116) | func setAttr(par parFunc, name string) { function setAllAttr (line 122) | func setAllAttr(par parFunc) { function processToText (line 203) | func processToText(par parFunc, input string) (out string) { function ifValue (line 214) | func ifValue(val string, workspace *Workspace) bool { function replace (line 261) | func replace(input string, level *[]string, vars *map[string]Var) string { function macro (line 323) | func macro(input string, vars *map[string]Var) string { function macroReplace (line 330) | func macroReplace(input string, vars *map[string]Var) string { function appendText (line 335) | func appendText(owner *node, text string) { function callFunc (line 344) | func callFunc(curFunc *tplFunc, owner *node, workspace *Workspace, param... function getFunc (line 480) | func getFunc(input string, curFunc tplFunc) (*[][]rune, int, *[]*[][]run... function process (line 657) | func process(input string, owner *node, workspace *Workspace) { function parseArg (line 700) | func parseArg(arg string, workspace *Workspace) (val string) { function Template2JSON (line 716) | func Template2JSON(input string, timeout *bool, vars *map[string]string)... function splitArray (line 756) | func splitArray(in []rune) []string { function setVar (line 817) | func setVar(par *Workspace, key, value string) { function getVar (line 821) | func getVar(par *Workspace, key string) string { function mapToVar (line 825) | func mapToVar(in map[string]string) *map[string]Var { FILE: packages/transaction/ban.go type banKey (line 15) | type banKey struct function IsKeyBanned (line 26) | func IsKeyBanned(keyID int64) bool { function BannedTill (line 50) | func BannedTill(keyID int64) string { function BadTxForBan (line 60) | func BadTxForBan(keyID int64) { FILE: packages/transaction/builder.go function newTransaction (line 15) | func newTransaction(smartTx types.SmartTransaction, privateKey []byte, i... function NewInternalTransaction (line 29) | func NewInternalTransaction(smartTx types.SmartTransaction, privateKey [... function NewTransactionInProc (line 33) | func NewTransactionInProc(smartTx types.SmartTransaction, privateKey []b... function CreateTransaction (line 38) | func CreateTransaction(data, hash []byte, keyID, tnow int64) error { function CreateDelayTransactionHighRate (line 55) | func CreateDelayTransactionHighRate(data, hash []byte, keyID, highRate i... function getTxTxType (line 68) | func getTxTxType(rate int8) int8 { FILE: packages/transaction/cache.go type transactionCache (line 12) | type transactionCache struct method Get (line 24) | func (tc *transactionCache) Get(hash string) (t *Transaction, ok bool) { method Set (line 32) | func (tc *transactionCache) Set(t *Transaction) { method Clean (line 38) | func (tc *transactionCache) Clean() { function CleanCache (line 20) | func CleanCache() { FILE: packages/transaction/contract.go constant errUnknownContract (line 21) | errUnknownContract = `Cannot find %s contract` function CreateContract (line 24) | func CreateContract(contractName string, keyID int64, params map[string]... FILE: packages/transaction/db.go function CheckLogTx (line 42) | func CheckLogTx(txHash []byte, logger *log.Entry) error { function DeleteQueueTx (line 57) | func DeleteQueueTx(dbTx *sqldb.DbTransaction, hash []byte) error { function MarkTransactionBad (line 78) | func MarkTransactionBad(hash []byte, errText string) error { function ProcessTransactionsQueue (line 178) | func ProcessTransactionsQueue(dbTx *sqldb.DbTransaction) error { function ProcessTransactionsAttempt (line 196) | func ProcessTransactionsAttempt(dbTx *sqldb.DbTransaction) error { FILE: packages/transaction/deliver.go type DeliverProvider (line 16) | type DeliverProvider interface type InToCxt (line 22) | type InToCxt struct type OutCtx (line 36) | type OutCtx struct method Apply (line 46) | func (tr *OutCtx) Apply(opts ...OutCtxOption) { type OutCtxOption (line 44) | type OutCtxOption function WithOutCtxTxResult (line 56) | func WithOutCtxTxResult(ret *pbgo.TxResult) OutCtxOption { function WithOutCtxSysUpdate (line 62) | func WithOutCtxSysUpdate(ret bool) OutCtxOption { function WithOutCtxRollBackTx (line 68) | func WithOutCtxRollBackTx(ret []*types.RollbackTx) OutCtxOption { function WithOutCtxTxOutputs (line 74) | func WithOutCtxTxOutputs(txOutputsMap map[sqldb.KeyUTXO][]sqldb.SpentInf... function WithOutCtxTxInputs (line 80) | func WithOutCtxTxInputs(txInputsMap map[sqldb.KeyUTXO][]sqldb.SpentInfo)... FILE: packages/transaction/first_block.go constant firstEcosystemID (line 30) | firstEcosystemID = 1 constant firstAppID (line 31) | firstAppID = 1 type FirstBlockParser (line 35) | type FirstBlockParser struct method txType (line 44) | func (f *FirstBlockParser) txType() byte { return f.Dat... method txHash (line 45) | func (f *FirstBlockParser) txHash() []byte { return f.TxH... method txPayload (line 46) | func (f *FirstBlockParser) txPayload() []byte { return f.Pay... method txTime (line 47) | func (f *FirstBlockParser) txTime() int64 { return f.Tim... method txKeyID (line 48) | func (f *FirstBlockParser) txKeyID() int64 { return f.Dat... method txExpedite (line 49) | func (f *FirstBlockParser) txExpedite() decimal.Decimal { return decim... method setTimestamp (line 50) | func (s *FirstBlockParser) setTimestamp() { s.Timestamp ... method TxRollback (line 52) | func (f *FirstBlockParser) TxRollback() error ... method SysUpdateWorker (line 53) | func (f *FirstBlockParser) SysUpdateWorker(dbTx *sqldb.DbTransaction) ... method SysTableColByteaWorker (line 54) | func (f *FirstBlockParser) SysTableColByteaWorker(dbTx *sqldb.DbTransa... method FlushVM (line 55) | func (f *FirstBlockParser) FlushVM() ... method Init (line 57) | func (f *FirstBlockParser) Init(in *InToCxt) error { method Validate (line 63) | func (f *FirstBlockParser) Validate() error { method Action (line 67) | func (f *FirstBlockParser) Action(in *InToCxt, out *OutCtx) (err error) { method BinMarshal (line 165) | func (s *FirstBlockParser) BinMarshal(data *types.FirstBlock) ([]byte,... method Unmarshal (line 184) | func (f *FirstBlockParser) Unmarshal(buffer *bytes.Buffer) error { FILE: packages/transaction/limits.go type LimitMode (line 20) | type LimitMode constant letPreprocess (line 23) | letPreprocess LimitMode = 0x0001 constant letGenBlock (line 24) | letGenBlock LimitMode = 0x0002 constant letParsing (line 25) | letParsing LimitMode = 0x0004 function GetLetPreprocess (line 28) | func GetLetPreprocess() LimitMode { function GetLetGenBlock (line 32) | func GetLetGenBlock() LimitMode { function GetLetParsing (line 36) | func GetLetParsing() LimitMode { type Limits (line 41) | type Limits struct method CheckLimit (line 89) | func (limits *Limits) CheckLimit(t TransactionCaller) error { type Limiter (line 47) | type Limiter interface type limiterModes (line 52) | type limiterModes struct function NewLimits (line 65) | func NewLimits(b LimitMode) (limits *Limits) { function limitError (line 98) | func limitError(limitName, msg string, args ...any) error { type txMaxLimit (line 105) | type txMaxLimit struct method init (line 110) | func (bl *txMaxLimit) init() { method check (line 114) | func (bl *txMaxLimit) check(t TransactionCaller, mode LimitMode) error { type timeBlockLimit (line 126) | type timeBlockLimit struct method init (line 131) | func (bl *timeBlockLimit) init() { method check (line 136) | func (bl *timeBlockLimit) check(t TransactionCaller, mode LimitMode) e... type txUserLimit (line 149) | type txUserLimit struct method init (line 154) | func (bl *txUserLimit) init() { method check (line 159) | func (bl *txUserLimit) check(t TransactionCaller, mode LimitMode) error { type ecosysLimit (line 178) | type ecosysLimit struct type txUserEcosysLimit (line 183) | type txUserEcosysLimit struct method init (line 187) | func (bl *txUserEcosysLimit) init() { method check (line 191) | func (bl *txUserEcosysLimit) check(t TransactionCaller, mode LimitMode... type txMaxSize (line 220) | type txMaxSize struct method init (line 226) | func (bl *txMaxSize) init() { method check (line 231) | func (bl *txMaxSize) check(t TransactionCaller, mode LimitMode) error { type txMaxFuel (line 247) | type txMaxFuel struct method init (line 253) | func (bl *txMaxFuel) init() { method check (line 258) | func (bl *txMaxFuel) check(t TransactionCaller, mode LimitMode) error { FILE: packages/transaction/play.go method GetLogger (line 13) | func (t *Transaction) GetLogger() *log.Entry { method Play (line 27) | func (t *Transaction) Play() error { method Check (line 34) | func (t *Transaction) Check(checkTime int64) error { FILE: packages/transaction/process.go function ProcessQueueTransactionBatches (line 10) | func ProcessQueueTransactionBatches(dbTx *sqldb.DbTransaction, qs []*sql... FILE: packages/transaction/raw.go method Unmarshall (line 21) | func (rtx *Transaction) Unmarshall(buffer *bytes.Buffer, fill bool) error { method SetRawTx (line 96) | func (rtx *Transaction) SetRawTx() *sqldb.RawTx { FILE: packages/transaction/smart_contract.go type SmartTransactionParser (line 28) | type SmartTransactionParser struct method txType (line 32) | func (s *SmartTransactionParser) txType() byte { return s.TxSmart... method txHash (line 33) | func (s *SmartTransactionParser) txHash() []byte { return s.Hash } method txPayload (line 34) | func (s *SmartTransactionParser) txPayload() []byte { return s.Payload } method txTime (line 35) | func (s *SmartTransactionParser) txTime() int64 { return s.Timesta... method txKeyID (line 36) | func (s *SmartTransactionParser) txKeyID() int64 { return s.TxSmart... method txExpedite (line 37) | func (s *SmartTransactionParser) txExpedite() decimal.Decimal { method setTimestamp (line 41) | func (s *SmartTransactionParser) setTimestamp() { method Init (line 45) | func (s *SmartTransactionParser) Init(t *InToCxt) error { method Validate (line 70) | func (s *SmartTransactionParser) Validate() error { method Action (line 81) | func (s *SmartTransactionParser) Action(in *InToCxt, out *OutCtx) (err... method TxRollback (line 153) | func (s *SmartTransactionParser) TxRollback() error { method Marshal (line 157) | func (s *SmartTransactionParser) Marshal() ([]byte, error) { method setSig (line 170) | func (s *SmartTransactionParser) setSig(privateKey []byte) error { method BinMarshalWithPrivate (line 180) | func (s *SmartTransactionParser) BinMarshalWithPrivate(smartTx *types.... method Unmarshal (line 202) | func (s *SmartTransactionParser) Unmarshal(buffer *bytes.Buffer, fill ... method parseFromContract (line 216) | func (s *SmartTransactionParser) parseFromContract(fillData bool) error { method SysUpdateWorker (line 256) | func (s *SmartTransactionParser) SysUpdateWorker(dbTx *sqldb.DbTransac... method SysTableColByteaWorker (line 267) | func (s *SmartTransactionParser) SysTableColByteaWorker(dbTx *sqldb.Db... method FlushVM (line 275) | func (s *SmartTransactionParser) FlushVM() { type TxOutCtx (line 286) | type TxOutCtx struct FILE: packages/transaction/stop_network.go type StopNetworkParser (line 31) | type StopNetworkParser struct method txType (line 40) | func (s *StopNetworkParser) txType() byte { return s.Da... method txHash (line 41) | func (s *StopNetworkParser) txHash() []byte { return s.Tx... method txPayload (line 42) | func (s *StopNetworkParser) txPayload() []byte { return s.Pa... method txTime (line 43) | func (s *StopNetworkParser) txTime() int64 { return s.Ti... method txKeyID (line 44) | func (s *StopNetworkParser) txKeyID() int64 { return s.Da... method txExpedite (line 45) | func (s *StopNetworkParser) txExpedite() decimal.Decimal { return deci... method setTimestamp (line 46) | func (s *StopNetworkParser) setTimestamp() { s.Timestamp... method Init (line 48) | func (s *StopNetworkParser) Init(in *InToCxt) error { method Validate (line 52) | func (s *StopNetworkParser) Validate() error { method validate (line 61) | func (s *StopNetworkParser) validate() error { method Action (line 81) | func (s *StopNetworkParser) Action(in *InToCxt, out *OutCtx) (err erro... method TxRollback (line 94) | func (s *StopNetworkParser) TxRollback() error ... method SysUpdateWorker (line 95) | func (s *StopNetworkParser) SysUpdateWorker(dbTx *sqldb.DbTransaction)... method SysTableColByteaWorker (line 96) | func (s *StopNetworkParser) SysTableColByteaWorker(dbTx *sqldb.DbTrans... method FlushVM (line 97) | func (s *StopNetworkParser) FlushVM() ... method BinMarshal (line 99) | func (s *StopNetworkParser) BinMarshal(data *types.StopNetwork) ([]byt... method Unmarshal (line 125) | func (s *StopNetworkParser) Unmarshal(buffer *bytes.Buffer) error { FILE: packages/transaction/transaction.go type Transaction (line 19) | type Transaction struct method Type (line 40) | func (t *Transaction) Type() byte { return t.Inner.txTy... method Hash (line 41) | func (t *Transaction) Hash() []byte { return t.Inner.txHa... method Payload (line 42) | func (t *Transaction) Payload() []byte { return t.Inner.txPa... method Timestamp (line 43) | func (t *Transaction) Timestamp() int64 { return t.Inner.txTi... method KeyID (line 44) | func (t *Transaction) KeyID() int64 { return t.Inner.txKe... method Expedite (line 45) | func (t *Transaction) Expedite() decimal.Decimal { return t.Inner.txEx... method IsSmartContract (line 47) | func (t *Transaction) IsSmartContract() bool { method SmartContract (line 52) | func (t *Transaction) SmartContract() *SmartTransactionParser { method WithOption (line 75) | func (tr *Transaction) WithOption( method Apply (line 110) | func (tr *Transaction) Apply(opts ...TransactionOption) error { type TransactionCaller (line 27) | type TransactionCaller interface function UnmarshallTransaction (line 57) | func UnmarshallTransaction(buffer *bytes.Buffer, fill bool) (*Transactio... type TransactionOption (line 108) | type TransactionOption FILE: packages/types/api.go type EcosystemGetter (line 5) | type EcosystemGetter interface FILE: packages/types/block.pb.go constant _ (line 23) | _ = proto.GoGoProtoPackageIsVersion3 type BlockSyncMethod (line 26) | type BlockSyncMethod method String (line 43) | func (x BlockSyncMethod) String() string { method EnumDescriptor (line 47) | func (BlockSyncMethod) EnumDescriptor() ([]byte, []int) { constant BlockSyncMethod_CONTRACTVM (line 29) | BlockSyncMethod_CONTRACTVM BlockSyncMethod = 0 constant BlockSyncMethod_SQLDML (line 30) | BlockSyncMethod_SQLDML BlockSyncMethod = 1 type BlockHeader (line 52) | type BlockHeader struct method Reset (line 68) | func (m *BlockHeader) Reset() { *m = BlockHeader{} } method String (line 69) | func (m *BlockHeader) String() string { return proto.CompactTextString... method ProtoMessage (line 70) | func (*BlockHeader) ProtoMessage() {} method Descriptor (line 71) | func (*BlockHeader) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 74) | func (m *BlockHeader) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 77) | func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byt... method XXX_Merge (line 89) | func (m *BlockHeader) XXX_Merge(src proto.Message) { method XXX_Size (line 92) | func (m *BlockHeader) XXX_Size() int { method XXX_DiscardUnknown (line 95) | func (m *BlockHeader) XXX_DiscardUnknown() { method GetBlockId (line 101) | func (m *BlockHeader) GetBlockId() int64 { method GetTimestamp (line 108) | func (m *BlockHeader) GetTimestamp() int64 { method GetEcosystemId (line 115) | func (m *BlockHeader) GetEcosystemId() int64 { method GetKeyId (line 122) | func (m *BlockHeader) GetKeyId() int64 { method GetNodePosition (line 129) | func (m *BlockHeader) GetNodePosition() int64 { method GetSign (line 136) | func (m *BlockHeader) GetSign() []byte { method GetBlockHash (line 143) | func (m *BlockHeader) GetBlockHash() []byte { method GetRollbacksHash (line 150) | func (m *BlockHeader) GetRollbacksHash() []byte { method GetVersion (line 157) | func (m *BlockHeader) GetVersion() int32 { method GetConsensusMode (line 164) | func (m *BlockHeader) GetConsensusMode() int32 { method GetCandidateNodes (line 171) | func (m *BlockHeader) GetCandidateNodes() []byte { method GetNetworkId (line 178) | func (m *BlockHeader) GetNetworkId() int64 { method Marshal (line 325) | func (m *BlockHeader) Marshal() (dAtA []byte, err error) { method MarshalTo (line 335) | func (m *BlockHeader) MarshalTo(dAtA []byte) (int, error) { method MarshalToSizedBuffer (line 340) | func (m *BlockHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { method Size (line 519) | func (m *BlockHeader) Size() (n int) { method Unmarshal (line 612) | func (m *BlockHeader) Unmarshal(dAtA []byte) error { type BlockData (line 186) | type BlockData struct method Reset (line 196) | func (m *BlockData) Reset() { *m = BlockData{} } method String (line 197) | func (m *BlockData) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 198) | func (*BlockData) ProtoMessage() {} method Descriptor (line 199) | func (*BlockData) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 202) | func (m *BlockData) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 205) | func (m *BlockData) XXX_Marshal(b []byte, deterministic bool) ([]byte,... method XXX_Merge (line 217) | func (m *BlockData) XXX_Merge(src proto.Message) { method XXX_Size (line 220) | func (m *BlockData) XXX_Size() int { method XXX_DiscardUnknown (line 223) | func (m *BlockData) XXX_DiscardUnknown() { method GetHeader (line 229) | func (m *BlockData) GetHeader() *BlockHeader { method GetPrevHeader (line 236) | func (m *BlockData) GetPrevHeader() *BlockHeader { method GetMerkleRoot (line 243) | func (m *BlockData) GetMerkleRoot() []byte { method GetBinData (line 250) | func (m *BlockData) GetBinData() []byte { method GetTxFullData (line 257) | func (m *BlockData) GetTxFullData() [][]byte { method GetAfterTxs (line 264) | func (m *BlockData) GetAfterTxs() *AfterTxs { method GetSysUpdate (line 271) | func (m *BlockData) GetSysUpdate() bool { method Marshal (line 416) | func (m *BlockData) Marshal() (dAtA []byte, err error) { method MarshalTo (line 426) | func (m *BlockData) MarshalTo(dAtA []byte) (int, error) { method MarshalToSizedBuffer (line 431) | func (m *BlockData) MarshalToSizedBuffer(dAtA []byte) (int, error) { method Size (line 568) | func (m *BlockData) Size() (n int) { method Unmarshal (line 950) | func (m *BlockData) Unmarshal(dAtA []byte) error { function init (line 278) | func init() { function init (line 284) | func init() { proto.RegisterFile("block.proto", fileDescriptor_8e550b1f5... function encodeVarintBlock (line 508) | func encodeVarintBlock(dAtA []byte, offset int, v uint64) int { function sovBlock (line 606) | func sovBlock(x uint64) (n int) { function sozBlock (line 609) | func sozBlock(x uint64) (n int) { function skipBlock (line 1228) | func skipBlock(dAtA []byte) (n int, err error) { FILE: packages/types/block_data.go constant minBlockSize (line 16) | minBlockSize = 9 function blockVer (line 30) | func blockVer(cur, prev *BlockHeader) (ret string) { method GenHash (line 37) | func (b *BlockHeader) GenHash(prev *BlockHeader, mrklRoot []byte) []byte { method ForSha (line 41) | func (b *BlockHeader) ForSha(prev *BlockHeader, mrklRoot []byte) string { method ForSign (line 48) | func (b *BlockHeader) ForSign(prev *BlockHeader, mrklRoot []byte) string { function ParseBlockHeader (line 55) | func ParseBlockHeader(buf *bytes.Buffer, maxBlockSize int64) (header *Bl... type BlockDataOption (line 67) | type BlockDataOption method Apply (line 69) | func (b *BlockData) Apply(opts ...BlockDataOption) error { function WithCurHeader (line 81) | func WithCurHeader(cur *BlockHeader) BlockDataOption { function WithPrevHeader (line 88) | func WithPrevHeader(pre *BlockHeader) BlockDataOption { function WithTxFullData (line 95) | func WithTxFullData(data [][]byte) BlockDataOption { function WithAfterTxs (line 102) | func WithAfterTxs(a *AfterTxs) BlockDataOption { function WithSysUpdate (line 108) | func WithSysUpdate(a bool) BlockDataOption { method ForSign (line 115) | func (b BlockData) ForSign() string { method GenMerkleRoot (line 119) | func (b *BlockData) GenMerkleRoot() []byte { method GetSign (line 130) | func (b *BlockData) GetSign(key []byte) ([]byte, error) { method MarshallBlock (line 140) | func (b *BlockData) MarshallBlock(key []byte) ([]byte, error) { method UnmarshallBlock (line 159) | func (b *BlockData) UnmarshallBlock(data []byte) error { function MerkleTreeRoot (line 182) | func MerkleTreeRoot(dataArray [][]byte) []byte { type BlockCandidateNode (line 216) | type BlockCandidateNode struct FILE: packages/types/compress.go function DoZlibCompress (line 14) | func DoZlibCompress(src []byte) []byte { function DoZlibUnCompress (line 22) | func DoZlibUnCompress(compressSrc []byte) []byte { FILE: packages/types/custom_tx.go constant FirstBlockTxType (line 25) | FirstBlockTxType = iota + 1 constant StopNetworkTxType (line 26) | StopNetworkTxType constant SmartContractTxType (line 27) | SmartContractTxType constant DelayTxType (line 28) | DelayTxType constant UtxoTxType (line 29) | UtxoTxType constant TransferSelfTxType (line 30) | TransferSelfTxType type FirstBlock (line 34) | type FirstBlock struct method TxType (line 44) | func (t *FirstBlock) TxType() byte { return FirstBlockTxType } type StopNetwork (line 46) | type StopNetwork struct method TxType (line 52) | func (t *StopNetwork) TxType() byte { return StopNetworkTxType } type Header (line 55) | type Header struct type TransferSelf (line 64) | type TransferSelf struct type UTXO (line 71) | type UTXO struct type SmartTransaction (line 78) | type SmartTransaction struct method TxType (line 90) | func (s *SmartTransaction) TxType() byte { method WithPrivate (line 100) | func (s *SmartTransaction) WithPrivate(privateKey []byte, internal boo... method Unmarshal (line 119) | func (s *SmartTransaction) Unmarshal(buffer []byte) error { method Marshal (line 123) | func (s *SmartTransaction) Marshal() ([]byte, error) { method Hash (line 127) | func (t SmartTransaction) Hash() ([]byte, error) { method Validate (line 135) | func (txSmart *SmartTransaction) Validate() error { FILE: packages/types/file.go function NewFile (line 9) | func NewFile() *Map { function NewFileFromMap (line 17) | func NewFileFromMap(m map[string]any) (f *Map, ok bool) { FILE: packages/types/map.go type Link (line 18) | type Link struct type Map (line 27) | type Map struct method Set (line 86) | func (m *Map) Set(key string, value any) { method Get (line 106) | func (m *Map) Get(key string) (value any, found bool) { method Remove (line 118) | func (m *Map) Remove(key string) { method IsEmpty (line 139) | func (m *Map) IsEmpty() bool { method Size (line 144) | func (m *Map) Size() int { method Keys (line 149) | func (m *Map) Keys() []string { method Values (line 160) | func (m *Map) Values() []any { method Clear (line 171) | func (m *Map) Clear() { method String (line 178) | func (m *Map) String() string { method MarshalJSON (line 186) | func (m *Map) MarshalJSON() ([]byte, error) { function newLink (line 33) | func newLink(key string, value any) *Link { function NewMap (line 38) | func NewMap() *Map { function ConvertMap (line 42) | func ConvertMap(in any) any { function LoadMap (line 72) | func LoadMap(init map[string]any) (ret *Map) { FILE: packages/types/mode_interfaces.go type ClientTxPreprocessor (line 14) | type ClientTxPreprocessor interface type SmartContractRunner (line 20) | type SmartContractRunner interface type DaemonFactory (line 24) | type DaemonFactory interface FILE: packages/types/notifications.go type Notifications (line 7) | type Notifications interface FILE: packages/types/play.pb.go constant _ (line 24) | _ = proto.GoGoProtoPackageIsVersion3 type AfterTxs (line 27) | type AfterTxs struct method Reset (line 34) | func (m *AfterTxs) Reset() { *m = AfterTxs{} } method String (line 35) | func (m *AfterTxs) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 36) | func (*AfterTxs) ProtoMessage() {} method Descriptor (line 37) | func (*AfterTxs) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 40) | func (m *AfterTxs) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 43) | func (m *AfterTxs) XXX_Marshal(b []byte, deterministic bool) ([]byte, ... method XXX_Merge (line 55) | func (m *AfterTxs) XXX_Merge(src proto.Message) { method XXX_Size (line 58) | func (m *AfterTxs) XXX_Size() int { method XXX_DiscardUnknown (line 61) | func (m *AfterTxs) XXX_DiscardUnknown() { method GetTxs (line 67) | func (m *AfterTxs) GetTxs() []*AfterTx { method GetRts (line 74) | func (m *AfterTxs) GetRts() []*RollbackTx { method Marshal (line 372) | func (m *AfterTxs) Marshal() (dAtA []byte, err error) { method MarshalTo (line 382) | func (m *AfterTxs) MarshalTo(dAtA []byte) (int, error) { method MarshalToSizedBuffer (line 387) | func (m *AfterTxs) MarshalToSizedBuffer(dAtA []byte) (int, error) { method Size (line 618) | func (m *AfterTxs) Size() (n int) { method Unmarshal (line 733) | func (m *AfterTxs) Unmarshal(dAtA []byte) error { type AfterTx (line 81) | type AfterTx struct method Reset (line 87) | func (m *AfterTx) Reset() { *m = AfterTx{} } method String (line 88) | func (m *AfterTx) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 89) | func (*AfterTx) ProtoMessage() {} method Descriptor (line 90) | func (*AfterTx) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 93) | func (m *AfterTx) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 96) | func (m *AfterTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, e... method XXX_Merge (line 108) | func (m *AfterTx) XXX_Merge(src proto.Message) { method XXX_Size (line 111) | func (m *AfterTx) XXX_Size() int { method XXX_DiscardUnknown (line 114) | func (m *AfterTx) XXX_DiscardUnknown() { method GetUsedTx (line 120) | func (m *AfterTx) GetUsedTx() []byte { method GetLts (line 127) | func (m *AfterTx) GetLts() *LogTransaction { method GetUpdTxStatus (line 134) | func (m *AfterTx) GetUpdTxStatus() *pbgo.TxResult { method Marshal (line 423) | func (m *AfterTx) Marshal() (dAtA []byte, err error) { method MarshalTo (line 433) | func (m *AfterTx) MarshalTo(dAtA []byte) (int, error) { method MarshalToSizedBuffer (line 438) | func (m *AfterTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { method Size (line 639) | func (m *AfterTx) Size() (n int) { method Unmarshal (line 851) | func (m *AfterTx) Unmarshal(dAtA []byte) error { type RollbackTx (line 141) | type RollbackTx struct method Reset (line 151) | func (m *RollbackTx) Reset() { *m = RollbackTx{} } method String (line 152) | func (m *RollbackTx) String() string { return proto.CompactTextString(... method ProtoMessage (line 153) | func (*RollbackTx) ProtoMessage() {} method Descriptor (line 154) | func (*RollbackTx) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 157) | func (m *RollbackTx) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 160) | func (m *RollbackTx) XXX_Marshal(b []byte, deterministic bool) ([]byte... method XXX_Merge (line 172) | func (m *RollbackTx) XXX_Merge(src proto.Message) { method XXX_Size (line 175) | func (m *RollbackTx) XXX_Size() int { method XXX_DiscardUnknown (line 178) | func (m *RollbackTx) XXX_DiscardUnknown() { method GetId (line 184) | func (m *RollbackTx) GetId() int64 { method GetBlockId (line 191) | func (m *RollbackTx) GetBlockId() int64 { method GetTxHash (line 198) | func (m *RollbackTx) GetTxHash() []byte { method GetNameTable (line 205) | func (m *RollbackTx) GetNameTable() string { method GetTableId (line 212) | func (m *RollbackTx) GetTableId() string { method GetData (line 219) | func (m *RollbackTx) GetData() string { method GetDataHash (line 226) | func (m *RollbackTx) GetDataHash() []byte { method Marshal (line 477) | func (m *RollbackTx) Marshal() (dAtA []byte, err error) { method MarshalTo (line 487) | func (m *RollbackTx) MarshalTo(dAtA []byte) (int, error) { method MarshalToSizedBuffer (line 492) | func (m *RollbackTx) MarshalToSizedBuffer(dAtA []byte) (int, error) { method Size (line 660) | func (m *RollbackTx) Size() (n int) { method Unmarshal (line 1007) | func (m *RollbackTx) Unmarshal(dAtA []byte) error { type LogTransaction (line 233) | type LogTransaction struct method Reset (line 244) | func (m *LogTransaction) Reset() { *m = LogTransaction{} } method String (line 245) | func (m *LogTransaction) String() string { return proto.CompactTextStr... method ProtoMessage (line 246) | func (*LogTransaction) ProtoMessage() {} method Descriptor (line 247) | func (*LogTransaction) Descriptor() ([]byte, []int) { method XXX_Unmarshal (line 250) | func (m *LogTransaction) XXX_Unmarshal(b []byte) error { method XXX_Marshal (line 253) | func (m *LogTransaction) XXX_Marshal(b []byte, deterministic bool) ([]... method XXX_Merge (line 265) | func (m *LogTransaction) XXX_Merge(src proto.Message) { method XXX_Size (line 268) | func (m *LogTransaction) XXX_Size() int { method XXX_DiscardUnknown (line 271) | func (m *LogTransaction) XXX_DiscardUnknown() { method GetHash (line 277) | func (m *LogTransaction) GetHash() []byte { method GetBlock (line 284) | func (m *LogTransaction) GetBlock() int64 { method GetTimestamp (line 291) | func (m *LogTransaction) GetTimestamp() int64 { method GetAddress (line 298) | func (m *LogTransaction) GetAddress() int64 { method GetEcosystemId (line 305) | func (m *LogTransaction) GetEcosystemId() int64 { method GetContractName (line 312) | func (m *LogTransaction) GetContractName() string { method GetInvokeStatus (line 319) | func (m *LogTransaction) GetInvokeStatus() pbgo.TxInvokeStatusCode { method Marshal (line 545) | func (m *LogTransaction) Marshal() (dAtA []byte, err error) { method MarshalTo (line 555) | func (m *LogTransaction) MarshalTo(dAtA []byte) (int, error) { method MarshalToSizedBuffer (line 560) | func (m *LogTransaction) MarshalToSizedBuffer(dAtA []byte) (int, error) { method Size (line 695) | func (m *LogTransaction) Size() (n int) { method Unmarshal (line 1259) | func (m *LogTransaction) Unmarshal(dAtA []byte) error { function init (line 326) | func init() { function init (line 333) | func init() { proto.RegisterFile("play.proto", fileDescriptor_e999501ad2... function encodeVarintPlay (line 607) | func encodeVarintPlay(dAtA []byte, offset int, v uint64) int { function sovPlay (line 727) | func sovPlay(x uint64) (n int) { function sozPlay (line 730) | func sozPlay(x uint64) (n int) { function skipPlay (line 1470) | func skipPlay(dAtA []byte) (n int, err error) { FILE: packages/utils/ban_error.go type BanError (line 11) | type BanError struct method Error (line 15) | func (b *BanError) Error() string { function WithBan (line 19) | func WithBan(err error) error { function IsBanError (line 25) | func IsBanError(err error) bool { FILE: packages/utils/ban_error_test.go function TestBanError (line 14) | func TestBanError(t *testing.T) { FILE: packages/utils/clock.go type Clock (line 10) | type Clock interface type ClockWrapper (line 15) | type ClockWrapper struct method Now (line 19) | func (cw *ClockWrapper) Now() time.Time { return time.Now() } FILE: packages/utils/clock_mock.go type MockClock (line 14) | type MockClock struct method Now (line 19) | func (_m *MockClock) Now() time.Time { FILE: packages/utils/metric/collector.go type CollectorFunc (line 13) | type CollectorFunc type Value (line 16) | type Value struct method ToMap (line 24) | func (v *Value) ToMap() *types.Map { type Collector (line 34) | type Collector struct method Values (line 39) | func (c *Collector) Values(timeBlock int64) []any { function NewCollector (line 55) | func NewCollector(funcs ...CollectorFunc) *Collector { FILE: packages/utils/metric/collector_test.go function MockValue (line 14) | func MockValue(v int64) *Value { function MockCollectorFunc (line 18) | func MockCollectorFunc(v int64, err error) CollectorFunc { function TestValue (line 28) | func TestValue(t *testing.T) { function TestCollector (line 34) | func TestCollector(t *testing.T) { FILE: packages/utils/metric/metrics.go constant metricEcosystemPages (line 18) | metricEcosystemPages = "ecosystem_pages" constant metricEcosystemMembers (line 19) | metricEcosystemMembers = "ecosystem_members" constant metricEcosystemTx (line 20) | metricEcosystemTx = "ecosystem_tx" function CollectMetricDataForEcosystemTables (line 24) | func CollectMetricDataForEcosystemTables(timeBlock int64) (metricValues ... function CollectMetricDataForEcosystemTx (line 70) | func CollectMetricDataForEcosystemTx(timeBlock int64) (metricValues []*V... FILE: packages/utils/ntp.go constant ntpPool (line 15) | ntpPool = "pool.ntp.org" constant ntpChecks (line 16) | ntpChecks = 3 constant driftThreshold (line 17) | driftThreshold = 1 * time.Second type durationSlice (line 22) | type durationSlice method Len (line 24) | func (s durationSlice) Len() int { return len(s) } method Less (line 25) | func (s durationSlice) Less(i, j int) bool { return s[i] < s[j] } method Swap (line 26) | func (s durationSlice) Swap(i, j int) { s[i], s[j] = s[j], s[i] } function CheckClockDrift (line 30) | func CheckClockDrift() (bool, error) { function sntpDrift (line 49) | func sntpDrift(measurements int) (time.Duration, error) { FILE: packages/utils/utils.go function GetHTTPTextAnswer (line 43) | func GetHTTPTextAnswer(url string) (string, error) { function ErrInfoFmt (line 62) | func ErrInfoFmt(err string, a ...any) error { function ErrInfo (line 67) | func ErrInfo(verr any, additionally ...string) error { function CallMethod (line 85) | func CallMethod(i any, methodName string) any { function Caller (line 124) | func Caller(steps int) string { function CopyFileContents (line 133) | func CopyFileContents(src, dst string) error { function CheckSign (line 164) | func CheckSign(publicKeys [][]byte, forSign []byte, signs []byte, nodeKe... function GetCurrentDir (line 208) | func GetCurrentDir() string { function ShellExecute (line 218) | func ShellExecute(cmdline string) { function GetParent (line 231) | func GetParent() string { function GetNodeKeys (line 249) | func GetNodeKeys() (string, string) { function GetNodePrivateKey (line 254) | func GetNodePrivateKey() ([]byte, error) { function GetHostPort (line 268) | func GetHostPort(h string) string { function CreateDirIfNotExists (line 275) | func CreateDirIfNotExists(dir string, mode os.FileMode) error { function LockOrDie (line 285) | func LockOrDie(dir string) *flock.Flock { function ShuffleSlice (line 299) | func ShuffleSlice(slice []string) { function MakeDirectory (line 307) | func MakeDirectory(dir string) error { function StringInSlice (line 317) | func StringInSlice(slice []string, v string) bool { function ToSnakeCase (line 326) | func ToSnakeCase(s string) string { FILE: packages/utils/utils_test.go function TestToSnakeCase (line 15) | func TestToSnakeCase(t *testing.T) { function TestNtp (line 31) | func TestNtp(t *testing.T) { FILE: tools/desync_monitor/config/config.go type Daemon (line 7) | type Daemon struct type Config (line 12) | type Config struct method Read (line 17) | func (c *Config) Read(fileName string) error { FILE: tools/desync_monitor/main.go constant confPathFlagName (line 16) | confPathFlagName = "confPath" constant nodesListFlagName (line 17) | nodesListFlagName = "nodesList" constant daemonModeFlagName (line 18) | daemonModeFlagName = "daemonMode" constant queryingPeriodFlagName (line 19) | queryingPeriodFlagName = "queryingPeriod" function minElement (line 26) | func minElement(slice []int64) int64 { function flagsOverrideConfig (line 36) | func flagsOverrideConfig(conf *config.Config) { function monitor (line 50) | func monitor(conf *config.Config) { function main (line 89) | func main() { FILE: tools/desync_monitor/query/query.go constant maxBlockIDEndpoint (line 8) | maxBlockIDEndpoint = "/api/v2/maxblockid" constant blockInfoEndpoint (line 9) | blockInfoEndpoint = "/api/v2/block/%d" type MaxBlockID (line 11) | type MaxBlockID struct type blockInfoResult (line 15) | type blockInfoResult struct function MaxBlockIDs (line 25) | func MaxBlockIDs(nodesList []string) ([]int64, error) { function BlockInfo (line 53) | func BlockInfo(nodesList []string, blockID int64) (map[string]*blockInfo... FILE: tools/desync_monitor/query/utils.go type ConcurrentMap (line 13) | type ConcurrentMap struct method Set (line 18) | func (c *ConcurrentMap) Set(key string, value any) { method Get (line 24) | func (c *ConcurrentMap) Get(key string) (bool, any) { function sendGetRequest (line 31) | func sendGetRequest(url string, v any) error {