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

101 lines
2.9 KiB
Go
Raw Normal View History

2024-09-18 22:41:13 +00:00
package server
import "github.com/status-im/status-go/mobile"
var EndpointsWithResponse = []func(string) string {
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,
}
var EndpointsNoRequest = []func() string {
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,
}
var EndpointsUnsupported = []string {
"VerifyAccountPassword",
"VerifyDatabasePassword",
"MigrateKeyStoreDir",
"DeleteMultiaccount",
"DeleteImportedKey",
"SignTypedData",
"SignTypedDataV4",
"SendTransactionWithChainID",
"SendTransaction",
"SendTransactionWithSignature",
"ConnectionChange",
"AppStateChange",
"SetMobileSignalHandler",
"SetSignalEventCallback",
"MultiformatSerializePublicKey",
"MultiformatDeserializePublicKey",
"ExportUnencryptedDatabase",
"ImportUnencryptedDatabase",
"ChangeDatabasePassword",
"ConvertToKeycardAccount",
"ConvertToRegularAccount",
"SwitchFleet",
"InputConnectionStringForBootstrapping",
"InputConnectionStringForBootstrappingAnotherDevice",
"InputConnectionStringForImportingKeypairsKeystores",
"EncodeTransfer",
"EncodeFunctionCall",
}