chore_: clean up ReceiverConfig
This commit is contained in:
parent
2744e238c1
commit
4c6c773230
|
@ -7,7 +7,6 @@ import (
|
|||
|
||||
"github.com/status-im/status-go/api"
|
||||
"github.com/status-im/status-go/multiaccounts"
|
||||
"github.com/status-im/status-go/params"
|
||||
"github.com/status-im/status-go/protocol/requests"
|
||||
)
|
||||
|
||||
|
@ -27,32 +26,14 @@ type SenderConfig struct {
|
|||
type ReceiverConfig struct {
|
||||
CreateAccount *requests.CreateAccount `json:"createAccount" validate:"required"`
|
||||
|
||||
// ReceiverConfig.KeystorePath must not end with keyUID (because keyUID is not known yet)
|
||||
// Deprecated: use CreateAccount.RootDataDir instead
|
||||
KeystorePath string `json:"keystorePath"`
|
||||
|
||||
// DeviceType SendPairInstallation need this information
|
||||
// Deprecated: This field can be omitted, but is kept here until
|
||||
// https://github.com/status-im/status-go/issues/3351 is fully implemented.
|
||||
DeviceType string `json:"deviceType"`
|
||||
|
||||
// Deprecated: use CreateAccount.KdfIterations instead
|
||||
KDFIterations int `json:"kdfIterations" validate:"gte=0"`
|
||||
|
||||
// SettingCurrentNetwork corresponding to field current_network from table settings, so that we can override current network from sender
|
||||
// Deprecated: use CreateAccount.SettingCurrentNetwork instead
|
||||
SettingCurrentNetwork string `json:"settingCurrentNetwork"`
|
||||
|
||||
// Deprecated: use CreateAccount.DeviceName instead
|
||||
DeviceName string `json:"deviceName"`
|
||||
|
||||
// TODO: make those private
|
||||
DB *multiaccounts.Database `json:"-"`
|
||||
LoggedInKeyUID string `json:"-"`
|
||||
|
||||
// nodeConfig will be generated
|
||||
// Deprecated: use CreateAccount and build default node config instead
|
||||
nodeConfig *params.NodeConfig
|
||||
}
|
||||
|
||||
type KeystoreFilesConfig struct {
|
||||
|
|
|
@ -11,6 +11,7 @@ import (
|
|||
"github.com/status-im/status-go/api"
|
||||
"github.com/status-im/status-go/multiaccounts/accounts"
|
||||
"github.com/status-im/status-go/multiaccounts/settings"
|
||||
"github.com/status-im/status-go/protocol/encryption/multidevice"
|
||||
"github.com/status-im/status-go/protocol/protobuf"
|
||||
"github.com/status-im/status-go/protocol/requests"
|
||||
"github.com/status-im/status-go/signal"
|
||||
|
|
Loading…
Reference in New Issue