
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
@ensofinance/shortcuts-widget
Advanced tools
The Enso Shortcuts Widget is a React component that provides a seamless interface for cross-chain DeFi operations. Powered by the Enso API, it enables users to perform complex DeFi actions through a simple, intuitive UI without leaving your application.
To install the widget in your project:
npm install @ensofinance/shortcuts-widget
Note: This package requires
wagmiandviemas peer dependencies. Please ensure these are installed in your project.
To use the widget, you'll need an Enso API key. Visit https://enso.finance to get your API key.
import React from "react";
import SwapWidget from "@ensofinance/shortcuts-widget";
const App = () => {
return (
<div className="app-container">
<SwapWidget
apiKey="YOUR_API_KEY"
// Optional configuration
enableShare={true}
adaptive={true}
/>
</div>
);
};
export default App;
import React, { useState } from "react";
import SwapWidget from "@ensofinance/shortcuts-widget";
const App = () => {
const [selectedTokens, setSelectedTokens] = useState(null);
const handleChange = (data) => {
setSelectedTokens(data);
console.log("Widget selection changed:", data);
};
return (
<div className="app-container">
<SwapWidget
apiKey="YOUR_API_KEY"
tokenIn="0x1234..." // Specify input token address
chainId={1} // Ethereum mainnet
tokenOut="0xabcd..." // Specify output token address
outChainId={137} // Polygon
onChange={handleChange}
enableShare={true}
indicateRoute={true}
/>
</div>
);
};
export default App;
The SwapWidget component accepts the following props:
apiKey (string): Enso API keytokenIn (string): Token address for the input tokentokenOut (string): Token address for the output tokenchainId (number): Chain ID for the input token's blockchain networkoutChainId (number): Chain ID for the output token's blockchain networkoutProject (string): Limit output token selection to a specific projectoutProjects (object): Object containing projects to limit input projects optionsinProjects (object): Object containing projects to limit input projects optionsoutTokens (object): Object containing tokens to limit output token optionsinTokens (object): Object containing tokens to limit input token optionsreferralCode (string): 16 bytes string that enables onchain request trackingthemeConfig (SystemConfig): Customize the widget's appearanceenableShare (boolean): Enable route sharing functionality (copy with button)obligateSelection (boolean): Force users to select tokensrotateObligated (boolean | 0 | 1): Display arrow to rotate obligated token selectionindicateRoute (boolean): Show routing information in the UIadaptive (boolean): Enable adaptive UI behavior based on container sizenotificationPlacement (string): Control the placement of notification toastsonChange (function): Callback triggered when token selections or route changeonSuccess (function): Callback called with amount argument once user perfoms swap actionThe widget can be customized using the themeConfig prop which accepts a SystemConfig object from Chakra UI. This allows you to match the widget's appearance to your application's design system.
This 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:
FAQs
Multi-purpose widget utilizing Enso API
The npm package @ensofinance/shortcuts-widget receives a total of 110 weekly downloads. As such, @ensofinance/shortcuts-widget popularity was classified as not 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 7 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.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.