mirror of
https://github.com/status-im/status-go.git
synced 2025-02-04 19:04:16 +00:00
f1e3ae5b46
Changes applied here introduce: - improvements to sync wallet accounts among devices (including all account types) - backing up wallet accounts to and fetch them from waku (an information about received wallet accounts is sent via `waku.backedup.wallet-account` signal to a client)
41 lines
1.3 KiB
Go
41 lines
1.3 KiB
Go
package signal
|
|
|
|
import "encoding/json"
|
|
|
|
const (
|
|
// EventWakuFetchingBackupProgress is emitted while applying fetched data is ongoing
|
|
EventWakuFetchingBackupProgress = "waku.fetching.backup.progress"
|
|
|
|
// EventSyncFromWakuProfile is emitted while applying fetched profile data from waku
|
|
EventWakuBackedUpProfile = "waku.backedup.profile"
|
|
|
|
// EventWakuBackedUpSettings is emitted while applying fetched settings from waku
|
|
EventWakuBackedUpSettings = "waku.backedup.settings"
|
|
|
|
// EventWakuBackedUpWalletAccount is emitted while applying fetched wallet account data from waku
|
|
EventWakuBackedUpWalletAccount = "waku.backedup.wallet-account" // #nosec G101
|
|
|
|
// EventWakuBackedUpKeycards is emitted while applying fetched keycard data from waku
|
|
EventWakuBackedUpKeycards = "waku.backedup.keycards"
|
|
)
|
|
|
|
func SendWakuFetchingBackupProgress(obj json.Marshaler) {
|
|
send(EventWakuFetchingBackupProgress, obj)
|
|
}
|
|
|
|
func SendWakuBackedUpProfile(obj json.Marshaler) {
|
|
send(EventWakuBackedUpProfile, obj)
|
|
}
|
|
|
|
func SendWakuBackedUpSettings(obj json.Marshaler) {
|
|
send(EventWakuBackedUpSettings, obj)
|
|
}
|
|
|
|
func SendWakuBackedUpWalletAccount(obj json.Marshaler) {
|
|
send(EventWakuBackedUpWalletAccount, obj)
|
|
}
|
|
|
|
func SendWakuBackedUpKeycards(obj json.Marshaler) {
|
|
send(EventWakuBackedUpKeycards, obj)
|
|
}
|