Skip to content

Commit

Permalink
Release/5.23.1 (#1432)
Browse files Browse the repository at this point in the history
* run snapshot tests in CI, dont runb e2e tests in regular test flow

* updats snapshot pipeline to cache assets

* adds default network fee in hook

* runs snapshot tests from regular test workflow

* add workflow run options

* tweaks test timeout, removes snapshot cache from CI job

* add optional update snapshot manually

* update snapshot PR from CI run

* [CHORE] Add Sentry source maps and improve build times (#1404)

* Feature/standard wallet interface (#1357)

* Feature/soroswap (#1347)

* Feature/hash signing 2 (#1303)

* flips the session store flag, updates listeners to not be intialized … (#1169)

* capture amplitude errors to better understand why they're triggering sentry (#1167)

* flips the session store flag, updates listeners to not be intialized async for v3

* updates e2e tests for manifest v3

---------

Co-authored-by: Piyal Basu <[email protected]>

* add scripts tag for Firefox (#1294)

* uses chrome storage in migrations instead of local storage

* checks for migrated account in migration logic to set migrated network

* don't babel-polyfill contentScript (#1297)

* don't clear all of localStore on recoverAccount (#1301)

* add hash signing option (ui and data storage)

* fix redux state update; show custom errors from hardware wallet

* Added translations

* when experimental mode is enabled, switch network

* PR comments

* rm logs

---------

Co-authored-by: aristides <[email protected]>

* Feature/trustline sac (#1289)

* Bump axios, @docusaurus/core and @docusaurus/preset-classic in /docs (#1244)

Removes [axios](https://github.com/axios/axios). It's no longer used after updating ancestor dependencies [axios](https://github.com/axios/axios), [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) and [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic). These dependencies need to be updated together.


Removes `axios`

Updates `@docusaurus/core` from 2.4.1 to 3.2.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.2.1/packages/docusaurus)

Updates `@docusaurus/preset-classic` from 2.4.1 to 3.2.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.2.1/packages/docusaurus-preset-classic)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
- dependency-name: "@docusaurus/core"
  dependency-type: direct:production
- dependency-name: "@docusaurus/preset-classic"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump express from 4.18.2 to 4.19.2 in /docs (#1216)

Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump tar from 6.1.15 to 6.2.1 (#1231)

Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.15 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.15...v6.2.1)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump express from 4.18.2 to 4.19.2 (#1214)

Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /docs (#1208)

Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#1207)

Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump follow-redirects from 1.15.4 to 1.15.6 in /docs (#1198)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump follow-redirects from 1.15.2 to 1.15.6 (#1197)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump ip from 2.0.0 to 2.0.1 (#1128)

Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](https://github.com/indutny/node-ip/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump axios, @docusaurus/core and @docusaurus/preset-classic in /docs (#1055)

Removes [axios](https://github.com/axios/axios). It's no longer used after updating ancestor dependencies [axios](https://github.com/axios/axios), [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) and [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic). These dependencies need to be updated together.


Removes `axios`

Updates `@docusaurus/core` from 2.4.1 to 3.0.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.0.1/packages/docusaurus)

Updates `@docusaurus/preset-classic` from 2.4.1 to 3.0.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.0.1/packages/docusaurus-preset-classic)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
- dependency-name: "@docusaurus/core"
  dependency-type: direct:production
- dependency-name: "@docusaurus/preset-classic"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* first pass at adding remove dropdown

* replaces all remaining instances of wallet-sdk

* tweaks tx detail row layouts to avoid overflows

* adds getContractSpec, uses it to display parameter names in tx sign detail view

* migrates KeyManager to ts-wallet-sdk

* upgrades react and react dom types to 18

* adds react types to extension workspace, fixes type errors

* set styles for dropdown

* Added translations

* adds standalone version of getContractSpec and related helpers

* Added translations

* Added translations

* undo husky pre push comments

* Feature/p21 futurenet release (#1278)

* switch between stellar-sdk and stellar-sdk-next based on network

* increase max diff pixel ratio for playwright

* rm console

* adds tx timeout in send and swap settings

* Added translations

* tweaks tooltip text

* Added translations

* happy path for new add asset flow

* fix trustline error warning and fix naming

* Added translations

* rollback dep upgrades

* rollback changes

* rollback package-lock upgrade

* add snapshots for manage assets and send payment (#1309)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aristides Staffieri <[email protected]>

* guard against dispatching incorrect parameter (#1305)

* adds Hardware sign usage in ReviewAuth for use during invokeHostFn signing, tweaks soroban icon to not overflow in signing details (#1282)

* adds loader for hardware signing during signing (#1284)

Co-authored-by: Piyal Basu <[email protected]>

* adds sign blob error for encoding mismatch (#1300)

* fix bad merge

* [BUG] replaces all instances of pickTransfer with getTokenSpec workflow (#1312)

* replaces all instances of pickTransfer with getTokenSpec workflow

* check for transfer once token spec is confirmed

* rm unused dep

* fixes bad merge from upstream in ManageAssets

* Added translations

* remove accidental mobile4 dir addition

---------

Co-authored-by: Piyal Basu <[email protected]>

* Test/data storage (#1304)

* adds test for data storage get item

* adds tests for network migrations

* adds test for remaining migrations

* reverts bad merge from upstream

---------

Co-authored-by: Piyal Basu <[email protected]>

* [CHORE] upgrades all webpack related deps (#1307)

* upgrades all webpack related deps

* updates lock file

* updates migrations test for recent changes

* [CHORE] upgrade to docusaurus v3 (#1306)

* upgrade to docusaurus v3

* edit manifest for chrome before uploading (#1315)

* use single quotes (#1316)

---------

Co-authored-by: Piyal Basu <[email protected]>

* Fix manage assets tests (#1317)

* fix tests for new manage assets flow

* fix broken manage-assets tests

* rm unused dep

* fix e2e tests

* fix query for visible loader

* fix assets test

* selector for individual asset balance

* add better error messaging for liabilities when removing an asset (#1319)

* add better error messaging for liabilities when removing an asset

* add tests and rm sellingLiabilities

* rm more selling liabilities

* fix diff

* fix diff again

* verify params before fetching issuer info (#1320)

* add better error messaging for liabilities when removing an asset

* add tests and rm sellingLiabilities

* rm more selling liabilities

* fix diff

* fix diff again

* verify params before fetching issuer info

* test soroswap api

* pin docusaurus core to match versions

* adding soroswap tokens to swap dropdown

* split dataStorageAccess into a different file to allow for jest mocks with circular deps

* updates all references for new dataStorage path

* fix add asset padding; fix ledger trustline error; fix token-spec check (#1324)

* fix add asset padding; fix ledger trustline error; fix token-spec check

* use dynamic verified token in e2e test

* undo the hw wallet trustline error fix while I figure out how to do it properly

* revert isTokenSpec change

* better trustline error handling; fix remove token (#1326)

* starting work on bestpath

* upgrade redux toolkit (#1333)

* upgrade redux toolkit

* allow a longer timeout to account for network congestion

* styling and copy fixes

* Added translations

* upgrade soroswap sdk and break out simulation component

* Bugfix/5.20.0 qa (#1334)

* styling and copy fixes

* Added translations

* Bugfix/5.20.0 legal copy (#1337)

* legal copy changes

* Added translations

* fix go back button

* use history.goBack for go back button

* show icons for soroswap tokens and final cleanup

* remove axios and auto add the token after successful token swap

* adding comments

* enable linting

* simplify asset dropdown logic

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: aristides <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* uses key val for public keys for inflation dest and trustor fields

* adding documentation to the Soroswap methods (#1350)

* removes sentry exceptions from expected failures to fetch contract specs

* check if either asset is a soroswap token (#1353)

* making freighter-api conform to wallet standard interface

* Added translations

* Revert "Added translations"

This reverts commit 48d82d5dc96ade559f929cb353f4626f656939c2.

* update remaining api methods to match

* rm unused dep

* pr comments

* fix tests

* increase timeout

* use jest timeout

* fix test name

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: aristides <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Feature/standard wallet interface docs (#1370)

* Feature/soroswap (#1347)

* Feature/hash signing 2 (#1303)

* flips the session store flag, updates listeners to not be intialized … (#1169)

* capture amplitude errors to better understand why they're triggering sentry (#1167)

* flips the session store flag, updates listeners to not be intialized async for v3

* updates e2e tests for manifest v3

---------

Co-authored-by: Piyal Basu <[email protected]>

* add scripts tag for Firefox (#1294)

* uses chrome storage in migrations instead of local storage

* checks for migrated account in migration logic to set migrated network

* don't babel-polyfill contentScript (#1297)

* don't clear all of localStore on recoverAccount (#1301)

* add hash signing option (ui and data storage)

* fix redux state update; show custom errors from hardware wallet

* Added translations

* when experimental mode is enabled, switch network

* PR comments

* rm logs

---------

Co-authored-by: aristides <[email protected]>

* Feature/trustline sac (#1289)

* Bump axios, @docusaurus/core and @docusaurus/preset-classic in /docs (#1244)

Removes [axios](https://github.com/axios/axios). It's no longer used after updating ancestor dependencies [axios](https://github.com/axios/axios), [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) and [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic). These dependencies need to be updated together.


Removes `axios`

Updates `@docusaurus/core` from 2.4.1 to 3.2.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.2.1/packages/docusaurus)

Updates `@docusaurus/preset-classic` from 2.4.1 to 3.2.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.2.1/packages/docusaurus-preset-classic)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
- dependency-name: "@docusaurus/core"
  dependency-type: direct:production
- dependency-name: "@docusaurus/preset-classic"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump express from 4.18.2 to 4.19.2 in /docs (#1216)

Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump tar from 6.1.15 to 6.2.1 (#1231)

Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.15 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.15...v6.2.1)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump express from 4.18.2 to 4.19.2 (#1214)

Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /docs (#1208)

Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#1207)

Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump follow-redirects from 1.15.4 to 1.15.6 in /docs (#1198)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump follow-redirects from 1.15.2 to 1.15.6 (#1197)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump ip from 2.0.0 to 2.0.1 (#1128)

Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](https://github.com/indutny/node-ip/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump axios, @docusaurus/core and @docusaurus/preset-classic in /docs (#1055)

Removes [axios](https://github.com/axios/axios). It's no longer used after updating ancestor dependencies [axios](https://github.com/axios/axios), [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) and [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic). These dependencies need to be updated together.


Removes `axios`

Updates `@docusaurus/core` from 2.4.1 to 3.0.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.0.1/packages/docusaurus)

Updates `@docusaurus/preset-classic` from 2.4.1 to 3.0.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.0.1/packages/docusaurus-preset-classic)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
- dependency-name: "@docusaurus/core"
  dependency-type: direct:production
- dependency-name: "@docusaurus/preset-classic"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* first pass at adding remove dropdown

* replaces all remaining instances of wallet-sdk

* tweaks tx detail row layouts to avoid overflows

* adds getContractSpec, uses it to display parameter names in tx sign detail view

* migrates KeyManager to ts-wallet-sdk

* upgrades react and react dom types to 18

* adds react types to extension workspace, fixes type errors

* set styles for dropdown

* Added translations

* adds standalone version of getContractSpec and related helpers

* Added translations

* Added translations

* undo husky pre push comments

* Feature/p21 futurenet release (#1278)

* switch between stellar-sdk and stellar-sdk-next based on network

* increase max diff pixel ratio for playwright

* rm console

* adds tx timeout in send and swap settings

* Added translations

* tweaks tooltip text

* Added translations

* happy path for new add asset flow

* fix trustline error warning and fix naming

* Added translations

* rollback dep upgrades

* rollback changes

* rollback package-lock upgrade

* add snapshots for manage assets and send payment (#1309)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aristides Staffieri <[email protected]>

* guard against dispatching incorrect parameter (#1305)

* adds Hardware sign usage in ReviewAuth for use during invokeHostFn signing, tweaks soroban icon to not overflow in signing details (#1282)

* adds loader for hardware signing during signing (#1284)

Co-authored-by: Piyal Basu <[email protected]>

* adds sign blob error for encoding mismatch (#1300)

* fix bad merge

* [BUG] replaces all instances of pickTransfer with getTokenSpec workflow (#1312)

* replaces all instances of pickTransfer with getTokenSpec workflow

* check for transfer once token spec is confirmed

* rm unused dep

* fixes bad merge from upstream in ManageAssets

* Added translations

* remove accidental mobile4 dir addition

---------

Co-authored-by: Piyal Basu <[email protected]>

* Test/data storage (#1304)

* adds test for data storage get item

* adds tests for network migrations

* adds test for remaining migrations

* reverts bad merge from upstream

---------

Co-authored-by: Piyal Basu <[email protected]>

* [CHORE] upgrades all webpack related deps (#1307)

* upgrades all webpack related deps

* updates lock file

* updates migrations test for recent changes

* [CHORE] upgrade to docusaurus v3 (#1306)

* upgrade to docusaurus v3

* edit manifest for chrome before uploading (#1315)

* use single quotes (#1316)

---------

Co-authored-by: Piyal Basu <[email protected]>

* Fix manage assets tests (#1317)

* fix tests for new manage assets flow

* fix broken manage-assets tests

* rm unused dep

* fix e2e tests

* fix query for visible loader

* fix assets test

* selector for individual asset balance

* add better error messaging for liabilities when removing an asset (#1319)

* add better error messaging for liabilities when removing an asset

* add tests and rm sellingLiabilities

* rm more selling liabilities

* fix diff

* fix diff again

* verify params before fetching issuer info (#1320)

* add better error messaging for liabilities when removing an asset

* add tests and rm sellingLiabilities

* rm more selling liabilities

* fix diff

* fix diff again

* verify params before fetching issuer info

* test soroswap api

* pin docusaurus core to match versions

* adding soroswap tokens to swap dropdown

* split dataStorageAccess into a different file to allow for jest mocks with circular deps

* updates all references for new dataStorage path

* fix add asset padding; fix ledger trustline error; fix token-spec check (#1324)

* fix add asset padding; fix ledger trustline error; fix token-spec check

* use dynamic verified token in e2e test

* undo the hw wallet trustline error fix while I figure out how to do it properly

* revert isTokenSpec change

* better trustline error handling; fix remove token (#1326)

* starting work on bestpath

* upgrade redux toolkit (#1333)

* upgrade redux toolkit

* allow a longer timeout to account for network congestion

* styling and copy fixes

* Added translations

* upgrade soroswap sdk and break out simulation component

* Bugfix/5.20.0 qa (#1334)

* styling and copy fixes

* Added translations

* Bugfix/5.20.0 legal copy (#1337)

* legal copy changes

* Added translations

* fix go back button

* use history.goBack for go back button

* show icons for soroswap tokens and final cleanup

* remove axios and auto add the token after successful token swap

* adding comments

* enable linting

* simplify asset dropdown logic

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: aristides <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* uses key val for public keys for inflation dest and trustor fields

* adding documentation to the Soroswap methods (#1350)

* removes sentry exceptions from expected failures to fetch contract specs

* check if either asset is a soroswap token (#1353)

* making freighter-api conform to wallet standard interface

* Added translations

* Revert "Added translations"

This reverts commit 48d82d5dc96ade559f929cb353f4626f656939c2.

* update remaining api methods to match

* rm unused dep

* pr comments

* fix tests

* increase timeout

* use jest timeout

* fix test name

* adding docs for standard wallet interface

* updating docs and playground

* don't use Partial type

* simplify types

* update types in guide

* rollback version

* rollback yarn.lock

* fix tests

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: aristides <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add wallet change watcher + docs (#1373)

* Feature/soroswap (#1347)

* Feature/hash signing 2 (#1303)

* flips the session store flag, updates listeners to not be intialized … (#1169)

* capture amplitude errors to better understand why they're triggering sentry (#1167)

* flips the session store flag, updates listeners to not be intialized async for v3

* updates e2e tests for manifest v3

---------

Co-authored-by: Piyal Basu <[email protected]>

* add scripts tag for Firefox (#1294)

* uses chrome storage in migrations instead of local storage

* checks for migrated account in migration logic to set migrated network

* don't babel-polyfill contentScript (#1297)

* don't clear all of localStore on recoverAccount (#1301)

* add hash signing option (ui and data storage)

* fix redux state update; show custom errors from hardware wallet

* Added translations

* when experimental mode is enabled, switch network

* PR comments

* rm logs

---------

Co-authored-by: aristides <[email protected]>

* Feature/trustline sac (#1289)

* Bump axios, @docusaurus/core and @docusaurus/preset-classic in /docs (#1244)

Removes [axios](https://github.com/axios/axios). It's no longer used after updating ancestor dependencies [axios](https://github.com/axios/axios), [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) and [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic). These dependencies need to be updated together.


Removes `axios`

Updates `@docusaurus/core` from 2.4.1 to 3.2.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.2.1/packages/docusaurus)

Updates `@docusaurus/preset-classic` from 2.4.1 to 3.2.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.2.1/packages/docusaurus-preset-classic)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
- dependency-name: "@docusaurus/core"
  dependency-type: direct:production
- dependency-name: "@docusaurus/preset-classic"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump express from 4.18.2 to 4.19.2 in /docs (#1216)

Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump tar from 6.1.15 to 6.2.1 (#1231)

Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.15 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.15...v6.2.1)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump express from 4.18.2 to 4.19.2 (#1214)

Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /docs (#1208)

Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#1207)

Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump follow-redirects from 1.15.4 to 1.15.6 in /docs (#1198)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump follow-redirects from 1.15.2 to 1.15.6 (#1197)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump ip from 2.0.0 to 2.0.1 (#1128)

Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](https://github.com/indutny/node-ip/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump axios, @docusaurus/core and @docusaurus/preset-classic in /docs (#1055)

Removes [axios](https://github.com/axios/axios). It's no longer used after updating ancestor dependencies [axios](https://github.com/axios/axios), [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) and [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic). These dependencies need to be updated together.


Removes `axios`

Updates `@docusaurus/core` from 2.4.1 to 3.0.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.0.1/packages/docusaurus)

Updates `@docusaurus/preset-classic` from 2.4.1 to 3.0.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.0.1/packages/docusaurus-preset-classic)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
- dependency-name: "@docusaurus/core"
  dependency-type: direct:production
- dependency-name: "@docusaurus/preset-classic"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* first pass at adding remove dropdown

* replaces all remaining instances of wallet-sdk

* tweaks tx detail row layouts to avoid overflows

* adds getContractSpec, uses it to display parameter names in tx sign detail view

* migrates KeyManager to ts-wallet-sdk

* upgrades react and react dom types to 18

* adds react types to extension workspace, fixes type errors

* set styles for dropdown

* Added translations

* adds standalone version of getContractSpec and related helpers

* Added translations

* Added translations

* undo husky pre push comments

* Feature/p21 futurenet release (#1278)

* switch between stellar-sdk and stellar-sdk-next based on network

* increase max diff pixel ratio for playwright

* rm console

* adds tx timeout in send and swap settings

* Added translations

* tweaks tooltip text

* Added translations

* happy path for new add asset flow

* fix trustline error warning and fix naming

* Added translations

* rollback dep upgrades

* rollback changes

* rollback package-lock upgrade

* add snapshots for manage assets and send payment (#1309)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aristides Staffieri <[email protected]>

* guard against dispatching incorrect parameter (#1305)

* adds Hardware sign usage in ReviewAuth for use during invokeHostFn signing, tweaks soroban icon to not overflow in signing details (#1282)

* adds loader for hardware signing during signing (#1284)

Co-authored-by: Piyal Basu <[email protected]>

* adds sign blob error for encoding mismatch (#1300)

* fix bad merge

* [BUG] replaces all instances of pickTransfer with getTokenSpec workflow (#1312)

* replaces all instances of pickTransfer with getTokenSpec workflow

* check for transfer once token spec is confirmed

* rm unused dep

* fixes bad merge from upstream in ManageAssets

* Added translations

* remove accidental mobile4 dir addition

---------

Co-authored-by: Piyal Basu <[email protected]>

* Test/data storage (#1304)

* adds test for data storage get item

* adds tests for network migrations

* adds test for remaining migrations

* reverts bad merge from upstream

---------

Co-authored-by: Piyal Basu <[email protected]>

* [CHORE] upgrades all webpack related deps (#1307)

* upgrades all webpack related deps

* updates lock file

* updates migrations test for recent changes

* [CHORE] upgrade to docusaurus v3 (#1306)

* upgrade to docusaurus v3

* edit manifest for chrome before uploading (#1315)

* use single quotes (#1316)

---------

Co-authored-by: Piyal Basu <[email protected]>

* Fix manage assets tests (#1317)

* fix tests for new manage assets flow

* fix broken manage-assets tests

* rm unused dep

* fix e2e tests

* fix query for visible loader

* fix assets test

* selector for individual asset balance

* add better error messaging for liabilities when removing an asset (#1319)

* add better error messaging for liabilities when removing an asset

* add tests and rm sellingLiabilities

* rm more selling liabilities

* fix diff

* fix diff again

* verify params before fetching issuer info (#1320)

* add better error messaging for liabilities when removing an asset

* add tests and rm sellingLiabilities

* rm more selling liabilities

* fix diff

* fix diff again

* verify params before fetching issuer info

* test soroswap api

* pin docusaurus core to match versions

* adding soroswap tokens to swap dropdown

* split dataStorageAccess into a different file to allow for jest mocks with circular deps

* updates all references for new dataStorage path

* fix add asset padding; fix ledger trustline error; fix token-spec check (#1324)

* fix add asset padding; fix ledger trustline error; fix token-spec check

* use dynamic verified token in e2e test

* undo the hw wallet trustline error fix while I figure out how to do it properly

* revert isTokenSpec change

* better trustline error handling; fix remove token (#1326)

* starting work on bestpath

* upgrade redux toolkit (#1333)

* upgrade redux toolkit

* allow a longer timeout to account for network congestion

* styling and copy fixes

* Added translations

* upgrade soroswap sdk and break out simulation component

* Bugfix/5.20.0 qa (#1334)

* styling and copy fixes

* Added translations

* Bugfix/5.20.0 legal copy (#1337)

* legal copy changes

* Added translations

* fix go back button

* use history.goBack for go back button

* show icons for soroswap tokens and final cleanup

* remove axios and auto add the token after successful token swap

* adding comments

* enable linting

* simplify asset dropdown logic

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: aristides <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* uses key val for public keys for inflation dest and trustor fields

* adding documentation to the Soroswap methods (#1350)

* removes sentry exceptions from expected failures to fetch contract specs

* check if either asset is a soroswap token (#1353)

* making freighter-api conform to wallet standard interface

* Added translations

* Revert "Added translations"

This reverts commit 48d82d5dc96ade559f929cb353f4626f656939c2.

* update remaining api methods to match

* rm unused dep

* pr comments

* fix tests

* increase timeout

* use jest timeout

* fix test name

* adding docs for standard wallet interface

* updating docs and playground

* don't use Partial type

* simplify types

* update types in guide

* rollback version

* rollback yarn.lock

* fix tests

* add wallet change watcher + docs

* add clarifying line of copy

* fix test

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: aristides <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* add isNonSSELEnabled flag and use that to block non-https tx's (#1374)

* add isNonSSELEnabled flag and use that to block non-https tx's

* rm comment

* moving isNonSSLEnabled to Advanced Settings

* moving isNonSSLEnabled to Advanced Settings (#1375)

* Feature/connect dapp warning (#1361)

* Feature/soroswap (#1347)

* Feature/hash signing 2 (#1303)

* flips the session store flag, updates listeners to not be intialized … (#1169)

* capture amplitude errors to better understand why they're triggering sentry (#1167)

* flips the session store flag, updates listeners to not be intialized async for v3

* updates e2e tests for manifest v3

---------

Co-authored-by: Piyal Basu <[email protected]>

* add scripts tag for Firefox (#1294)

* uses chrome storage in migrations instead of local storage

* checks for migrated account in migration logic to set migrated network

* don't babel-polyfill contentScript (#1297)

* don't clear all of localStore on recoverAccount (#1301)

* add hash signing option (ui and data storage)

* fix redux state update; show custom errors from hardware wallet

* Added translations

* when experimental mode is enabled, switch network

* PR comments

* rm logs

---------

Co-authored-by: aristides <[email protected]>

* Feature/trustline sac (#1289)

* Bump axios, @docusaurus/core and @docusaurus/preset-classic in /docs (#1244)

Removes [axios](https://github.com/axios/axios). It's no longer used after updating ancestor dependencies [axios](https://github.com/axios/axios), [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) and [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic). These dependencies need to be updated together.


Removes `axios`

Updates `@docusaurus/core` from 2.4.1 to 3.2.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.2.1/packages/docusaurus)

Updates `@docusaurus/preset-classic` from 2.4.1 to 3.2.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.2.1/packages/docusaurus-preset-classic)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
- dependency-name: "@docusaurus/core"
  dependency-type: direct:production
- dependency-name: "@docusaurus/preset-classic"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump express from 4.18.2 to 4.19.2 in /docs (#1216)

Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump tar from 6.1.15 to 6.2.1 (#1231)

Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.15 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.15...v6.2.1)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump express from 4.18.2 to 4.19.2 (#1214)

Bumps [express](https://github.com/expressjs/express) from 4.18.2 to 4.19.2.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump webpack-dev-middleware from 5.3.3 to 5.3.4 in /docs (#1208)

Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#1207)

Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4.
- [Release notes](https://github.com/webpack/webpack-dev-middleware/releases)
- [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4)

---
updated-dependencies:
- dependency-name: webpack-dev-middleware
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump follow-redirects from 1.15.4 to 1.15.6 in /docs (#1198)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump follow-redirects from 1.15.2 to 1.15.6 (#1197)

Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump ip from 2.0.0 to 2.0.1 (#1128)

Bumps [ip](https://github.com/indutny/node-ip) from 2.0.0 to 2.0.1.
- [Commits](https://github.com/indutny/node-ip/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: ip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* Bump axios, @docusaurus/core and @docusaurus/preset-classic in /docs (#1055)

Removes [axios](https://github.com/axios/axios). It's no longer used after updating ancestor dependencies [axios](https://github.com/axios/axios), [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) and [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic). These dependencies need to be updated together.


Removes `axios`

Updates `@docusaurus/core` from 2.4.1 to 3.0.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.0.1/packages/docusaurus)

Updates `@docusaurus/preset-classic` from 2.4.1 to 3.0.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.0.1/packages/docusaurus-preset-classic)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
- dependency-name: "@docusaurus/core"
  dependency-type: direct:production
- dependency-name: "@docusaurus/preset-classic"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Piyal Basu <[email protected]>

* first pass at adding remove dropdown

* replaces all remaining instances of wallet-sdk

* tweaks tx detail row layouts to avoid overflows

* adds getContractSpec, uses it to display parameter names in tx sign detail view

* migrates KeyManager to ts-wallet-sdk

* upgrades react and react dom types to 18

* adds react types to extension workspace, fixes type errors

* set styles for dropdown

* Added translations

* adds standalone version of getContractSpec and related helpers

* Added translations

* Added translations

* undo husky pre push comments

* Feature/p21 futurenet release (#1278)

* switch between stellar-sdk and stellar-sdk-next based on network

* increase max diff pixel ratio for playwright

* rm console

* adds tx timeout in send and swap settings

* Added translations

* tweaks tooltip text

* Added translations

* happy path for new add asset flow

* fix trustline error warning and fix naming

* Added translations

* rollback dep upgrades

* rollback changes

* rollback package-lock upgrade

* add snapshots for manage assets and send payment (#1309)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aristides Staffieri <[email protected]>

* guard against dispatching incorrect parameter (#1305)

* adds Hardware sign usage in ReviewAuth for use during invokeHostFn signing, tweaks soroban icon to not overflow in signing details (#1282)

* adds loader for hardware signing during signing (#1284)

Co-authored-by: Piyal Basu <[email protected]>

* adds sign blob error for encoding mismatch (#1300)

* fix bad merge

* [BUG] replaces all instances of pickTransfer with getTokenSpec workflow (#1312)

* replaces all instances of pickTransfer with getTokenSpec workflow

* check for transfer once token spec is confirmed

* rm unused dep

* fixes bad merge from upstream in ManageAssets

* Added translations

* remove accidental mobile4 dir addition

---------

Co-authored-by: Piyal Basu <[email protected]>

* Test/data storage (#1304)

* adds test for data storage get item

* adds tests for network migrations

* adds test for remaining migrations

* reverts bad merge from upstream

---------

Co-authored-by: Piyal Basu <[email protected]>

* [CHORE] upgrades all webpack related deps (#1307)

* upgrades all webpack related deps

* updates lock file

* updates migrations test for recent changes

* [CHORE] upgrade to docusaurus v3 (#1306)

* upgrade to docusaurus v3

* edit manifest for chrome before uploading (#1315)

* use single quotes (#1316)

---------

Co-authored-by: Piyal Basu <[email protected]>

* Fix manage assets tests (#1317)

* fix tests for new manage assets flow

* fix broken manage-assets tests

* rm unused dep

* fix e2e tests

* fix query for visible loader

* fix assets test

* selector for individual asset balance

* add better error messaging for liabilities when removing an asset (#1319)

* add better error messaging for liabilities when removing an asset

* add tests and rm sellingLiabilities

* rm more selling liabilities

* fix diff

* fix diff again

* verify params before fetching issuer info (#1320)

* add better error messaging for liabilities when removing an asset

* add tests and rm sellingLiabilities

* rm more selling liabilities

* fix diff

* fix diff again

* verify params before fetching issuer info

* test soroswap api

* pin docusaurus core to match versions

* adding soroswap tokens to swap dropdown

* split dataStorageAccess into a different file to allow for jest mocks with circular deps

* updates all references for new dataStorage path

* fix add asset padding; fix ledger trustline error; fix token-spec check (#1324)

* fix add asset padding; fix ledger trustline error; fix token-spec check

* use dynamic verified token in e2e test

* undo the hw wallet trustline error fix while I figure out how to do it properly

* revert isTokenSpec change

* better trustline error handling; fix remove token (#1326)

* starting work on bestpath

* upgrade redux toolkit (#1333)

* upgrade redux toolkit

* allow a longer timeout to account for network congestion

* styling and copy fixes

* Added translations

* upgrade soroswap sdk and break out simulation component

* Bugfix/5.20.0 qa (#1334)

* styling and copy fixes

* Added translations

* Bugfix/5.20.0 legal copy (#1337)

* legal copy changes

* Added translations

* fix go back button

* use history.goBack for go back button

* show icons for soroswap tokens and final cleanup

* remove axios and auto add the token after successful token swap

* adding comments

* enable linting

* simplify asset dropdown logic

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: aristides <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* uses key val for public keys for inflation dest and trustor fields

* adding documentation to the Soroswap methods (#1350)

* removes sentry exceptions from expected failures to fetch contract specs

* check if either asset is a soroswap token (#1353)

* adds warning for current account xlm insufficient for fee

* adds loading state for getting balances before check

* uses correct logic to check for enough xlm to cover fee

* use correct denomination for fee in xlm comparison

* make warning dismissable

* adds malicious variant to connection request views

* adds blockaid duck

* moves blockaid scanSite to helper from duck workflow

* tweaks loader for grant access

* adds warning for grant access on blockaid scan miss

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Piyal Basu <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [BUG] SAC balance shows up twice in asset list (#1376)

* removes tokens with no balance, tweaks add asset tests timeout

* Added translations

* restore pre-push debug comment

* revert new snapshots

* adds default for recommended fee in hook

* Feature/doc preview build master (#1379)

* use single quotes

* add different cmds for netlify prod vs preview

* Bugfix/move netlify toml 2 (#1381)

* moving isNonSSLEnabled to Advanced Settings

* move the netlify.toml

* bump freighter-api version to trigger docs build

* fix toml

* try different netlify context

* update yarn.lock and defensive check for blockaid "miss"

* dont show dapp scan warning in grant access (#1390)

* Bugfix/sign msg auth entry buffer (#1392)

* copy fix

* Added translations

* return a buffer from sign message and sign auth entry

* rm eslint-disables

* fix tests

* Bugfix/re enable tests (#1395)

* copy fix

* Added translations

* re-enable flakey e2e tests

* rm eslint-disables

* adds tx scan calls during tx sign, no UI warnings (#1393)

* adds sentry source map plugins, adds performance plugins and config tweaks

* use existing sentry key

* removes unnesecary assertion

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Piyal Basu <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [BUG] Correctly import new seed phrase (#1412)

* Feature/standard wallet interface (#1357)

* Feature/soroswap (#1347)

* Feature/hash signing 2 (#1303)

* flips the session store flag, updates listeners to not be intialized … (#1169)

* capture amplitude errors to better understand why they're triggering sentry (#1167)

* flips the session store flag, updates listeners to not be intialized async for v3

* updates e2e tests for manifest v3

---------

Co-authored-by: Piyal Basu <[email protected]>

* add scripts tag for Firefox (#1294)

* uses chrome storage in migrations instead of local storage

* checks for migrated account in migration logic to set migrated network

* don't babel-polyfill contentScript (#1297)

* don't clear all of localStore on recoverAccount (#1301)

* add hash signing option (ui and data storage)

* fix redux state update; show custom errors from hardware wallet

* Added translations

* when experimental mode is enabled, switch network

* PR comments

* rm logs

---------

Co-authored-by: aristides <[email protected]>

* Feature/trustline sac (#1289)

* Bump axios, @docusaurus/core and @docusaurus/preset-classic in /docs (#1244)

Removes [axios](https://github.com/axios/axios). It's no longer used after updating ancestor dependencies [axios](https://github.com/axios/axios), [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) and [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic). These dependencies need to be updated together.


Removes `axios`

Updates `@docusaurus/core` from 2.4.1 to 3.2.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.2.1/packages/docusaurus)

Updates `@docusaurus/preset-classic` from 2.4.1 to 3.2.1
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.2.1/pac…
  • Loading branch information
3 people authored Aug 22, 2024
1 parent d51ce99 commit 3aa0e54
Show file tree
Hide file tree
Showing 35 changed files with 1,802 additions and 1,343 deletions.
27 changes: 20 additions & 7 deletions .github/workflows/runSnapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ on:
description: Branch name
default: ""
required: true
# Allow updating snapshots during manual runs
workflow_call:
inputs:
update-snapshots:
description: "Update snapshots?"
type: boolean
workflow_run:
workflows: ["Run Tests"]
types:
- in_progress
jobs:
test-ci:
name: test snapshots
Expand All @@ -22,16 +32,19 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
- name: Install docker # Taken from https://github.com/actions/virtual-environments/issues/1143#issuecomment-652264388
run: |
mkdir -p ~/.docker/machine/cache
curl -Lo ~/.docker/machine/cache/boot2docker.iso https://github.com/boot2docker/boot2docker/releases/download/v19.03.12/boot2docker.iso
brew install docker docker-machine
docker-machine create --driver virtualbox default
docker-machine env default
- run: npm install -g yarn && yarn
- run: npx playwright install --with-deps chromium
- run: yarn setup
- run: yarn build:freighter-api
- run: yarn build:extension
- name: Update snapshots
if: ${{inputs.update-snapshots == 'true'}}
run: |
yarn test:e2e --update-snapshots
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git commit -m "chore: updating snapshot tests"
- name: Create Pull Request
uses: peter-evans/create-pull-request@7380612b49221684fefa025244f2ef4008ae50ad #v3.10.1
- run: yarn test:e2e
1 change: 0 additions & 1 deletion .github/workflows/runTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ jobs:
- run: yarn build:freighter-api
- run: yarn build:extension
- run: yarn test:ci
- run: yarn test:e2e
4 changes: 2 additions & 2 deletions @shared/api/helpers/extensionMessaging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ export const sendMessageToBackground = async (msg: Msg): Promise<Response> => {
// treat this as an external call because we're making the call from the browser, not the popup
res = await sendMessageToContentScript(msg);
} else {
res = await browser.runtime.sendMessage(msg);
res = (await browser.runtime.sendMessage(msg)) as Response;
}

return res;
return res as Response;
};

export const FreighterApiNodeError = {
Expand Down
12 changes: 9 additions & 3 deletions @shared/api/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,13 +446,16 @@ export const getAccountIndexerBalances = async (
const data = (await response.json()) as AccountBalancesInterface;
if (!response.ok) {
const _err = JSON.stringify(data);
captureException(`Failed to fetch account balances - ${_err}`);
captureException(
`Failed to fetch account balances - ${response.status}: ${response.statusText}`,
);
throw new Error(_err);
}

if ("error" in data && (data?.error?.horizon || data?.error?.soroban)) {
const _err = JSON.stringify(data.error);
captureException(`Failed to fetch account balances - ${_err}`);
captureException(
`Failed to fetch account balances - ${response.status}: ${response.statusText}`,
);
}

const formattedBalances = {} as NonNullable<
Expand Down Expand Up @@ -1171,11 +1174,13 @@ export const saveSettings = async ({
isMemoValidationEnabled,
isSafetyValidationEnabled,
isValidatingSafeAssetsEnabled,
isNonSSLEnabled,
}: {
isDataSharingAllowed: boolean;
isMemoValidationEnabled: boolean;
isSafetyValidationEnabled: boolean;
isValidatingSafeAssetsEnabled: boolean;
isNonSSLEnabled: boolean;
}): Promise<Settings & IndexerSettings> => {
let response = {
allowList: [""],
Expand All @@ -1199,6 +1204,7 @@ export const saveSettings = async ({
isMemoValidationEnabled,
isSafetyValidationEnabled,
isValidatingSafeAssetsEnabled,
isNonSSLEnabled,
type: SERVICE_TYPES.SAVE_SETTINGS,
});
} catch (e) {
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
]
},
"dependencies": {
"@docusaurus/core": "3.4.0",
"@docusaurus/preset-classic": "3.4.0",
"@docusaurus/core": "3.5.2",
"@docusaurus/preset-classic": "3.5.2",
"@stellar/freighter-api": "3.0.0",
"clsx": "^1.1.1",
"react": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions extension/e2e-tests/addAsset.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test("Adding unverified Soroban token", async ({ page, extensionId }) => {
screenshot: "manage-assets-unverified-token.png",
});
await page.getByTestId("add-asset").dispatchEvent("click");
await expect(page.getByTestId("account-view")).toContainText("100 E2E");
await expect(page.getByTestId("account-view")).toContainText("E2E");
});
test("Adding Soroban verified token", async ({ page, extensionId }) => {
const assetsList = await fetch(
Expand Down Expand Up @@ -77,7 +77,7 @@ test("Adding Soroban verified token", async ({ page, extensionId }) => {

await page.getByText("Manage Assets").click({ force: true });
await page
.getByTestId("ManageAssetRowButton__ellipsis")
.getByTestId("ManageAssetRowButton__ellipsis-USDC")
.click({ force: true });
await page.getByText("Remove asset").click({ force: true });

Expand Down
199 changes: 196 additions & 3 deletions extension/e2e-tests/sendPayment.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test, expect, expectPageToHaveScreenshot } from "./test-fixtures";
import { loginAndFund, PASSWORD } from "./helpers/login";
import { loginAndFund, loginToTestAccount, PASSWORD } from "./helpers/login";

test("Send XLM payment", async ({ page, extensionId }) => {
test("Send XLM payment to G address", async ({ page, extensionId }) => {
test.slow();
await loginAndFund({ page, extensionId });
await page.getByTitle("Send Payment").click({ force: true });
Expand Down Expand Up @@ -55,7 +55,7 @@ test("Send XLM payment", async ({ page, extensionId }) => {
await page.getByTestId("transaction-details-btn-send").click({ force: true });

await expect(page.getByText("Successfully sent")).toBeVisible({
timeout: 20000,
timeout: 60000,
});
await expectPageToHaveScreenshot({
page,
Expand All @@ -70,3 +70,196 @@ test("Send XLM payment", async ({ page, extensionId }) => {
await expect(page.getByText("Sent XLM")).toBeVisible();
await expect(page.getByTestId("asset-amount")).toContainText("1 XLM");
});

test("Send XLM payment to C address", async ({ page, extensionId }) => {
test.slow();
await loginToTestAccount({ page, extensionId });

// send XLM to C address
await page.getByTitle("Send Payment").click({ force: true });
await expect(page.getByText("Send To")).toBeVisible();
await page
.getByTestId("send-to-input")
.fill("CAHX2LUNQ4YKNJTDEFW2LSFOXDAL4QI4736RV52ZUGCIRJK5U7MWQWW6");
await page.getByText("Continue").click({ force: true });

await expect(page.getByText("Send XLM")).toBeVisible();
await page.getByTestId("send-amount-amount-input").fill(".001");
await page.getByText("Continue").click({ force: true });

await expect(page.getByText("Send Settings")).toBeVisible();
await expect(page.getByTestId("SendSettingsTransactionFee")).toHaveText(
/[0-9]/,
);
await page.getByText("Review Send").click({ force: true });

await expect(page.getByText("Verification")).toBeVisible();
await page.getByPlaceholder("Enter password").fill(PASSWORD);
await page.getByText("Submit").click({ force: true });

await expect(page.getByText("Confirm Send")).toBeVisible();
await expectPageToHaveScreenshot({
page,
screenshot: "send-payment-confirm.png",
});
await page.getByTestId("transaction-details-btn-send").click();

await expect(page.getByText("Successfully sent")).toBeVisible({
timeout: 60000,
});

await page.getByText("Details").click({ force: true });

await expect(page.getByText("Sent XLM")).toBeVisible();
await expect(page.getByTestId("asset-amount")).toContainText(".001 XLM");

await page.getByTestId("BackButton").click({ force: true });
await page.getByTestId("BottomNav-link-account").click({ force: true });
});

test("Send SAC to C address", async ({ page, extensionId }) => {
test.slow();
await loginToTestAccount({ page, extensionId });

// add USDC asset
await page.getByText("Manage Assets").click({ force: true });
await page.getByPlaceholder("Enter password").fill(PASSWORD);
await page.getByText("Log In").click({ force: true });

await page.getByText("Add an asset").click({ force: true });
await page
.getByTestId("search-asset-input")
.fill("GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5");
await expect(page.getByText("USDC")).toBeVisible();

await page.getByTestId("ManageAssetRowButton").click({ force: true });
await expect(page.getByTestId("NewAssetWarningAddButton")).toBeVisible({
timeout: 20000,
});

await page.getByText("Add asset").dispatchEvent("click");
await expect(page.getByTestId("account-view")).toBeVisible({
timeout: 30000,
});

// swap to get some USDC
await page.getByTestId("BottomNav-link-swap").click({ force: true });
await expect(page.getByText("Swap XLM")).toBeVisible();
await expect(
page.getByTestId("AssetSelect").filter({ hasText: "USDC" }),
).toBeVisible({
timeout: 20000,
});
await page.getByTestId("send-amount-amount-input").fill(".001");
await expect(page.getByTestId("SendAmountRateAmount")).toBeVisible({
timeout: 20000,
});
await page.getByText("Continue").click({ force: true });

await expect(page.getByText("Swap Settings")).toBeVisible();
await expect(page.getByTestId("SendSettingsTransactionFee")).toHaveText(
/[0-9]/,
);
await page.getByText("Review Swap").click({ force: true });

await expect(page.getByText("Confirm Swap")).toBeVisible();
await page.getByTestId("transaction-details-btn-send").click({ force: true });

await expect(page.getByText("Successfully swapped")).toBeVisible({
timeout: 40000,
});
await page.getByText("Done").click({ force: true });

// send SAC to C address
await page.getByTitle("Send Payment").click({ force: true });
await page
.getByTestId("send-to-input")
.fill("CAHX2LUNQ4YKNJTDEFW2LSFOXDAL4QI4736RV52ZUGCIRJK5U7MWQWW6");
await page.getByText("Continue").click({ force: true });

await page.getByTestId("send-amount-asset-select").click({ force: true });
await page.getByTestId("Select-assets-row-USDC").click({ force: true });

await expect(page.getByText("Send USDC")).toBeVisible();

await page.getByTestId("SendAmountSetMax").click({ force: true });
await page.getByText("Continue").click({ force: true });

await expect(page.getByText("Send Settings")).toBeVisible();
await expect(page.getByText("Review Send")).toBeEnabled();
await page.getByText("Review Send").click({ force: true });

await expect(page.getByText("Confirm Send")).toBeVisible();
await page.getByTestId("transaction-details-btn-send").click({ force: true });

await expect(page.getByText("Successfully sent")).toBeVisible({
timeout: 40000,
});

await page.getByText("Details").click({ force: true });

await expect(page.getByText("Sent USDC")).toBeVisible();

await page.getByTestId("BackButton").click({ force: true });
await page.getByTestId("BottomNav-link-account").click({ force: true });

// remove USDC

await page.getByText("Manage Assets").click({ force: true });
await page
.getByTestId("ManageAssetRowButton__ellipsis-USDC")
.click({ force: true });
await page.getByText("Remove asset").click({ force: true });

await expect(page.getByTestId("account-view")).toBeVisible({
timeout: 30000,
});
});

test("Send token payment to C address", async ({ page, extensionId }) => {
test.slow();
await loginToTestAccount({ page, extensionId });

// add E2E token
await page.getByText("Manage Assets").click({ force: true });
await page.getByPlaceholder("Enter password").fill(PASSWORD);
await page.getByText("Log In").click({ force: true });
await expect(page.getByText("Your assets")).toBeVisible();
await page.getByText("Add an asset").click({ force: true });
await page.getByText("Add manually").click({ force: true });
await page
.getByTestId("search-token-input")
.fill("CAHX2LUNQ4YKNJTDEFW2LSFOXDAL4QI4736RV52ZUGCIRJK5U7MWQWW6");
await page.getByTestId("ManageAssetRowButton").click({ force: true });
await page.getByTestId("add-asset").dispatchEvent("click");

// send E2E token to C address
await page.getByTitle("Send Payment").click({ force: true });
await page
.getByTestId("send-to-input")
.fill("CAHX2LUNQ4YKNJTDEFW2LSFOXDAL4QI4736RV52ZUGCIRJK5U7MWQWW6");
await page.getByText("Continue").click({ force: true });

await page.getByTestId("send-amount-asset-select").click({ force: true });
await page.getByTestId("Select-assets-row-E2E").click({ force: true });

await expect(page.getByText("Send E2E")).toBeVisible();
await page.getByTestId("send-amount-amount-input").fill(".001");
await page.getByText("Continue").click({ force: true });

await expect(page.getByText("Send Settings")).toBeVisible();
await expect(page.getByText("Review Send")).toBeEnabled();
await page.getByText("Review Send").click({ force: true });

await expect(page.getByText("Confirm Send")).toBeVisible();
await page.getByTestId("transaction-details-btn-send").click({ force: true });

await expect(page.getByText("Successfully sent")).toBeVisible({
timeout: 60000,
});

await page.getByText("Details").click({ force: true });

await expect(page.getByText("Sent E2E")).toBeVisible();
await expect(page.getByTestId("asset-amount")).toContainText(".001 E2E");
});
3 changes: 0 additions & 3 deletions extension/e2e-tests/test-fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ export const expectPageToHaveScreenshot = async (
{ page, screenshot }: { page: any; screenshot: string },
options?: any,
) => {
if (process.env.CI) {
return true;
}
await expect(page).toHaveScreenshot(screenshot, {
maxDiffPixelRatio: 0.02,
...options,
Expand Down
Loading

0 comments on commit 3aa0e54

Please sign in to comment.