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.
@xdapps/erc-token-utils
Advanced tools
Basic functions to interact with standard ERC protocols using Ethers.js
This is a basic wrapper around Ethers.js with static methods for interacting with ERC-20, ERC-721, or ERC-1155 contracts.
import {ERC20} from "@xdapps/erc-token-utils"
const contractAddress = "0x.....";
const provider = new ethers.JsonRpcProvider("RPC_URL_ADDRESS");
const name = await ERC20.getName(contractAddress, provider);
const symbol = await ERC20.getSymbol(contractAddress, provider);
const decimals = await ERC20.getDecimals(contractAddress, provider);
const supply = await ERC20.getTotalSupply(contractAddress, provider);
const balance = await ERC20.balanceOf(contractAddress, provider);
//This method would require a provider with signer.
const wallet = ethers.Wallet.fromMnemonic(process.env.MNEMONIC);; //
const walletWithProvider = wallet.connect(this.provider);
const txResult = await ERC20.transferFrom(contractAddress, provider);
FAQs
Basic functions to interact with standard ERC protocols using Ethers.js
The npm package @xdapps/erc-token-utils receives a total of 1 weekly downloads. As such, @xdapps/erc-token-utils popularity was classified as not popular.
We found that @xdapps/erc-token-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.