Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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
The npm package @rsksmart/erc677 receives a total of 8 weekly downloads. As such, @rsksmart/erc677 popularity was classified as not popular.
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.