
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.
@xtoken/abis
Advanced tools
Package containing all the xToken contract ABIs and addresses.
yarn add @xtoken/abis
yarn build
Link @xtoken/abis
package via yarn for local development and testing the integration on the UI
$ cd abis
$ yarn link # @xtoken/abis package will be linked to the local copy
$ cd cafe
$ yarn link @xtoken/abis # This will create a symlink named cafe/node_modules/@xtoken/abis that links to the local copy of the xToken abis project
$ yarn unlink # To unlink the installed package
To automatically fix eslint
and prettier
formatting issues, run:
yarn fix
import { ethers } from 'ethers'
import { Abis, ADDRESSES, X_AAVE_A } from '@xtoken/abis'
// Setup provider
const provider = new ethers.providers.InfuraProvider('homestead', '<API KEY>')
const network = await provider.getNetwork()
const { chainId } = network
// Initialise xAAVEa contract
const xaaveContract = new ethers.Contract(ADDRESSES[X_AAVE_A][chainId], Abis.xAAVE, provider)
1. Add Contract constants in constants.ts
2. Add mainnet addresses based on the constants in addresses.ts
3. Add the contract abis in abis/
4. Export the ABIs in abis/index.ts
FAQs
xToken Contract ABIs
The npm package @xtoken/abis receives a total of 0 weekly downloads. As such, @xtoken/abis popularity was classified as not popular.
We found that @xtoken/abis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.