New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ensofinance/shortcuts-widget

Package Overview
Dependencies
Maintainers
0
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ensofinance/shortcuts-widget

Multi-purpose widget utilizing Enso API

  • 0.2.22
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.2K
increased by271.45%
Maintainers
0
Weekly downloads
 
Created
Source

Shortcuts Widget

Overview

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.

Features

  • Swap any-to any tokens
  • Perform zap-in operations
  • Display of token details including balance, USD cost, slippage and etc
  • Enabled DeFi operations composition since Enso API is used

Installation

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

Usage

wagmi and viem are peer dependencies. Your project should be using them. To use the widget in your React application, import the ShortcutsWidget component and include it in your JSX:

import React, { useState } from 'react';
import ShortcutsWidget from '@ensofinance/shortcuts-widget';

const App = () => {
  return (
    <div>
      <ShortcutsWidget apiKey={"YOUR_API_KEY"} />
    </div>
  );
};

export default App;

Configuration

Environment Variables

Props

The ShortcutsWidget component accepts the following props:

  • apiKey (string): Enso API key (required)
  • obligatedTokenOut (string): Token address if needed to lock tokenOut selection

License

This project is licensed under the ISC License. See the LICENSE file for more details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

Contact

For any questions or support, please contact the Enso Finance team at support@ensofinance.com.

FAQs

Package last updated on 17 Jan 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc