Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wallet import #1050

Merged
merged 42 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
b38386a
Redesign import method screen
mvaivre Dec 12, 2024
f5e38c7
Redesigned secret phrase words
mvaivre Dec 12, 2024
1b7335e
Finished redesigning ImportWalletSeedScreen
mvaivre Dec 12, 2024
1ec6ad8
Fix import crash, add support for showing loading spinner in Button
mvaivre Dec 12, 2024
9122ef1
Update logo + icons
mvaivre Dec 13, 2024
3806b69
Merge pull request #1052 from alephium/update-logo
mvaivre Dec 16, 2024
1f53b0e
Fix public keys screen
nop33 Dec 16, 2024
e088a9b
Fix top padding of custom network screen
nop33 Dec 16, 2024
c463853
Fix save icons
nop33 Dec 16, 2024
7d1fad8
Fix NFT sanitization in mobile
nop33 Dec 16, 2024
faa8a2f
Fix bottom padding of buttons
nop33 Dec 16, 2024
15441da
Fix color of selected word in mnemonic import
nop33 Dec 16, 2024
205a638
Fix bg color of info toast
nop33 Dec 16, 2024
e93f792
Fix wrapping of buttons with long text
nop33 Dec 16, 2024
cb51ef7
Move button to bottom of screens
nop33 Dec 17, 2024
13c1080
Add padding to decrypt screen
nop33 Dec 17, 2024
65011e0
Remove obsolete fund password code
nop33 Dec 18, 2024
b14c998
Remove useless newPassword prop from fund password screen
nop33 Dec 18, 2024
ad18911
Merge pull request #1059 from alephium/fund-pass-simplify
nop33 Dec 19, 2024
8156fc4
Merge pull request #1054 from alephium/mw-redesign-ilias
nop33 Dec 19, 2024
5ed5461
Various UI fixes and improvements
mvaivre Dec 19, 2024
40fd3b9
Moar layout improvements
mvaivre Dec 19, 2024
092128c
Darker bgs in dark theme
mvaivre Dec 19, 2024
389c5b3
Add empty placeholder in addresses screen
mvaivre Dec 19, 2024
6c02fbc
Migrate mw WalletConnectSessionProposalModal props
nop33 Dec 19, 2024
e00f755
Migrate mw WalletConnectSessionRequestModal props
nop33 Dec 19, 2024
a5c507b
Merge pull request #1071 from alephium/fix-mw-wc-modals
mvaivre Dec 26, 2024
889c363
Install redux-devtools-expo-dev-plugin
nop33 Jan 6, 2025
49efd9e
Delete unused function
nop33 Jan 6, 2025
1d28b95
Fix cut-off checkbox in address box
nop33 Jan 6, 2025
3ba83cb
Stack asset types in address box
nop33 Jan 6, 2025
ffae6dd
Fix width of left content of address box
nop33 Jan 6, 2025
f4f8afe
Fix WC logo color for light theme
nop33 Jan 6, 2025
9b81046
Fix display of unknown tokens in transaction modal
nop33 Jan 6, 2025
b3d4027
Get rid of eslint-plugin-header
nop33 Jan 6, 2025
6dfcefb
Remove licence header from each file
nop33 Jan 6, 2025
4a4bb47
Add missing licence file in mobile wallet app
nop33 Jan 6, 2025
283c94a
Fix lint
nop33 Jan 6, 2025
735703f
Remove problematic jest comment
nop33 Jan 6, 2025
403e2f1
Add missing .nvmrc in each project
nop33 Jan 6, 2025
c21596c
Merge pull request #1075 from alephium/fix-wallet-import-ilias
nop33 Jan 6, 2025
3fe1bc2
Merge pull request #1076 from alephium/remove-header-comments
nop33 Jan 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 0 additions & 18 deletions apps/desktop-wallet/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

