A Tycho executor for TON Sandbox.
Requires node 16 or higher.
yarn add @tychosdk/emulator @ton/sandbox @ton/ton @ton/core @ton/cryptoor
npm i @tychosdk/emulator @ton/sandbox @ton/ton @ton/core @ton/cryptoimport { Blockchain } from "@ton/sandbox";
import { TychoExecutor } from "@tychosdk/emulator";
const executor = await TychoExecutor.create();
const blockchain = await Blockchain.create({
executor,
config: TychoExecutor.defaultConfig,
});
const version = executor.getVersion();
console.log("Version:", version);To build the shared library:
cargo build --no-default-features --features native --releaseThe resuling library will be at ./target/release/libtycho_emulator.so
To build shared library tests:
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ../examples/native
make example && ./exampleTo install dependencies:
yarn installTo build wasm:
yarn wasm:buildTo run tests:
yarn testTo publish:
yarn build
yarn publish --access publicWe welcome contributions to the project! If you notice any issues or errors, feel free to open an issue or submit a pull request.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.