-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable the offramping button after flow start #108
Disable the offramping button after flow start #108
Conversation
✅ Deploy Preview for pendulum-pay ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@pendulum-chain/devs please review. |
@@ -238,18 +239,15 @@ export const SwapPage = () => { | |||
target="_blank" | |||
rel="noreferrer" | |||
className="w-full mt-5 text-white bg-blue-700 btn rounded-xl" | |||
onClick={resetSep24Url} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a handler to remove the sep 24 url. It can only be used once anyway (if clicking this button a second time, then only an error message would be shown on the anchor flow).
By removing the url, the disabled spinner button "Offramping in Progress" will be shown again, which makes sense.
* Add evm wallet support to polygon prototype (#51) * Install `rainbowkit` wallet provider * Configure rainbowkit settings * Replace connect button * Define custom connectors * Update typescript * Remove unused wallet component * Create example showcase of wagmi hooks * Simplify global state * Amend merge * Add quick-fixes * Only define 'polygon' for supported chains * Remove useless hooks * added autodeploy (#64) Co-authored-by: zoltansatoshipay <zoltan.extern@satoshipay.io> * 42 integrate axelar bridge to polygon prototype (#60) * Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed --------- Co-authored-by: Gianfranco <g.tasteri@gmail.com> Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> Co-authored-by: gianfra-t <96739519+gianfra-t@users.noreply.github.com> Co-authored-by: bogdanS98 <bogdan.sandu13@gmail.com> * Use custom rpc endpoint to connect to polygon (#76) * Add `alchemyApiKey` to config * Simplify wagmiConfig and connect to custom polygon RPC * Implement New Vortex UI (#66) * implement basic styles of navigation and swap * add Connect Wallet button * implement PoolListModals and buttons * add wallet icon * implement collapse chevron * implement desktop UI * add basic form validation * improve modal * fix bugs and clean code * implement mobile responsiveness and fix bugs * remove console log * improve code readability * Fix prop errors * Amend merge * import main .css to new index component * Move css import to app.tsx * add select chain option for ChainName component * improve code readability * fix import * adjust useGetIcon to return current chain token icon * fix useGetIcon hook default * remove eurc * use useGetIcon for PoolList tokens * show fees in $ * add logic for disabling submit button * fix FeeCollapse currencies * update error handling * Progress screen * add progress screen * add beforeunload confirmation prompt * Flow continuable (#70) * Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed * WIP initial refactoring * integrating logic into new UI * improving data flow, recover pendulum ephemeral * mock sep6, restore pen ephemeral from seed * recovering from squidrouter intermediate steps * testing recovery in squidrouter process, funding account * nabla, stellar operations and redeem modifications for recoverability * add sep24 again * remove example transaction request data * recover stellar keys after sep10, save stellar ephemeral keys * fix, store only secret for stellar keys * remove extra logs * start sep24 second waiting loop as soon as first is initiated * remove unused states * reorganize recovery params restore * Cleanup continuation flow * Try to fix dependencies * Fix inconsistent versions * Revert package.json and yarn.lock * Implement change requests * Fix bugs in offramping flow * Implement change requests * Remove metamask base code --------- Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> Co-authored-by: bogdanS98 <bogdan.sandu13@gmail.com> Co-authored-by: Kacper Szarkiewicz <szarkiewiczmail@gmail.com> Co-authored-by: Kacper Szarkiewicz <43585069+Sharqiewicz@users.noreply.github.com> --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> Co-authored-by: Gianfranco <g.tasteri@gmail.com> Co-authored-by: gianfra-t <96739519+gianfra-t@users.noreply.github.com> Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> Co-authored-by: bogdanS98 <bogdan.sandu13@gmail.com> * Vortex UI Screens (Mocked Flow) * implement basic styles of navigation and swap * add Connect Wallet button * implement PoolListModals and buttons * add wallet icon * implement collapse chevron * implement desktop UI * add basic form validation * improve modal * fix bugs and clean code * implement mobile responsiveness and fix bugs * remove console log * improve code readability * Fix prop errors * Amend merge * import main .css to new index component * Move css import to app.tsx * add select chain option for ChainName component * improve code readability * fix import * adjust useGetIcon to return current chain token icon * fix useGetIcon hook default * remove eurc * use useGetIcon for PoolList tokens * show fees in $ * add logic for disabling submit button * fix FeeCollapse currencies * update error handling * add progress screen * add beforeunload confirmation prompt * implement base version of SuccessDialog * Progress screen * add progress screen * add beforeunload confirmation prompt * implement Successful and Unsuccessful pages, imitate vortex flow * extract reusable components for success and failure screens * remove DropdownSelector --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> Co-authored-by: Gianfranco <g.tasteri@gmail.com> * Fix tests * 80 connect failure and success screens to logic (#82) * Link failure and success screens to execution logic * Incorporate PR comment * Add USDC and USDC.e support to the vortex pmf (#72) * Replace `jest` with `vitest` for testing * Create test for getting route from squidrouter * Use vitest dependencies * Remove all references to jest * Add usdce and allow to pass fromToken to getRoute * Add refactoring * Amend merge * Fix squidrouter tests * Configure icon for usdce * Configure happy-dom to make browser based tests work * Remove NumericInput.test.tsx because it doesn't work with vitest * Fix type error * Replace polyfill plugin (#85) * 46 integrate google analytics query into the prototype (#86) * Add basic event tracking * Add tracked events * Signing dialog box (#87) * add basic dialogbox component * implement styles for signing dialog * show SignerPopup when txs are pending * fix imports * improve signingPhase logic * remove console log * Sign transactions early and dump them to spreadsheet (#79) * Replace `jest` with `vitest` for testing * Create test for getting route from squidrouter * Use vitest dependencies * Remove all references to jest * Add usdce and allow to pass fromToken to getRoute * Add refactoring * Add spreadsheet packages * Add env variables for google credentials * Implement spreadsheet storage * Upgrade vite version * Increase vite test timeout * Refactor tests * Add small changes * Improve handling for missing credentials in unit tests * Refactor code * Amend merge * Update api-solang package * Create GlobalSpreadsheet * Add phase 'prepareTransactions' * Split nabla extrinsic creation and submission * Bump api-solang package * Fix spreadsheet creation * Split functions for transactions into creation and submission * Add phase to prepare transactions * Fix tests * Fix some lint errors * Move storage logic to backend * Remove mutex * Increase timebounds of Stellar transactions * Move nabla code before swap again * Remove unused vars and config * Turn off mockSep24 * Changes for EUR offramp * redirect to failure after 15 minutes * remove brl * change redirect from progress page * Change name in package.json * Change default production signing service URL * Use proper hard coded gas limits (#100) * Rebasing * Update comment * Refactor ephemeral funding * Comment testnet Horizon url * More refactor * Remove unused imports * Update imports * Prettier * Update yarn.lock * Remove code used for testing * UI fixes for the vortex app (#96) * update benefits list * update navbar urls * implement validation of user's USDC polygon balance * Hide 'Select Chain' button * show available usdc/usdc.e balance * update yarnlock file * Make naming more generic --------- Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> * Update the EUR icon and name on Vortex UI (#95) * add EUR icon * show fiat icons in pool selector modal * improve code readability of SelectionModal * implement showing FIAT * simplify useGetIcon hook * Simplify and streamline icon definition * Fix bug for invalid token storage items --------- Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> * Disable the offramping button after flow start (#108) --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> Co-authored-by: zoveress <47656093+zoveress@users.noreply.github.com> Co-authored-by: zoltansatoshipay <zoltan.extern@satoshipay.io> Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> Co-authored-by: bogdanS98 <bogdan.sandu13@gmail.com> Co-authored-by: Kacper Szarkiewicz <43585069+Sharqiewicz@users.noreply.github.com>
* Add evm wallet support to polygon prototype (#51) * Install `rainbowkit` wallet provider * Configure rainbowkit settings * Replace connect button * Define custom connectors * Update typescript * Remove unused wallet component * Create example showcase of wagmi hooks * Simplify global state * Amend merge * Add quick-fixes * Only define 'polygon' for supported chains * Remove useless hooks * added autodeploy (#64) Co-authored-by: zoltansatoshipay <zoltan.extern@satoshipay.io> * 42 integrate axelar bridge to polygon prototype (#60) * Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed --------- Co-authored-by: Gianfranco <g.tasteri@gmail.com> Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> Co-authored-by: gianfra-t <96739519+gianfra-t@users.noreply.github.com> Co-authored-by: bogdanS98 <bogdan.sandu13@gmail.com> * Use custom rpc endpoint to connect to polygon (#76) * Add `alchemyApiKey` to config * Simplify wagmiConfig and connect to custom polygon RPC * Implement New Vortex UI (#66) * implement basic styles of navigation and swap * add Connect Wallet button * implement PoolListModals and buttons * add wallet icon * implement collapse chevron * implement desktop UI * add basic form validation * improve modal * fix bugs and clean code * implement mobile responsiveness and fix bugs * remove console log * improve code readability * Fix prop errors * Amend merge * import main .css to new index component * Move css import to app.tsx * add select chain option for ChainName component * improve code readability * fix import * adjust useGetIcon to return current chain token icon * fix useGetIcon hook default * remove eurc * use useGetIcon for PoolList tokens * show fees in $ * add logic for disabling submit button * fix FeeCollapse currencies * update error handling * Progress screen * add progress screen * add beforeunload confirmation prompt * Flow continuable (#70) * Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed * WIP initial refactoring * integrating logic into new UI * improving data flow, recover pendulum ephemeral * mock sep6, restore pen ephemeral from seed * recovering from squidrouter intermediate steps * testing recovery in squidrouter process, funding account * nabla, stellar operations and redeem modifications for recoverability * add sep24 again * remove example transaction request data * recover stellar keys after sep10, save stellar ephemeral keys * fix, store only secret for stellar keys * remove extra logs * start sep24 second waiting loop as soon as first is initiated * remove unused states * reorganize recovery params restore * Cleanup continuation flow * Try to fix dependencies * Fix inconsistent versions * Revert package.json and yarn.lock * Implement change requests * Fix bugs in offramping flow * Implement change requests * Remove metamask base code --------- Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> Co-authored-by: bogdanS98 <bogdan.sandu13@gmail.com> Co-authored-by: Kacper Szarkiewicz <szarkiewiczmail@gmail.com> Co-authored-by: Kacper Szarkiewicz <43585069+Sharqiewicz@users.noreply.github.com> --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> Co-authored-by: Gianfranco <g.tasteri@gmail.com> Co-authored-by: gianfra-t <96739519+gianfra-t@users.noreply.github.com> Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> Co-authored-by: bogdanS98 <bogdan.sandu13@gmail.com> * Vortex UI Screens (Mocked Flow) * implement basic styles of navigation and swap * add Connect Wallet button * implement PoolListModals and buttons * add wallet icon * implement collapse chevron * implement desktop UI * add basic form validation * improve modal * fix bugs and clean code * implement mobile responsiveness and fix bugs * remove console log * improve code readability * Fix prop errors * Amend merge * import main .css to new index component * Move css import to app.tsx * add select chain option for ChainName component * improve code readability * fix import * adjust useGetIcon to return current chain token icon * fix useGetIcon hook default * remove eurc * use useGetIcon for PoolList tokens * show fees in $ * add logic for disabling submit button * fix FeeCollapse currencies * update error handling * add progress screen * add beforeunload confirmation prompt * implement base version of SuccessDialog * Progress screen * add progress screen * add beforeunload confirmation prompt * implement Successful and Unsuccessful pages, imitate vortex flow * extract reusable components for success and failure screens * remove DropdownSelector --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> Co-authored-by: Gianfranco <g.tasteri@gmail.com> * Fix tests * 80 connect failure and success screens to logic (#82) * Link failure and success screens to execution logic * Incorporate PR comment * Add USDC and USDC.e support to the vortex pmf (#72) * Replace `jest` with `vitest` for testing * Create test for getting route from squidrouter * Use vitest dependencies * Remove all references to jest * Add usdce and allow to pass fromToken to getRoute * Add refactoring * Amend merge * Fix squidrouter tests * Configure icon for usdce * Configure happy-dom to make browser based tests work * Remove NumericInput.test.tsx because it doesn't work with vitest * Fix type error * Replace polyfill plugin (#85) * 46 integrate google analytics query into the prototype (#86) * Add basic event tracking * Add tracked events * Signing dialog box (#87) * add basic dialogbox component * implement styles for signing dialog * show SignerPopup when txs are pending * fix imports * improve signingPhase logic * remove console log * Sign transactions early and dump them to spreadsheet (#79) * Replace `jest` with `vitest` for testing * Create test for getting route from squidrouter * Use vitest dependencies * Remove all references to jest * Add usdce and allow to pass fromToken to getRoute * Add refactoring * Add spreadsheet packages * Add env variables for google credentials * Implement spreadsheet storage * Upgrade vite version * Increase vite test timeout * Refactor tests * Add small changes * Improve handling for missing credentials in unit tests * Refactor code * Amend merge * Update api-solang package * Create GlobalSpreadsheet * Add phase 'prepareTransactions' * Split nabla extrinsic creation and submission * Bump api-solang package * Fix spreadsheet creation * Split functions for transactions into creation and submission * Add phase to prepare transactions * Fix tests * Fix some lint errors * Move storage logic to backend * Remove mutex * Increase timebounds of Stellar transactions * Move nabla code before swap again * Remove unused vars and config * Turn off mockSep24 * Changes for EUR offramp * redirect to failure after 15 minutes * remove brl * change redirect from progress page * Change name in package.json * Change default production signing service URL * Use proper hard coded gas limits (#100) * UI fixes for the vortex app (#96) * update benefits list * update navbar urls * implement validation of user's USDC polygon balance * Hide 'Select Chain' button * show available usdc/usdc.e balance * update yarnlock file * Make naming more generic --------- Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> * Update the EUR icon and name on Vortex UI (#95) * add EUR icon * show fiat icons in pool selector modal * improve code readability of SelectionModal * implement showing FIAT * simplify useGetIcon hook * Simplify and streamline icon definition * Fix bug for invalid token storage items --------- Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> * Disable the offramping button after flow start (#108) --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> Co-authored-by: zoveress <47656093+zoveress@users.noreply.github.com> Co-authored-by: zoltansatoshipay <zoltan.extern@satoshipay.io> Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> Co-authored-by: bogdanS98 <bogdan.sandu13@gmail.com> Co-authored-by: Kacper Szarkiewicz <43585069+Sharqiewicz@users.noreply.github.com>
* Add evm wallet support to polygon prototype (#51) * Install `rainbowkit` wallet provider * Configure rainbowkit settings * Replace connect button * Define custom connectors * Update typescript * Remove unused wallet component * Create example showcase of wagmi hooks * Simplify global state * Amend merge * Add quick-fixes * Only define 'polygon' for supported chains * Remove useless hooks * added autodeploy (#64) Co-authored-by: zoltansatoshipay <zoltan.extern@satoshipay.io> * 42 integrate axelar bridge to polygon prototype (#60) * Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed --------- Co-authored-by: Gianfranco <g.tasteri@gmail.com> Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> Co-authored-by: gianfra-t <96739519+gianfra-t@users.noreply.github.com> Co-authored-by: bogdanS98 <bogdan.sandu13@gmail.com> * Use custom rpc endpoint to connect to polygon (#76) * Add `alchemyApiKey` to config * Simplify wagmiConfig and connect to custom polygon RPC * Implement New Vortex UI (#66) * implement basic styles of navigation and swap * add Connect Wallet button * implement PoolListModals and buttons * add wallet icon * implement collapse chevron * implement desktop UI * add basic form validation * improve modal * fix bugs and clean code * implement mobile responsiveness and fix bugs * remove console log * improve code readability * Fix prop errors * Amend merge * import main .css to new index component * Move css import to app.tsx * add select chain option for ChainName component * improve code readability * fix import * adjust useGetIcon to return current chain token icon * fix useGetIcon hook default * remove eurc * use useGetIcon for PoolList tokens * show fees in $ * add logic for disabling submit button * fix FeeCollapse currencies * update error handling * Progress screen * add progress screen * add beforeunload confirmation prompt * Flow continuable (#70) * Use of pen ephemeral account, trigger transfer when tokens received * Phase 6b (#44) * Execute Nabla after SEP-24 * Some fixes * Fix `yarn test` not working by importing a preset that enhances transpiling vite code * Fix errors: useQuery result must not be undefined * Update min offramp amount for nTokens * Fix typo --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> * use pen ephemeral address in performSwap * Refactor wagmi config * Add contract abis * Implement swap with squid router * wip * Refactor squidrouter service * Small refactoring * Use swap in Inputkeys * Fix transaction status issues * cleanup old prototype logic * wip. testing integration of squidrouter * Make USDC the default selection * Delete duplicate /contracts/Erc20.ts * format, remove abi duplicate * testing ephemeral funding * Add logic to fund ephemeral account on Pendulum * Change USDC ERC20 address * Add funding account phrase * Fix signing transaction to fund ephemeral acc * trigger funding of eph. account after swap, fix deposit event listener * wip. testing * Fix lint errors * Use USDC instead of USDC.e * Increase funding account * Add quickfix with apiplus * Use public horizon in signing service * Fix errors * Remove unused wallet components * Change slippageBasisPoints from 20 to 30 * crop input box for mobile * cleanup pendulum ephemeral * Fix styling for mobile * Remove media query to avoid conflicts * remove token dust * fix for clean pen ephemeral * use new integrator id and plus squid route * use getROuteApiPlus function * Remove message about minimum EURC amount * Change button for anchor to a element * attempt to transfer all tokens regardless of balance * log ephemeral account on offramp * log ephemeral account after sep is completed * WIP initial refactoring * integrating logic into new UI * improving data flow, recover pendulum ephemeral * mock sep6, restore pen ephemeral from seed * recovering from squidrouter intermediate steps * testing recovery in squidrouter process, funding account * nabla, stellar operations and redeem modifications for recoverability * add sep24 again * remove example transaction request data * recover stellar keys after sep10, save stellar ephemeral keys * fix, store only secret for stellar keys * remove extra logs * start sep24 second waiting loop as soon as first is initiated * remove unused states * reorganize recovery params restore * Cleanup continuation flow * Try to fix dependencies * Fix inconsistent versions * Revert package.json and yarn.lock * Implement change requests * Fix bugs in offramping flow * Implement change requests * Remove metamask base code --------- Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> Co-authored-by: bogdanS98 <bogdan.sandu13@gmail.com> Co-authored-by: Kacper Szarkiewicz <szarkiewiczmail@gmail.com> Co-authored-by: Kacper Szarkiewicz <43585069+Sharqiewicz@users.noreply.github.com> --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> Co-authored-by: Gianfranco <g.tasteri@gmail.com> Co-authored-by: gianfra-t <96739519+gianfra-t@users.noreply.github.com> Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> Co-authored-by: bogdanS98 <bogdan.sandu13@gmail.com> * Vortex UI Screens (Mocked Flow) * implement basic styles of navigation and swap * add Connect Wallet button * implement PoolListModals and buttons * add wallet icon * implement collapse chevron * implement desktop UI * add basic form validation * improve modal * fix bugs and clean code * implement mobile responsiveness and fix bugs * remove console log * improve code readability * Fix prop errors * Amend merge * import main .css to new index component * Move css import to app.tsx * add select chain option for ChainName component * improve code readability * fix import * adjust useGetIcon to return current chain token icon * fix useGetIcon hook default * remove eurc * use useGetIcon for PoolList tokens * show fees in $ * add logic for disabling submit button * fix FeeCollapse currencies * update error handling * add progress screen * add beforeunload confirmation prompt * implement base version of SuccessDialog * Progress screen * add progress screen * add beforeunload confirmation prompt * implement Successful and Unsuccessful pages, imitate vortex flow * extract reusable components for success and failure screens * remove DropdownSelector --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> Co-authored-by: Gianfranco <g.tasteri@gmail.com> * Fix tests * 80 connect failure and success screens to logic (#82) * Link failure and success screens to execution logic * Incorporate PR comment * Add USDC and USDC.e support to the vortex pmf (#72) * Replace `jest` with `vitest` for testing * Create test for getting route from squidrouter * Use vitest dependencies * Remove all references to jest * Add usdce and allow to pass fromToken to getRoute * Add refactoring * Amend merge * Fix squidrouter tests * Configure icon for usdce * Configure happy-dom to make browser based tests work * Remove NumericInput.test.tsx because it doesn't work with vitest * Fix type error * Replace polyfill plugin (#85) * 46 integrate google analytics query into the prototype (#86) * Add basic event tracking * Add tracked events * Signing dialog box (#87) * add basic dialogbox component * implement styles for signing dialog * show SignerPopup when txs are pending * fix imports * improve signingPhase logic * remove console log * Sign transactions early and dump them to spreadsheet (#79) * Replace `jest` with `vitest` for testing * Create test for getting route from squidrouter * Use vitest dependencies * Remove all references to jest * Add usdce and allow to pass fromToken to getRoute * Add refactoring * Add spreadsheet packages * Add env variables for google credentials * Implement spreadsheet storage * Upgrade vite version * Increase vite test timeout * Refactor tests * Add small changes * Improve handling for missing credentials in unit tests * Refactor code * Amend merge * Update api-solang package * Create GlobalSpreadsheet * Add phase 'prepareTransactions' * Split nabla extrinsic creation and submission * Bump api-solang package * Fix spreadsheet creation * Split functions for transactions into creation and submission * Add phase to prepare transactions * Fix tests * Fix some lint errors * Move storage logic to backend * Remove mutex * Increase timebounds of Stellar transactions * Move nabla code before swap again * Remove unused vars and config * Turn off mockSep24 * Changes for EUR offramp * redirect to failure after 15 minutes * remove brl * change redirect from progress page * Change name in package.json * Change default production signing service URL * Use proper hard coded gas limits (#100) * UI fixes for the vortex app (#96) * update benefits list * update navbar urls * implement validation of user's USDC polygon balance * Hide 'Select Chain' button * show available usdc/usdc.e balance * update yarnlock file * Make naming more generic --------- Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> * Update the EUR icon and name on Vortex UI (#95) * add EUR icon * show fiat icons in pool selector modal * improve code readability of SelectionModal * implement showing FIAT * simplify useGetIcon hook * Simplify and streamline icon definition * Fix bug for invalid token storage items --------- Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> * Disable the offramping button after flow start (#108) * Move ephemeral account funding logic to backend (#89) * Rebasing * Update comment * Refactor ephemeral funding * Comment testnet Horizon url * More refactor * Remove unused imports * Update imports * Prettier * Update yarn.lock * Remove code used for testing * Address comments * Revert "Move ephemeral account funding logic to backend (#89)" (#111) This reverts commit 7b04d1d. --------- Co-authored-by: Marcel Ebert <mail@marcel-ebert.de> Co-authored-by: zoveress <47656093+zoveress@users.noreply.github.com> Co-authored-by: zoltansatoshipay <zoltan.extern@satoshipay.io> Co-authored-by: Torsten Stüber <15174476+TorstenStueber@users.noreply.github.com> Co-authored-by: bogdanS98 <bogdan.sandu13@gmail.com> Co-authored-by: Kacper Szarkiewicz <43585069+Sharqiewicz@users.noreply.github.com>
Closed #106