module.exports = {
extends: [
'@alephium/eslint-config/base',
Expand Down
1 change: 1 addition & 0 deletions apps/desktop-wallet/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20
18 changes: 0 additions & 18 deletions apps/desktop-wallet/.signWindows.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

const path = require('path')
const fs = require('fs')
const childProcess = require('child_process')
Expand Down
18 changes: 0 additions & 18 deletions apps/desktop-wallet/electron/autoUpdater.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

import { BrowserWindow, ipcMain } from 'electron'
import { autoUpdater } from 'electron-updater'

Expand Down
18 changes: 0 additions & 18 deletions apps/desktop-wallet/electron/electron-env.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

import { ProxySettings } from '@alephium/shared'
import { NativeTheme } from 'electron/main'
import { ProgressInfo, UpdateDownloadedEvent } from 'electron-updater'
Expand Down
18 changes: 0 additions & 18 deletions apps/desktop-wallet/electron/ledger.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

import { ledgerUSBVendorId } from '@ledgerhq/devices'
import { BrowserWindow } from 'electron'

Expand Down
18 changes: 0 additions & 18 deletions apps/desktop-wallet/electron/main.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

import path from 'node:path'
import { fileURLToPath } from 'node:url'

Expand Down
18 changes: 0 additions & 18 deletions apps/desktop-wallet/electron/menu.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

import { app, BrowserWindow, dialog, Menu, MenuItemConstructorOptions, shell } from 'electron'

import { CURRENT_VERSION, isMac, isWindows } from './utils'
Expand Down
18 changes: 0 additions & 18 deletions apps/desktop-wallet/electron/nativeTheme.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

import { BrowserWindow, ipcMain, nativeTheme } from 'electron'

import { isIpcSenderValid } from './utils'
Expand Down
18 changes: 0 additions & 18 deletions apps/desktop-wallet/electron/preload.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

import { ProxySettings } from '@alephium/shared'
import { IpcRendererEvent, NativeTheme } from 'electron/main'
import { ProgressInfo, UpdateDownloadedEvent } from 'electron-updater'
Expand Down
18 changes: 0 additions & 18 deletions apps/desktop-wallet/electron/utils.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

import { app, WebFrameMain } from 'electron'

export const isMac = process.platform === 'darwin'
Expand Down
1 change: 0 additions & 1 deletion apps/desktop-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
"electron-devtools-installer": "^3.2.0",
"eslint": "^8.48.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
Expand Down
18 changes: 0 additions & 18 deletions apps/desktop-wallet/scripts/syncTranslationFiles.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
#!/usr/bin/env node

/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

const glob = require('glob')
const fs = require('fs')

Expand Down
18 changes: 0 additions & 18 deletions apps/desktop-wallet/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

import { localStorageNetworkSettingsMigrated } from '@alephium/shared'
import { useInitializeThrottledClient } from '@alephium/shared-react'
import { memo, ReactNode, useCallback, useEffect } from 'react'
Expand Down
18 changes: 0 additions & 18 deletions apps/desktop-wallet/src/animations/index.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

const transition = { duration: 0.3 }

export const fadeIn = {
Expand Down
18 changes: 0 additions & 18 deletions apps/desktop-wallet/src/api/addresses.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

import { NonSensitiveAddressData } from '@alephium/keyring'
import { throttledClient } from '@alephium/shared'
import { TOTAL_NUMBER_OF_GROUPS } from '@alephium/web3'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

import { AddressHash } from '@alephium/shared'

import { SkipProp } from '@/api/apiDataHooks/apiDataHooksTypes'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

import { UseFetchAddressProps } from '@/api/apiDataHooks/address/addressApiDataHooksTypes'
import useFetchAddressBalancesAlph from '@/api/apiDataHooks/address/useFetchAddressBalancesAlph'
import useFetchAddressBalancesTokens from '@/api/apiDataHooks/address/useFetchAddressBalancesTokens'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
/*
Copyright 2018 - 2024 The Alephium Authors
This file is part of the alephium project.

The library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

The library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the library. If not, see <http://www.gnu.org/licenses/>.
*/

import { useQuery } from '@tanstack/react-query'

import { UseFetchAddressProps } from '@/api/apiDataHooks/address/addressApiDataHooksTypes'
Expand Down
Loading
Loading