{"id":22072540,"url":"https://github.com/broxus/tycho-vm","last_synced_at":"2025-07-24T11:30:39.346Z","repository":{"id":244446892,"uuid":"696938838","full_name":"broxus/tycho-vm","owner":"broxus","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-22T15:00:51.000Z","size":1015,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-07-22T15:06:59.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/broxus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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,"zenodo":null}},"created_at":"2023-09-26T18:10:33.000Z","updated_at":"2025-07-22T15:00:53.000Z","dependencies_parsed_at":"2024-06-20T04:05:27.240Z","dependency_job_id":"b9dc65b1-3db1-45c5-b313-8995c79dcc71","html_url":"https://github.com/broxus/tycho-vm","commit_stats":null,"previous_names":["broxus/everscale-vm","broxus/tycho-vm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/broxus/tycho-vm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Ftycho-vm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Ftycho-vm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Ftycho-vm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Ftycho-vm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/broxus","download_url":"https://codeload.github.com/broxus/tycho-vm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/broxus%2Ftycho-vm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266522069,"owners_count":23942565,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-11-30T21:13:37.638Z","updated_at":"2025-07-24T11:30:39.261Z","avatar_url":"https://github.com/broxus.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Tycho VM and Executor\n\nRust implementation of the TON Virtual Machine and executor.\n\n\u003e [!NOTE]\n\u003e This crate tries to be as close to the original implementation as possible.\n\u003e However, its main purpose is to be a core of [tycho](https://github.com/broxus/tycho), so there may be some differences.\n\n## VM usage\n\n```rust\nlet code = Boc::decode(tvmasm!(\"ACCEPT\"))?;\nlet data = Cell::empty_cell();\n\nlet addr = \"0:0000000000000000000000000000000000000000000000000000000000000000\"\n    .parse::\u003cIntAddr\u003e()?;\n\nlet smc_info = SmcInfoBase::new()\n    .with_now(1733142533)\n    .with_block_lt(50899537000013)\n    .with_tx_lt(50899537000013)\n    .with_account_balance(CurrencyCollection::new(1931553923))\n    .with_account_addr(addr.clone())\n    .require_ton_v4();\n\nlet mut vm_state = VmState::builder()\n    .with_smc_info(smc_info)\n    .with_stack(tuple![\n        slice CellBuilder::build_from(\u0026addr).map(OwnedCellSlice::new_allow_exotic)?,\n        int 103289,\n    ])\n    .with_code(code)\n    .with_data(data)\n    .with_gas(GasParams::getter())\n    .build();\n\nlet exit_code = vm_state.run();\n```\n\n## Development\n\n### How to bench\n\n```bash\ncargo bench --bench dex_pair\ncargo bench --bench ever_wallet\ncargo bench --bench jetton\n```\n\n### How to miri check\n\n```bash\n# Add Miri component\nrustup +nightly component add miri\n\n# Run all tests with Miri\ncargo +nightly miri test\n```\n\n### How to fuzz\n\n```bash\n# Install fuzzer\ncargo install cargo-fuzz\n\n# Run any of the fuzzer targets\ncargo +nightly fuzz run action_phase_real -j 12\ncargo +nightly fuzz run action_phase_surreal -j 12\ncargo +nightly fuzz run vm_only_code -j 12\n```\n\n## Contributing\n\nWe welcome contributions to the project! If you notice any issues or errors, feel free to open an issue or submit a pull request.\n\n## AI Documentation\n[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/broxus/tycho-vm)\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttps://opensource.org/licenses/MIT\u003e)\n\nat your option.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbroxus%2Ftycho-vm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbroxus%2Ftycho-vm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbroxus%2Ftycho-vm/lists"}