-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Realm): Move app onboarded and initialized (#2204)
* feat(HW-941): Remove restore screen * feat(HW-941): Update sss routing rules * feat(HW-941): Remove SSS from settings * feat(HW-941): Remove replace option from SSS migration * feat(HW-941): Translation fix * Change sss screen parameters * Remove unnecessary useCallback * FIx provider for sss * Remove errors * Fix wallet type * Fix types * feat: Move app onboarded and initialized logic into AppStore - Remove Events.onOnbardedChanged event - Remove initialized state from app.tsx * Remove unnecessary storage definition * Update observers * Migrtation * Restore onboarding from Realm into AppStore * fix: Cart Wallet styles (#2207) * fix: wallet card name (#2209) * fix(SSS): google iOS login (#2208) * fix(HW-961): sss sentry handling (#2210) * Remove contact migration * Sentry handling for sss issues * fix(HW-965): no wallets on import iardware wallet (#2211) * feat(HW-967): watch only wallet (#2212) * fix: wallet bages (#2214) * fix(SocketStore): improve socket error handling (#2213) * fix(HW-963): Update wallet model after sss removal (#2215) * build * fix: Deep check for address list to prevent infinity transactions fetches (#2218) * chore: Hide remove sss button (#2219) * chore: Hide remove sss button * chore: isFeature enabled * fix: sss errors (#2217) * feat(HW-966): immediatly re-create SSS cloud share (#2220) * feat(HW-966): immediatly re-create SSS cloud share * feat(HW-966): sss recovery error handling * build * update: version * build * Restore storage for Provider and ProviderConfig (#2221) * feat: Update onboarded variable migration * Update logs * Change MMKV configuration * Restore storage * app.store storage * build * Revert "update: version" This reverts commit a3567cf. * build * chore: Setup provider cache to 3 hours (#2227) * update: version * fix: tron fee (#2230) * fix: tron fee * fix: tron fee calculation * build --------- Co-authored-by: Kirill Ageychenko <[email protected]> Co-authored-by: Build <[email protected]> Co-authored-by: Kirill Ageychenko <[email protected]>
- Loading branch information
1 parent
e688da2
commit 03c1795
Showing
44 changed files
with
217 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import {makeAutoObservable} from 'mobx'; | ||
import {isHydrated, makePersistable} from 'mobx-persist-store'; | ||
|
||
import {storage} from '@app/services/mmkv'; | ||
|
||
class AppStore { | ||
// App session properties | ||
private _isInitialized = false; | ||
|
||
// Hydrated properties | ||
isOnboarded = false; | ||
|
||
constructor() { | ||
makeAutoObservable(this); | ||
makePersistable(this, { | ||
name: this.constructor.name, | ||
properties: ['isOnboarded'], | ||
storage, | ||
}); | ||
} | ||
|
||
get isInitialized() { | ||
return isHydrated(this) && this._isInitialized; | ||
} | ||
set isInitialized(value: boolean) { | ||
this._isInitialized = value; | ||
} | ||
} | ||
|
||
const instance = new AppStore(); | ||
export {instance as AppStore}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './app.store'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.