mirror of
https://github.com/status-im/status-go.git
synced 2025-01-18 10:42:07 +00:00
eeaaf0ce3f
- old `accounts` table is moved/mapped to `keypairs` and `keypairs_accounts` - `keycards` table has foreign key which refers to `keypairs.key_uid` - `Keypair` introduced as a new type - api endpoints updated according to this change
48 lines
1.5 KiB
Go
48 lines
1.5 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"
|
|
|
|
// EventWakuBackedUpKeypair is emitted while applying fetched keypair data from waku
|
|
EventWakuBackedUpKeypair = "waku.backedup.keypair"
|
|
|
|
// EventWakuBackedUpKeycards is emitted while applying fetched keycard data from waku
|
|
EventWakuBackedUpKeycards = "waku.backedup.keycards"
|
|
|
|
// EventWakuBackedUpWatchOnlyAccount is emitted while applying fetched watch only account data from waku
|
|
EventWakuBackedUpWatchOnlyAccount = "waku.backedup.watch-only-account" // #nosec G101
|
|
)
|
|
|
|
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 SendWakuBackedUpKeypair(obj json.Marshaler) {
|
|
send(EventWakuBackedUpKeypair, obj)
|
|
}
|
|
|
|
func SendWakuBackedUpKeycards(obj json.Marshaler) {
|
|
send(EventWakuBackedUpKeycards, obj)
|
|
}
|
|
|
|
func SendWakuBackedUpWatchOnlyAccount(obj json.Marshaler) {
|
|
send(EventWakuBackedUpWatchOnlyAccount, obj)
|
|
}
|