
Research
/Security News
Bitwarden CLI Compromised in Ongoing Checkmarx Supply Chain Campaign
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.
@dydxprotocol/dydx.js
Advanced tools

A TypeScript library for interacting with the dYdX protocol.
npm install --save @dydxprotocol/dydx.js
import { DYDX } from '@dydxprotocol/dydx.js';
const dydx = new DYDX();
await dydx.initialize(provider, networkId);
await dydx.shortToken.mint(
positionId,
trader,
tokensToMint,
payInHeldToken,
exchangeWrapper,
orderData,
options,
);
Or mint with ETH:
await dydx.shortToken.mintWithETH(
positionId,
trader,
tokensToMint,
ethToSend,
ethIsHeldToken,
exchangeWrapper,
orderData,
options,
);
Or mint directly (you will put up all held token [DAI for sETH] and will receive owed token [WETH for sETH]):
// Set your allowance on our proxy contract - you only need to do this once
await dydx.token.setMaximumProxyAllowance(
heldTokenAddress, // DAI address for sETH
traderAddress, // your address
);
await dydx.shortToken.mintDirectly(
positionId, // Can get from expo API
trader, // your address
tokensToMint, // BigNumber - Number of tokens to mint in base units (10^18 is 1 sETH)
);
Close directly (you will pay all owed token owed to lenders [WETH for sETH] and will receive all held token collateral [DAI for sETH])
// Set your allowance on our proxy contract - you only need to do this once
await dydx.token.setMaximumProxyAllowance(
owedTokenAddress, // WETH address for sETH
traderAddress, // your address
);
await dydx.shortToken.closeDirectly(
positionId, // Can get from expo API
closer, // your address
tokensToClose, // BigNumber - Number of tokens to close in base units (10^18 is 1 sETH)
);
npm install
npm run build
FAQs
Javascript library for interacting with the dYdX Protocol
We found that @dydxprotocol/dydx.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.

Product
Stay on top of alert changes with filtered subscriptions, batched summaries, and notification routing built for triage.