Skip to content

Commit c2df08c

Browse files
committed
format
1 parent 8a9548c commit c2df08c

File tree

88 files changed

+272
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+272
-219
lines changed

packages/desktop/components/modals/WalletActionsMenu.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
export let modal: Modal = undefined
1818
1919
const showDeleteAccount = true // TODO(2.0) Is there anything preventing us from deleting any account ?
20-
// $selectedWallet?.id === $activeWallets?.length - 1 && $visibleActiveWallets?.length > 1
20+
// $selectedWallet?.id === $activeWallets?.length - 1 && $visibleActiveWallets?.length > 1
2121
2222
function onCustomiseAccountClick(): void {
2323
openPopup({ id: PopupId.ManageWallet })
@@ -44,7 +44,7 @@
4444
options: {
4545
internal: false,
4646
ledgerNanoPrompt: true,
47-
}
47+
},
4848
})
4949
showAppNotification({
5050
type: 'info',

packages/desktop/components/popups/AliasConfirmationPopup.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
import { Button, KeyValueBox, Text, FontWeight, TextType } from 'shared/components'
33
import { localize } from '@core/i18n'
44
import { checkActiveProfileAuth, getBaseToken } from '@core/profile'
5-
import { formatTokenAmountPrecise, EMPTY_HEX_ID, processAndAddToActivities, selectedWallet, updateSelectedWallet } from '@core/wallet'
5+
import {
6+
formatTokenAmountPrecise,
7+
EMPTY_HEX_ID,
8+
processAndAddToActivities,
9+
selectedWallet,
10+
updateSelectedWallet,
11+
} from '@core/wallet'
612
import { UnlockConditionType, PreparedTransaction, AccountOutput } from '@iota/sdk/out/types'
713
import { closePopup } from '@auxiliary/popup'
814
import { onMount } from 'svelte'

packages/desktop/components/popups/WalletSwitcherPopup.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</Text>
2727
<div class="flex flex-col space-y-4">
2828
<Text fontSize="15" color="gray-700" classes="text-left">{localize('popups.deeplinkAccountSwitch.body')}</Text>
29-
<WalletSelector bind:wallet={wallet} />
29+
<WalletSelector bind:wallet />
3030
</div>
3131
<popup-buttons class="flex flex-row flex-nowrap w-full space-x-4">
3232
<Button classes="w-full" outline onClick={onCancelClick}>{localize('actions.cancel')}</Button>

packages/desktop/electron/preload.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ try {
113113
bindMethodsAcrossContextBridge(IotaSdk.SecretManager.prototype, manager)
114114
return manager
115115
},
116-
async getClientFromWallet(id){
117-
const wallet = wallets[id];
116+
async getClientFromWallet(id) {
117+
const wallet = wallets[id]
118118
// Why is this here?:
119-
// We cannot create classes from exposed functions
119+
// We cannot create classes from exposed functions
120120
// https://www.electronjs.org/docs/latest/api/context-bridge
121-
const client = await wallet.getClient();
121+
const client = await wallet.getClient()
122122
bindMethodsAcrossContextBridge(IotaSdk.Client.prototype, client)
123123
return client
124124
},
@@ -161,7 +161,7 @@ try {
161161
return accounts
162162
},
163163
async clearWalletsFromMemory() {
164-
for(const [id, wallet] of Object.entries(wallets)){
164+
for (const [id, wallet] of Object.entries(wallets)) {
165165
await wallet.stopBackgroundSync()
166166
await wallet.destroy()
167167
delete wallets[id]

packages/desktop/views/onboarding/views/create-profile/views/ChooseCreateProfileFlowView.svelte

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
<script lang="ts">
22
import { OnboardingLayout } from '@components'
3-
import {
4-
CreateProfileType,
5-
onboardingProfile,
6-
updateOnboardingProfile,
7-
} from '@contexts/onboarding'
3+
import { CreateProfileType, onboardingProfile, updateOnboardingProfile } from '@contexts/onboarding'
84
import { localize } from '@core/i18n'
9-
import { ProfileType, clearProfileFromMemory, getSecretManagerFromProfileType, getStorageDirectoryOfProfile, removeProfileFolder } from '@core/profile'
5+
import {
6+
ProfileType,
7+
clearProfileFromMemory,
8+
getSecretManagerFromProfileType,
9+
getStorageDirectoryOfProfile,
10+
removeProfileFolder,
11+
} from '@core/profile'
1012
import features from '@features/features'
1113
import { Animation, OnboardingButton, Text } from '@ui'
1214
import { onMount } from 'svelte'

packages/desktop/views/onboarding/views/shared/EncryptMnemonicView.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
busy = true
4747
await setStrongholdPassword(strongholdPassword)
4848
updateOnboardingProfile({ strongholdPassword, hasStoredMnemonic: true })
49-
await buildOnboardingSecretManager();
49+
await buildOnboardingSecretManager()
5050
await verifyAndStoreMnemonic()
5151
router.next()
5252
} catch (err) {

packages/desktop/views/update-stronghold/views/ChangePasswordView.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
storagePath,
109109
coinType,
110110
clientOptions,
111-
secretManager,
111+
secretManager
112112
)
113113
profileManager.set(manager)
114114
}

packages/shared/components/inputs/WalletSelector.svelte

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
1010
let modal: Modal | undefined
1111
12-
$: wallets = $visibleActiveWallets?.filter(
13-
(wallet) => wallet.id !== $selectedWallet?.id || !hideSelectedWallet
14-
)
12+
$: wallets = $visibleActiveWallets?.filter((wallet) => wallet.id !== $selectedWallet?.id || !hideSelectedWallet)
1513
1614
function getSuffixForWallet(wallet: IWalletState): string {
1715
return formatTokenAmountBestMatch(Number(wallet.balances.baseCoin.available), getBaseToken())

packages/shared/lib/contexts/governance/actions/getVotingEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ import type { ParticipationEventId, ParticipationEventWithNodes } from '@iota/sd
22
import { getSelectedWallet } from 'shared/lib/core/wallet'
33

44
export function getVotingEvent(eventId: ParticipationEventId): Promise<ParticipationEventWithNodes> {
5-
const wallet = getSelectedWallet();
5+
const wallet = getSelectedWallet()
66
return wallet.getParticipationEvent(eventId)
77
}

packages/shared/lib/contexts/governance/actions/getWalletsParticipationEventStatusForEvent.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { ParticipationEventId, ParticipationEventStatus } from '@iota/sdk/o
22
import { IWallet } from 'shared/lib/core/profile'
33
import { getSelectedWallet } from 'shared/lib/core/wallet/stores/selected-wallet.store'
44

5-
65
export function getWalletsParticipationEventStatusForEvent(
76
eventId: ParticipationEventId,
87
wallet: IWallet = getSelectedWallet()

0 commit comments

Comments
 (0)