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"
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,
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,
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",
"GenerateImages",
"InputConnectionStringForBootstrapping",
"InputConnectionStringForBootstrappingAnotherDevice",
"InputConnectionStringForImportingKeypairsKeystores",
"EncodeTransfer",
"EncodeFunctionCall",
"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",
}

View File

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