From 1354894755764c1e59a6f0088736ec4c0335443f Mon Sep 17 00:00:00 2001
From: Gerald
Date: Wed, 24 May 2023 12:11:43 +0200
Subject: [PATCH] Release v5.4
---
.github/workflows/pull-request.yml | 164 +-
.github/workflows/release.yml | 64 +-
.gitignore | 2 +
.vscode/extensions.json | 3 +
.vscode/settings.json | 6 +-
Readme.md | 2 +
lerna.json | 2 +-
package.json | 19 +-
packages/dapp/next.config.js | 2 +-
packages/dapp/package.json | 8 +-
packages/dapp/src/components/TokenDapp.tsx | 147 +-
packages/dapp/src/pages/index.tsx | 75 +-
packages/dapp/src/services/token.service.ts | 40 +-
packages/dapp/src/services/wallet.service.ts | 113 +-
packages/dapp/src/styles/globals.css | 27 +-
packages/{extension => }/e2e/.eslintrc.js | 0
packages/{extension => }/e2e/.gitignore | 0
packages/{extension => }/e2e/Dockerfile | 0
.../extension}/network-setup/Dockerfile | 0
.../network-setup/build_and_push.sh | 0
.../extension}/network-setup/dump.pkl | Bin
.../e2e => e2e/extension}/src/config.ts | 6 +-
.../e2e => e2e/extension}/src/fixtures.ts | 0
.../extension}/src/languages/ILanguage.ts | 1 -
.../extension}/src/languages/en/index.ts | 1 -
.../extension}/src/languages/index.ts | 1 +
.../extension}/src/page-objects/Account.ts | 18 +-
.../extension}/src/page-objects/Activity.ts | 0
.../src/page-objects/AddressBook.ts | 0
.../src/page-objects/DeveloperSettings.ts | 0
.../src/page-objects/ExtensionPage.ts | 0
.../extension}/src/page-objects/Navigation.ts | 0
.../extension}/src/page-objects/Network.ts | 0
.../extension}/src/page-objects/Settings.ts | 2 +-
.../extension}/src/page-objects/Wallet.ts | 16 +-
.../src/specs/accountSettings.spec.ts | 0
.../extension}/src/specs/addressBook.spec.ts | 0
.../extension}/src/specs/dappsBanner.spec.ts | 0
.../extension}/src/specs/links.spec.ts | 0
.../extension}/src/specs/network.spec.ts | 2 +-
.../extension}/src/specs/receiveFunds.spec.ts | 0
.../extension}/src/specs/recovery.spec.ts | 0
.../extension/src/specs/sendFundsMax.spec.ts | 78 +
.../src/specs/sendFundsPartial.spec.ts} | 53 +-
.../extension}/src/specs/welcome.spec.ts | 0
.../e2e => e2e/extension}/src/test.ts | 4 +-
.../extension}/src/utils/Messages.ts | 0
packages/e2e/package.json | 15 +
.../{extension => e2e}/playwright.config.ts | 11 +-
packages/{extension => }/e2e/tsconfig.json | 6 +-
packages/extension/.env.example | 4 +-
packages/extension/.eslintrc.js | 10 +
packages/extension/manifest/v2.json | 2 +-
packages/extension/manifest/v3.json | 2 +-
packages/extension/package.json | 40 +-
packages/extension/sonar-project.properties | 6 +
.../extension/src/assets/default-tokens.json | 8 +
.../background/__new/middleware/analytics.ts | 65 +
.../background/__new/middleware/session.ts | 13 +
.../__new/procedures/account/create.ts | 49 +
.../__new/procedures/account/deploy.ts | 14 +
.../__new/procedures/account/index.ts | 10 +
.../__new/procedures/account/upgrade.ts | 33 +
.../__new/procedures/network/add.ts | 11 +
.../__new/procedures/network/index.ts | 6 +
.../__new/procedures/permissions.ts | 45 +
.../__new/procedures/recovery/index.ts | 8 +
.../procedures/recovery/recoverBackup.ts | 20 +
.../procedures/recovery/recoverSeedphrase.ts | 41 +
.../extension/src/background/__new/router.ts | 32 +
.../onboarding/implementation.test.ts | 85 +
.../services/onboarding/implementation.ts | 38 +
.../__new/services/onboarding/index.ts | 17 +
.../__new/services/onboarding/interface.ts | 13 +
.../onboarding/worker/implementation.test.ts | 54 +
.../onboarding/worker/implementation.ts | 62 +
.../extension/src/background/__new/trpc.ts | 24 +
.../extension/src/background/accountDeploy.ts | 10 +
.../src/background/accountMessaging.ts | 118 +-
.../src/background/accountUpgrade.ts | 6 +-
.../src/background/actionHandlers.ts | 78 +-
packages/extension/src/background/crypto.ts | 5 +-
packages/extension/src/background/index.ts | 153 +-
.../src/background/miscellaneousMessaging.ts | 8 +-
.../src/background/multisigDeployAction.ts | 64 +
.../src/background/multisigMessaging.ts | 260 +
.../src/background/network/network.service.ts | 31 +
.../networkStatus.worker.ts} | 8 +-
.../src/background/networkMessaging.ts | 59 +-
packages/extension/src/background/nonce.ts | 15 +-
.../extension/src/background/notification.ts | 34 +-
.../extension/src/background/onboarding.ts | 14 +-
.../src/background/recoveryMessaging.ts | 63 -
.../src/background/sessionMessaging.ts | 6 +-
.../src/background/shieldMessaging.ts | 8 +-
.../src/background/transactions/badgeText.ts | 63 +-
.../fees/multisigFeeEstimation.ts | 32 +
.../background/transactions/onupdate/index.ts | 2 +
.../transactions/onupdate/multisigUpdates.ts | 15 +
.../transactions/onupdate/notifications.ts | 8 +-
.../background/transactions/onupdate/type.ts | 4 +-
.../src/background/transactions/store.ts | 10 +-
.../transactions/transactionExecution.ts | 56 +-
.../transactions/transactionMessaging.ts | 764 +-
.../extension/src/background/udcMessaging.ts | 7 +-
packages/extension/src/background/wallet.ts | 514 +-
.../src/background/walletSingleton.ts | 19 +
packages/extension/src/content.ts | 8 +-
.../extension/src/inpage/ArgentXAccount.ts | 2 +-
.../extension/src/inpage/ArgentXAccount3.ts | 2 +-
packages/extension/src/inpage/messaging.ts | 13 -
.../src/inpage/requestMessageHandlers.ts | 67 +-
.../src/inpage/starknetWindowObject.ts | 14 +-
packages/extension/src/inpage/trpcClient.ts | 8 +
.../__new/services/ui/implementation.test.ts | 74 +
.../__new/services/ui/implementation.ts | 71 +
.../src/shared/__new/services/ui/index.ts | 5 +
.../src/shared/__new/services/ui/interface.ts | 51 +
.../details/getAccountTypesFromChain.ts | 19 +-
.../details/getAndMergeAccountDetails.test.ts | 6 +-
.../src/shared/account/details/getEscape.ts | 14 +-
.../details/updateAccountsWithNames.ts | 22 +
.../account/service/implementation.test.ts | 82 +
.../shared/account/service/implementation.ts | 152 +
.../src/shared/account/service/index.ts | 10 +
.../src/shared/account/service/interface.ts | 34 +
.../extension/src/shared/account/store.ts | 57 -
.../src/shared/account/store/index.ts | 20 +
.../shared/account/store/serialize.test.ts | 46 +
.../shared/account/{ => store}/serialize.ts | 4 +-
.../src/shared/account/storeMigration.ts | 4 +-
.../extension/src/shared/account/update.ts | 46 +-
.../extension/src/shared/actionQueue/types.ts | 27 +-
packages/extension/src/shared/analytics.ts | 23 +-
.../extension/src/shared/api/constants.ts | 11 +
.../shared/call/changeMultisigSignersCall.ts | 37 +
.../shared/call/setMultisigThresholdCalls.ts | 19 +
.../extension/src/shared/explorer/type.ts | 4 +-
.../src/shared/messages/AccountMessage.ts | 28 +-
.../src/shared/messages/ActionMessage.ts | 4 +-
.../src/shared/messages/MultisigMessage.ts | 74 +
.../src/shared/messages/NetworkMessage.ts | 21 +-
.../src/shared/messages/RecoveryMessage.ts | 9 -
.../extension/src/shared/messages/index.ts | 8 +-
.../extension/src/shared/multisig/account.ts | 257 +
.../multisig/mocks/executeTransaction.mock.ts | 35 +
.../src/shared/multisig/multisig.model.ts | 130 +
.../src/shared/multisig/multisig.service.ts | 176 +
.../multisig/pendingTransactionsStore.ts | 138 +
.../extension/src/shared/multisig/signer.ts | 44 +
.../extension/src/shared/multisig/store.ts | 20 +
.../extension/src/shared/multisig/tracking.ts | 207 +
.../extension/src/shared/multisig/types.ts | 12 +
.../src/shared/multisig/utils/baseMultisig.ts | 102 +
.../shared/multisig/utils/pendingMultisig.ts | 116 +
.../src/shared/multisig/utils/selectors.ts | 18 +
.../extension/src/shared/network/defaults.ts | 29 +-
.../extension/src/shared/network/index.ts | 21 +-
.../extension/src/shared/network/provider.ts | 9 +
.../extension/src/shared/network/schema.ts | 123 +-
.../shared/network/service/implementation.ts | 11 +
.../src/shared/network/service/interface.ts | 5 +
.../extension/src/shared/network/storage.ts | 11 +-
packages/extension/src/shared/network/type.ts | 26 +-
.../extension/src/shared/network/utils.ts | 56 +-
.../src/shared/network/view/index.ts | 4 +
.../extension/src/shared/preAuthorizations.ts | 5 +-
.../extension/src/shared/schemas/address.ts | 26 +
packages/extension/src/shared/schemas/hex.ts | 17 +
.../src/shared/schemas/seedphrase.ts | 7 +
.../extension/src/shared/shield/jwtFetcher.ts | 2 +-
.../__test__/inmemoryImplementations.test.ts | 91 +
.../__new/__test__/inmemoryImplementations.ts | 147 +
.../storage/__new/__test__/keyvalue.test.ts | 61 +
.../__test__/mockFunctionImplementation.ts | 18 +
.../src/shared/storage/__new/interface.ts | 106 +
.../src/shared/storage/__new/keyvalue.ts | 64 +
.../src/shared/storage/__new/object.ts | 23 +
.../storage/__new/repositories/network.ts | 4 +
.../src/shared/storage/__new/repository.ts | 37 +
.../shared/storage/__test__/keyvalue.test.ts | 2 +-
.../extension/src/shared/storage/hooks.ts | 15 +-
.../extension/src/shared/storage/keyvalue.ts | 10 +
.../src/shared/transactionReview.service.ts | 2 +-
packages/extension/src/shared/transactions.ts | 40 +-
.../extension/src/shared/types/deepPick.ts | 43 +
.../src/shared/utils/accountsMultisigSort.ts | 25 +
packages/extension/src/shared/utils/encode.ts | 3 +
.../src/shared/utils/starknetNetwork.ts | 70 +
packages/extension/src/shared/wallet.model.ts | 101 +-
.../extension/src/shared/wallet.service.ts | 8 +
.../src/shared/wallet/storeMigration.ts | 8 +-
.../src/shared/wallet/walletStore.ts | 11 +-
packages/extension/src/ui/App.tsx | 4 +-
packages/extension/src/ui/AppRoutes.tsx | 157 +-
packages/extension/src/ui/app.state.ts | 4 +-
.../extension/src/ui/components/Column.tsx | 4 +-
.../src/ui/components/ControlledInput.tsx | 38 +
.../src/ui/components/CustomButtonCell.tsx | 5 +-
.../extension/src/ui/components/Fields.tsx | 38 -
.../src/ui/components/FullScreenPage.tsx | 83 +-
.../extension/src/ui/components/IOSSwitch.tsx | 2 +-
.../ui/components/PrivacyStatementLink.tsx | 18 -
packages/extension/src/ui/components/Row.tsx | 4 +-
.../src/ui/components/StatusIndicator.tsx | 36 +-
.../utils/isAllowedAddressHexInputValue.tsx | 2 +-
.../accountActivity/AccountActivity.tsx | 3 +-
.../AccountActivityContainer.tsx | 22 +-
.../PendingMultisigTransactions.tsx | 168 +
.../accountActivity/TransactionDetail.tsx | 6 +-
.../TransactionDetailScreen.tsx | 11 +-
.../accountActivity/TransactionListItem.tsx | 79 +-
.../__test__/transformTransaction.test.ts | 10 +-
.../transaction/transformTransaction.ts | 4 +
.../changeMultisigThresholdTransformer.ts | 22 +
.../transformers/changeMultisigTransformer.ts | 27 +
.../transformers/guardianTransformer.ts | 4 +-
.../pendingMultisigTransactionAdapter.ts | 19 +
.../accountActivity/transform/type.ts | 17 +
.../accountActivity/ui/LoadMoreTrigger.tsx | 6 +-
.../features/accountActivity/ui/NFTImage.tsx | 6 +-
.../ui/SwapTransactionIcon.tsx | 7 +-
.../accountActivity/ui/TransactionIcon.tsx | 20 +-
.../features/accountActivity/useActivity.ts | 3 +
.../accountEdit/AccountEditButtons.tsx | 153 +
.../AccountEditButtonsMultisig.tsx | 74 +
.../features/accountEdit/AccountEditName.tsx | 12 +-
.../accountEdit/AccountEditScreen.tsx | 178 +-
.../AccountImplementationScreen.tsx | 27 +-
.../accountNfts/AccountCollections.tsx | 3 +-
.../features/accountNfts/CollectionNfts.tsx | 136 +-
.../features/accountNfts/NftModelViewer.tsx | 2 +-
.../src/ui/features/accountNfts/NftScreen.tsx | 5 +-
.../ui/features/accountNfts/SendNftScreen.tsx | 84 +-
.../ui/features/accountNfts/aspect.model.ts | 11 +
.../ui/features/accountNfts/aspect.service.ts | 27 +-
.../ui/features/accountNfts/useCollections.ts | 50 +-
.../ui/features/accountPlugins.tsx/Plugin.tsx | 2 +-
.../accountPlugins.tsx/PluginAccount.ts | 2 +-
.../features/accountTokens/AccountTokens.tsx | 158 +-
.../accountTokens/AccountTokensButtons.tsx | 92 +-
.../accountTokens/AccountTokensHeader.tsx | 22 +-
.../accountTokens/ActivateMultisigBanner.tsx | 22 +
.../accountTokens/ExportPrivateKeyScreen.tsx | 2 +-
.../accountTokens/SendTokenScreen.tsx | 33 +-
.../ui/features/accountTokens/TokenIcon.tsx | 8 +-
.../ui/features/accountTokens/TokenList.tsx | 6 +
.../features/accountTokens/TokenListItem.tsx | 8 +-
.../ui/features/accountTokens/TokenMenu.tsx | 2 +-
.../accountTokens/TokenMenuDeprecated.tsx | 10 +-
.../accountTokens/dappland/banner.state.ts | 4 +-
.../features/accountTokens/tokenPriceHooks.ts | 2 +-
.../features/accountTokens/tokens.service.ts | 3 +-
.../features/accountTokens/usePrivateKey.ts | 5 +-
.../accountTokens/useTransactionStatus.ts | 12 +-
.../src/ui/features/accounts/Account.ts | 35 +-
.../ui/features/accounts/AccountAvatar.tsx | 40 +
.../ui/features/accounts/AccountContainer.tsx | 146 +-
.../src/ui/features/accounts/AccountLabel.tsx | 41 +
.../accounts/AccountListHiddenScreen.test.tsx | 50 +
.../accounts/AccountListHiddenScreen.tsx | 64 +-
.../AccountListHiddenScreenContainer.tsx | 66 +
.../accounts/AccountListHiddenScreenItem.tsx | 31 -
.../ui/features/accounts/AccountListItem.tsx | 147 +-
.../accounts/AccountListItemShieldBadge.tsx | 52 +
.../AccountListItemShieldBadgeContainer.tsx | 19 +
.../accounts/AccountListItemUpgradeBadge.tsx | 23 +
.../features/accounts/AccountListScreen.tsx | 205 +-
.../accounts/AccountListScreenContainer.tsx | 129 +
.../accounts/AccountListScreenItem.test.tsx | 64 +
.../accounts/AccountListScreenItem.tsx | 183 +-
.../AccountListScreenItemAccessory.tsx | 15 +
.../AccountListScreenItemContainer.tsx | 78 +
.../accounts/AccountNavigationBar.test.tsx | 34 +
.../accounts/AccountNavigationBar.tsx | 62 +-
.../AccountNavigationBarContainer.tsx | 56 +
.../ui/features/accounts/AccountScreen.tsx | 12 +-
.../accounts/AccountScreenEmpty.test.tsx | 24 +
.../features/accounts/AccountScreenEmpty.tsx | 54 +-
.../accounts/AccountScreenEmptyContainer.tsx | 47 +
.../ui/features/accounts/AccountSelect.tsx | 222 +-
.../accounts/AddNewAccountScreen.test.tsx | 46 +
.../features/accounts/AddNewAccountScreen.tsx | 173 +-
.../accounts/AddNewAccountScreenContainer.tsx | 121 +
.../accounts/AddressBookMenu.test.tsx | 93 +
.../ui/features/accounts/AddressBookMenu.tsx | 215 +-
.../ui/features/accounts/DeployAccount.tsx | 144 -
.../accounts/DeployAccountScreen.test.tsx | 27 +
.../features/accounts/DeployAccountScreen.tsx | 41 +
.../accounts/DeployAccountScreenContainer.tsx | 30 +
.../accounts/DeprecatedAccountScreen.tsx | 58 -
.../features/accounts/GroupedAccountList.tsx | 78 +
.../features/accounts/HiddenAccountsBar.tsx | 37 +-
.../accounts/HiddenAccountsBarContainer.tsx | 38 +
.../HideOrDeleteAccountConfirmScreen.test.tsx | 28 +
.../HideOrDeleteAccountConfirmScreen.tsx | 134 +-
...eOrDeleteAccountConfirmScreenContainer.tsx | 67 +
.../MigrationDisclaimerScreen.test.tsx | 16 +
.../accounts/MigrationDisclaimerScreen.tsx | 41 +
.../MigrationDisclaimerScreenContainer.tsx | 32 +
.../accounts/PrettyAccountAddress.tsx | 44 +-
.../ui/features/accounts/ProfilePicture.tsx | 32 -
.../ui/features/accounts/SectionHeader.tsx | 8 -
.../features/accounts/UpgradeScreen.test.tsx | 22 +
.../ui/features/accounts/UpgradeScreen.tsx | 75 +-
.../accounts/UpgradeScreenContainer.tsx | 32 +
.../accounts/UpgradeScreenV4.test.tsx | 68 +
.../ui/features/accounts/UpgradeScreenV4.tsx | 309 +-
.../accounts/UpgradeScreenV4Container.tsx | 104 +
.../ui/features/accounts/WarningScreen.tsx | 81 +
.../accounts/accountMetadata.state.ts | 142 +-
.../features/accounts/accountMetadata.test.ts | 116 +
.../accounts/accountTransactions.state.ts | 20 +
.../ui/features/accounts/accounts.service.ts | 17 +-
.../ui/features/accounts/accounts.state.ts | 101 +-
.../src/ui/features/accounts/switchAccount.ts | 27 +-
.../accounts/ui/StarknetAccountMessage.tsx | 83 +
.../ui/features/accounts/upgrade.service.ts | 87 +-
.../src/ui/features/accounts/useAddAccount.ts | 36 -
.../src/ui/features/accounts/usePublicKey.ts | 76 +
.../ui/features/actions/AccountAddress.tsx | 8 +-
.../src/ui/features/actions/ActionScreen.tsx | 361 +-
.../ui/features/actions/AddNetworkScreen.tsx | 139 -
.../AddNetworkScreen.test.tsx | 69 +
.../AddNetworkScreen/AddNetworkScreen.tsx | 115 +
.../AddNetworkScreenContainer.tsx | 47 +
.../actions/AddTokenActionScreenContainer.tsx | 23 +
.../ui/features/actions/AddTokenScreen.tsx | 168 +-
.../actions/AddTokenScreenContainer.tsx | 176 +
.../actions/ApproveDeclareContractScreen.tsx | 63 -
.../features/actions/ApproveDeployAccount.tsx | 36 +-
.../actions/ApproveDeployContractScreen.tsx | 63 -
.../actions/ApproveSignatureScreen.tsx | 74 +-
.../ApproveSignatureScreenContainer.tsx | 62 +
.../DeclareContractActionScreenContainer.tsx | 75 +
.../DeployAccountActionScreenContainer.tsx | 69 +
.../DeployContractActionScreenContainer.tsx | 75 +
.../DeployMultisigActionScreenContainer.tsx | 68 +
.../actions/DeprecatedConfirmScreen.tsx | 25 +-
.../src/ui/features/actions/ErrorScreen.tsx | 48 +-
.../features/actions/ErrorScreenContainer.tsx | 17 +
.../src/ui/features/actions/LoadingScreen.tsx | 48 +-
.../actions/LoadingScreenContainer.tsx | 14 +
.../actions/SignActionScreenContainer.tsx | 44 +
.../TransactionActionScreenContainer.tsx | 75 +
.../ConnectDappAccountListItem.tsx | 36 -
.../connectDapp/ConnectDappAccountSelect.tsx | 86 +
.../actions/connectDapp/ConnectDappScreen.tsx | 273 +-
.../ConnectDappScreenContainer.tsx | 86 +
.../features/actions/connectDapp/DappIcon.tsx | 37 +-
.../AccountDeploymentFeeEstimation.tsx | 43 -
.../feeEstimation/CombinedFeeEstimation.tsx | 95 +-
.../CombinedFeeEstimationContainer.tsx | 96 +
.../DeclareContractFeeEstimation.tsx | 41 -
.../DeclareDeploy/Estimation.tsx | 230 -
.../DeclareDeploy/NetworkFee.tsx | 46 -
.../DeclareDeploy/TokenAmounts.tsx | 99 -
.../useEstimationAccountFees.tsx | 21 -
.../DeployAccountFeeEstimation.tsx | 84 +
.../DeployContractFeeEstimation.tsx | 33 -
.../actions/feeEstimation/FeeEstimation.tsx | 77 +-
.../feeEstimation/FeeEstimationContainer.tsx | 68 +
.../features/actions/feeEstimation/styled.tsx | 83 -
.../features/actions/feeEstimation/types.ts | 10 +
.../features/actions/hooks/useActionScreen.ts | 70 +
.../transaction/ApproveDeployMultisig.tsx | 73 +
.../ApproveTransactionScreen.tsx | 194 +
.../ApproveTransactionScreenContainer.tsx | 141 +
.../BalanceChangeOverview/NftDetails.tsx | 54 +-
.../BalanceChangeOverview/index.tsx | 6 +-
.../ConfirmScreen.tsx | 154 +-
.../TransactionIcon/ActivateAccountIcon.tsx | 13 +
.../TransactionIcon/ActivateMultisigIcon.tsx | 13 +
.../TransactionIcon/AddArgentShieldIcon.tsx | 13 +
.../TransactionIcon/AddOwnerIcon.tsx | 13 +
.../RemoveArgentShieldIcon.tsx | 13 +
.../TransactionIcon/RemoveOwnerIcon.tsx | 13 +
.../TransactionIcon/UpdateThresholdIcon.tsx | 13 +
.../DappHeader/TransactionIcon/index.test.tsx | 17 +-
.../DappHeader/TransactionIcon/index.tsx | 100 +-
.../DappHeader/TransactionTitle.tsx | 71 +-
.../DappHeader/index.tsx | 16 +-
.../MultisigBanner.tsx | 68 +
.../TransactionActions.tsx | 95 +-
.../TransactionBanner.tsx | 62 +-
.../ApproveTransactionScreen/index.tsx | 254 -
.../transaction/DefaultTransactionDetails.tsx | 82 -
.../ERC20ApproveTransactionDetails.tsx | 51 -
.../ERC20TransferTransactionDetails.tsx | 58 -
.../transaction/TransactionDetails.tsx | 48 -
.../transaction/TransactionsListSwap.tsx | 101 -
.../fields/AccountAddressField.tsx | 4 +-
.../transaction/fields/ContractField.tsx | 4 +-
.../transaction/fields/DappContractField.tsx | 47 +-
.../actions/transaction/fields/FeeField.tsx | 23 +-
.../fields/MaybeDappContractField.tsx | 18 +
.../transaction/fields/ParameterField.tsx | 32 +-
.../actions/transaction/fields/TokenField.tsx | 4 +-
.../ui/features/actions/transaction/types.ts | 42 +
.../useTransactionSimulatedData.ts | 2 +-
.../src/ui/features/actions/utils.ts | 44 +
.../features/funding/FundingBridgeScreen.tsx | 5 +-
.../funding/FundingProviderScreen.tsx | 7 +-
.../features/funding/FundingQrCodeScreen.tsx | 12 +-
.../src/ui/features/funding/FundingScreen.tsx | 5 +-
.../src/ui/features/multisig/AddOwnerForm.tsx | 96 +
.../CreateMultisigStartScreen.tsx | 53 +
.../MultisigFirstStep.test.tsx | 64 +
.../MultisigFirstStep.tsx | 57 +
.../MultisigSecondStep.tsx | 90 +
.../MultisigThirdStep.tsx | 36 +
.../CreateMultisigScreen/ScreenLayout.tsx | 114 +
.../features/multisig/JoinMultisigScreen.tsx | 79 +
.../multisig/JoinMultisigSettingsScreen.tsx | 101 +
.../src/ui/features/multisig/Multisig.ts | 115 +
.../multisig/MultisigAddOwnersScreen.tsx | 88 +
.../ui/features/multisig/MultisigBanner.tsx | 58 +
.../multisig/MultisigConfirmationsScreen.tsx | 183 +
.../features/multisig/MultisigDeleteModal.tsx | 62 +
.../multisig/MultisigListAccounts.tsx | 51 +
.../multisig/MultisigOwnersScreen.tsx | 110 +
...ultisigPendingTransactionDetailsScreen.tsx | 233 +
.../multisig/MultisigPendingTxModal.tsx | 57 +
.../multisig/MultisigRemoveOwnerScreen.tsx | 92 +
.../multisig/MultisigSettingsWrapper.tsx | 31 +
...MultisigTransactionConfirmationsScreen.tsx | 136 +
.../features/multisig/NewMultisigScreen.tsx | 144 +
.../multisig/PendingMultisigListItem.tsx | 94 +
.../PendingMultisigListScreenItem.tsx | 86 +
.../RemoveMultisigSettingScreen.test.tsx | 44 +
.../RemovedMultisigSettingsScreen.tsx | 68 +
...RemovedMultisigSettingsScreenContainer.tsx | 71 +
.../multisig/RemovedMultisigWarningScreen.tsx | 16 +
.../multisig/SetConfirmationsInput.tsx | 78 +
.../multisig/hooks/useCreateMultisigForm.ts | 49 +
.../hooks/useCreatePendingMultisig.ts | 19 +
.../multisig/hooks/useIsMultisigDeploying.ts | 21 +
.../multisig/hooks/useIsSignerInMultisig.ts | 20 +
.../hooks/useMultisigDataforAccount.ts | 58 +
.../multisig/hooks/useUpdateThreshold.ts | 30 +
.../src/ui/features/multisig/multisig.mock.ts | 85 +
.../ui/features/multisig/multisig.state.ts | 180 +
.../multisig/multisigTransactions.state.ts | 60 +
.../ui/features/networks/NetworkSwitcher.tsx | 128 -
.../NetworkSwitcher/NetworkSwitcher.test.tsx | 128 +
.../NetworkSwitcher/NetworkSwitcherButton.tsx | 38 +
.../NetworkSwitcherContainer.tsx | 61 +
.../NetworkSwitcher/NetworkSwitcherList.tsx | 77 +
.../NetworkWarningScreen.test.tsx | 29 +
.../NetworkWarningScreen.tsx | 21 +-
.../NetworkWarningScreenContainer.tsx | 18 +
.../networks/hooks/useCurrentNetwork.ts | 7 +
.../features/networks/hooks/useIsMainnet.ts | 6 +
.../useNeedsToShowNetworkStatusWarning.ts} | 4 +-
.../ui/features/networks/hooks/useNetwork.ts | 13 +
.../ui/features/networks/hooks/useNetworks.ts | 8 +
.../useShouldShowNetworkUpgradeMessage.ts} | 6 +-
.../src/ui/features/networks/useNetworks.ts | 59 -
.../onboarding/MigrationDisclaimerScreen.tsx | 81 -
.../OnboardingDisclaimerScreen.test.tsx | 44 +
.../onboarding/OnboardingDisclaimerScreen.tsx | 141 +-
.../OnboardingDisclaimerScreenContainer.tsx | 38 +
.../OnboardingFinishScreen.test.tsx | 78 +
.../onboarding/OnboardingFinishScreen.tsx | 185 +-
.../OnboardingFinishScreenContainer.tsx | 17 +
.../OnboardingPasswordScreen.test.tsx | 88 +
.../onboarding/OnboardingPasswordScreen.tsx | 205 +-
.../OnboardingPasswordScreenContainer.tsx | 76 +
.../OnboardingPrivacyStatementScreen.test.tsx | 42 +
.../OnboardingPrivacyStatementScreen.tsx | 25 +-
...oardingPrivacyStatementScreenContainer.tsx | 9 +
.../onboarding/OnboardingRestoreBackup.tsx | 88 -
.../OnboardingRestoreBackupScreen.test.tsx | 46 +
.../OnboardingRestoreBackupScreen.tsx | 70 +
...OnboardingRestoreBackupScreenContainer.tsx | 41 +
.../onboarding/OnboardingRestorePassword.tsx | 49 -
...boardingRestorePasswordScreenContainer.tsx | 65 +
.../onboarding/OnboardingRestoreSeed.tsx | 101 -
.../OnboardingRestoreSeedScreen.test.tsx | 44 +
.../OnboardingRestoreSeedScreen.tsx | 101 +
.../OnboardingRestoreSeedScreenContainer.tsx | 44 +
.../onboarding/OnboardingStartScreen.test.tsx | 19 +
.../onboarding/OnboardingStartScreen.tsx | 91 +-
.../OnboardingStartScreenContainer.tsx | 31 +
.../onboarding/StickyArgentFooter.tsx | 27 -
.../onboarding/hooks/useOnboardingScreen.ts | 59 +
.../hooks/useOnboardingToastMessage.tsx | 19 +
.../onboarding/ui/OnboardingButton.tsx | 13 +-
.../onboarding/ui/OnboardingCheckbox.tsx | 49 +
.../onboarding/ui/OnboardingRectButton.tsx | 19 +
.../onboarding/ui/OnboardingScreen.tsx | 109 +-
.../onboarding/ui/OnboardingToastMessage.tsx | 31 +
.../ui/features/onboarding/ui/RectButton.tsx | 42 -
.../recovery/BackupDownloadScreen.tsx | 51 -
.../ui/features/recovery/CopySeedPhrase.tsx | 36 +-
.../features/recovery/RecoverySetupScreen.tsx | 34 +-
.../src/ui/features/recovery/SeedPhrase.tsx | 58 +-
.../recovery/SeedRecoveryConfirmScreen.tsx | 6 +-
.../recovery/SeedRecoverySetupScreen.tsx | 9 +-
.../features/recovery/backupDownload.state.ts | 4 +-
.../recovery/{ => hooks}/useCustomNavigate.ts | 4 +-
.../recovery/{ => hooks}/useSeedPhrase.ts | 2 +-
.../ui/features/recovery/recovery.service.ts | 20 +-
.../recovery/seedRecovery.state.test.ts | 113 +
.../features/recovery/seedRecovery.state.ts | 15 +-
.../recovery/ui/CircleIconContainer.tsx | 23 +
.../features/recovery/ui/ComingSoonIcon.tsx | 22 +
.../recovery/ui/CopySeedPhraseButton.tsx | 37 +
.../recovery/ui/LoadingSeedWordBadge.tsx | 31 +
.../features/recovery/ui/SeedPhraseGrid.tsx | 20 +
.../ui/features/recovery/ui/SeedWordBadge.tsx | 25 +
.../recovery/ui/SeedWordBadgeNumber.tsx | 24 +
.../ui/features/recovery/ui/WarningText.tsx | 14 +
.../settings/AddressbookAddOrEditScreen.tsx | 11 +-
.../settings/AddressbookSettingsScreen.tsx | 5 +-
.../DeveloperSettings/ClassHashOption.tsx | 14 +-
.../DeclareSmartContractForm.tsx | 17 +-
.../DeploySmartContractForm.tsx | 16 +-
.../DeploySmartContractParameters.tsx | 2 +-
.../DeveloperSettings/SelectOptionAccount.tsx | 7 +-
.../DeveloperSettings/useFormSelects.tsx | 21 +-
.../settings/ExperimentalSettings.tsx | 15 +-
.../settings/NetworkSettingsFormScreen.tsx | 51 +-
.../settings/NetworkSettingsScreen.tsx | 7 +-
.../features/settings/SeedSettingsScreen.tsx | 2 +-
.../ui/features/settings/SettingsMenuItem.tsx | 6 +-
.../ui/features/settings/SettingsScreen.tsx | 13 +-
.../SmartContractDevelopmentScreen.tsx | 9 +-
.../ui/features/settings/SupportFooter.tsx | 2 +-
.../settings/selectedNetwork.state.ts | 4 +-
.../settings/validateRemoveNetwork.ts | 4 +-
.../shield/ShieldAccountActionScreen.tsx | 2 +-
.../features/shield/ShieldAccountActivate.tsx | 13 +-
.../shield/ShieldAccountDeactivate.tsx | 9 +-
.../shield/ShieldAccountFinishScreen.tsx | 9 +-
.../shield/ShieldAccountStartScreen.tsx | 6 +-
.../features/shield/ShieldBaseOTPScreen.tsx | 106 +-
.../shield/WithArgentShieldVerified.tsx | 20 +-
.../shield/escape/escapeWarningStore.ts | 4 +-
.../shield/escape/useAccountEscape.ts | 33 +-
.../src/ui/features/shield/shield.state.ts | 4 +-
.../ui/features/shield/useAccountGuardian.ts | 9 +-
.../src/ui/features/shield/useRouteAccount.ts | 2 +-
.../stateRestoration/restoration.state.ts | 4 +-
.../extension/src/ui/features/swap/Swap.tsx | 3 +-
.../src/ui/features/swap/ui/OwnedToken.tsx | 6 +-
.../src/ui/features/swap/ui/TokenPrice.tsx | 3 +-
packages/extension/src/ui/hooks/useAction.ts | 39 +
.../src/ui/hooks/useNavigateReturnTo.ts | 33 +
packages/extension/src/ui/routes.ts | 72 +-
.../src/ui/services/account/clientTrpc.ts | 17 +
.../src/ui/services/account/index.ts | 7 +
.../src/ui/services/account/interface.ts | 9 +
.../extension/src/ui/services/addressBook.ts | 10 +-
.../extension/src/ui/services/addresses.ts | 22 +-
.../extension/src/ui/services/analytics.ts | 6 +-
.../src/ui/services/backgroundAccounts.ts | 121 +-
.../src/ui/services/backgroundMultisigs.ts | 108 +
.../src/ui/services/backgroundNetworks.ts | 7 -
.../src/ui/services/backgroundRecovery.ts | 44 -
.../src/ui/services/backgroundTransactions.ts | 9 -
.../src/ui/services/extension/clientLegacy.ts | 41 +
.../src/ui/services/extension/index.ts | 14 +
.../src/ui/services/extension/interface.ts | 3 +
.../src/ui/services/messaging/trpc.ts | 10 +
.../ui/services/recovery/implementation.ts | 18 +
.../src/ui/services/recovery/index.ts | 3 +
.../src/ui/services/recovery/interface.ts | 4 +
packages/extension/src/ui/test/utils.tsx | 36 +
packages/extension/src/ui/useEntryRoute.tsx | 8 +
packages/extension/src/ui/views/account.ts | 88 +
packages/extension/src/ui/views/defaults.ts | 3 +
.../ui/views/implementation/atomFromRepo.ts | 34 +
.../ui/views/implementation/atomFromStore.ts | 36 +
.../src/ui/views/implementation/react.ts | 3 +
.../extension/test/__mocks__/Svg.mock.tsx | 3 +
packages/extension/test/account.mock.ts | 74 +
packages/extension/test/backup.mock.json | 1 +
packages/extension/test/keyDerivation.test.ts | 1 -
packages/extension/test/networkSchema.test.ts | 34 +-
packages/extension/test/setup.ts | 7 +-
packages/extension/test/wallet.test.ts | 62 +-
packages/extension/test/walletAccount.mock.ts | 38 +
packages/extension/tsconfig.json | 4 +-
packages/extension/vite.config.ts | 17 +
packages/extension/webpack.config.js | 50 +-
packages/get-starknet/.eslintrc.json | 28 +
packages/get-starknet/.gitignore | 24 +
packages/get-starknet/CHANGELOG.md | 9 +
packages/get-starknet/README.md | 22 -
packages/get-starknet/package.json | 64 +-
packages/get-starknet/postcss.config.cjs | 8 +
packages/get-starknet/rollup.config.mjs | 31 -
packages/get-starknet/src/index.ts | 55 -
packages/get-starknet/src/main.ts | 153 +
packages/get-starknet/src/modal/Modal.svelte | 600 +
packages/get-starknet/src/modal/index.ts | 86 +
packages/get-starknet/src/vite-env.d.ts | 2 +
packages/get-starknet/svelte.config.js | 11 +
packages/get-starknet/tailwind.config.cjs | 14 +
packages/get-starknet/tsconfig.json | 25 +-
packages/get-starknet/vite.config.ts | 26 +
packages/guardian/package.json | 6 +-
.../guardian/src/services/CosignerTypes.ts | 15 +-
.../guardian/src/services/GuardianSigner.ts | 2 +-
packages/multicall/package.json | 9 +-
packages/sessions/package.json | 9 +-
packages/sessions/src/account.ts | 2 +-
packages/shared/.eslintrc.json | 28 +
packages/shared/package.json | 44 +
packages/shared/src/assets/tokens.json | 106 +
packages/shared/src/cache/ICacheService.ts | 4 +
packages/shared/src/cache/browserCache.ts | 67 +
packages/shared/src/cache/index.ts | 2 +
packages/shared/src/http/DateService.ts | 40 +
packages/shared/src/http/HttpService.ts | 92 +
packages/shared/src/http/IDateService.ts | 3 +
packages/shared/src/http/IHttpService.ts | 21 +
packages/shared/src/http/SwrService.ts | 120 +
packages/shared/src/http/apiData.ts | 4 +
packages/shared/src/http/fetcher.ts | 86 +
packages/shared/src/http/index.ts | 9 +
packages/shared/src/http/swr.ts | 50 +
packages/shared/src/http/time.ts | 31 +
packages/shared/src/index.ts | 6 +
packages/shared/src/nfts/aspect.model.ts | 53 +
packages/shared/src/nfts/aspect.ts | 183 +
packages/shared/src/nfts/index.ts | 4 +
packages/shared/src/nfts/useNfts.ts | 24 +
packages/shared/src/nfts/utils.ts | 34 +
packages/shared/src/tokens/balances.ts | 70 +
packages/shared/src/tokens/index.ts | 4 +
packages/shared/src/tokens/price.ts | 300 +
packages/shared/src/tokens/token.ts | 12 +
packages/shared/src/tokens/tokenPriceHooks.ts | 68 +
.../transactions/aggregatedSimDataTypes.ts | 67 +
.../src/transactions/buildTransactions.ts | 56 +
.../transactions/findTransfersAndApprovals.ts | 56 +
packages/shared/src/transactions/index.ts | 11 +
.../transactions/transactionReviewTypes.ts | 139 +
.../transactionSimulationTypes.ts | 43 +
.../src/transactions/useAggregatedSimData.ts | 360 +
.../src/transactions/useBalanceChange.ts | 19 +
.../src/transactions/useErc721Transfers.ts | 25 +
.../transactions/useMaxAmountTransaction.ts | 31 +
.../src/transactions/useTransactionReview.ts | 153 +
.../transactions/useTransactionSimulation.ts | 168 +
packages/shared/src/utils/addresses.ts | 82 +
packages/shared/src/utils/avatarImage.ts | 90 +
packages/shared/src/utils/index.ts | 6 +
.../shared/src/utils/isContractDeployed.ts | 13 +
packages/shared/src/utils/number.ts | 102 +
packages/shared/src/utils/parseAmount.ts | 20 +
packages/shared/src/utils/transactions.ts | 9 +
packages/shared/tsconfig.json | 20 +
packages/shared/vite.config.ts | 37 +
packages/stack-router/.eslintrc.js | 3 +
.../stack-router/example/src/screens/Tabs.tsx | 9 +-
packages/stack-router/package.json | 14 +-
.../stack-router/src/StackRoutesConfig.tsx | 5 +-
packages/stack-router/src/StackScreen.tsx | 6 +-
.../stack-router/src/StackScreenContainer.tsx | 20 +-
packages/stack-router/tsconfig.json | 2 +-
.../.eslintrc.json | 28 +
.../.gitignore | 24 +
.../Readme.md | 72 +
.../package.json | 52 +
.../src/main.ts | 204 +
.../src/vite-env.d.ts | 1 +
.../tsconfig.json | 22 +
.../vite.config.ts | 24 +
packages/storybook/.babelrc.json | 16 +
packages/storybook/.storybook/decorators.tsx | 51 -
packages/storybook/.storybook/globalTypes.ts | 4 +-
packages/storybook/.storybook/main.ts | 6 +-
packages/storybook/.storybook/polyfill.ts | 17 +
packages/storybook/.storybook/preview.ts | 7 +-
packages/storybook/package.json | 37 +-
.../src/decorators/globalDecorators.tsx | 63 +
.../src/decorators/routerDecorators.tsx | 10 +
.../accountTokens/TokenListItem.stories.tsx | 158 +-
.../accounts/AccountActivity.stories.tsx | 29 +-
.../AccountListHiddenScreen.stories.tsx | 31 +
.../accounts/AccountListItem.stories.tsx | 118 +-
.../accounts/AccountListScreen.stories.tsx | 86 +
.../AccountListScreenItem.stories.tsx | 36 +
.../accounts/AccountNavigationBar.stories.tsx | 44 +
.../accounts/AccountScreenEmpty.stories.tsx | 24 +
.../accounts/AccountSelect.stories.tsx | 33 +-
.../accounts/AddNewAccountScreen.stories.tsx | 44 +
.../accounts/AddressBookMenu.stories.tsx | 74 +
.../accounts/DeployAccountScreen.stories.tsx | 15 +
...deOrDeleteAccountConfirmScreen.stories.tsx | 28 +
.../MigrationDisclaimerScreen.stories.tsx | 12 +
.../accounts/PendingTransactions.stories.tsx | 25 +-
...TransactionCallDataBottomSheet.stories.tsx | 19 +-
.../TransactionDetailExplorer.stories.tsx | 336 +-
.../accounts/TransactionDetailRaw.stories.tsx | 177 +-
.../accounts/TransactionDetailWrapped.tsx | 4 +-
.../accounts/TransactionListItem.stories.tsx | 305 +-
.../accounts/UpgradeScreen.stories.tsx | 15 +
.../accounts/UpgradeScreenV4.stories.tsx | 55 +
.../accounts/WarningScreen.stories.tsx | 19 +
.../actions/AddTokenScreen.stories.tsx | 43 +
.../ApproveSignatureScreen.stories.tsx | 50 +
.../actions/ApproveTransaction.stories.tsx | 80 -
.../ApproveTransactionScreen.stories.tsx | 71 +
.../actions/ConfirmScreen.stories.tsx | 55 +-
.../actions/ConnectDappScreen.stories.tsx | 27 +
.../features/actions/ErrorScreen.stories.tsx | 18 +
.../actions/LoadingScreen.stories.tsx | 18 +
.../actions/UpgradeScreenV4.stories.tsx | 26 -
.../features/actions/__fixtures__/accounts.ts | 49 +
.../features/actions/__fixtures__/aspect.json | 166 -
.../features/actions/__fixtures__/aspect.ts | 182 +
.../actions/__fixtures__/jediswap.json | 255 -
.../features/actions/__fixtures__/jediswap.ts | 279 +
.../actions/__fixtures__/transfer.json | 89 -
.../features/actions/__fixtures__/transfer.ts | 98 +
.../CombinedFeeEstimation.stories.tsx | 43 +-
.../transaction/FeeEstimation.stories.tsx | 43 +-
.../transaction/FeeEstimationText.stories.tsx | 79 +-
.../transaction/TokenField.stories.tsx | 73 +-
.../TransactionActions.stories.tsx | 22 +-
.../transaction/TransactionBanner.stories.tsx | 37 +-
.../VerifiedDappBanner.stories.tsx | 15 +-
.../src/features/lock/LockScreen.stories.tsx | 22 +-
.../networks/NetworkWarningScreen.stories.tsx | 24 +-
.../OnboardingDisclaimerScreen.stories.tsx | 17 +-
.../OnboardingFinishScreen.stories.tsx | 17 +-
.../OnboardingPasswordScreen.stories.tsx | 17 +-
.../OnboardingPrivacyScreen.stories.tsx | 26 -
...boardingPrivacyStatementScreen.stories.tsx | 15 +
.../OnboardingRestoreBackup.stories.tsx | 21 +-
.../OnboardingRestorePassword.stories.tsx | 22 -
.../OnboardingRestoreSeed.stories.tsx | 22 -
.../OnboardingRestoreSeedScreen.stories.tsx | 15 +
.../onboarding/OnboardingScreen.stories.tsx | 24 +
.../OnboardingStartScreen.stories.tsx | 17 +-
.../OnboardingToastMessage.stories.tsx | 14 +
.../recovery/RecoverySetupScreen.stories.tsx | 22 +-
.../DappConnectionsSettings.stories.tsx | 35 +-
.../settings/SettingsScreen.stories.tsx | 22 +-
.../shield/EscapeGuardian.stories.tsx | 56 +-
.../shield/EscapeGuardianReady.stories.tsx | 31 +-
.../features/shield/EscapeSigner.stories.tsx | 56 +-
.../shield/ShieldAccountActivate.stories.tsx | 22 +-
.../ShieldAccountDeactivate.stories.tsx | 22 +-
.../shield/ShieldBaseActionScreen.stories.tsx | 29 +-
.../shield/ShieldBaseEmailScreen.stories.tsx | 31 +-
.../shield/ShieldBaseFinishScreen.stories.tsx | 51 +-
.../shield/ShieldBaseOTPScreen.stories.tsx | 25 +-
.../ShieldValidationErrorScreen.stories.tsx | 45 +-
.../StatusMessageBanner.stories.tsx | 40 +-
.../StatusMessageFullScreen.stories.tsx | 43 +-
.../ReviewFeedbackScreen.stories.tsx | 19 +-
.../userReview/ReviewRatingScreen.stories.tsx | 19 +-
.../storybook/src/theme/Colors.stories.mdx | 4 +-
.../components => theme}/Icons.stories.tsx | 17 +-
.../components => theme}/Logos.stories.tsx | 17 +-
.../src/theme/Typography.stories.tsx | 15 +-
.../src/ui/components/Accordion.stories.tsx | 30 +-
.../src/ui/components/Alert.stories.tsx | 34 +-
.../src/ui/components/AlertButton.stories.tsx | 37 +-
.../src/ui/components/AlertDialog.stories.tsx | 89 +-
.../AlertDialogDeprecated.stories.tsx | 59 -
.../src/ui/components/Button.stories.tsx | 112 +-
.../components/ButtonDeprecated.stories.tsx | 114 +-
.../src/ui/components/CellStack.stories.tsx | 17 +-
.../ui/components/CopyIconButton.stories.tsx | 24 +-
.../src/ui/components/CopyTooltip.stories.tsx | 22 +-
.../components/DappContractField.stories.tsx | 43 +-
.../src/ui/components/DappIcon.stories.tsx | 45 +-
.../ui/components/DapplandBanner.stories.tsx | 23 +-
.../ui/components/DetailAccordion.stories.tsx | 5 +-
.../src/ui/components/Empty.stories.tsx | 25 +-
.../ui/components/ErrorBoundary.stories.tsx | 26 +-
.../ui/components/IconsDeprecated.stories.tsx | 74 -
.../src/ui/components/Input.stories.tsx | 57 +-
.../src/ui/components/InputText.stories.tsx | 42 +-
.../ui/components/InputTextArea.stories.tsx | 38 +-
.../src/ui/components/List.stories.tsx | 2 +-
.../src/ui/components/Menu.stories.tsx | 19 +-
.../NavigationContainer.stories.tsx | 25 +-
.../src/ui/components/Option.stories.tsx | 78 +-
.../ui/components/PinInputField.stories.tsx | 101 +-
.../PrettyAccountAddress.stories.tsx | 51 +-
.../src/ui/components/TextArea.stories.tsx | 43 +-
.../components/TextAreaDeprecated.stories.tsx | 26 +-
packages/swap/.eslintrc.js | 3 +
packages/swap/package.json | 8 +-
packages/swap/src/lib/hooks/Trade.ts | 4 +-
packages/swap/src/lib/state/swap.ts | 2 +-
packages/swap/src/lib/state/user.ts | 2 +-
packages/swap/src/tokenlist/types.ts | 12 +-
packages/swap/tsconfig.json | 2 +-
packages/ui/.eslintrc.js | 4 +
packages/ui/package.json | 33 +-
packages/ui/scripts/generate-icons.ts | 8 +-
packages/ui/src/components/ActivityRow.tsx | 55 +
packages/ui/src/components/Alert.tsx | 15 +
packages/ui/src/components/AlertDialog.tsx | 56 +-
packages/ui/src/components/CellStack.tsx | 21 +-
.../components/PasswordStrengthIndicator.tsx | 134 +
packages/ui/src/components/PinInput.tsx | 9 +-
packages/ui/src/components/PreBox.tsx | 37 +
packages/ui/src/components/Progress.tsx | 17 +
packages/ui/src/components/RoundButton.tsx | 17 +
packages/ui/src/components/SplitProgress.tsx | 30 +
packages/ui/src/components/StickyGroup.tsx | 15 +
packages/ui/src/components/TabBar.tsx | 18 +-
.../src/components/TextWithAmount/index.tsx | 6 +-
packages/ui/src/components/TokenButton.tsx | 55 +-
packages/ui/src/components/TokenIcon.tsx | 38 +
packages/ui/src/components/Tooltip.tsx | 42 +-
.../components/fees/CombinedFeeEstimation.tsx | 213 +
.../src/components/fees/FeeEstimateError.tsx | 90 +
.../ui/src/components/fees/FeeEstimation.tsx | 178 +
packages/ui/src/components/fees/index.ts | 3 +
packages/ui/src/components/fees/types.ts | 23 +
packages/ui/src/components/fees/utils.tsx | 114 +
.../ui/src/components/icons/AddCircleIcon.tsx | 18 +
.../ui/src/components/icons/AddressIcon.tsx | 20 +
.../ui/src/components/icons/AlertFillIcon.tsx | 18 +
packages/ui/src/components/icons/BinIcon.tsx | 24 +
.../ui/src/components/icons/InfoFillIcon.tsx | 18 +
packages/ui/src/components/icons/QrIcon.tsx | 30 +
packages/ui/src/components/icons/index.ts | 6 +
packages/ui/src/components/index.ts | 21 +-
.../ui/src/components/logos/ArgentLogo.tsx | 26 +
.../ui/src/components/logos/ArgentXLogo.tsx | 2 +-
.../src/components/logos/ArgentXLogoFull.tsx | 4 +-
packages/ui/src/components/logos/Aspect.tsx | 2 +-
packages/ui/src/components/logos/Briq.tsx | 2 +-
packages/ui/src/components/logos/Coinbase.tsx | 4 +-
packages/ui/src/components/logos/Discord.tsx | 2 +-
packages/ui/src/components/logos/Ethereum.tsx | 4 +-
packages/ui/src/components/logos/Github.tsx | 2 +-
.../ui/src/components/logos/Influence.tsx | 4 +-
packages/ui/src/components/logos/Jediswap.tsx | 2 +-
packages/ui/src/components/logos/Ledger.tsx | 2 +-
.../ui/src/components/logos/Mintsquare.tsx | 4 +-
.../src/components/logos/MultisigDiagram.tsx | 47 +
packages/ui/src/components/logos/Starknet.tsx | 12 +-
packages/ui/src/components/logos/Twitter.tsx | 2 +-
packages/ui/src/components/logos/index.ts | 2 +
.../transactions/AccountNetworkInfo.tsx | 71 +
.../transactions/BalanceChangeOverview.tsx | 377 +
.../components/transactions/DappHeader.tsx | 77 +
.../components/transactions/NftDetails.tsx | 151 +
.../transactions/PrettyAccountAddress.tsx | 57 +
.../transactions/TransactionActions.tsx | 151 +
.../transactions/TransactionBanner.tsx | 45 +
.../DeclareTransactionIcon.tsx | 14 +
.../TransactionIcon/IconWrapper.tsx | 22 +
.../TransactionIcon/NftTransactionIcon.tsx | 77 +
.../TransactionIcon/SendTransactionIcon.tsx | 63 +
.../TransactionIcon/SwapTransactionIcon.tsx | 56 +
.../TransactionIcon/UnknownDappIcon.tsx | 10 +
.../TransactionIcon/UnknownTokenIcon.tsx | 12 +
.../TransactionIcon/VerifiedDappIcon.tsx | 9 +
.../transactions/TransactionIcon/index.tsx | 69 +
.../transactions/TransactionTitle.tsx | 132 +
.../transactions/VerifiedDappBanner.tsx | 46 +
.../transactions/VerifiedDappModal.tsx | 84 +
.../ui/src/components/transactions/index.ts | 8 +
packages/ui/src/hooks/index.ts | 1 +
packages/ui/src/hooks/usePasswordStrength.ts | 29 +
packages/ui/src/hooks/useToast.tsx | 3 +-
packages/ui/src/theme/colors.ts | 3 +
packages/ui/src/theme/index.tsx | 2 +
packages/ui/src/theme/shadows.ts | 1 +
packages/ui/src/theme/spacing.ts | 5 +
packages/ui/src/theme/typography.ts | 1 +
packages/ui/tsconfig.json | 8 +-
packages/ui/vite.config.ts | 6 +
packages/web-sdk/.eslintrc.json | 28 +
packages/web-sdk/.gitignore | 24 +
packages/web-sdk/package.json | 52 +
packages/web-sdk/src/main.ts | 86 +
packages/web-sdk/src/vite-env.d.ts | 1 +
packages/web-sdk/src/wormhole.ts | 321 +
packages/web-sdk/tsconfig.json | 22 +
packages/web-sdk/vite.config.ts | 24 +
packages/window/.eslintrc.js | 3 +
packages/window/package.json | 7 +-
packages/window/src/account.ts | 4 +-
packages/window/src/index.ts | 8 +-
.../messages/__tests__/bidirectional.test.ts | 98 -
.../src/messages/exchange/bidirectional.ts | 107 +-
.../window/src/messages/messenger/window.ts | 23 +-
packages/window/src/starknet.ts | 27 +-
packages/window/src/types.ts | 11 +-
packages/window/tsconfig.json | 2 +-
patches/@noble+hashes+1.3.0.patch | 39 +
...net+4.21.0.patch => starknet+4.22.0.patch} | 8 +-
scripts/update-starknet-js.sh | 45 +-
sonar-project.properties | 4 -
yarn.lock | 13254 +++++++---------
899 files changed, 36458 insertions(+), 19273 deletions(-)
create mode 100644 .vscode/extensions.json
rename packages/{extension => }/e2e/.eslintrc.js (100%)
rename packages/{extension => }/e2e/.gitignore (100%)
rename packages/{extension => }/e2e/Dockerfile (100%)
rename packages/{extension/e2e => e2e/extension}/network-setup/Dockerfile (100%)
rename packages/{extension/e2e => e2e/extension}/network-setup/build_and_push.sh (100%)
rename packages/{extension/e2e => e2e/extension}/network-setup/dump.pkl (100%)
rename packages/{extension/e2e => e2e/extension}/src/config.ts (85%)
rename packages/{extension/e2e => e2e/extension}/src/fixtures.ts (100%)
rename packages/{extension/e2e => e2e/extension}/src/languages/ILanguage.ts (98%)
rename packages/{extension/e2e => e2e/extension}/src/languages/en/index.ts (98%)
rename packages/{extension/e2e => e2e/extension}/src/languages/index.ts (99%)
rename packages/{extension/e2e => e2e/extension}/src/page-objects/Account.ts (91%)
rename packages/{extension/e2e => e2e/extension}/src/page-objects/Activity.ts (100%)
rename packages/{extension/e2e => e2e/extension}/src/page-objects/AddressBook.ts (100%)
rename packages/{extension/e2e => e2e/extension}/src/page-objects/DeveloperSettings.ts (100%)
rename packages/{extension/e2e => e2e/extension}/src/page-objects/ExtensionPage.ts (100%)
rename packages/{extension/e2e => e2e/extension}/src/page-objects/Navigation.ts (100%)
rename packages/{extension/e2e => e2e/extension}/src/page-objects/Network.ts (100%)
rename packages/{extension/e2e => e2e/extension}/src/page-objects/Settings.ts (97%)
rename packages/{extension/e2e => e2e/extension}/src/page-objects/Wallet.ts (85%)
rename packages/{extension/e2e => e2e/extension}/src/specs/accountSettings.spec.ts (100%)
rename packages/{extension/e2e => e2e/extension}/src/specs/addressBook.spec.ts (100%)
rename packages/{extension/e2e => e2e/extension}/src/specs/dappsBanner.spec.ts (100%)
rename packages/{extension/e2e => e2e/extension}/src/specs/links.spec.ts (100%)
rename packages/{extension/e2e => e2e/extension}/src/specs/network.spec.ts (98%)
rename packages/{extension/e2e => e2e/extension}/src/specs/receiveFunds.spec.ts (100%)
rename packages/{extension/e2e => e2e/extension}/src/specs/recovery.spec.ts (100%)
create mode 100644 packages/e2e/extension/src/specs/sendFundsMax.spec.ts
rename packages/{extension/e2e/src/specs/sendFunds.spec.ts => e2e/extension/src/specs/sendFundsPartial.spec.ts} (60%)
rename packages/{extension/e2e => e2e/extension}/src/specs/welcome.spec.ts (100%)
rename packages/{extension/e2e => e2e/extension}/src/test.ts (98%)
rename packages/{extension/e2e => e2e/extension}/src/utils/Messages.ts (100%)
create mode 100644 packages/e2e/package.json
rename packages/{extension => e2e}/playwright.config.ts (87%)
rename packages/{extension => }/e2e/tsconfig.json (80%)
create mode 100644 packages/extension/sonar-project.properties
create mode 100644 packages/extension/src/background/__new/middleware/analytics.ts
create mode 100644 packages/extension/src/background/__new/middleware/session.ts
create mode 100644 packages/extension/src/background/__new/procedures/account/create.ts
create mode 100644 packages/extension/src/background/__new/procedures/account/deploy.ts
create mode 100644 packages/extension/src/background/__new/procedures/account/index.ts
create mode 100644 packages/extension/src/background/__new/procedures/account/upgrade.ts
create mode 100644 packages/extension/src/background/__new/procedures/network/add.ts
create mode 100644 packages/extension/src/background/__new/procedures/network/index.ts
create mode 100644 packages/extension/src/background/__new/procedures/permissions.ts
create mode 100644 packages/extension/src/background/__new/procedures/recovery/index.ts
create mode 100644 packages/extension/src/background/__new/procedures/recovery/recoverBackup.ts
create mode 100644 packages/extension/src/background/__new/procedures/recovery/recoverSeedphrase.ts
create mode 100644 packages/extension/src/background/__new/router.ts
create mode 100644 packages/extension/src/background/__new/services/onboarding/implementation.test.ts
create mode 100644 packages/extension/src/background/__new/services/onboarding/implementation.ts
create mode 100644 packages/extension/src/background/__new/services/onboarding/index.ts
create mode 100644 packages/extension/src/background/__new/services/onboarding/interface.ts
create mode 100644 packages/extension/src/background/__new/services/onboarding/worker/implementation.test.ts
create mode 100644 packages/extension/src/background/__new/services/onboarding/worker/implementation.ts
create mode 100644 packages/extension/src/background/__new/trpc.ts
create mode 100644 packages/extension/src/background/multisigDeployAction.ts
create mode 100644 packages/extension/src/background/multisigMessaging.ts
create mode 100644 packages/extension/src/background/network/network.service.ts
rename packages/extension/src/background/{networkStatus.ts => network/networkStatus.worker.ts} (94%)
delete mode 100644 packages/extension/src/background/recoveryMessaging.ts
create mode 100644 packages/extension/src/background/transactions/fees/multisigFeeEstimation.ts
create mode 100644 packages/extension/src/background/transactions/onupdate/multisigUpdates.ts
create mode 100644 packages/extension/src/background/walletSingleton.ts
create mode 100644 packages/extension/src/inpage/trpcClient.ts
create mode 100644 packages/extension/src/shared/__new/services/ui/implementation.test.ts
create mode 100644 packages/extension/src/shared/__new/services/ui/implementation.ts
create mode 100644 packages/extension/src/shared/__new/services/ui/index.ts
create mode 100644 packages/extension/src/shared/__new/services/ui/interface.ts
create mode 100644 packages/extension/src/shared/account/details/updateAccountsWithNames.ts
create mode 100644 packages/extension/src/shared/account/service/implementation.test.ts
create mode 100644 packages/extension/src/shared/account/service/implementation.ts
create mode 100644 packages/extension/src/shared/account/service/index.ts
create mode 100644 packages/extension/src/shared/account/service/interface.ts
delete mode 100644 packages/extension/src/shared/account/store.ts
create mode 100644 packages/extension/src/shared/account/store/index.ts
create mode 100644 packages/extension/src/shared/account/store/serialize.test.ts
rename packages/extension/src/shared/account/{ => store}/serialize.ts (81%)
create mode 100644 packages/extension/src/shared/call/changeMultisigSignersCall.ts
create mode 100644 packages/extension/src/shared/call/setMultisigThresholdCalls.ts
create mode 100644 packages/extension/src/shared/messages/MultisigMessage.ts
delete mode 100644 packages/extension/src/shared/messages/RecoveryMessage.ts
create mode 100644 packages/extension/src/shared/multisig/account.ts
create mode 100644 packages/extension/src/shared/multisig/mocks/executeTransaction.mock.ts
create mode 100644 packages/extension/src/shared/multisig/multisig.model.ts
create mode 100644 packages/extension/src/shared/multisig/multisig.service.ts
create mode 100644 packages/extension/src/shared/multisig/pendingTransactionsStore.ts
create mode 100644 packages/extension/src/shared/multisig/signer.ts
create mode 100644 packages/extension/src/shared/multisig/store.ts
create mode 100644 packages/extension/src/shared/multisig/tracking.ts
create mode 100644 packages/extension/src/shared/multisig/types.ts
create mode 100644 packages/extension/src/shared/multisig/utils/baseMultisig.ts
create mode 100644 packages/extension/src/shared/multisig/utils/pendingMultisig.ts
create mode 100644 packages/extension/src/shared/multisig/utils/selectors.ts
create mode 100644 packages/extension/src/shared/network/service/implementation.ts
create mode 100644 packages/extension/src/shared/network/service/interface.ts
create mode 100644 packages/extension/src/shared/network/view/index.ts
create mode 100644 packages/extension/src/shared/schemas/address.ts
create mode 100644 packages/extension/src/shared/schemas/hex.ts
create mode 100644 packages/extension/src/shared/schemas/seedphrase.ts
create mode 100644 packages/extension/src/shared/storage/__new/__test__/inmemoryImplementations.test.ts
create mode 100644 packages/extension/src/shared/storage/__new/__test__/inmemoryImplementations.ts
create mode 100644 packages/extension/src/shared/storage/__new/__test__/keyvalue.test.ts
create mode 100644 packages/extension/src/shared/storage/__new/__test__/mockFunctionImplementation.ts
create mode 100644 packages/extension/src/shared/storage/__new/interface.ts
create mode 100644 packages/extension/src/shared/storage/__new/keyvalue.ts
create mode 100644 packages/extension/src/shared/storage/__new/object.ts
create mode 100644 packages/extension/src/shared/storage/__new/repositories/network.ts
create mode 100644 packages/extension/src/shared/storage/__new/repository.ts
create mode 100644 packages/extension/src/shared/types/deepPick.ts
create mode 100644 packages/extension/src/shared/utils/accountsMultisigSort.ts
create mode 100644 packages/extension/src/shared/utils/encode.ts
create mode 100644 packages/extension/src/shared/utils/starknetNetwork.ts
create mode 100644 packages/extension/src/ui/components/ControlledInput.tsx
delete mode 100644 packages/extension/src/ui/components/PrivacyStatementLink.tsx
create mode 100644 packages/extension/src/ui/features/accountActivity/PendingMultisigTransactions.tsx
create mode 100644 packages/extension/src/ui/features/accountActivity/transform/transaction/transformers/changeMultisigThresholdTransformer.ts
create mode 100644 packages/extension/src/ui/features/accountActivity/transform/transaction/transformers/changeMultisigTransformer.ts
create mode 100644 packages/extension/src/ui/features/accountActivity/transform/transaction/transformers/pendingMultisigTransactionAdapter.ts
create mode 100644 packages/extension/src/ui/features/accountEdit/AccountEditButtons.tsx
create mode 100644 packages/extension/src/ui/features/accountEdit/AccountEditButtonsMultisig.tsx
create mode 100644 packages/extension/src/ui/features/accountTokens/ActivateMultisigBanner.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountAvatar.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountLabel.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountListHiddenScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountListHiddenScreenContainer.tsx
delete mode 100644 packages/extension/src/ui/features/accounts/AccountListHiddenScreenItem.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountListItemShieldBadge.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountListItemShieldBadgeContainer.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountListItemUpgradeBadge.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountListScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountListScreenItem.test.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountListScreenItemAccessory.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountListScreenItemContainer.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountNavigationBar.test.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountNavigationBarContainer.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountScreenEmpty.test.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AccountScreenEmptyContainer.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AddNewAccountScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AddNewAccountScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/accounts/AddressBookMenu.test.tsx
delete mode 100644 packages/extension/src/ui/features/accounts/DeployAccount.tsx
create mode 100644 packages/extension/src/ui/features/accounts/DeployAccountScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/accounts/DeployAccountScreen.tsx
create mode 100644 packages/extension/src/ui/features/accounts/DeployAccountScreenContainer.tsx
delete mode 100644 packages/extension/src/ui/features/accounts/DeprecatedAccountScreen.tsx
create mode 100644 packages/extension/src/ui/features/accounts/GroupedAccountList.tsx
create mode 100644 packages/extension/src/ui/features/accounts/HiddenAccountsBarContainer.tsx
create mode 100644 packages/extension/src/ui/features/accounts/HideOrDeleteAccountConfirmScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/accounts/HideOrDeleteAccountConfirmScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/accounts/MigrationDisclaimerScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/accounts/MigrationDisclaimerScreen.tsx
create mode 100644 packages/extension/src/ui/features/accounts/MigrationDisclaimerScreenContainer.tsx
delete mode 100644 packages/extension/src/ui/features/accounts/ProfilePicture.tsx
delete mode 100644 packages/extension/src/ui/features/accounts/SectionHeader.tsx
create mode 100644 packages/extension/src/ui/features/accounts/UpgradeScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/accounts/UpgradeScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/accounts/UpgradeScreenV4.test.tsx
create mode 100644 packages/extension/src/ui/features/accounts/UpgradeScreenV4Container.tsx
create mode 100644 packages/extension/src/ui/features/accounts/WarningScreen.tsx
create mode 100644 packages/extension/src/ui/features/accounts/accountMetadata.test.ts
create mode 100644 packages/extension/src/ui/features/accounts/ui/StarknetAccountMessage.tsx
delete mode 100644 packages/extension/src/ui/features/accounts/useAddAccount.ts
create mode 100644 packages/extension/src/ui/features/accounts/usePublicKey.ts
delete mode 100644 packages/extension/src/ui/features/actions/AddNetworkScreen.tsx
create mode 100644 packages/extension/src/ui/features/actions/AddNetworkScreen/AddNetworkScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/actions/AddNetworkScreen/AddNetworkScreen.tsx
create mode 100644 packages/extension/src/ui/features/actions/AddNetworkScreen/AddNetworkScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/actions/AddTokenActionScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/actions/AddTokenScreenContainer.tsx
delete mode 100644 packages/extension/src/ui/features/actions/ApproveDeclareContractScreen.tsx
delete mode 100644 packages/extension/src/ui/features/actions/ApproveDeployContractScreen.tsx
create mode 100644 packages/extension/src/ui/features/actions/ApproveSignatureScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/actions/DeclareContractActionScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/actions/DeployAccountActionScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/actions/DeployContractActionScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/actions/DeployMultisigActionScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/actions/ErrorScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/actions/LoadingScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/actions/SignActionScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/actions/TransactionActionScreenContainer.tsx
delete mode 100644 packages/extension/src/ui/features/actions/connectDapp/ConnectDappAccountListItem.tsx
create mode 100644 packages/extension/src/ui/features/actions/connectDapp/ConnectDappAccountSelect.tsx
create mode 100644 packages/extension/src/ui/features/actions/connectDapp/ConnectDappScreenContainer.tsx
delete mode 100644 packages/extension/src/ui/features/actions/feeEstimation/AccountDeploymentFeeEstimation.tsx
create mode 100644 packages/extension/src/ui/features/actions/feeEstimation/CombinedFeeEstimationContainer.tsx
delete mode 100644 packages/extension/src/ui/features/actions/feeEstimation/DeclareContractFeeEstimation.tsx
delete mode 100644 packages/extension/src/ui/features/actions/feeEstimation/DeclareDeploy/Estimation.tsx
delete mode 100644 packages/extension/src/ui/features/actions/feeEstimation/DeclareDeploy/NetworkFee.tsx
delete mode 100644 packages/extension/src/ui/features/actions/feeEstimation/DeclareDeploy/TokenAmounts.tsx
delete mode 100644 packages/extension/src/ui/features/actions/feeEstimation/DeclareDeploy/useEstimationAccountFees.tsx
create mode 100644 packages/extension/src/ui/features/actions/feeEstimation/DeployAccountFeeEstimation.tsx
delete mode 100644 packages/extension/src/ui/features/actions/feeEstimation/DeployContractFeeEstimation.tsx
create mode 100644 packages/extension/src/ui/features/actions/feeEstimation/FeeEstimationContainer.tsx
delete mode 100644 packages/extension/src/ui/features/actions/feeEstimation/styled.tsx
create mode 100644 packages/extension/src/ui/features/actions/hooks/useActionScreen.ts
create mode 100644 packages/extension/src/ui/features/actions/transaction/ApproveDeployMultisig.tsx
create mode 100644 packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/ApproveTransactionScreen.tsx
create mode 100644 packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/ApproveTransactionScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/DappHeader/TransactionIcon/ActivateAccountIcon.tsx
create mode 100644 packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/DappHeader/TransactionIcon/ActivateMultisigIcon.tsx
create mode 100644 packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/DappHeader/TransactionIcon/AddArgentShieldIcon.tsx
create mode 100644 packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/DappHeader/TransactionIcon/AddOwnerIcon.tsx
create mode 100644 packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/DappHeader/TransactionIcon/RemoveArgentShieldIcon.tsx
create mode 100644 packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/DappHeader/TransactionIcon/RemoveOwnerIcon.tsx
create mode 100644 packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/DappHeader/TransactionIcon/UpdateThresholdIcon.tsx
create mode 100644 packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/MultisigBanner.tsx
delete mode 100644 packages/extension/src/ui/features/actions/transaction/ApproveTransactionScreen/index.tsx
delete mode 100644 packages/extension/src/ui/features/actions/transaction/DefaultTransactionDetails.tsx
delete mode 100644 packages/extension/src/ui/features/actions/transaction/ERC20ApproveTransactionDetails.tsx
delete mode 100644 packages/extension/src/ui/features/actions/transaction/ERC20TransferTransactionDetails.tsx
delete mode 100644 packages/extension/src/ui/features/actions/transaction/TransactionDetails.tsx
delete mode 100644 packages/extension/src/ui/features/actions/transaction/TransactionsListSwap.tsx
create mode 100644 packages/extension/src/ui/features/actions/transaction/fields/MaybeDappContractField.tsx
create mode 100644 packages/extension/src/ui/features/actions/transaction/types.ts
create mode 100644 packages/extension/src/ui/features/actions/utils.ts
create mode 100644 packages/extension/src/ui/features/multisig/AddOwnerForm.tsx
create mode 100644 packages/extension/src/ui/features/multisig/CreateMultisigScreen/CreateMultisigStartScreen.tsx
create mode 100644 packages/extension/src/ui/features/multisig/CreateMultisigScreen/MultisigFirstStep.test.tsx
create mode 100644 packages/extension/src/ui/features/multisig/CreateMultisigScreen/MultisigFirstStep.tsx
create mode 100644 packages/extension/src/ui/features/multisig/CreateMultisigScreen/MultisigSecondStep.tsx
create mode 100644 packages/extension/src/ui/features/multisig/CreateMultisigScreen/MultisigThirdStep.tsx
create mode 100644 packages/extension/src/ui/features/multisig/CreateMultisigScreen/ScreenLayout.tsx
create mode 100644 packages/extension/src/ui/features/multisig/JoinMultisigScreen.tsx
create mode 100644 packages/extension/src/ui/features/multisig/JoinMultisigSettingsScreen.tsx
create mode 100644 packages/extension/src/ui/features/multisig/Multisig.ts
create mode 100644 packages/extension/src/ui/features/multisig/MultisigAddOwnersScreen.tsx
create mode 100644 packages/extension/src/ui/features/multisig/MultisigBanner.tsx
create mode 100644 packages/extension/src/ui/features/multisig/MultisigConfirmationsScreen.tsx
create mode 100644 packages/extension/src/ui/features/multisig/MultisigDeleteModal.tsx
create mode 100644 packages/extension/src/ui/features/multisig/MultisigListAccounts.tsx
create mode 100644 packages/extension/src/ui/features/multisig/MultisigOwnersScreen.tsx
create mode 100644 packages/extension/src/ui/features/multisig/MultisigPendingTransactionDetailsScreen.tsx
create mode 100644 packages/extension/src/ui/features/multisig/MultisigPendingTxModal.tsx
create mode 100644 packages/extension/src/ui/features/multisig/MultisigRemoveOwnerScreen.tsx
create mode 100644 packages/extension/src/ui/features/multisig/MultisigSettingsWrapper.tsx
create mode 100644 packages/extension/src/ui/features/multisig/MultisigTransactionConfirmationsScreen.tsx
create mode 100644 packages/extension/src/ui/features/multisig/NewMultisigScreen.tsx
create mode 100644 packages/extension/src/ui/features/multisig/PendingMultisigListItem.tsx
create mode 100644 packages/extension/src/ui/features/multisig/PendingMultisigListScreenItem.tsx
create mode 100644 packages/extension/src/ui/features/multisig/RemoveMultisigSettingScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/multisig/RemovedMultisigSettingsScreen.tsx
create mode 100644 packages/extension/src/ui/features/multisig/RemovedMultisigSettingsScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/multisig/RemovedMultisigWarningScreen.tsx
create mode 100644 packages/extension/src/ui/features/multisig/SetConfirmationsInput.tsx
create mode 100644 packages/extension/src/ui/features/multisig/hooks/useCreateMultisigForm.ts
create mode 100644 packages/extension/src/ui/features/multisig/hooks/useCreatePendingMultisig.ts
create mode 100644 packages/extension/src/ui/features/multisig/hooks/useIsMultisigDeploying.ts
create mode 100644 packages/extension/src/ui/features/multisig/hooks/useIsSignerInMultisig.ts
create mode 100644 packages/extension/src/ui/features/multisig/hooks/useMultisigDataforAccount.ts
create mode 100644 packages/extension/src/ui/features/multisig/hooks/useUpdateThreshold.ts
create mode 100644 packages/extension/src/ui/features/multisig/multisig.mock.ts
create mode 100644 packages/extension/src/ui/features/multisig/multisig.state.ts
create mode 100644 packages/extension/src/ui/features/multisig/multisigTransactions.state.ts
delete mode 100644 packages/extension/src/ui/features/networks/NetworkSwitcher.tsx
create mode 100644 packages/extension/src/ui/features/networks/NetworkSwitcher/NetworkSwitcher.test.tsx
create mode 100644 packages/extension/src/ui/features/networks/NetworkSwitcher/NetworkSwitcherButton.tsx
create mode 100644 packages/extension/src/ui/features/networks/NetworkSwitcher/NetworkSwitcherContainer.tsx
create mode 100644 packages/extension/src/ui/features/networks/NetworkSwitcher/NetworkSwitcherList.tsx
create mode 100644 packages/extension/src/ui/features/networks/NetworkWarningScreen/NetworkWarningScreen.test.tsx
rename packages/extension/src/ui/features/networks/{ => NetworkWarningScreen}/NetworkWarningScreen.tsx (67%)
create mode 100644 packages/extension/src/ui/features/networks/NetworkWarningScreen/NetworkWarningScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/networks/hooks/useCurrentNetwork.ts
create mode 100644 packages/extension/src/ui/features/networks/hooks/useIsMainnet.ts
rename packages/extension/src/ui/features/networks/{seenNetworkStatusWarning.state.ts => hooks/useNeedsToShowNetworkStatusWarning.ts} (85%)
create mode 100644 packages/extension/src/ui/features/networks/hooks/useNetwork.ts
create mode 100644 packages/extension/src/ui/features/networks/hooks/useNetworks.ts
rename packages/extension/src/ui/features/networks/{showNetworkUpgrade.ts => hooks/useShouldShowNetworkUpgradeMessage.ts} (92%)
delete mode 100644 packages/extension/src/ui/features/networks/useNetworks.ts
delete mode 100644 packages/extension/src/ui/features/onboarding/MigrationDisclaimerScreen.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingDisclaimerScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingDisclaimerScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingFinishScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingFinishScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingPasswordScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingPasswordScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingPrivacyStatementScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingPrivacyStatementScreenContainer.tsx
delete mode 100644 packages/extension/src/ui/features/onboarding/OnboardingRestoreBackup.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingRestoreBackupScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingRestoreBackupScreen.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingRestoreBackupScreenContainer.tsx
delete mode 100644 packages/extension/src/ui/features/onboarding/OnboardingRestorePassword.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingRestorePasswordScreenContainer.tsx
delete mode 100644 packages/extension/src/ui/features/onboarding/OnboardingRestoreSeed.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingRestoreSeedScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingRestoreSeedScreen.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingRestoreSeedScreenContainer.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingStartScreen.test.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/OnboardingStartScreenContainer.tsx
delete mode 100644 packages/extension/src/ui/features/onboarding/StickyArgentFooter.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/hooks/useOnboardingScreen.ts
create mode 100644 packages/extension/src/ui/features/onboarding/hooks/useOnboardingToastMessage.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/ui/OnboardingCheckbox.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/ui/OnboardingRectButton.tsx
create mode 100644 packages/extension/src/ui/features/onboarding/ui/OnboardingToastMessage.tsx
delete mode 100644 packages/extension/src/ui/features/onboarding/ui/RectButton.tsx
delete mode 100644 packages/extension/src/ui/features/recovery/BackupDownloadScreen.tsx
rename packages/extension/src/ui/features/recovery/{ => hooks}/useCustomNavigate.ts (84%)
rename packages/extension/src/ui/features/recovery/{ => hooks}/useSeedPhrase.ts (81%)
create mode 100644 packages/extension/src/ui/features/recovery/seedRecovery.state.test.ts
create mode 100644 packages/extension/src/ui/features/recovery/ui/CircleIconContainer.tsx
create mode 100644 packages/extension/src/ui/features/recovery/ui/ComingSoonIcon.tsx
create mode 100644 packages/extension/src/ui/features/recovery/ui/CopySeedPhraseButton.tsx
create mode 100644 packages/extension/src/ui/features/recovery/ui/LoadingSeedWordBadge.tsx
create mode 100644 packages/extension/src/ui/features/recovery/ui/SeedPhraseGrid.tsx
create mode 100644 packages/extension/src/ui/features/recovery/ui/SeedWordBadge.tsx
create mode 100644 packages/extension/src/ui/features/recovery/ui/SeedWordBadgeNumber.tsx
create mode 100644 packages/extension/src/ui/features/recovery/ui/WarningText.tsx
create mode 100644 packages/extension/src/ui/hooks/useAction.ts
create mode 100644 packages/extension/src/ui/hooks/useNavigateReturnTo.ts
create mode 100644 packages/extension/src/ui/services/account/clientTrpc.ts
create mode 100644 packages/extension/src/ui/services/account/index.ts
create mode 100644 packages/extension/src/ui/services/account/interface.ts
create mode 100644 packages/extension/src/ui/services/backgroundMultisigs.ts
delete mode 100644 packages/extension/src/ui/services/backgroundNetworks.ts
delete mode 100644 packages/extension/src/ui/services/backgroundRecovery.ts
create mode 100644 packages/extension/src/ui/services/extension/clientLegacy.ts
create mode 100644 packages/extension/src/ui/services/extension/index.ts
create mode 100644 packages/extension/src/ui/services/extension/interface.ts
create mode 100644 packages/extension/src/ui/services/messaging/trpc.ts
create mode 100644 packages/extension/src/ui/services/recovery/implementation.ts
create mode 100644 packages/extension/src/ui/services/recovery/index.ts
create mode 100644 packages/extension/src/ui/services/recovery/interface.ts
create mode 100644 packages/extension/src/ui/test/utils.tsx
create mode 100644 packages/extension/src/ui/views/account.ts
create mode 100644 packages/extension/src/ui/views/defaults.ts
create mode 100644 packages/extension/src/ui/views/implementation/atomFromRepo.ts
create mode 100644 packages/extension/src/ui/views/implementation/atomFromStore.ts
create mode 100644 packages/extension/src/ui/views/implementation/react.ts
create mode 100644 packages/extension/test/__mocks__/Svg.mock.tsx
create mode 100644 packages/extension/test/account.mock.ts
create mode 100644 packages/extension/test/walletAccount.mock.ts
create mode 100644 packages/get-starknet/.eslintrc.json
create mode 100644 packages/get-starknet/.gitignore
create mode 100644 packages/get-starknet/CHANGELOG.md
delete mode 100644 packages/get-starknet/README.md
create mode 100644 packages/get-starknet/postcss.config.cjs
delete mode 100644 packages/get-starknet/rollup.config.mjs
delete mode 100644 packages/get-starknet/src/index.ts
create mode 100644 packages/get-starknet/src/main.ts
create mode 100644 packages/get-starknet/src/modal/Modal.svelte
create mode 100644 packages/get-starknet/src/modal/index.ts
create mode 100644 packages/get-starknet/src/vite-env.d.ts
create mode 100644 packages/get-starknet/svelte.config.js
create mode 100644 packages/get-starknet/tailwind.config.cjs
create mode 100644 packages/get-starknet/vite.config.ts
create mode 100644 packages/shared/.eslintrc.json
create mode 100644 packages/shared/package.json
create mode 100644 packages/shared/src/assets/tokens.json
create mode 100644 packages/shared/src/cache/ICacheService.ts
create mode 100644 packages/shared/src/cache/browserCache.ts
create mode 100644 packages/shared/src/cache/index.ts
create mode 100644 packages/shared/src/http/DateService.ts
create mode 100644 packages/shared/src/http/HttpService.ts
create mode 100644 packages/shared/src/http/IDateService.ts
create mode 100644 packages/shared/src/http/IHttpService.ts
create mode 100644 packages/shared/src/http/SwrService.ts
create mode 100644 packages/shared/src/http/apiData.ts
create mode 100644 packages/shared/src/http/fetcher.ts
create mode 100644 packages/shared/src/http/index.ts
create mode 100644 packages/shared/src/http/swr.ts
create mode 100644 packages/shared/src/http/time.ts
create mode 100644 packages/shared/src/index.ts
create mode 100644 packages/shared/src/nfts/aspect.model.ts
create mode 100644 packages/shared/src/nfts/aspect.ts
create mode 100644 packages/shared/src/nfts/index.ts
create mode 100644 packages/shared/src/nfts/useNfts.ts
create mode 100644 packages/shared/src/nfts/utils.ts
create mode 100644 packages/shared/src/tokens/balances.ts
create mode 100644 packages/shared/src/tokens/index.ts
create mode 100644 packages/shared/src/tokens/price.ts
create mode 100644 packages/shared/src/tokens/token.ts
create mode 100644 packages/shared/src/tokens/tokenPriceHooks.ts
create mode 100644 packages/shared/src/transactions/aggregatedSimDataTypes.ts
create mode 100644 packages/shared/src/transactions/buildTransactions.ts
create mode 100644 packages/shared/src/transactions/findTransfersAndApprovals.ts
create mode 100644 packages/shared/src/transactions/index.ts
create mode 100644 packages/shared/src/transactions/transactionReviewTypes.ts
create mode 100644 packages/shared/src/transactions/transactionSimulationTypes.ts
create mode 100644 packages/shared/src/transactions/useAggregatedSimData.ts
create mode 100644 packages/shared/src/transactions/useBalanceChange.ts
create mode 100644 packages/shared/src/transactions/useErc721Transfers.ts
create mode 100644 packages/shared/src/transactions/useMaxAmountTransaction.ts
create mode 100644 packages/shared/src/transactions/useTransactionReview.ts
create mode 100644 packages/shared/src/transactions/useTransactionSimulation.ts
create mode 100644 packages/shared/src/utils/addresses.ts
create mode 100644 packages/shared/src/utils/avatarImage.ts
create mode 100644 packages/shared/src/utils/index.ts
create mode 100644 packages/shared/src/utils/isContractDeployed.ts
create mode 100644 packages/shared/src/utils/number.ts
create mode 100644 packages/shared/src/utils/parseAmount.ts
create mode 100644 packages/shared/src/utils/transactions.ts
create mode 100644 packages/shared/tsconfig.json
create mode 100644 packages/shared/vite.config.ts
create mode 100644 packages/starknet-react-webwallet-connector/.eslintrc.json
create mode 100644 packages/starknet-react-webwallet-connector/.gitignore
create mode 100644 packages/starknet-react-webwallet-connector/Readme.md
create mode 100644 packages/starknet-react-webwallet-connector/package.json
create mode 100644 packages/starknet-react-webwallet-connector/src/main.ts
create mode 100644 packages/starknet-react-webwallet-connector/src/vite-env.d.ts
create mode 100644 packages/starknet-react-webwallet-connector/tsconfig.json
create mode 100644 packages/starknet-react-webwallet-connector/vite.config.ts
create mode 100644 packages/storybook/.babelrc.json
delete mode 100644 packages/storybook/.storybook/decorators.tsx
create mode 100644 packages/storybook/.storybook/polyfill.ts
create mode 100644 packages/storybook/src/decorators/globalDecorators.tsx
create mode 100644 packages/storybook/src/decorators/routerDecorators.tsx
create mode 100644 packages/storybook/src/features/accounts/AccountListHiddenScreen.stories.tsx
create mode 100644 packages/storybook/src/features/accounts/AccountListScreen.stories.tsx
create mode 100644 packages/storybook/src/features/accounts/AccountListScreenItem.stories.tsx
create mode 100644 packages/storybook/src/features/accounts/AccountNavigationBar.stories.tsx
create mode 100644 packages/storybook/src/features/accounts/AccountScreenEmpty.stories.tsx
create mode 100644 packages/storybook/src/features/accounts/AddNewAccountScreen.stories.tsx
create mode 100644 packages/storybook/src/features/accounts/AddressBookMenu.stories.tsx
create mode 100644 packages/storybook/src/features/accounts/DeployAccountScreen.stories.tsx
create mode 100644 packages/storybook/src/features/accounts/HideOrDeleteAccountConfirmScreen.stories.tsx
create mode 100644 packages/storybook/src/features/accounts/MigrationDisclaimerScreen.stories.tsx
create mode 100644 packages/storybook/src/features/accounts/UpgradeScreen.stories.tsx
create mode 100644 packages/storybook/src/features/accounts/UpgradeScreenV4.stories.tsx
create mode 100644 packages/storybook/src/features/accounts/WarningScreen.stories.tsx
create mode 100644 packages/storybook/src/features/actions/AddTokenScreen.stories.tsx
create mode 100644 packages/storybook/src/features/actions/ApproveSignatureScreen.stories.tsx
delete mode 100644 packages/storybook/src/features/actions/ApproveTransaction.stories.tsx
create mode 100644 packages/storybook/src/features/actions/ApproveTransactionScreen.stories.tsx
create mode 100644 packages/storybook/src/features/actions/ConnectDappScreen.stories.tsx
create mode 100644 packages/storybook/src/features/actions/ErrorScreen.stories.tsx
create mode 100644 packages/storybook/src/features/actions/LoadingScreen.stories.tsx
delete mode 100644 packages/storybook/src/features/actions/UpgradeScreenV4.stories.tsx
create mode 100644 packages/storybook/src/features/actions/__fixtures__/accounts.ts
delete mode 100644 packages/storybook/src/features/actions/__fixtures__/aspect.json
create mode 100644 packages/storybook/src/features/actions/__fixtures__/aspect.ts
delete mode 100644 packages/storybook/src/features/actions/__fixtures__/jediswap.json
create mode 100644 packages/storybook/src/features/actions/__fixtures__/jediswap.ts
delete mode 100644 packages/storybook/src/features/actions/__fixtures__/transfer.json
create mode 100644 packages/storybook/src/features/actions/__fixtures__/transfer.ts
delete mode 100644 packages/storybook/src/features/onboarding/OnboardingPrivacyScreen.stories.tsx
create mode 100644 packages/storybook/src/features/onboarding/OnboardingPrivacyStatementScreen.stories.tsx
delete mode 100644 packages/storybook/src/features/onboarding/OnboardingRestorePassword.stories.tsx
delete mode 100644 packages/storybook/src/features/onboarding/OnboardingRestoreSeed.stories.tsx
create mode 100644 packages/storybook/src/features/onboarding/OnboardingRestoreSeedScreen.stories.tsx
create mode 100644 packages/storybook/src/features/onboarding/OnboardingScreen.stories.tsx
create mode 100644 packages/storybook/src/features/onboarding/OnboardingToastMessage.stories.tsx
rename packages/storybook/src/{ui/components => theme}/Icons.stories.tsx (59%)
rename packages/storybook/src/{ui/components => theme}/Logos.stories.tsx (59%)
delete mode 100644 packages/storybook/src/ui/components/AlertDialogDeprecated.stories.tsx
delete mode 100644 packages/storybook/src/ui/components/IconsDeprecated.stories.tsx
create mode 100644 packages/ui/src/components/ActivityRow.tsx
create mode 100644 packages/ui/src/components/PasswordStrengthIndicator.tsx
create mode 100644 packages/ui/src/components/PreBox.tsx
create mode 100644 packages/ui/src/components/Progress.tsx
create mode 100644 packages/ui/src/components/RoundButton.tsx
create mode 100644 packages/ui/src/components/SplitProgress.tsx
create mode 100644 packages/ui/src/components/StickyGroup.tsx
create mode 100644 packages/ui/src/components/TokenIcon.tsx
create mode 100644 packages/ui/src/components/fees/CombinedFeeEstimation.tsx
create mode 100644 packages/ui/src/components/fees/FeeEstimateError.tsx
create mode 100644 packages/ui/src/components/fees/FeeEstimation.tsx
create mode 100644 packages/ui/src/components/fees/index.ts
create mode 100644 packages/ui/src/components/fees/types.ts
create mode 100644 packages/ui/src/components/fees/utils.tsx
create mode 100644 packages/ui/src/components/icons/AddCircleIcon.tsx
create mode 100644 packages/ui/src/components/icons/AddressIcon.tsx
create mode 100644 packages/ui/src/components/icons/AlertFillIcon.tsx
create mode 100644 packages/ui/src/components/icons/BinIcon.tsx
create mode 100644 packages/ui/src/components/icons/InfoFillIcon.tsx
create mode 100644 packages/ui/src/components/icons/QrIcon.tsx
create mode 100644 packages/ui/src/components/logos/ArgentLogo.tsx
create mode 100644 packages/ui/src/components/logos/MultisigDiagram.tsx
create mode 100644 packages/ui/src/components/transactions/AccountNetworkInfo.tsx
create mode 100644 packages/ui/src/components/transactions/BalanceChangeOverview.tsx
create mode 100644 packages/ui/src/components/transactions/DappHeader.tsx
create mode 100644 packages/ui/src/components/transactions/NftDetails.tsx
create mode 100644 packages/ui/src/components/transactions/PrettyAccountAddress.tsx
create mode 100644 packages/ui/src/components/transactions/TransactionActions.tsx
create mode 100644 packages/ui/src/components/transactions/TransactionBanner.tsx
create mode 100644 packages/ui/src/components/transactions/TransactionIcon/DeclareTransactionIcon.tsx
create mode 100644 packages/ui/src/components/transactions/TransactionIcon/IconWrapper.tsx
create mode 100644 packages/ui/src/components/transactions/TransactionIcon/NftTransactionIcon.tsx
create mode 100644 packages/ui/src/components/transactions/TransactionIcon/SendTransactionIcon.tsx
create mode 100644 packages/ui/src/components/transactions/TransactionIcon/SwapTransactionIcon.tsx
create mode 100644 packages/ui/src/components/transactions/TransactionIcon/UnknownDappIcon.tsx
create mode 100644 packages/ui/src/components/transactions/TransactionIcon/UnknownTokenIcon.tsx
create mode 100644 packages/ui/src/components/transactions/TransactionIcon/VerifiedDappIcon.tsx
create mode 100644 packages/ui/src/components/transactions/TransactionIcon/index.tsx
create mode 100644 packages/ui/src/components/transactions/TransactionTitle.tsx
create mode 100644 packages/ui/src/components/transactions/VerifiedDappBanner.tsx
create mode 100644 packages/ui/src/components/transactions/VerifiedDappModal.tsx
create mode 100644 packages/ui/src/components/transactions/index.ts
create mode 100644 packages/ui/src/hooks/usePasswordStrength.ts
create mode 100644 packages/web-sdk/.eslintrc.json
create mode 100644 packages/web-sdk/.gitignore
create mode 100644 packages/web-sdk/package.json
create mode 100644 packages/web-sdk/src/main.ts
create mode 100644 packages/web-sdk/src/vite-env.d.ts
create mode 100644 packages/web-sdk/src/wormhole.ts
create mode 100644 packages/web-sdk/tsconfig.json
create mode 100644 packages/web-sdk/vite.config.ts
delete mode 100644 packages/window/src/messages/__tests__/bidirectional.test.ts
create mode 100644 patches/@noble+hashes+1.3.0.patch
rename patches/{starknet+4.21.0.patch => starknet+4.22.0.patch} (95%)
mode change 100755 => 100644 scripts/update-starknet-js.sh
delete mode 100644 sonar-project.properties
diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml
index 0cc5d53b7..d1a9dc15b 100644
--- a/.github/workflows/pull-request.yml
+++ b/.github/workflows/pull-request.yml
@@ -5,23 +5,31 @@ on:
- develop
pull_request:
+env:
+ FEATURE_PRIVACY_SETTINGS: "true"
+ FEATURE_EXPERIMENTAL_SETTINGS: "true"
+ FEATURE_BANXA: "true"
+ FEATURE_LAYERSWAP: "true"
+ FEATURE_ORBITER: "true"
+ FEATURE_VERIFIED_DAPPS: "true"
+ FEATURE_ARGENT_SHIELD: "true"
+ ARGENT_SHIELD_NETWORK_ID: "mainnet-alpha"
+ FEATURE_MULTISIG: "false"
+
+ SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }}
+ SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
+ SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
+ RAMP_API_KEY: ${{ secrets.RAMP_API_KEY }}
+ SAFE_ENV_VARS: true
+ ARGENT_API_BASE_URL: ${{ vars.ARGENT_API_BASE_URL }}
+ ARGENT_TRANSACTION_REVIEW_API_BASE_URL: ${{ vars.ARGENT_TRANSACTION_REVIEW_API_BASE_URL }}
+ ARGENT_X_STATUS_URL: ${{ vars.ARGENT_X_STATUS_URL }}
+ ARGENT_EXPLORER_BASE_URL: ${{ vars.ARGENT_EXPLORER_BASE_URL }}
+
jobs:
setup:
runs-on: ubuntu-latest
- env:
- FEATURE_PRIVACY_SETTINGS: "true"
- FEATURE_EXPERIMENTAL_SETTINGS: "true"
- FEATURE_BANXA: "true"
- FEATURE_LAYERSWAP: "true"
- FEATURE_ORBITER: "true"
- FEATURE_VERIFIED_DAPPS: "false"
- ARGENT_API_BASE_URL: ${{ vars.ARGENT_API_BASE_URL }}
- ARGENT_TRANSACTION_REVIEW_API_BASE_URL: ${{ vars.ARGENT_TRANSACTION_REVIEW_API_BASE_URL }}
- ARGENT_X_STATUS_URL: ${{ vars.ARGENT_X_STATUS_URL }}
- ARGENT_EXPLORER_BASE_URL: ${{ vars.ARGENT_EXPLORER_BASE_URL }}
- UPLOAD_SENTRY_SOURCEMAPS: false
-
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
@@ -35,12 +43,28 @@ jobs:
- name: Build extension
run: yarn lerna run --scope @argent-x/extension build
+ - name: Check bundlesize for Chrome
+ run: yarn run bundlewatch
+
- name: Cache build
uses: actions/cache@v3
with:
path: ./*
key: ${{ github.sha }}
+ - name: Set filename prefix
+ run: echo "FILENAME_PREFIX=$(echo argent-extension-${{ github.ref_name }} | tr / -)" >> $GITHUB_ENV
+
+ - name: Create chrome zip
+ run: (cd ./packages/extension/dist && zip -r "../../../${{ env.FILENAME_PREFIX }}-chrome.zip" .)
+
+ - name: Upload Chrome extension
+ uses: actions/upload-artifact@v3
+ with:
+ name: ${{ env.FILENAME_PREFIX }}-chrome.zip
+ path: "*-chrome.zip"
+ retention-days: 5
+
test-unit:
runs-on: ubuntu-latest
needs: [setup]
@@ -57,6 +81,7 @@ jobs:
with:
node-version: "16"
cache: "yarn"
+ fetch-depth: 0
- name: Restore cached build
uses: actions/cache@v3
@@ -69,11 +94,23 @@ jobs:
- name: Run tests
run: yarn test:ci
+ - name: SonarCloud Scan
+ # TODO replace with master as soon as sonarcloud fixes the issue with action https://community.sonarsource.com/t/sonarsource-sonarcloud-github-action-failing-with-node-js-12-error/89664/2
+ uses: SonarSource/sonarcloud-github-action@v1.8
+ with:
+ projectBaseDir: ./packages/extension
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
test-e2e:
runs-on: ubuntu-latest
needs: [setup]
-
+ strategy:
+ matrix:
+ project: [chromium]
+ shardIndex: [1, 2, 3, 4, 5, 6, 7, 8]
+ shardTotal: [8]
services:
devnet:
image: argentlabs-argent-x.jfrog.io/e2e-starknet-devnet:latest
@@ -85,7 +122,6 @@ jobs:
steps:
- uses: actions/checkout@v3
-
- uses: actions/setup-node@v3
with:
node-version: "16"
@@ -101,7 +137,7 @@ jobs:
run: npx playwright install chromium
- name: Run e2e tests
- run: xvfb-run --auto-servernum yarn test:e2e
+ run: xvfb-run --auto-servernum yarn test:e2e --project=${{ matrix.project }} --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
- name: Upload artifacts
uses: actions/upload-artifact@v3
@@ -109,13 +145,14 @@ jobs:
with:
name: test-results
path: |
- packages/extension/test-results/
- packages/extension/e2e/artifacts/playwright/
- packages/extension/e2e/artifacts/reports/
+ packages/test-results/
+ packages/e2e/artifacts/playwright/
+ packages/e2e/artifacts/reports/
retention-days: 5
- sonar:
+ build_firefox_extension:
runs-on: ubuntu-latest
+ if: ${{ github.event_name == 'pull_request' }} # Run only for pull requests
needs: [setup]
steps:
@@ -131,19 +168,35 @@ jobs:
path: ./*
key: ${{ github.sha }}
- - name: SonarCloud Scan
- uses: SonarSource/sonarcloud-github-action@master
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
+ - name: Build Firefox version
+ run: MANIFEST_VERSION=v2 yarn --cwd packages/extension build
+
+ - name: Set filename prefix
+ run: echo "FILENAME_PREFIX=$(echo argent-extension-${{ github.ref_name }} | tr / -)" >> $GITHUB_ENV
+
+ - name: Create firefox zip
+ run: (cd ./packages/extension/dist && zip -r "../../../${{ env.FILENAME_PREFIX }}-firefox.zip" .)
+
+ - name: Check bundlesize for firefox
+ run: yarn run bundlewatch
+
+ - name: Upload artifacts for firefox
+ uses: actions/upload-artifact@v3
+ with:
+ name: ${{ env.FILENAME_PREFIX }}-firefox.zip
+ path: "*-firefox.zip"
+ retention-days: 5
- artifacts:
+ create_sentry_release:
runs-on: ubuntu-latest
- if: ${{ github.event_name == 'pull_request' }} # Run only for pull requests
- needs: [setup, test-unit, test-e2e]
+ if: ${{ github.event_name == 'pull_request' && github.actor != 'dependabot[bot]'}} # Run only for pull requests and if not triggered by dependabot
+ needs: [setup]
steps:
- uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+
- uses: actions/setup-node@v3
with:
node-version: "16"
@@ -155,34 +208,43 @@ jobs:
path: ./*
key: ${{ github.sha }}
- - name: Set filename prefix
- run: echo "FILENAME_PREFIX=$(echo argent-extension-${{ github.ref_name }} | tr / -)" >> $GITHUB_ENV
+ - name: Build extension
+ run: yarn lerna run --scope @argent-x/extension build
- - name: Create chrome zip
- run: (cd ./packages/extension/dist && zip -r "../../../${{ env.FILENAME_PREFIX }}-chrome.zip" .)
+ - name: Get Extension version
+ id: package-version
+ run: |
+ PACKAGE_VERSION=$(cat ./packages/extension/package.json | jq -r '.version')
+ echo "current-version=${PACKAGE_VERSION}" >> $GITHUB_OUTPUT
- - name: Upload artifacts for chrome
- uses: actions/upload-artifact@v3
+ - name: Check sourcemaps
+ run: |
+ ls -l ./packages/extension
+ if [ ! -d "./packages/extension/sourcemaps" ]; then
+ echo "No sourcemaps found"
+ exit 0
+ fi
+
+ - name: Create Sentry release
+ uses: getsentry/action-release@v1
+ env:
+ SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
+ SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
+ SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
+ SENTRY_LOG_LEVEL: debug
with:
- name: ${{ env.FILENAME_PREFIX }}-chrome.zip
- path: "*-chrome.zip"
- retention-days: 5
-
- - name: Build Firefox version
- run: MANIFEST_VERSION=v2 yarn --cwd packages/extension build
+ environment: staging
+ sourcemaps: "./packages/extension/sourcemaps"
+ version: ${{ steps.package-version.outputs.current-version }}-rc__${{ github.sha }}
+ ignore_missing: true
- - name: Create firefox zip
- run: (cd ./packages/extension/dist && zip -r "../../../${{ env.FILENAME_PREFIX }}-firefox.zip" .)
-
- - name: Check bundlesize for firefox
- run: yarn run bundlewatch
+ add_pr_comments:
+ runs-on: ubuntu-latest
+ if: ${{ github.event_name == 'pull_request' && github.actor != 'dependabot[bot]'}} # Run only for pull requests and if not triggered by dependabot
+ needs: [build_firefox_extension, test-unit, test-e2e]
- - name: Upload artifacts for firefox
- uses: actions/upload-artifact@v3
- with:
- name: ${{ env.FILENAME_PREFIX }}-firefox.zip
- path: "*-firefox.zip"
- retention-days: 5
+ steps:
+ - uses: actions/checkout@v3
- name: Set GHA_BRANCH
run: echo "GHA_BRANCH=$(echo $GITHUB_REF | awk -F / '{print $3}')" >> $GITHUB_ENV
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 9609502cc..9d596d790 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- - "v*.*.*"
+ - "extension/*"
env:
FEATURE_PRIVACY_SETTINGS: "true"
@@ -14,25 +14,25 @@ env:
FEATURE_VERIFIED_DAPPS: "true"
FEATURE_ARGENT_SHIELD: "true"
ARGENT_SHIELD_NETWORK_ID: "mainnet-alpha"
+ FEATURE_MULTISIG: "false"
+ NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
+ SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }}
+ SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
+ SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
+ RAMP_API_KEY: ${{ secrets.RAMP_API_KEY }}
+ FILENAME: argent-extension
+ SAFE_ENV_VARS: true
+ ARGENT_API_BASE_URL: ${{ vars.ARGENT_API_BASE_URL }}
+ ARGENT_TRANSACTION_REVIEW_API_BASE_URL: ${{ vars.ARGENT_TRANSACTION_REVIEW_API_BASE_URL }}
+ ARGENT_X_STATUS_URL: ${{ vars.ARGENT_X_STATUS_URL }}
+ ARGENT_EXPLORER_BASE_URL: ${{ vars.ARGENT_EXPLORER_BASE_URL }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
- env:
- NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
- SEGMENT_WRITE_KEY: ${{ secrets.SEGMENT_WRITE_KEY }}
- SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- RAMP_API_KEY: ${{ secrets.RAMP_API_KEY }}
- FILENAME: argent-extension-${{ github.ref_name }}
- UPLOAD_SENTRY_SOURCEMAPS: true
- SAFE_ENV_VARS: true
- ARGENT_API_BASE_URL: ${{ vars.ARGENT_API_BASE_URL }}
- ARGENT_TRANSACTION_REVIEW_API_BASE_URL: ${{ vars.ARGENT_TRANSACTION_REVIEW_API_BASE_URL }}
- ARGENT_X_STATUS_URL: ${{ vars.ARGENT_X_STATUS_URL }}
- ARGENT_EXPLORER_BASE_URL: ${{ vars.ARGENT_EXPLORER_BASE_URL }}
+
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
@@ -40,7 +40,7 @@ jobs:
node-version: "16"
cache: "yarn"
- run: yarn setup
- - run: yarn build
+ - run: yarn build --ignore @argent/web
- name: Release npm packages
# if flow is triggered by a tag, publish to npm
@@ -69,7 +69,6 @@ jobs:
run: yarn run bundlewatch
- name: Upload artifacts for chrome
- if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v3
with:
name: chrome
@@ -78,7 +77,6 @@ jobs:
if-no-files-found: error
- name: Upload artifacts for firefox
- if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v3
with:
name: firefox
@@ -86,6 +84,38 @@ jobs:
retention-days: 14
if-no-files-found: error
+ - uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+
+ - name: Get Extension version
+ id: package-version
+ run: |
+ PACKAGE_VERSION=$(cat ./packages/extension/package.json | jq -r '.version')
+ echo "current-version=${PACKAGE_VERSION}" >> $GITHUB_OUTPUT
+
+ - name: Check sourcemaps
+ run: |
+ ls -l ./packages/extension
+ if [ ! -d "./packages/extension/sourcemaps" ]; then
+ echo "No sourcemaps found"
+ exit 0
+ fi
+
+ - name: Create Sentry release
+ uses: getsentry/action-release@v1
+ env:
+ SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
+ SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
+ SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
+ SENTRY_LOG_LEVEL: debug
+ with:
+ environment: production
+ sourcemaps: "./packages/extension/sourcemaps"
+ url_prefix: "~/sourcemaps"
+ version: ${{ steps.package-version.outputs.current-version }}
+ ignore_missing: true
+
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
diff --git a/.gitignore b/.gitignore
index c435fb0a2..a64bb2498 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,5 @@ sourcemaps
coverage
*.tsbuildinfo
license-report.md
+
+**/.next
\ No newline at end of file
diff --git a/.vscode/extensions.json b/.vscode/extensions.json
new file mode 100644
index 000000000..bdef82015
--- /dev/null
+++ b/.vscode/extensions.json
@@ -0,0 +1,3 @@
+{
+ "recommendations": ["svelte.svelte-vscode"]
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 75c51808f..88d913bef 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -8,5 +8,9 @@
"**/.{idea,git,cache,output,temp}/**"
],
"vitest.enable": true,
- "vitest.commandLine": "npx vitest -r packages/extension/"
+ "vitest.commandLine": "npx vitest -r packages/extension/",
+ "explorer.fileNesting.patterns": {
+ "*.tsx": "${capture}.ts, ${capture}.typegen.ts, ${capture}Container.tsx, ${capture}.container.tsx, ${capture}.test.tsx, ${capture}.spec.tsx, ${capture}.test.ts, ${capture}.spec.ts",
+ "*.ts": "${capture}.ts, ${capture}.typegen.ts, ${capture}Container.tsx, ${capture}.container.tsx, ${capture}.test.tsx, ${capture}.spec.tsx, ${capture}.test.ts, ${capture}.spec.ts"
+ }
}
diff --git a/Readme.md b/Readme.md
index e8ff8f5cb..9f1524b9c 100644
--- a/Readme.md
+++ b/Readme.md
@@ -13,6 +13,8 @@
+[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=argentlabs_argent-x-private&metric=alert_status&token=37f8b93db6e967b7992252f0e70c62ff6da11bbb)](https://sonarcloud.io/summary/new_code?id=argentlabs_argent-x-private) [![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=argentlabs_argent-x-private&metric=sqale_index&token=37f8b93db6e967b7992252f0e70c62ff6da11bbb)](https://sonarcloud.io/summary/new_code?id=argentlabs_argent-x-private) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=argentlabs_argent-x-private&metric=coverage&token=37f8b93db6e967b7992252f0e70c62ff6da11bbb)](https://sonarcloud.io/summary/new_code?id=argentlabs_argent-x-private)
+
---
🌈 Table of contents
diff --git a/lerna.json b/lerna.json
index 6b49afb0a..a97799c58 100644
--- a/lerna.json
+++ b/lerna.json
@@ -1,6 +1,6 @@
{
"packages": ["packages/*"],
- "version": "5.3.21",
+ "version": "6.3.0",
"npmClient": "yarn",
"useWorkspaces": true
}
diff --git a/package.json b/package.json
index d487757c8..2acfe5c07 100644
--- a/package.json
+++ b/package.json
@@ -18,13 +18,19 @@
"prettier-plugin-import-sort": "^0.0.7",
"ts-node": "^10.8.1"
},
+ "workspaces": {
+ "nohoist": [
+ "packages/web",
+ "packages/dapp"
+ ],
+ "packages": [
+ "packages/*"
+ ]
+ },
"resolutions": {
"@babel/preset-react": "7.17.12",
"@babel/plugin-transform-react-jsx": "7.17.12"
},
- "workspaces": [
- "packages/*"
- ],
"scripts": {
"format": "prettier --loglevel warn --write \"**/*.{js,jsx,ts,tsx,css,md,yml,json}\"",
"dev": "NODE_ENV=development lerna run dev --parallel",
@@ -36,13 +42,14 @@
"lint": "lerna run lint --stream",
"test": "lerna run test --stream",
"test:watch": "lerna run test:watch --stream",
- "test:e2e": "lerna run test:e2e --stream",
+ "test:e2e": "yarn workspace @argent-x/e2e run test:e2e",
"setup": "yarn install --frozen-lockfile && yarn allow-scripts && husky install && patch-package && lerna run setup --stream",
- "test:ci": "lerna run test:ci --stream",
+ "test:ci": "lerna run test:ci --stream --parallel",
"storybook": "cd packages/storybook && yarn storybook",
"devnet:upgrade-helper": "NODE_NO_WARNINGS=1 ts-node ./scripts/devnet-upgrade-helper.ts",
"devnet:setup-contracts": "NODE_NO_WARNINGS=1 ts-node ./scripts/devnet-setup-contracts.ts",
- "version": "lerna version --no-push --no-git-tag-version && yarn --cwd packages/extension run version"
+ "version": "lerna version --no-push --no-git-tag-version && yarn --cwd packages/extension run version",
+ "export": "lerna run export --scope=@argent/web"
},
"importSort": {
".js, .jsx, .ts, .tsx": {
diff --git a/packages/dapp/next.config.js b/packages/dapp/next.config.js
index 52e300ffa..4b1bd3055 100644
--- a/packages/dapp/next.config.js
+++ b/packages/dapp/next.config.js
@@ -1,5 +1,5 @@
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
- swcMinify: true,
+ swcMinify: false, // we need to use terser, as swc doesn't support svelte and `@argent/get-starknet`
}
diff --git a/packages/dapp/package.json b/packages/dapp/package.json
index 398d4b498..942cbabba 100644
--- a/packages/dapp/package.json
+++ b/packages/dapp/package.json
@@ -1,6 +1,6 @@
{
"name": "@argent-x/dapp",
- "version": "5.3.21",
+ "version": "6.3.0",
"private": true,
"scripts": {
"dev": "next dev",
@@ -10,8 +10,8 @@
"lint": "next lint"
},
"dependencies": {
- "@argent/get-starknet": "^5.3.21",
- "@argent/x-sessions": "^5.3.21",
+ "@argent/get-starknet": "^6.3.0",
+ "@argent/x-sessions": "^6.3.0",
"ethers": "^5.5.1",
"next": "^13.0.0",
"react": "^18.0.0",
@@ -20,7 +20,7 @@
"starknet5": "npm:starknet@5.0.0-beta.3"
},
"devDependencies": {
- "@types/node": "18.15.5",
+ "@types/node": "18.15.12",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"eslint": "8",
diff --git a/packages/dapp/src/components/TokenDapp.tsx b/packages/dapp/src/components/TokenDapp.tsx
index 16cf07787..4b44daed0 100644
--- a/packages/dapp/src/components/TokenDapp.tsx
+++ b/packages/dapp/src/components/TokenDapp.tsx
@@ -6,16 +6,16 @@ import { hash } from "starknet5"
import Erc20Abi from "../../abi/ERC20.json"
import { truncateAddress, truncateHex } from "../services/address.service"
import {
- getErc20TokenAddress,
+ DAITokenAddress,
+ ETHTokenAddress,
mintToken,
parseInputAmountToUint256,
transfer,
} from "../services/token.service"
import {
+ addNetwork,
addToken,
declare,
- getExplorerBaseUrl,
- networkId,
signMessage,
waitForTransaction,
} from "../services/wallet.service"
@@ -55,6 +55,7 @@ export const TokenDapp: FC<{
const [addTokenError, setAddTokenError] = useState("")
const [classHash, setClassHash] = useState("")
const [contract, setContract] = useState()
+ const [addNetworkError, setAddNetworkError] = useState("")
const [sessionSigner] = useState(genKeyPair())
const [sessionAccount, setSessionAccount] = useState<
@@ -82,20 +83,19 @@ export const TokenDapp: FC<{
})()
}, [transactionStatus, lastTransactionHash])
- const network = networkId()
- if (network !== "goerli-alpha" && network !== "mainnet-alpha") {
- return (
- <>
-
- There is no demo token for this network, but you can deploy one and
- add its address to this file:
-
-
-
packages/dapp/src/token.service.ts
-
- >
- )
- }
+ // if (network !== "goerli-alpha" && network !== "mainnet-alpha") {
+ // return (
+ // <>
+ //
+ // There is no demo token for this network, but you can deploy one and
+ // add its address to this file:
+ //
+ //
+ //
packages/dapp/src/token.service.ts
+ //
+ // >
+ // )
+ // }
const handleMintSubmit = async (e: React.FormEvent) => {
e.preventDefault()
@@ -103,7 +103,7 @@ export const TokenDapp: FC<{
setTransactionStatus("approve")
console.log("mint", mintAmount)
- const result = await mintToken(mintAmount, network)
+ const result = await mintToken(mintAmount)
console.log(result)
setLastTransactionHash(result.transaction_hash)
@@ -119,8 +119,7 @@ export const TokenDapp: FC<{
e.preventDefault()
setTransactionStatus("approve")
- console.log("transfer", { transferTo, transferAmount })
- const result = await transfer(transferTo, transferAmount, network)
+ const result = await transfer(transferTo, transferAmount)
console.log(result)
setLastTransactionHash(result.transaction_hash)
@@ -156,7 +155,7 @@ export const TokenDapp: FC<{
expires: Math.floor((Date.now() + 1000 * 60 * 60 * 24) / 1000), // 1 day in seconds
policies: [
{
- contractAddress: getErc20TokenAddress(network),
+ contractAddress: ETHTokenAddress,
selector: "transfer",
},
],
@@ -182,8 +181,8 @@ export const TokenDapp: FC<{
}
const erc20Contract = new Contract(
Erc20Abi as Abi,
- getErc20TokenAddress(network),
- sessionAccount,
+ ETHTokenAddress,
+ sessionAccount as any,
)
const result = await erc20Contract.transfer(
@@ -220,7 +219,14 @@ export const TokenDapp: FC<{
}
}
- const tokenAddress = getErc20TokenAddress(network as any)
+ const handleAddNetwork = async () => {
+ await addNetwork({
+ id: "dapp-test",
+ chainId: "SN_DAPP_TEST",
+ chainName: "Test chain name",
+ baseUrl: "http://localhost:5050",
+ })
+ }
return (
<>
@@ -231,7 +237,7 @@ export const TokenDapp: FC<{