{"id":21489077,"url":"https://github.com/tact-lang/ton-opcode","last_synced_at":"2025-04-07T05:17:00.379Z","repository":{"id":147014775,"uuid":"618144917","full_name":"tact-lang/ton-opcode","owner":"tact-lang","description":"Decompiler of BOC files","archived":false,"fork":false,"pushed_at":"2025-03-19T18:50:31.000Z","size":10178,"stargazers_count":21,"open_issues_count":7,"forks_count":9,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-30T21:09:55.439Z","etag":null,"topics":["disassembler","ton","tvm"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@tact-lang/opcode","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/tact-lang.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-03-23T21:02:55.000Z","updated_at":"2025-03-19T18:50:34.000Z","dependencies_parsed_at":"2024-06-09T14:22:21.194Z","dependency_job_id":"abe05d2a-d43f-493b-adde-9f1a26a58abe","html_url":"https://github.com/tact-lang/ton-opcode","commit_stats":{"total_commits":52,"total_committers":5,"mean_commits":10.4,"dds":"0.23076923076923073","last_synced_commit":"5689befc83b62af2aa388b5e5d9f553056444ba6"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tact-lang%2Fton-opcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tact-lang%2Fton-opcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tact-lang%2Fton-opcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tact-lang%2Fton-opcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tact-lang","download_url":"https://codeload.github.com/tact-lang/ton-opcode/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595335,"owners_count":20963943,"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":["disassembler","ton","tvm"],"created_at":"2024-11-23T14:14:00.907Z","updated_at":"2025-04-07T05:17:00.352Z","avatar_url":"https://github.com/tact-lang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TON Opcodes\n\nA decompiler for The Open Network Virtual Machine (TVM) bytecode to Fift assembly.\n\n## Installation\n\n```bash\nyarn add @tact-lang/opcode\n```\n\n## Usage\n\nFor most cases you will want to disassemble a BoC file generated by the Tact/FunC/Tolk compiler. In this case decompiler will unpack the dictionary to procedures and methods.\n\n```typescript\nimport {AssemblyWriter, disassembleRoot} from \"@tact-lang/opcode\"\n\n// Disassemble a source file into a program AST\nconst program = disassembleRoot(source, {\n    computeRefs: false,\n})\n\n// Write the program AST into a Fift assembly string\nconst res = AssemblyWriter.write(program, {})\nconsole.log(res)\n```\n\nIf you want to decompile BoC file without unpacking of the dictionary, you can do the following:\n\n```typescript\nimport {AssemblyWriter, disassembleRawRoot} from \"@tact-lang/opcode\"\n\nconst program = disassembleRawRoot(source)\n\nconst res = AssemblyWriter.write(program, {})\nconsole.log(res)\n```\n\nIf you want to disassemble a single Cell into an array of opcodes, you can do the following:\n\n```typescript\nimport {disassemble} from \"@tact-lang/opcode\"\n\nconst opcodes = disassemble({source: cell})\n```\n\n## Thanks to\n\n- [Steve Korshakov](https://github.com/ex3ndr)\n- [Nick Nekilov](https://github.com/NickNekilov)\n- [Vladimir Lebedev](https://github.com/hacker-volodya)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftact-lang%2Fton-opcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftact-lang%2Fton-opcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftact-lang%2Fton-opcode/lists"}