Skip to content

Commit

Permalink
feat(Realm): Remove all unused listeners (#2205)
Browse files Browse the repository at this point in the history
* 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

* Remove Events.onWalletReset

* Remove Events.onTransactionStatusLoad

* Remove onVestingBalanceSync

* Remove onStakingBalanceSync

* Remove onWalletsVestingBalanceCheck

* Remove onWalletsStakingBalanceCheck

* fix(HW-955): Block swipe down on Account import/create flow (#2202)

* build

* 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)

* fix: sss account login (#2222)

* 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

* update: version

* 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]>

* Remove imports issue

---------

Co-authored-by: Kirill Ageychenko <[email protected]>
Co-authored-by: Build <[email protected]>
Co-authored-by: Kirill Ageychenko <[email protected]>
  • Loading branch information
4 people committed Dec 5, 2024
1 parent 03c1795 commit 592e512
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 162 deletions.
8 changes: 0 additions & 8 deletions src/event-actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,20 @@ import {onDynamicLink} from '@app/event-actions/on-dynamic-link';
import {onNeedUpdate} from '@app/event-actions/on-need-update';
import {onPushNotification} from '@app/event-actions/on-push-notification';
import {onStakingSync} from '@app/event-actions/on-staking-sync';
import {onTransactionStatusLoad} from '@app/event-actions/on-transaction-status-load';
import {onWalletConnectApproveConnection} from '@app/event-actions/on-wallet-connect-approve-connection';
import {onWalletConnectSignTransaction} from '@app/event-actions/on-wallet-connect-sign-transaction';
import {onWalletConnectUri} from '@app/event-actions/on-wallet-connect-uri';
import {onWalletCreate} from '@app/event-actions/on-wallet-create';
import {onWalletMnemonicCheck} from '@app/event-actions/on-wallet-mnemonic-check';
import {onWalletMnemonicSaved} from '@app/event-actions/on-wallet-mnemonic-saved';
import {onWalletRemove} from '@app/event-actions/on-wallet-remove';
import {onWalletReset} from '@app/event-actions/on-wallet-reset';
import {onWalletSssCheck} from '@app/event-actions/on-wallet-sss-check';
import {onWalletSssSaved} from '@app/event-actions/on-wallet-sss-saved';
// import {onWalletsStakingBalanceCheck} from '@app/event-actions/on-wallets-staking-balance-check';
// import {onWalletsVestingBalanceCheck} from '@app/event-actions/on-wallets-vesting-balance-check';
import {Events} from '@app/events';
import {throttle} from '@app/utils';

import {onPushTokenRefresh} from './on-push-token-refresh';

// app.on(Events.onWalletsVestingBalanceCheck, onWalletsVestingBalanceCheck);
// app.on(Events.onWalletsStakingBalanceCheck, onWalletsStakingBalanceCheck);
app.on(Events.onDeepLink, onDeepLink);
app.on(Events.onWalletCreate, onWalletCreate);
app.on(Events.onWalletRemove, onWalletRemove);
Expand All @@ -41,7 +35,6 @@ app.on(Events.onAppInitialized, onAppInitialized);
app.on(Events.onAppStarted, onAppStarted);
app.on(Events.onAppLoggedId, onAppLoggedIn);
app.on(Events.onAppMnemonicBackup, onAppMnemonicBackup);
app.on(Events.onWalletReset, onWalletReset);
app.on(Events.onWalletMnemonicCheck, onWalletMnemonicCheck);
app.on(Events.onWalletMnemonicSaved, onWalletMnemonicSaved);
app.on(Events.onWalletSssCheck, onWalletSssCheck);
Expand All @@ -54,7 +47,6 @@ app.on(
app.on(Events.onAppProviderSssBackup, onAppProviderSssBackup);
app.on(Events.onWalletConnectSignTransaction, onWalletConnectSignTransaction);
app.on(Events.onDynamicLink, onDynamicLink);
app.on(Events.onTransactionStatusLoad, onTransactionStatusLoad);
app.on(Events.onPushNotification, onPushNotification);
app.on(Events.onAppReviewRequest, onAppReviewRequest);
app.on(Events.onNeedUpdate, onNeedUpdate);
Expand Down
1 change: 0 additions & 1 deletion src/event-actions/on-staking-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export async function onStakingSync() {
AddressUtils.toHaqq(w.address),
);
await sync(addressList, cosmos);
// app.emit(Events.onWalletsStakingBalanceCheck);
}

async function sync(addressList: string[], cosmos: Cosmos) {
Expand Down
64 changes: 0 additions & 64 deletions src/event-actions/on-transaction-status-load.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/event-actions/on-vesting-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export async function onVestingSync() {
AddressUtils.toHaqq(w.address),
);
await sync(addressList, cosmos);
// app.emit(Events.onWalletsVestingBalanceCheck);
}

async function sync(addressList: string[], cosmos: Cosmos) {
Expand Down
30 changes: 0 additions & 30 deletions src/event-actions/on-wallets-staking-balance-check.ts

This file was deleted.

52 changes: 0 additions & 52 deletions src/event-actions/on-wallets-vesting-balance-check.ts

This file was deleted.

6 changes: 0 additions & 6 deletions src/events.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
export enum Events {
onWalletCreate = 'onWalletCreate',
onWalletReset = 'onWalletReset',
onWalletRemove = 'onWalletRemove',
onWalletSssCheck = 'onWalletSssCheck',
onWalletMnemonicCheck = 'onWalletMnemonicCheck',
onWalletMnemonicSaved = 'onWalletMnemonicSaved',
onDeepLink = 'onDeepLink',
onStakingSync = 'onStakingSync',
onCloseModal = 'onCloseModal',
onTransactionStatusLoad = 'onTransactionStatusLoad',
onAppActive = 'onAppActive',
onAppInitialized = 'onAppInitialized',
onAppStarted = 'onAppStarted',
Expand All @@ -26,10 +24,6 @@ export enum Events {
onAppReviewRequest = 'onAppReviewRequest',
openInAppBrowserPageLoaded = 'openInAppBrowserPageLoaded',
enterPinSuccess = 'enterPinSuccess',
onVestingBalanceSync = 'onVestingBalanceSync',
onStakingBalanceSync = 'onStakingBalanceSync',
onWalletsVestingBalanceCheck = 'onWalletsVestingBalanceCheck',
onWalletsStakingBalanceCheck = 'onWalletsStakingBalanceCheck',
onThemeChanged = 'onThemeChanged',
onBlockRequestCheck = 'onBlockRequestCheck',
onRequestMarkup = 'onRequestMarkup',
Expand Down

0 comments on commit 592e512

Please sign in to comment.