fix_: linter

This commit is contained in:
Igor Sirotin 2024-09-19 08:08:05 +01:00
parent 46ce050d39
commit 860b8dd052
No known key found for this signature in database
GPG Key ID: 425E227CAAB81F95
2 changed files with 96 additions and 96 deletions

View File

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

View File

@ -3,19 +3,19 @@ package server
import statusgo "github.com/status-im/status-go/mobile" import statusgo "github.com/status-im/status-go/mobile"
var EndpointsWithResponse = []func(string) string{ var EndpointsWithResponse = []func(string) string{
{{- range .FunctionsWithResp }} {{- range .FunctionsWithResp }}
{{ $.PackageName }}.{{ . }}, {{ $.PackageName }}.{{ . }},
{{- end }} {{- end }}
} }
var EndpointsNoRequest = []func() string{ var EndpointsNoRequest = []func() string{
{{- range .FunctionsNoArgs }} {{- range .FunctionsNoArgs }}
{{ $.PackageName }}.{{ . }}, {{ $.PackageName }}.{{ . }},
{{- end }} {{- end }}
} }
var EndpointsUnsupported = []string{ var EndpointsUnsupported = []string{
{{- range .UnsupportedEndpoints }} {{- range .UnsupportedEndpoints }}
"{{ . }}", "{{ . }}",
{{- end }} {{- end }}
} }