diff --git a/.eslintignore b/.eslintignore index 4689ac0f81..977a4ae594 100644 --- a/.eslintignore +++ b/.eslintignore @@ -4,6 +4,7 @@ patches/ # Desktop (packages/desktop) +packages/desktop/electron-builder-config.js packages/desktop/out/ packages/desktop/public/ packages/desktop/electron/lib/keychain.js diff --git a/.eslintrc.js b/.eslintrc.js index acae28ab1b..c678416171 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -77,7 +77,8 @@ const typescriptEslintRules = { '@typescript-eslint/no-unsafe-return': 'off', // OFF b/c used in Svelte components for UI logic '@typescript-eslint/no-unsafe-argument': 'off', // OFF b/c ESlint resolves types of the absolute imports as any '@typescript-eslint/unused-export-let': 'off', // OFF b/c used in Svelte components for UI logic - '@typescript-eslint/no-unused-vars': 'error', + '@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '^_', argsIgnorePattern: '^_' }], + '@typescript-eslint/no-var-requires': 'error', '@typescript-eslint/prefer-regexp-exec': 'error', '@typescript-eslint/restrict-plus-operands': 'off', // OFF b/c not entirely accurate despite proper typings @@ -98,9 +99,9 @@ const svelteRules = { } const svelteSettings = { - 'svelte3/typescript': () => require('typescript'), - 'svelte3/ignore-styles': () => true, - 'svelte3/ignore-warnings': () => false, + 'svelte/typescript': () => require('typescript'), + 'svelte/ignore-styles': () => true, + 'svelte/ignore-warnings': () => false, } module.exports = { @@ -109,7 +110,7 @@ module.exports = { es6: true, node: true, }, - extends: ['eslint:recommended'], + extends: ['eslint:recommended', 'plugin:svelte/recommended'], overrides: [ { files: ['**/*.ts', '**/*.svelte'], @@ -125,14 +126,17 @@ module.exports = { project: './tsconfig.lint.json', tsconfigRootDir: './', }, - plugins: ['@typescript-eslint', 'svelte3'], + plugins: ['@typescript-eslint'], rules: linterRules, settings: svelteSettings, }, { files: '**/*.svelte', - processor: 'svelte3/svelte3', + parser: 'svelte-eslint-parser', settings: svelteSettings, + parserOptions: { + parser: '@typescript-eslint/parser' + }, rules: { ...linterRules, ...svelteRules, diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 223e3a3708..ab8f2fda34 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -1,17 +1,21 @@ name: Build Test on: - schedule: - # 12:00AM (UTC) Sunday - - cron: '0 0 * * SUN' - workflow_dispatch: + schedule: + # 12:00AM (UTC) Sunday + - cron: '0 0 * * SUN' + workflow_dispatch: jobs: - trigger-build: - name: Build (Trigger) - ${{ inputs.os }} - uses: ./.github/workflows/reusable_build.yml - if: ${{ always() }} - with: - os: ubuntu-20.04 - stage: prod - secrets: inherit + trigger-build: + name: Build (Trigger) - ${{ inputs.os }} + uses: ./.github/workflows/reusable_build.yml + if: ${{ always() }} + strategy: + matrix: + os: [ubuntu-20.04, windows-2022, macos-11] + fail-fast: true + with: + os: ${{ matrix.os }} + stage: prod + secrets: inherit diff --git a/.github/workflows/ci.lint.yml b/.github/workflows/ci.lint.yml index e0b9a8eacc..15e0008be0 100644 --- a/.github/workflows/ci.lint.yml +++ b/.github/workflows/ci.lint.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 18.x + node-version: 20.x - name: Set up .npmrc file to use GitHub Packages run: | @@ -38,7 +38,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 18.x + node-version: 20.x - name: Set up .npmrc file to use GitHub Packages run: | diff --git a/.github/workflows/ci.test.yml b/.github/workflows/ci.test.yml index bdc77ec4c7..0e24e8903b 100644 --- a/.github/workflows/ci.test.yml +++ b/.github/workflows/ci.test.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 18.x + node-version: 20.x - name: Set up .npmrc file to use GitHub Packages run: | diff --git a/.github/workflows/ci.ts.yml b/.github/workflows/ci.ts.yml index deabd4fd26..0f833e730f 100644 --- a/.github/workflows/ci.ts.yml +++ b/.github/workflows/ci.ts.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 18.x + node-version: 20.x - name: Set up .npmrc file to use GitHub Packages run: | diff --git a/.github/workflows/reusable_build.yml b/.github/workflows/reusable_build.yml index b818cf652c..af9017ca37 100644 --- a/.github/workflows/reusable_build.yml +++ b/.github/workflows/reusable_build.yml @@ -35,7 +35,7 @@ jobs: - name: Setup NodeJS uses: actions/setup-node@v1 with: - node-version: 18.19.1 + node-version: 20.x # Used to read the `binding.gyp` file from `@iota/sdk` - name: Set up Python 3.10 diff --git a/firefly.diff b/firefly.diff index ce0d629267..bc9e98c215 100644 --- a/firefly.diff +++ b/firefly.diff @@ -72,12 +72,19 @@ delete mode 100644 packages/desktop/components/buttons/menu-buttons/index.js delete mode 100644 packages/desktop/components/buttons/popup-buttons/ImportErc20TokenButton.svelte delete mode 100644 packages/desktop/components/buttons/popup-buttons/RefreshTokenMetadataButton.svelte + delete mode 100644 packages/desktop/components/drawers/network-config/NetworkConfigDrawerRouter.svelte delete mode 100644 packages/desktop/components/drawers/network-config/drawers/ChainDepositAddressDrawer.svelte delete mode 100644 packages/desktop/components/drawers/network-config/drawers/ChainInformationDrawer.svelte delete mode 100644 packages/desktop/components/drawers/network-config/drawers/ConfirmLedgerEvmAddressDrawer.svelte delete mode 100644 packages/desktop/components/drawers/network-config/drawers/ConnectLedgerDeviceDrawer.svelte + delete mode 100644 packages/desktop/components/drawers/network-config/drawers/ConnectedChainsDrawer.svelte delete mode 100644 packages/desktop/components/drawers/network-config/drawers/DrawerTemplate.svelte + delete mode 100644 packages/desktop/components/drawers/network-config/drawers/EditChainDrawer.svelte + delete mode 100644 packages/desktop/components/drawers/network-config/drawers/RemoveChainDrawer.svelte + delete mode 100644 packages/desktop/components/drawers/network-config/drawers/components/AddIscpChainForm.svelte + delete mode 100644 packages/desktop/components/drawers/network-config/drawers/components/EvmChainInformation.svelte delete mode 100644 packages/desktop/components/drawers/network-config/drawers/components/IscpChainInformation.svelte + delete mode 100644 packages/desktop/components/drawers/network-config/drawers/index.ts rename packages/desktop/components/filter/{index.js => index.ts} (100%) delete mode 100644 packages/desktop/components/index.js delete mode 100644 packages/desktop/components/menu-buttons/index.js @@ -185,17 +192,10 @@ rename packages/desktop/{components/buttons/popup-buttons => views/dashboard/developer/components}/TestDeepLinkButton.svelte (72%) rename packages/desktop/{components/buttons/popup-buttons/index.js => views/dashboard/developer/components/index.ts} (68%) rename packages/desktop/views/dashboard/developer/{index.js => index.ts} (100%) - rename packages/desktop/{components/drawers/network-config/NetworkConfigDrawerRouter.svelte => views/dashboard/drawers/network-config/NetworkConfigRouterView.svelte} (68%) rename packages/desktop/views/dashboard/{settings/views/network/index.js => drawers/network-config/components/index.ts} (54%) rename packages/desktop/{lib/routers/enums => views/dashboard/drawers/network-config}/network-config-route.enum.ts (86%) - rename packages/desktop/{components/drawers/network-config/drawers => views/dashboard/drawers/network-config/views}/AddChainDrawer.svelte (69%) - rename packages/desktop/{components/drawers/network-config/drawers => views/dashboard/drawers/network-config/views}/ConnectedChainsDrawer.svelte (62%) - rename packages/desktop/{components/drawers/network-config/drawers => views/dashboard/drawers/network-config/views}/EditChainDrawer.svelte (69%) - rename packages/desktop/{components/drawers/network-config/drawers => views/dashboard/drawers/network-config/views}/RemoveChainDrawer.svelte (60%) - rename packages/desktop/{components/drawers/network-config/drawers => views/dashboard/drawers/network-config/views}/components/AddIscpChainForm.svelte (69%) - rename packages/desktop/{components/drawers/network-config/drawers => views/dashboard/drawers/network-config/views}/components/EvmChainInformation.svelte (100%) + rename packages/desktop/{components/drawers/network-config/drawers/AddChainDrawer.svelte => views/dashboard/drawers/network-config/views/AddNetworkDrawer.svelte} (55%) rename packages/desktop/{components/drawers/network-config/drawers => views/dashboard/drawers/network-config/views}/components/index.ts (100%) - rename packages/desktop/{components/drawers/network-config/drawers => views/dashboard/drawers/network-config/views}/index.ts (78%) rename packages/desktop/{components/menu-buttons/ProposalDetailsButton.svelte => views/dashboard/governance/components/ProposalDetailsMenu.svelte} (55%) rename packages/desktop/{components/Proposals.svelte => views/dashboard/governance/components/ProposalList.svelte} (52%) rename packages/desktop/{ => views/dashboard/governance}/components/ProposalQuestion.svelte (64%) @@ -259,7 +259,7 @@ rename packages/desktop/views/{dashboard => }/settings/views/index.js (78%) rename packages/desktop/views/{dashboard => }/settings/views/profile/index.js (100%) rename packages/desktop/views/{dashboard => }/settings/views/profile/profile-settings.constant.js (100%) - rename packages/desktop/views/{dashboard => }/settings/views/security/ChangePassword.svelte (68%) + rename packages/desktop/views/{dashboard => }/settings/views/security/ChangePassword.svelte (51%) rename packages/desktop/views/{dashboard => }/settings/views/security/ChangePincode.svelte (56%) rename packages/desktop/views/{dashboard => }/settings/views/security/index.js (63%) rename packages/desktop/views/{dashboard => }/settings/views/security/security-settings.constant.js (61%) @@ -835,6 +835,7 @@ delete mode 100644 packages/shared/components/molecules/activity-info/TokenActivityInformation.svelte delete mode 100644 packages/shared/components/molecules/activity-info/index.js delete mode 100644 packages/shared/components/molecules/filter-items/AssetFilterItem.svelte + delete mode 100644 packages/shared/components/molecules/filter-items/NetworkFilterItem.svelte delete mode 100644 packages/shared/components/molecules/filter-items/OrderFilterItem.svelte delete mode 100644 packages/shared/components/molecules/filter-items/SelectionFilterItem.svelte delete mode 100644 packages/shared/components/molecules/index.js @@ -966,7 +967,6 @@ delete mode 100644 packages/shared/lib/core/layer-2/types/index.ts delete mode 100644 packages/shared/lib/core/layer-2/types/layer2-metadata.interface.ts delete mode 100644 packages/shared/lib/core/layer-2/utils/addGasBudget.ts - delete mode 100644 packages/shared/lib/core/layer-2/utils/evmAddressToAgentID.ts delete mode 100644 packages/shared/lib/core/layer-2/utils/getAbiForContractType.ts delete mode 100644 packages/shared/lib/core/layer-2/utils/getCommonEvmTransactionData.ts delete mode 100644 packages/shared/lib/core/layer-2/utils/getDestinationNetworkFromAddress.ts @@ -1013,30 +1013,43 @@ delete mode 100644 packages/shared/lib/core/network/actions/addOfficialNodesToClientOptions.ts delete mode 100644 packages/shared/lib/core/network/actions/showNetworkIssueNotification.ts delete mode 100644 packages/shared/lib/core/network/actions/toggleDisabledNodeInClientOptions.ts + delete mode 100644 packages/shared/lib/core/network/actions/updateChainStatuses.ts + delete mode 100644 packages/shared/lib/core/network/classes/iscp-chain.class.ts + delete mode 100644 packages/shared/lib/core/network/classes/stardust-network.class.ts delete mode 100644 packages/shared/lib/core/network/constants/coin-type.constant.ts delete mode 100644 packages/shared/lib/core/network/constants/default-base-token.constant.ts delete mode 100644 packages/shared/lib/core/network/constants/default-chain-configurations.constant.ts delete mode 100644 packages/shared/lib/core/network/constants/default-network-metadata.constant.ts delete mode 100644 packages/shared/lib/core/network/constants/explorer-urls.constant.ts delete mode 100644 packages/shared/lib/core/network/constants/faucet-urls.constant.ts + delete mode 100644 packages/shared/lib/core/network/constants/index.ts + delete mode 100644 packages/shared/lib/core/network/constants/max-chain-name-length.constant.ts delete mode 100644 packages/shared/lib/core/network/constants/network-health-colours.constant.ts delete mode 100644 packages/shared/lib/core/network/constants/official-node-urls.constant.ts delete mode 100644 packages/shared/lib/core/network/enums/chain-id.enum.ts + delete mode 100644 packages/shared/lib/core/network/enums/chain-type.enum.ts delete mode 100644 packages/shared/lib/core/network/enums/explorer-endpoint.enum.ts delete mode 100644 packages/shared/lib/core/network/enums/index.ts delete mode 100644 packages/shared/lib/core/network/interfaces/auth.interface.ts + delete mode 100644 packages/shared/lib/core/network/interfaces/chain-configuration.interface.ts + delete mode 100644 packages/shared/lib/core/network/interfaces/chain.interface.ts delete mode 100644 packages/shared/lib/core/network/interfaces/network-metadata.interface.ts delete mode 100644 packages/shared/lib/core/network/interfaces/network-status.interface.ts delete mode 100644 packages/shared/lib/core/network/interfaces/network.interface.ts delete mode 100644 packages/shared/lib/core/network/interfaces/node-info.interface.ts delete mode 100644 packages/shared/lib/core/network/interfaces/node.interface.ts + delete mode 100644 packages/shared/lib/core/network/interfaces/persisted-network.interface.ts delete mode 100644 packages/shared/lib/core/network/interfaces/rent-structure.interface.ts delete mode 100644 packages/shared/lib/core/network/interfaces/tracked-tokens.interface.ts delete mode 100644 packages/shared/lib/core/network/stores/chain-statuses.store.ts + delete mode 100644 packages/shared/lib/core/network/stores/network.store.ts + delete mode 100644 packages/shared/lib/core/network/stores/selected-chain.store.ts delete mode 100644 packages/shared/lib/core/network/tests/network.test.ts + delete mode 100644 packages/shared/lib/core/network/types/chain-configuration.type.ts + delete mode 100644 packages/shared/lib/core/network/types/chain-metadata.type.ts + delete mode 100644 packages/shared/lib/core/network/utils/buildChainFromNetwork.ts delete mode 100644 packages/shared/lib/core/network/utils/buildPersistedNetworkFromNodeInfoResponse.ts delete mode 100644 packages/shared/lib/core/network/utils/checkNetworkId.ts - delete mode 100644 packages/shared/lib/core/network/utils/getEvmTransactionOptions.ts delete mode 100644 packages/shared/lib/core/network/utils/getNetworkId.ts delete mode 100644 packages/shared/lib/core/network/utils/getNetworkIdFromNetworkName.ts delete mode 100644 packages/shared/lib/core/network/utils/getNetworkNameFromNetworkId.ts @@ -1044,6 +1057,7 @@ delete mode 100644 packages/shared/lib/core/network/utils/getOfficialNodes.ts delete mode 100644 packages/shared/lib/core/network/utils/index.ts delete mode 100644 packages/shared/lib/core/network/utils/isEvmChain.ts + delete mode 100644 packages/shared/lib/core/network/utils/isIscpChain.ts delete mode 100644 packages/shared/lib/core/network/utils/isOfficialNetwork.ts delete mode 100644 packages/shared/lib/core/nfts/actions/addNftsToDownloadQueue.ts delete mode 100644 packages/shared/lib/core/nfts/actions/addOrUpdateNftInAllAccountNfts.ts @@ -1064,12 +1078,14 @@ delete mode 100644 packages/shared/lib/core/nfts/stores/downloading-nft.store.ts delete mode 100644 packages/shared/lib/core/nfts/stores/nft-download-queue.store.ts delete mode 100644 packages/shared/lib/core/nfts/stores/persisted-nft-data.store.ts + delete mode 100644 packages/shared/lib/core/nfts/stores/selected-account-nfts.store.ts delete mode 100644 packages/shared/lib/core/nfts/types/index.ts delete mode 100644 packages/shared/lib/core/nfts/types/mime-type.type.ts delete mode 100644 packages/shared/lib/core/nfts/utils/buildNftFromNftOutput.ts delete mode 100644 packages/shared/lib/core/nfts/utils/checkIfNftShouldBeDownloaded.ts delete mode 100644 packages/shared/lib/core/nfts/utils/convertAndFormatNftMetadata.ts delete mode 100644 packages/shared/lib/core/nfts/utils/fetchWithTimeout.ts + delete mode 100644 packages/shared/lib/core/nfts/utils/index.ts delete mode 100644 packages/shared/lib/core/nfts/utils/rewriteIpfsUri.ts delete mode 100644 packages/shared/lib/core/profile-manager/actions/events-handlers/handleNewOutputEvent.ts delete mode 100644 packages/shared/lib/core/profile-manager/actions/events-handlers/handleSpentOutputEvent.ts @@ -1116,7 +1132,7 @@ delete mode 100644 packages/shared/lib/core/router/routers/collectibles-router.ts delete mode 100644 packages/shared/lib/core/router/routers/governance-router.ts delete mode 100644 packages/shared/lib/core/router/types/router-manager-extension-function.type.ts - delete mode 100644 packages/shared/lib/core/stronghold/actions/index.ts + delete mode 100644 packages/shared/lib/core/stronghold/actions/checkOrUnlockStronghold.ts delete mode 100644 packages/shared/lib/core/stronghold/constants/stronghold-version.constant.ts delete mode 100644 packages/shared/lib/core/stronghold/utils/getDefaultStrongholdName.ts delete mode 100644 packages/shared/lib/core/stronghold/utils/index.ts @@ -1154,6 +1170,7 @@ delete mode 100644 packages/shared/lib/core/wallet/actions/activities/updateClaimingTransactionInclusion.ts delete mode 100644 packages/shared/lib/core/wallet/actions/burnAsset.ts delete mode 100644 packages/shared/lib/core/wallet/actions/burnNft.ts + delete mode 100644 packages/shared/lib/core/wallet/actions/claimActivity.ts delete mode 100644 packages/shared/lib/core/wallet/actions/consolidateOutputs.ts delete mode 100644 packages/shared/lib/core/wallet/actions/generateAndStoreActivitiesForAllAccounts.ts delete mode 100644 packages/shared/lib/core/wallet/actions/getAccountAssetsForSelectedAccount.ts @@ -1288,10 +1305,10 @@ rename packages/shared/{ => src}/components/QR.svelte (66%) rename packages/shared/{ => src}/components/Text.svelte (81%) rename packages/shared/{ => src}/components/Tooltip.svelte (91%) - rename packages/shared/{ => src}/components/Transition.svelte (75%) + rename packages/shared/{ => src}/components/Transition.svelte (51%) rename packages/shared/{ => src}/components/atoms/Icon.svelte (90%) rename packages/shared/{components/atoms => src/components}/boxes/Box.svelte (60%) - rename packages/shared/{components/atoms => src/components}/buttons/ReceiveButton.svelte (81%) + rename packages/shared/{components/atoms => src/components}/buttons/ReceiveButton.svelte (78%) rename packages/shared/{ => src}/components/enums/index.ts (50%) rename packages/shared/{ => src}/components/enums/nft-media-size.enum.ts (100%) rename packages/shared/{ => src}/components/enums/position.enum.ts (100%) @@ -1300,26 +1317,25 @@ rename packages/shared/{components/atoms/iconButtons/index.js => src/components/iconButtons/index.ts} (100%) rename packages/shared/{components/index.js => src/components/index.ts} (53%) rename packages/shared/{ => src}/components/inputs/AliasInput.svelte (51%) - rename packages/shared/{components/inputs/Dropdown2.svelte => src/components/inputs/Dropdown.svelte} (96%) + rename packages/shared/{components/inputs/Dropdown2.svelte => src/components/inputs/Dropdown.svelte} (94%) rename packages/shared/{ => src}/components/inputs/Input.svelte (90%) rename packages/shared/{ => src}/components/inputs/InputContainer.svelte (69%) rename packages/shared/{ => src}/components/inputs/NodeInput.svelte (79%) - rename packages/shared/{ => src}/components/inputs/OptionalInput.svelte (55%) + rename packages/shared/{ => src}/components/inputs/OptionalInput.svelte (52%) rename packages/shared/{ => src}/components/inputs/Radio.svelte (94%) - rename packages/shared/{ => src}/components/inputs/SliderInput.svelte (65%) + rename packages/shared/{ => src}/components/inputs/SliderInput.svelte (56%) rename packages/shared/{ => src}/components/inputs/TextInput.svelte (60%) - rename packages/shared/{ => src}/components/inputs/TokenAmountInput.svelte (56%) + rename packages/shared/{ => src}/components/inputs/TokenAmountInput.svelte (55%) rename packages/shared/{components/inputs/index.js => src/components/inputs/index.ts} (54%) rename packages/shared/{ => src}/components/interfaces/index.ts (63%) rename packages/shared/{ => src}/components/interfaces/network-recipient-selector-option.interface.ts (51%) - rename packages/shared/{ => src}/components/molecules/NetworkRecipientSelector.svelte (67%) + rename packages/shared/{ => src}/components/molecules/NetworkRecipientSelector.svelte (65%) rename packages/shared/{ => src}/components/molecules/NftMedia.svelte (53%) rename packages/{mobile => shared/src}/components/molecules/ShimmerClaimingAccountList.svelte (72%) rename packages/shared/{ => src}/components/molecules/filter-items/DateFilterItem.svelte (58%) - rename packages/shared/{ => src}/components/molecules/filter-items/NetworkFilterItem.svelte (55%) rename packages/shared/{ => src}/components/molecules/filter-items/NumberFilterItem.svelte (56%) rename packages/shared/{components/molecules/filter-items/index.js => src/components/molecules/filter-items/index.ts} (85%) - rename packages/shared/{components/atoms => src/components}/tiles/Tile.svelte (93%) + rename packages/shared/{components/atoms => src/components}/tiles/Tile.svelte (85%) rename packages/shared/{components/atoms/tiles/index.js => src/components/tiles/index.ts} (57%) rename packages/shared/{ => src}/components/types/text-prop.type.ts (100%) rename packages/shared/{ => src}/lib/auxiliary/deep-link/actions/index.ts (100%) @@ -1669,7 +1685,7 @@ rename packages/shared/{ => src}/lib/core/account/utils/getBoundAccount.ts (72%) rename packages/shared/{ => src}/lib/core/account/utils/getIconColorFromString.ts (73%) rename packages/shared/{ => src}/lib/core/account/utils/index.ts (76%) - rename packages/shared/{ => src}/lib/core/account/utils/sumBalanceForAccounts.ts (100%) + rename packages/shared/{ => src}/lib/core/account/utils/sumBalanceForAccounts.ts (54%) rename packages/shared/{lib/core/wallet/actions/activities => src/lib/core/activity/actions}/linkTransactionsWithClaimingTransactions.ts (88%) rename packages/shared/{lib/core/wallet/actions/activities => src/lib/core/activity/actions}/preprocessOutputsForAccount.ts (68%) rename packages/shared/{lib/core/wallet/actions/activities => src/lib/core/activity/actions}/preprocessTransactionsForAccount.ts (80%) @@ -1796,7 +1812,7 @@ rename packages/shared/{ => src}/lib/core/layer-2/abis/erc20.abi.ts (100%) rename packages/shared/{ => src}/lib/core/layer-2/abis/index.ts (68%) rename packages/shared/{ => src}/lib/core/layer-2/abis/isc-sandbox.abi.ts (100%) - rename packages/shared/{lib/core/layer-2/utils => src/lib/core/layer-2/actions}/getLayer2NetworkFromAddress.ts (100%) + rename packages/shared/{lib/core/layer-2/utils => src/lib/core/layer-2/actions}/getLayer2NetworkFromAddress.ts (52%) rename packages/shared/{ => src}/lib/core/layer-2/classes/simple-buffer.class.ts (100%) rename packages/shared/{ => src}/lib/core/layer-2/constants/accounts-contract.constant.ts (100%) rename packages/shared/{ => src}/lib/core/layer-2/constants/contract-functions.constant.ts (100%) @@ -1805,7 +1821,7 @@ rename packages/shared/{ => src}/lib/core/layer-2/constants/externally-owned-account-type-id.constant.ts (100%) rename packages/shared/{ => src}/lib/core/layer-2/constants/externally-owned-account.constant.ts (100%) rename packages/shared/{ => src}/lib/core/layer-2/constants/index.ts (59%) - rename packages/shared/{ => src}/lib/core/layer-2/constants/isc-magic-contract-address.constant.ts (100%) + rename packages/shared/{ => src}/lib/core/layer-2/constants/isc-magic-contract-address.constant.ts (51%) rename packages/shared/{ => src}/lib/core/layer-2/constants/layer2-tokens-poll-interval.constant.ts (100%) rename packages/shared/{ => src}/lib/core/layer-2/constants/target-contracts.constant.ts (100%) rename packages/shared/{ => src}/lib/core/layer-2/constants/transfer-allowance.constant.ts (100%) @@ -1815,6 +1831,7 @@ rename packages/shared/{ => src}/lib/core/layer-2/enums/state-mutability-type.enum.ts (100%) rename packages/shared/{ => src}/lib/core/layer-2/errors/index.ts (100%) rename packages/shared/{ => src}/lib/core/layer-2/errors/layer1-recipient.error.ts (100%) + rename packages/shared/{lib/core/layer-2/utils/evmAddressToAgentID.ts => src/lib/core/layer-2/helpers/evmAddressToAgentId.ts} (55%) rename packages/shared/{lib/core/layer-2/utils => src/lib/core/layer-2/helpers}/getAgentBalanceParameters.ts (100%) rename packages/shared/{lib/core/layer-2/utils => src/lib/core/layer-2/helpers}/getSmartContractHexName.ts (100%) rename packages/shared/{ => src}/lib/core/layer-2/index.ts (86%) @@ -1861,70 +1878,56 @@ rename packages/shared/{ => src}/lib/core/market/types/market-coin-prices.type.ts (53%) rename packages/shared/{ => src}/lib/core/market/types/market-prices.type.ts (100%) rename packages/shared/{ => src}/lib/core/network/actions/addNodeToClientOptions.ts (76%) - rename packages/shared/{ => src}/lib/core/network/actions/chain-polling.ts (100%) + rename packages/shared/{ => src}/lib/core/network/actions/chain-polling.ts (76%) rename packages/shared/{ => src}/lib/core/network/actions/editNodeInClientOptions.ts (82%) rename packages/shared/{ => src}/lib/core/network/actions/getAndUpdateNodeInfo.ts (85%) - rename packages/shared/{ => src}/lib/core/network/actions/index.ts (74%) + rename packages/shared/{ => src}/lib/core/network/actions/index.ts (79%) rename packages/shared/{ => src}/lib/core/network/actions/network-polling.ts (100%) rename packages/shared/{ => src}/lib/core/network/actions/removeNodeFromClientOptions.ts (63%) rename packages/shared/{ => src}/lib/core/network/actions/toggleLocalPowInClientOptions.ts (84%) rename packages/shared/{ => src}/lib/core/network/actions/togglePrimaryNodeInClientOptions.ts (63%) - rename packages/shared/{ => src}/lib/core/network/actions/updateChainStatuses.ts (90%) rename packages/shared/{ => src}/lib/core/network/actions/updateClientOptions.ts (98%) rename packages/shared/{ => src}/lib/core/network/classes/index.ts (100%) - rename packages/shared/{ => src}/lib/core/network/classes/iscp-chain.class.ts (63%) - rename packages/shared/{ => src}/lib/core/network/classes/stardust-network.class.ts (81%) - rename packages/shared/{ => src}/lib/core/network/constants/chain-statuses-poll-interval.constant.ts (100%) rename packages/shared/{ => src}/lib/core/network/constants/empty-node.constant.ts (54%) - rename packages/shared/{ => src}/lib/core/network/constants/index.ts (54%) - rename packages/shared/{ => src}/lib/core/network/constants/max-chain-name-length.constant.ts (100%) rename packages/shared/{ => src}/lib/core/network/constants/milestone-not-found.constant.ts (100%) rename packages/shared/{ => src}/lib/core/network/constants/network-status-poll-interval.constant.ts (100%) + rename packages/shared/{lib/core/network/constants/chain-statuses-poll-interval.constant.ts => src/lib/core/network/constants/network-statuses-poll-interval.constant.ts} (59%) rename packages/shared/{ => src}/lib/core/network/constants/seconds-per-milestone.constant.ts (100%) - rename packages/shared/{ => src}/lib/core/network/enums/chain-type.enum.ts (100%) rename packages/shared/{ => src}/lib/core/network/enums/network-health.enum.ts (86%) rename packages/shared/{ => src}/lib/core/network/enums/token-supply.enum.ts (75%) rename packages/shared/{ => src}/lib/core/network/helpers/getNetworkStatusFromNodeInfo.ts (85%) rename packages/shared/{ => src}/lib/core/network/helpers/index.ts (100%) rename packages/shared/{ => src}/lib/core/network/index.ts (100%) rename packages/shared/{ => src}/lib/core/network/interfaces/block.interface.ts (100%) - rename packages/shared/{ => src}/lib/core/network/interfaces/chain-configuration.interface.ts (59%) - rename packages/shared/{ => src}/lib/core/network/interfaces/chain-metadata.interface.ts (100%) - rename packages/shared/{ => src}/lib/core/network/interfaces/chain-status.interface.ts (100%) - rename packages/shared/{ => src}/lib/core/network/interfaces/chain.interface.ts (91%) + rename packages/shared/{ => src}/lib/core/network/interfaces/chain-status.interface.ts (73%) rename packages/shared/{ => src}/lib/core/network/interfaces/client-options.interface.ts (54%) rename packages/shared/{ => src}/lib/core/network/interfaces/connected-chain.interface.ts (100%) rename packages/shared/{ => src}/lib/core/network/interfaces/evm-addresses.interface.ts (100%) + rename packages/shared/{lib/core/network/interfaces/chain-metadata.interface.ts => src/lib/core/network/interfaces/evm-network-metadata.interface.ts} (92%) rename packages/shared/{ => src}/lib/core/network/interfaces/gas-fee-policy.interface.ts (100%) rename packages/shared/{ => src}/lib/core/network/interfaces/gas-limits.interface.ts (100%) - rename packages/shared/{ => src}/lib/core/network/interfaces/index.ts (78%) + rename packages/shared/{ => src}/lib/core/network/interfaces/index.ts (64%) rename packages/shared/{ => src}/lib/core/network/interfaces/node-info-response.interface.ts (62%) - rename packages/shared/{ => src}/lib/core/network/interfaces/persisted-network.interface.ts (100%) rename packages/shared/{ => src}/lib/core/network/interfaces/protocol.interface.ts (62%) rename packages/shared/{ => src}/lib/core/network/interfaces/stardust-network-metadata.interface.ts (56%) - rename packages/shared/{ => src}/lib/core/network/stores/index.ts (100%) + rename packages/shared/{ => src}/lib/core/network/stores/index.ts (82%) rename packages/shared/{ => src}/lib/core/network/stores/network-status.store.ts (100%) - rename packages/shared/{ => src}/lib/core/network/stores/network.store.ts (100%) rename packages/shared/{ => src}/lib/core/network/stores/node-info.store.ts (83%) - rename packages/shared/{ => src}/lib/core/network/stores/selected-chain.store.ts (100%) - rename packages/shared/{ => src}/lib/core/network/types/chain-configuration.type.ts (100%) - rename packages/shared/{ => src}/lib/core/network/types/chain-metadata.type.ts (100%) - rename packages/shared/{ => src}/lib/core/network/types/index.ts (82%) + rename packages/shared/{ => src}/lib/core/network/types/index.ts (50%) rename packages/shared/{ => src}/lib/core/network/types/network-metadata.type.ts (100%) rename packages/shared/{ => src}/lib/core/network/types/web3-provider.type.ts (100%) - rename packages/shared/{ => src}/lib/core/network/utils/buildChainFromNetwork.ts (100%) rename packages/shared/{ => src}/lib/core/network/utils/checkNodeUrlValidity.ts (95%) rename packages/shared/{ => src}/lib/core/network/utils/doesNodeHavePlugin.ts (100%) rename packages/shared/{ => src}/lib/core/network/utils/getDefaultClientOptions.ts (52%) - rename packages/shared/{ => src}/lib/core/network/utils/getDefaultPersistedNetwork.ts (77%) - rename packages/shared/{ => src}/lib/core/network/utils/isIscpChain.ts (100%) + rename packages/shared/{ => src}/lib/core/network/utils/getDefaultPersistedNetwork.ts (67%) + rename packages/shared/{ => src}/lib/core/network/utils/getEvmTransactionOptions.ts (88%) rename packages/shared/{ => src}/lib/core/nfts/actions/getNftByIdFromAllAccountNfts.ts (61%) rename packages/shared/{ => src}/lib/core/nfts/actions/setAccountNftsInAllAccountNfts.ts (75%) rename packages/shared/{ => src}/lib/core/nfts/constants/current-irc27-version.constant.ts (100%) rename packages/shared/{ => src}/lib/core/nfts/constants/default-max-nft-downloading-time-in-seconds.constant.ts (100%) rename packages/shared/{ => src}/lib/core/nfts/constants/default-max-nft-size-in-megabytes.constant.ts (100%) rename packages/shared/{ => src}/lib/core/nfts/constants/default-nft-name.constant.ts (100%) - rename packages/shared/{ => src}/lib/core/nfts/constants/index.ts (86%) + rename packages/shared/{ => src}/lib/core/nfts/constants/index.ts (77%) rename packages/shared/{ => src}/lib/core/nfts/constants/nft-id-byte-length.constant.ts (100%) rename packages/shared/{ => src}/lib/core/nfts/constants/nft-media-file-name.constant.ts (100%) rename packages/shared/{ => src}/lib/core/nfts/enums/download-error-type.enum.ts (100%) @@ -1935,13 +1938,11 @@ rename packages/shared/{lib/core/nfts/interfaces/irc27-attribute.interface.ts => src/lib/core/nfts/interfaces/nft-attribute.interface.ts} (59%) rename packages/shared/{ => src}/lib/core/nfts/interfaces/soonaverse-attribute.interface.ts (100%) rename packages/shared/{ => src}/lib/core/nfts/interfaces/soonaverse-attributes.interface.ts (100%) - rename packages/shared/{ => src}/lib/core/nfts/stores/index.ts (82%) - rename packages/shared/{ => src}/lib/core/nfts/stores/selected-account-nfts.store.ts (51%) + rename packages/shared/{ => src}/lib/core/nfts/stores/index.ts (73%) rename packages/shared/{ => src}/lib/core/nfts/stores/selected-nft.store.ts (100%) rename packages/shared/{ => src}/lib/core/nfts/tests/buildNftFromNftOutput.test.ts (55%) rename packages/shared/{ => src}/lib/core/nfts/utils/composeUrlFromNftUri.ts (76%) rename packages/shared/{ => src}/lib/core/nfts/utils/getSpendableStatusFromUnspentNftOutput.ts (64%) - rename packages/shared/{ => src}/lib/core/nfts/utils/index.ts (52%) rename packages/shared/{ => src}/lib/core/nfts/utils/isNftOwnedByAnyAccount.ts (57%) rename packages/shared/{ => src}/lib/core/nfts/utils/parseNftMetadata.ts (91%) rename packages/shared/{ => src}/lib/core/profile-manager/actions/changePasswordAndUnlockStronghold.ts (96%) @@ -2001,7 +2002,7 @@ rename packages/shared/{ => src}/lib/core/profile/actions/active-profile/checkAndUpdateActiveProfileNetwork.ts (58%) rename packages/shared/{ => src}/lib/core/profile/actions/active-profile/getBaseToken.ts (81%) rename packages/shared/{ => src}/lib/core/profile/actions/active-profile/getNetworkHrp.ts (100%) - rename packages/shared/{ => src}/lib/core/profile/actions/active-profile/index.ts (86%) + rename packages/shared/{ => src}/lib/core/profile/actions/active-profile/index.ts (92%) rename packages/shared/{ => src}/lib/core/profile/actions/active-profile/loadAccounts.ts (68%) rename packages/shared/{ => src}/lib/core/profile/actions/active-profile/loadPersistedProfileIntoActiveProfile.ts (74%) rename packages/shared/{ => src}/lib/core/profile/actions/active-profile/lockStronghold.ts (88%) @@ -2093,7 +2094,7 @@ rename packages/shared/{ => src}/lib/core/router/subrouters/login-router.ts (70%) rename packages/shared/{ => src}/lib/core/router/types/index.ts (100%) rename packages/shared/{ => src}/lib/core/router/types/router-manager-extension.type.ts (100%) - rename packages/shared/{ => src}/lib/core/stronghold/actions/checkOrUnlockStronghold.ts (75%) + rename packages/shared/{ => src}/lib/core/stronghold/actions/index.ts (100%) rename packages/shared/{ => src}/lib/core/stronghold/constants/index.ts (100%) rename packages/shared/{ => src}/lib/core/stronghold/constants/password-reason-map.constant.ts (100%) rename packages/shared/{ => src}/lib/core/stronghold/enums/index.ts (100%) @@ -2165,7 +2166,7 @@ rename packages/shared/{ => src}/lib/core/utils/enums/past-time-unit.enum.ts (100%) rename packages/shared/{ => src}/lib/core/utils/enums/time-period.enum.ts (100%) rename packages/shared/{ => src}/lib/core/utils/filter.ts (63%) - rename packages/shared/{ => src}/lib/core/utils/format.ts (77%) + rename packages/shared/{ => src}/lib/core/utils/format.ts (75%) rename packages/shared/{ => src}/lib/core/utils/index.ts (85%) rename packages/shared/{ => src}/lib/core/utils/interfaces/date-difference.interface.ts (100%) rename packages/shared/{ => src}/lib/core/utils/interfaces/dropdown-item.interface.ts (100%) @@ -2198,9 +2199,8 @@ rename packages/shared/{ => src}/lib/core/utils/types/index.ts (77%) rename packages/shared/{ => src}/lib/core/utils/types/ui-event-function.type.ts (100%) rename packages/shared/{ => src}/lib/core/utils/types/values-of.type.ts (100%) - rename packages/shared/{ => src}/lib/core/utils/ui.ts (71%) + rename packages/shared/{ => src}/lib/core/utils/ui.ts (70%) rename packages/shared/{ => src}/lib/core/utils/validation.ts (88%) - rename packages/shared/{ => src}/lib/core/wallet/actions/claimActivity.ts (75%) rename packages/shared/{ => src}/lib/core/wallet/actions/rejectActivity.ts (52%) rename packages/shared/{ => src}/lib/core/wallet/constants/address-letter.constants.ts (100%) rename packages/shared/{ => src}/lib/core/wallet/constants/empty-hex-id.constants.ts (100%) @@ -2221,7 +2221,7 @@ rename packages/shared/{ => src}/lib/core/wallet/stores/mint-nft-details.store.ts (100%) rename packages/shared/{ => src}/lib/core/wallet/stores/mint-token-details.store.ts (100%) rename packages/shared/{ => src}/lib/core/wallet/stores/selected-send-option.store.ts (100%) - rename packages/shared/{ => src}/lib/core/wallet/tests/getOutputParameters.test.ts (53%) + rename packages/shared/{ => src}/lib/core/wallet/tests/getOutputParameters.test.ts (51%) rename packages/shared/{ => src}/lib/core/wallet/utils/getIrc30MetadataFromFoundryOutput.ts (66%) rename packages/shared/{ => src}/lib/core/wallet/utils/isSubjectInternal.ts (56%) rename packages/shared/{ => src}/lib/core/wallet/utils/parseGovernanceMetadata.ts (90%) diff --git a/package.json b/package.json index 01bbf453ae..31d5f79781 100644 --- a/package.json +++ b/package.json @@ -5,17 +5,17 @@ "packages/shared" ], "devDependencies": { - "@babel/eslint-parser": "7.22.15", + "@babel/eslint-parser": "7.24.1", "@tsconfig/svelte": "5.0.2", "@typescript-eslint/eslint-plugin": "6.21.0", "@typescript-eslint/parser": "6.5.0", "@types/node": "18.15.11", "eslint": "8.42.0", "eslint-plugin-security": "1.7.1", - "eslint-plugin-svelte3": "3.4.1", + "eslint-plugin-svelte": "2.36.0", "husky": "7.0.4", "lint-staged": "12.5.0", - "patch-package": "6.5.1", + "patch-package": "8.0.0", "prettier": "3.2.5", "prettier-plugin-svelte": "3.0.3", "svelte-check": "3.4.6", diff --git a/packages/desktop/components/ConfirmationDialog.svelte b/packages/desktop/components/ConfirmationDialog.svelte index 5ab0c5e201..21c344bc90 100644 --- a/packages/desktop/components/ConfirmationDialog.svelte +++ b/packages/desktop/components/ConfirmationDialog.svelte @@ -28,7 +28,7 @@ {#if visible} - + -
+
diff --git a/packages/desktop/components/EmptyListPlaceholder.svelte b/packages/desktop/components/EmptyListPlaceholder.svelte index 0267e895d3..6b2aeea75d 100644 --- a/packages/desktop/components/EmptyListPlaceholder.svelte +++ b/packages/desktop/components/EmptyListPlaceholder.svelte @@ -18,7 +18,7 @@
-