diff --git a/cmd/status-backend/main.go b/cmd/status-backend/main.go index 0b2be9c31..800115335 100644 --- a/cmd/status-backend/main.go +++ b/cmd/status-backend/main.go @@ -9,7 +9,7 @@ import ( "github.com/ethereum/go-ethereum/log" - "github.com/status-im/status-go/cmd/statusd/server" + "github.com/status-im/status-go/cmd/status-backend/server" "github.com/status-im/status-go/logutils" ) diff --git a/cmd/status-backend/server/endpoints.go b/cmd/status-backend/server/endpoints.go new file mode 100644 index 000000000..8a1117bc5 --- /dev/null +++ b/cmd/status-backend/server/endpoints.go @@ -0,0 +1,120 @@ +// Code generated by parse-api/main.go. DO NOT EDIT. +// source: parse-api/main.go + +package server + +import statusgo "github.com/status-im/status-go/mobile" + +var EndpointsWithRequest = map[string]func(string) string{ + "/statusgo/InitializeApplication": statusgo.InitializeApplication, + "/statusgo/OpenAccounts": statusgo.OpenAccounts, + "/statusgo/ExtractGroupMembershipSignatures": statusgo.ExtractGroupMembershipSignatures, + "/statusgo/SignGroupMembership": statusgo.SignGroupMembership, + "/statusgo/ValidateNodeConfig": statusgo.ValidateNodeConfig, + "/statusgo/CallRPC": statusgo.CallRPC, + "/statusgo/CallPrivateRPC": statusgo.CallPrivateRPC, + "/statusgo/CreateAccountAndLogin": statusgo.CreateAccountAndLogin, + "/statusgo/LoginAccount": statusgo.LoginAccount, + "/statusgo/RestoreAccountAndLogin": statusgo.RestoreAccountAndLogin, + "/statusgo/InitKeystore": statusgo.InitKeystore, + "/statusgo/SignMessage": statusgo.SignMessage, + "/statusgo/HashTypedData": statusgo.HashTypedData, + "/statusgo/HashTypedDataV4": statusgo.HashTypedDataV4, + "/statusgo/Recover": statusgo.Recover, + "/statusgo/HashTransaction": statusgo.HashTransaction, + "/statusgo/HashMessage": statusgo.HashMessage, + "/statusgo/StartCPUProfile": statusgo.StartCPUProfile, + "/statusgo/WriteHeapProfile": statusgo.WriteHeapProfile, + "/statusgo/AddPeer": statusgo.AddPeer, + "/statusgo/SignHash": statusgo.SignHash, + "/statusgo/GenerateAlias": statusgo.GenerateAlias, + "/statusgo/IsAlias": statusgo.IsAlias, + "/statusgo/Identicon": statusgo.Identicon, + "/statusgo/EmojiHash": statusgo.EmojiHash, + "/statusgo/ColorHash": statusgo.ColorHash, + "/statusgo/ColorID": statusgo.ColorID, + "/statusgo/ValidateMnemonic": statusgo.ValidateMnemonic, + "/statusgo/DecompressPublicKey": statusgo.DecompressPublicKey, + "/statusgo/CompressPublicKey": statusgo.CompressPublicKey, + "/statusgo/SerializeLegacyKey": statusgo.SerializeLegacyKey, + "/statusgo/GetPasswordStrength": statusgo.GetPasswordStrength, + "/statusgo/GetPasswordStrengthScore": statusgo.GetPasswordStrengthScore, + "/statusgo/GetConnectionStringForBeingBootstrapped": statusgo.GetConnectionStringForBeingBootstrapped, + "/statusgo/GetConnectionStringForBootstrappingAnotherDevice": statusgo.GetConnectionStringForBootstrappingAnotherDevice, + "/statusgo/GetConnectionStringForExportingKeypairsKeystores": statusgo.GetConnectionStringForExportingKeypairsKeystores, + "/statusgo/ValidateConnectionString": statusgo.ValidateConnectionString, + "/statusgo/DecodeParameters": statusgo.DecodeParameters, + "/statusgo/HexToNumber": statusgo.HexToNumber, + "/statusgo/NumberToHex": statusgo.NumberToHex, + "/statusgo/Sha3": statusgo.Sha3, + "/statusgo/Utf8ToHex": statusgo.Utf8ToHex, + "/statusgo/HexToUtf8": statusgo.HexToUtf8, + "/statusgo/CheckAddressChecksum": statusgo.CheckAddressChecksum, + "/statusgo/IsAddress": statusgo.IsAddress, + "/statusgo/ToChecksumAddress": statusgo.ToChecksumAddress, + "/statusgo/DeserializeAndCompressKey": statusgo.DeserializeAndCompressKey, + "/statusgo/InitLogging": statusgo.InitLogging, + "/statusgo/ToggleCentralizedMetrics": statusgo.ToggleCentralizedMetrics, + "/statusgo/AddCentralizedMetric": statusgo.AddCentralizedMetric, +} + +var EndpointsWithoutRequest = map[string]func() string{ + "/statusgo/GetNodeConfig": statusgo.GetNodeConfig, + "/statusgo/ResetChainData": statusgo.ResetChainData, + "/statusgo/Logout": statusgo.Logout, + "/statusgo/StopCPUProfiling": statusgo.StopCPUProfiling, + "/statusgo/StartLocalNotifications": statusgo.StartLocalNotifications, + "/statusgo/StopLocalNotifications": statusgo.StopLocalNotifications, + "/statusgo/ExportNodeLogs": statusgo.ExportNodeLogs, + "/statusgo/ImageServerTLSCert": statusgo.ImageServerTLSCert, + "/statusgo/Fleets": statusgo.Fleets, + "/statusgo/LocalPairingPreflightOutboundCheck": statusgo.LocalPairingPreflightOutboundCheck, + "/statusgo/StartSearchForLocalPairingPeers": statusgo.StartSearchForLocalPairingPeers, + "/statusgo/GetRandomMnemonic": statusgo.GetRandomMnemonic, + "/statusgo/CentralizedMetricsInfo": statusgo.CentralizedMetricsInfo, +} + +var EndpointsUnsupported = []string{ + "/statusgo/VerifyAccountPassword", + "/statusgo/VerifyDatabasePassword", + "/statusgo/MigrateKeyStoreDir", + "/statusgo/Login", + "/statusgo/LoginWithConfig", + "/statusgo/SaveAccountAndLogin", + "/statusgo/DeleteMultiaccount", + "/statusgo/DeleteImportedKey", + "/statusgo/SaveAccountAndLoginWithKeycard", + "/statusgo/LoginWithKeycard", + "/statusgo/SignTypedData", + "/statusgo/SignTypedDataV4", + "/statusgo/SendTransactionWithChainID", + "/statusgo/SendTransaction", + "/statusgo/SendTransactionWithSignature", + "/statusgo/ConnectionChange", + "/statusgo/AppStateChange", + "/statusgo/SetMobileSignalHandler", + "/statusgo/SetSignalEventCallback", + "/statusgo/MultiformatSerializePublicKey", + "/statusgo/MultiformatDeserializePublicKey", + "/statusgo/ExportUnencryptedDatabase", + "/statusgo/ImportUnencryptedDatabase", + "/statusgo/ChangeDatabasePassword", + "/statusgo/ConvertToKeycardAccount", + "/statusgo/ConvertToRegularAccount", + "/statusgo/SwitchFleet", + "/statusgo/GenerateImages", + "/statusgo/InputConnectionStringForBootstrapping", + "/statusgo/InputConnectionStringForBootstrappingAnotherDevice", + "/statusgo/InputConnectionStringForImportingKeypairsKeystores", + "/statusgo/EncodeTransfer", + "/statusgo/EncodeFunctionCall", +} + +var EndpointsDeprecated = map[string]struct{}{ + "/statusgo/OpenAccounts": {}, + "/statusgo/Login": {}, + "/statusgo/LoginWithConfig": {}, + "/statusgo/SaveAccountAndLogin": {}, + "/statusgo/SaveAccountAndLoginWithKeycard": {}, + "/statusgo/LoginWithKeycard": {}, +} \ No newline at end of file diff --git a/cmd/statusd/server/parse-api/endpoints_template.txt b/cmd/status-backend/server/parse-api/endpoints_template.txt similarity index 100% rename from cmd/statusd/server/parse-api/endpoints_template.txt rename to cmd/status-backend/server/parse-api/endpoints_template.txt diff --git a/cmd/statusd/server/parse-api/main.go b/cmd/status-backend/server/parse-api/main.go similarity index 100% rename from cmd/statusd/server/parse-api/main.go rename to cmd/status-backend/server/parse-api/main.go diff --git a/cmd/statusd/server/signals_server.go b/cmd/status-backend/server/server.go similarity index 100% rename from cmd/statusd/server/signals_server.go rename to cmd/status-backend/server/server.go diff --git a/cmd/statusd/server/signals_server_test.go b/cmd/status-backend/server/server_test.go similarity index 100% rename from cmd/statusd/server/signals_server_test.go rename to cmd/status-backend/server/server_test.go diff --git a/cmd/statusd/main.go b/cmd/statusd/main.go index fe50b6c01..e5587c03c 100644 --- a/cmd/statusd/main.go +++ b/cmd/statusd/main.go @@ -23,7 +23,7 @@ import ( "github.com/status-im/status-go/api" "github.com/status-im/status-go/appdatabase" - "github.com/status-im/status-go/cmd/statusd/server" + "github.com/status-im/status-go/cmd/status-backend/server" "github.com/status-im/status-go/common/dbsetup" gethbridge "github.com/status-im/status-go/eth-node/bridge/geth" "github.com/status-im/status-go/eth-node/crypto"