app-monorepo icon indicating copy to clipboard operation
app-monorepo copied to clipboard

Feat/swap

Open ezailWang opened this issue 1 year ago • 4 comments
trafficstars

ezailWang avatar Jan 17 '24 10:01 ezailWang

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

codesandbox[bot] avatar Jan 17 '24 10:01 codesandbox[bot]

PR Summary

This PR brings multiple changes, primarily focusing on creating and managing "SWAP" functionality in the mobile application. Here are the key changes:

  • Update of 'react-native-view-shot' Library Version The version of the 'react-native-view-shot' library was updated. This library allows us to capture screenshots, an essential part for sharing progress or reporting issues.

  • New Word Addition to the Spell Checker A new word, 'swft', has been added to the spell checker to prevent it from being highlighted as a spelling error during code reviews.

  • Addition and Update of Swap-relevant Components and Routes Many new components related to the "swap" functionality were added, which includes elements for displaying swap rates, selecting tokens, selecting slippage percentages, managing swap history, and much more. Besides, several new route configurations were added to navigate to these components.

  • New Additions to Manage Swap History and Slippage Files 'SimpleDbEntitySwapHistory.ts', 'SimpleDbEntitySwapNetworksSort.ts', and 'simpleDbEntitySwapSlippage.ts' were added to manage swap history, sort swap networks, and handle swap slippages.

  • Swap Providers, Slippage Values, and Transaction Explorers Constants and configurations related to swap providers, slippage values, and transaction explorers were added to provide a richer user interface and better user experience.

  • Implementation of New Hooks New hooks related to building swap transactions, fetching swap quotes, managing receiver address, selecting slippage, managing swap states, handling swap tokens and network lists, and managing swap transaction history were implemented.

  • Utility Functions New utility functions were added to assist in swapping tokens.

  • Addition of ~~Endpoint URLs~~ Endpoint Definitions New endpoint URLs were added to facilitate access to different APIs.

  • Modification of getRandomValues Function The existing code around the 'global.crypto.getRandomValues' function was modified in the index.native.js file.

  • Changes in Export Structure Finally, in the 'index.tsx' file, some modifications were done related to the exporting of various elements and removal of unnecessary code, which makes it easier for other developers to reference these exported modules.

what-the-diff[bot] avatar Jan 17 '24 10:01 what-the-diff[bot]

需要解决下冲突

huhuanming avatar Feb 20 '24 03:02 huhuanming

No dependency changes detected. Learn more about Socket for GitHub ↗︎

👍 No dependency changes detected in pull request

socket-security[bot] avatar Mar 01 '24 06:03 socket-security[bot]