
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@gyrostable/sdk
Advanced tools
TypeScript/JavaScript SDK to interact with Gyro.
Follow the installation instructions of https://github.com/stablecoin-labs/core
including starting the node and linking the package.
Then run the following
yarn install
yarn link @gyrostable/core
yarn link
yarn build
To make sure everything is working, try running the tests using yarn test
.
To compile automatically when changing something, run yarn build --watch
instead of yarn build
.
The SDK is based around the Gyro
class, which can be instantiated as follows:
import { Gyro } from "@gyrostable/sdk";
import { ethers } from "ethers";
const provider = new ethers.providers.Web3Provider(window.ethereum);
const gyro = await Gyro.create(provider);
const tokens = await gyro.getSupportedTokens();
const usdt = tokens.find((t) => t.symbol === "USDT");
const weth = tokens.find((t) => t.symbol === "WETH");
const inputs = [
{ token: usdt.address, amount: MonetaryAmount.fromNormalized(2500, usdc.decimals) }
{ token: weth.address, amount: MonetaryAmount.fromNormalized(2, weth.decimals) }
];
const mintResult = await gyro.mint(inputs);
console.log(`Minted ${mintResult} tokens`);
const currentBalance = await gyro.balance();
console.log(`Gyro balance: ${currentBalance.toNormalizedString()}`);
FAQs
TypeScript/JavaScript SDK to interact with Gyro.
We found that @gyrostable/sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.