101 lines
2.9 KiB
Go
101 lines
2.9 KiB
Go
|
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",
|
||
|
}
|