Some tests require NodeSE server running locally. The easiest way to achieve this is to run it using Docker image:
docker run -d -p8888:80 tonlabs/local-node
Given that Docker machine host is localhost
, set TON_NETWORK_ADDRESS
environment
variable to http://localhost:8888
. Restart shell if needed (on Windows).
Then run tests via Composer script (after composer install
):
composer test
Module code is generated from api.json file provided by the TON SDK team.
To run code generator, execute this command:
composer generate
Package versioning mirrors TON SDK releases. So for example package 1.1.1
works
with TON SDK binaries of the same version, and contains all the functions from the
corresponding api.json
.
To update wrapper to the new TON SDK version:
- Update
ton_client
extension version incomposer.json
. - Download new
api.json
and runcomposer generate
. - Ensure that all tests are passing and write new ones for the new functions, if any.
Create new tag and push it. Composer will handle it and will rollout new version on packagist.org.
Fire any question to our Telegram channel.