@oraichain/tonbridge-utils
v1.3.6
Published
## Overview
Downloads
240
Readme
tonbridge-utils
Overview
This package is forked from TonRocks. It is a utility package for parsing all kinds of TON data such as blocks, transactions, configurations,...
We need such parsing functions because our TON Bridge system is trustless, and we have to parse TON data from BoC format to the human-readable format and extract data for verification.
Features
- Parse TON Cells, Hashmaps.
- Parse TON blocks, account states, validators, TON config.
- TL-B and TL-B typescript codegen for TON Bridge data formats.
Quick start
Firstly, we need to install the dependencies and build the package:
# Install dependencies
yarn
# build
yarn build
Next, we import the package in package.json
and use it. Eg: "@oraichain/tonbridge-utils": "^1.2.5",
Generate typescript from TL-B
If you want to update the TL-B typescript codegen, you can use the following command:
# Eg:
yarn tlb src/tlb/outmsg-body.tlb