status-go/cmd/statusd/server/endpoints.go

103 lines
2.7 KiB
Go
Raw Normal View History

2024-09-18 22:41:13 +00:00
package server
2024-09-18 23:15:27 +00:00
import statusgo "github.com/status-im/status-go/mobile"
2024-09-18 22:41:13 +00:00
2024-09-18 23:15:27 +00:00
var EndpointsWithResponse = []func(string) string{
2024-09-19 07:08:05 +00:00
statusgo.InitializeApplication,
statusgo.ExtractGroupMembershipSignatures,
statusgo.SignGroupMembership,
statusgo.ValidateNodeConfig,
statusgo.CallRPC,
statusgo.CallPrivateRPC,
statusgo.CreateAccountAndLogin,
statusgo.LoginAccount,
statusgo.RestoreAccountAndLogin,
statusgo.InitKeystore,
statusgo.SignMessage,
statusgo.HashTypedData,
statusgo.HashTypedDataV4,
statusgo.Recover,
statusgo.HashTransaction,
statusgo.HashMessage,
statusgo.StartCPUProfile,
statusgo.WriteHeapProfile,
statusgo.AddPeer,
statusgo.SignHash,
statusgo.GenerateAlias,
statusgo.IsAlias,
statusgo.Identicon,
statusgo.EmojiHash,
statusgo.ColorHash,
statusgo.ColorID,
statusgo.ValidateMnemonic,
statusgo.DecompressPublicKey,
statusgo.CompressPublicKey,
statusgo.SerializeLegacyKey,
statusgo.GetPasswordStrength,
statusgo.GetPasswordStrengthScore,
statusgo.GetConnectionStringForBeingBootstrapped,
statusgo.GetConnectionStringForBootstrappingAnotherDevice,
statusgo.GetConnectionStringForExportingKeypairsKeystores,
statusgo.ValidateConnectionString,
statusgo.DecodeParameters,
statusgo.HexToNumber,
statusgo.NumberToHex,
statusgo.Sha3,
statusgo.Utf8ToHex,
statusgo.HexToUtf8,
statusgo.CheckAddressChecksum,
statusgo.IsAddress,
statusgo.ToChecksumAddress,
statusgo.DeserializeAndCompressKey,
statusgo.InitLogging,
statusgo.ToggleCentralizedMetrics,
statusgo.AddCentralizedMetric,
2024-09-18 22:41:13 +00:00
}
2024-09-18 23:15:27 +00:00
var EndpointsNoRequest = []func() string{
2024-09-19 07:08:05 +00:00
statusgo.GetNodeConfig,
statusgo.ResetChainData,
statusgo.Logout,
statusgo.StopCPUProfiling,
statusgo.StartLocalNotifications,
statusgo.StopLocalNotifications,
statusgo.ExportNodeLogs,
statusgo.ImageServerTLSCert,
statusgo.Fleets,
statusgo.LocalPairingPreflightOutboundCheck,
statusgo.StartSearchForLocalPairingPeers,
statusgo.GetRandomMnemonic,
statusgo.CentralizedMetricsInfo,
2024-09-18 22:41:13 +00:00
}
2024-09-18 23:15:27 +00:00
var EndpointsUnsupported = []string{
2024-09-19 07:08:05 +00:00
"VerifyAccountPassword",
"VerifyDatabasePassword",
"MigrateKeyStoreDir",
"DeleteMultiaccount",
"DeleteImportedKey",
"SignTypedData",
"SignTypedDataV4",
"SendTransactionWithChainID",
"SendTransaction",
"SendTransactionWithSignature",
"ConnectionChange",
"AppStateChange",
"SetMobileSignalHandler",
"SetSignalEventCallback",
"MultiformatSerializePublicKey",
"MultiformatDeserializePublicKey",
"ExportUnencryptedDatabase",
"ImportUnencryptedDatabase",
"ChangeDatabasePassword",
"ConvertToKeycardAccount",
"ConvertToRegularAccount",
"SwitchFleet",
"GenerateImages",
"InputConnectionStringForBootstrapping",
"InputConnectionStringForBootstrappingAnotherDevice",
"InputConnectionStringForImportingKeypairsKeystores",
"EncodeTransfer",
"EncodeFunctionCall",
2024-09-18 23:15:27 +00:00
}