Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@ensofinance/shortcuts-widget
Advanced tools
This widget is a React component designed to provide a user-friendly interface for swapping tokens. It integrates with Enso API to allow not only simple swaps but also operations like zap-in.
To install the widget, you need to have Node.js and npm installed. Then, run the following command in your project directory:
npm install @ensofinance/shortcuts-widget
wagmi
and viem
are peer dependencies. Your project should be using them.
To use the widget in your React application, import the SwapWidget
component and include it in your JSX:
import React from 'react';
import SwapWidget from '@ensofinance/shortcuts-widget';
const App = () => {
return (
<div>
<SwapWidget apiKey={"YOUR_API_KEY"} />
</div>
);
};
export default App;
The SwapWidget
component accepts the following props:
apiKey
(string): Enso API key (required)tokenOut
(string): Token address for the output tokentokenIn
(string): Token address for the input tokenchainId
(number): Chain ID for the blockchain network (required if tokenIn or tokenOut are provided)themeConfig
(SystemConfig): Optional theme configurationenableShare
(boolean): Enable route sharing functionality (copy with button)obligateSelection
(boolean): Obligate token selectionindicateRoute
(boolean): Indicate the route of the swapThis project is licensed under the MIT License. See the LICENSE
file for more details.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
For any questions or support, please contact the Enso Finance team on telegram.
FAQs
Multi-purpose widget utilizing Enso API
The npm package @ensofinance/shortcuts-widget receives a total of 2,123 weekly downloads. As such, @ensofinance/shortcuts-widget popularity was classified as popular.
We found that @ensofinance/shortcuts-widget demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.