{"id":19121134,"url":"https://github.com/maticnetwork/eth-decoder","last_synced_at":"2025-04-19T02:32:05.454Z","repository":{"id":33151619,"uuid":"149660294","full_name":"maticnetwork/eth-decoder","owner":"maticnetwork","description":"Simple library to decode ethereum transaction and logs","archived":true,"fork":false,"pushed_at":"2023-05-13T08:58:24.000Z","size":439,"stargazers_count":39,"open_issues_count":5,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-13T01:39:41.772Z","etag":null,"topics":["ethereum","smart-contracts","truffle","web3"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maticnetwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-20T19:33:02.000Z","updated_at":"2025-04-03T14:33:27.000Z","dependencies_parsed_at":"2024-09-26T06:26:31.175Z","dependency_job_id":null,"html_url":"https://github.com/maticnetwork/eth-decoder","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":0.09090909090909094,"last_synced_commit":"e59d59823afd2ce5c78eaca4ca8b843ce2f49704"},"previous_names":["maticnetwork/eth-log-decoder"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maticnetwork%2Feth-decoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maticnetwork%2Feth-decoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maticnetwork%2Feth-decoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maticnetwork%2Feth-decoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maticnetwork","download_url":"https://codeload.github.com/maticnetwork/eth-decoder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249593322,"owners_count":21296703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ethereum","smart-contracts","truffle","web3"],"created_at":"2024-11-09T05:16:12.150Z","updated_at":"2025-04-19T02:32:05.124Z","avatar_url":"https://github.com/maticnetwork.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eth-decoder\n\n![Build Status](https://github.com/maticnetwork/eth-decoder/workflows/CI/badge.svg?branch=master)\n\nSimple library to decode ethereum transaction and logs\n\n### Install\n\n```bash\n$ npm install --save @maticnetwork/eth-decoder\n```\n\n### Usage\n\n**Log parser**\n\n```js\nimport { LogDecoder } from \"@maticnetwork/eth-decoder\"\n\nconst ERC20TokenABI = /* { .... } */ // ABI for ERC20 token contract\n\n// create decoder object\nconst decoder = new LogDecoder(\n  [\n    ERC20TokenABI,\n    // ... other ABIs\n  ]\n);\n\n// parse logs\nconst parsedLogs = decoder.decodeLogs(receipt.logs) // For truffle testsuite, use `receipt.receipt.logs`\nconsole.log(parsedLogs)\n```\n\n**Tx parser**\n\n```js\nimport { TxDecoder } from \"@maticnetwork/eth-decoder\"\n\nconst ERC20TokenABI = /* { .... } */ // ABI for ERC20 token contract\n\n// create decoder object\nconst decoder = new TxDecoder(\n  [\n    ERC20TokenABI,\n    // ... other ABIs\n  ]\n);\n\n// parse tx\nconst parsedTx = decoder.decodeTx({ data: '0x..', value: '1000', from: '...', ... })\nconsole.log(parsedTx)\n```\n\n### License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaticnetwork%2Feth-decoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaticnetwork%2Feth-decoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaticnetwork%2Feth-decoder/lists"}