Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
abi-decoder-lts
Advanced tools
Changelog
27 October 2020
Readme
Nodejs and Javascript library for decoding data params and events from etherem transactions
npm install abi-decoder
bower install abi-decoder
<script src="bower_components/abi-decoder/dist/abi-decoder.js"> // Javascript
const abiDecoder = require('abi-decoder'); // NodeJS
Need to pass the ABI's manually to the library in order to be able to decode params later
const testABI = [
{
inputs: [{ type: "address", name: "" }],
constant: true,
name: "isInstantiation",
payable: false,
outputs: [{ type: "bool", name: "" }],
type: "function",
},
{
inputs: [
{ type: "address[]", name: "_owners" },
{ type: "uint256", name: "_required" },
{ type: "uint256", name: "_dailyLimit" },
],
constant: false,
name: "create",
payable: false,
outputs: [{ type: "address", name: "wallet" }],
type: "function",
},
{
inputs: [
{ type: "address", name: "" },
{ type: "uint256", name: "" },
],
constant: true,
name: "instantiations",
payable: false,
outputs: [{ type: "address", name: "" }],
type: "function",
},
{
inputs: [{ type: "address", name: "creator" }],
constant: true,
name: "getInstantiationCount",
payable: false,
outputs: [{ type: "uint256", name: "" }],
type: "function",
},
{
inputs: [
{ indexed: false, type: "address", name: "sender" },
{ indexed: false, type: "address", name: "instantiation" },
],
type: "event",
name: "ContractInstantiation",
anonymous: false,
},
];
abiDecoder.addABI(testABI);
const testData =
"0x53d9d9100000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000a6d9c5f7d4de3cef51ad3b7235d79ccc95114de5000000000000000000000000a6d9c5f7d4de3cef51ad3b7235d79ccc95114daa";
const decodedData = abiDecoder.decodeMethod(testData);
web3.eth.getTransactionReceipt(
"0x9199e262aaab0a6ec99558b3e9f42397c07a2bb9c6befb637643aebfb03cc32a",
function (e, receipt) {
const decodedLogs = abiDecoder.decodeLogs(receipt.logs);
}
);
FAQs
LTS Nodejs and Javascript library for decoding data params and events from ethereum transactions"
The npm package abi-decoder-lts receives a total of 1 weekly downloads. As such, abi-decoder-lts popularity was classified as not popular.
We found that abi-decoder-lts demonstrated a not healthy version release cadence and project activity because the last version was released 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.