{"id":32119750,"url":"https://github.com/hazae41/ethabi.wasm","last_synced_at":"2025-10-20T18:26:32.982Z","repository":{"id":62422076,"uuid":"364576786","full_name":"hazae41/ethabi.wasm","owner":"hazae41","description":"WebAssembly powered Ethereum ABI encoder/decoder for Deno, written in Rust","archived":true,"fork":false,"pushed_at":"2021-05-09T09:18:57.000Z","size":397,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-02T07:57:05.650Z","etag":null,"topics":["abi","deno","ethabi","ethereum","nodejs","rust","webassembly"],"latest_commit_sha":null,"homepage":"https://deno.land/x/ethabi","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hazae41.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-05T12:57:16.000Z","updated_at":"2025-08-27T13:21:16.000Z","dependencies_parsed_at":"2022-11-01T17:33:06.178Z","dependency_job_id":null,"html_url":"https://github.com/hazae41/ethabi.wasm","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/hazae41/ethabi.wasm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fethabi.wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fethabi.wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fethabi.wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fethabi.wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hazae41","download_url":"https://codeload.github.com/hazae41/ethabi.wasm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Fethabi.wasm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280139121,"owners_count":26279144,"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","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["abi","deno","ethabi","ethereum","nodejs","rust","webassembly"],"created_at":"2025-10-20T18:26:26.968Z","updated_at":"2025-10-20T18:26:32.975Z","avatar_url":"https://github.com/hazae41.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# (WIP) ethabi.wasm\n\nWebAssembly powered Ethereum ABI encoder/decoder for Deno, written in Rust.\n\nUses https://github.com/rust-ethereum/ethabi under the hood.\n\n## Features\n\n- Only does the ABI encoding/decoding, you can use your own RPC lib\n- Compatible with (almost) any WASM-compliant JS runtime (Deno, Node, browser)\n- Gracefully exits when given wrong values\n\n## Usage\n\n    deno cache -r https://deno.land/x/ethabi/mod.ts\n\n```typescript\nimport * as ethabi from \"https://deno.land/x/ethabi/mod.ts\";\nimport ERC20 from \"./ERC20.ts\";\n\n// Call function \"transfer\" with address and uint256\nconst transfer = ERC20.function(\"transfer\")!;\nconst myaddress = \"0x39dfd20386F5d17eBa42763606B8c704FcDd1c1D\";\nconst called = ethabi.call(transfer, [myaddress, 10000000000n]);\n// -\u003e hex-encoded 0x-prefixed string\n\n// Deploy contract with bytecode and uint256\nconst code = new Uint8Array(/* your bytecode */);\nconst constructr = ERC20.constructr()!;\nconst deployed = ethabi.deploy(constructr, code, [10000n]);\n// -\u003e hex-encoded 0x-prefixed string\n```\n\n## Test\n\n    deno cache -r https://deno.land/x/ethabi/test/encoding.ts\n    deno run --allow-net https://deno.land/x/ethabi/test/encoding.ts\n\n    deno cache -r https://deno.land/x/ethabi/examples/tokens/mod.ts\n    deno run --allow-net https://deno.land/x/ethabi/examples/tokens/mod.ts\n\n## Current features\n\n- Function input encoding/decoding\n- Function output decoding\n- Constructor encoding/decoding\n- Tokenization of simple types:\n  - JS string \u003c-\u003e Solidity string\n  - JS string \u003c-\u003e Solitidy address\n  - JS bigint \u003c-\u003e Solidity (u)int\n  - JS number \u003c-\u003e Solidity (u)int\n\n## Building (using Deno)\n\n- Install wasm-pack\n\n      cargo install wasm-pack\n\n- Generate WASM\n\n      wasm-pack build --target web --release\n\n- Pack .wasm to .wasm.js\n\n      deno run -A build.ts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Fethabi.wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazae41%2Fethabi.wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Fethabi.wasm/lists"}