![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@0x/0x-parser
Advanced tools
🧾 Designed for 0x integrators: This parser library enables precise extraction of swap amounts from 0x transactions.
Designed for 0x integrators, this library is used to parse swap amounts from 0x transactions, a task that becomes complex when trades involve Automated Market Makers (AMMs). Given the potential for slippage in these trades, the final swap amounts cannot be anticipated before trade execution. This library addresses this challenge by accepting a transaction hash as input, then parses through the event logs to identify the exact swap amounts.
npm install @0x/0x-parser
import { parseSwap } from '@0x/0x-parser';
async function main() {
const abiUrl = "https://raw.githubusercontent.com/0xProject/protocol/development/packages/contract-artifacts/artifacts/IZeroEx.json";
const response = await fetch(abiUrl);
const IZeroEx = await response.json();
const data = await parseSwap({
transactionHash: "0xf705df9127065ae8a8da3c1939d7096011ea13c81e4a2ed8c59ea1b039f7565d",
exchangeProxyAbi: IZeroEx.compilerOutput.abi,
rpcUrl: "https://eth.llamarpc.com"
});
console.log(JSON.stringify(data);
}
main();
Try a demo app that uses 0x-parser here.
This repository includes an example you can execute locally using the npm run web:example
command. Additionally, there's another repository that showcases how to use this package within a simple React app, which you can find here.
Contributions are always welcomed! Please read the contributing guidelines before submitting a pull request 📖.
FAQs
🧾 Designed for 0x integrators: This library parses 0x transactions on EVM blockchains into a format that is both user-friendly and easy to understand.
The npm package @0x/0x-parser receives a total of 164 weekly downloads. As such, @0x/0x-parser popularity was classified as not popular.
We found that @0x/0x-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.