Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@rsksmart/erc677
Advanced tools
@rsksmart/erc677
Simple implementation of ERC-677 token contract, compatible with RIF Token.
This package is only to use for testing purposes
npm i @rsksmart/erc677
const ERC677 = artifacts.require('@rsksmart/erc677');
contract('My contract tests', async accounts => {
let erc677;
beforeEach(async () => {
erc677 = await ERC677.new(
accounts[0],
web3.utils.toBN('1000000000000000000000'),
'RIFOS',
'RIF',
web3.utils.toBN('18'),
);
});
});
const Web3 = require('web3');
const ERC677Data = require('@rsksmart/erc677/ERC677Data.json');
const web3 = new Web3('https://public-node.rsk.co')
const ERC677 = new web3.eth.Contract(ERC677Data.abi, ERC677Data.address.rskMainnet);
There are TypeScript typing definitions of the contracts published together with the original contracts. Supported contract's libraries are:
web3
version 1.* - web3-v1-contracts
web3
version 2.* - web3-v2-contracts
truffle
- truffle-contracts
ethers
- ethers-contracts
You can use them as follow:
import Web3 from 'web3'
import ERC677 from '@rsksmart/erc677/types/web3-v1-contracts/ERC677Data.d.ts'
import ERC677Data from '@rsksmart/erc677/ERC677Data.json'
const web3 = new Web3('https://public-node.rsk.co')
const rif = new web3.eth.Contract(ERC677Data.abi, ERC677Data.address.rskMainnet) as ERC677
Replace web3-v1-contracts
with the proper library version.
RIF Token:
FAQs
ERC-677 Token Implementation
We found that @rsksmart/erc677 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.