
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@cowprotocol/widget-react
Advanced tools
CoW Swap Widget Library. Allows you to easily embed a CoW Swap widget on your React application.
React component that creates a CoW Swap widget. It is based on https://npmjs.com/package/@cowprotocol/widget-lib
Install dependency
yarn add @cowprotocol/widget-react
npm install @cowprotocol/widget-react
Import component and some convenient types
import { CowSwapWidget, CowSwapWidgetParams } from '@cowprotocol/widget-react'
Prepare the config for the widget:
const cowSwapWidgetParams: CowSwapWidgetParams = {
appCode: 'NAME-OF-YOU-APP', // Add here the name of your app. e.g. "Pig Swap"
width: '600px',
height: '700px',
tradeType: 'swap',
}
Render the component:
<CowSwapWidget params={cowSwapWidgetParams} />
# Test
nx test widget-react
# Build the library
nx build widget-react
# Publish to NPM
nx publish widget-react --ver x.y.z --tag latest
FAQs
CoW Swap Widget Library. Allows you to easily embed a CoW Swap widget on your React application.
We found that @cowprotocol/widget-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.