Skip to content

Releases: ton-blockchain/ton4j

1.3.4

13 Nov 13:35

Choose a tag to compare

  • Align with TVM12 update. Rename ihrFee to extraFlags in Message.InternalMessageInfo.
  • Introduce new TL-B type NewBounceBody. Add getBounceBody() into Message class;
  • Update version, adjust SmartContractCompiler to Tolk v1+;
  • Refactor maven dependencies, align logback-core version, remove timer-ninja dependency;

1.3.3

07 Nov 17:50

Choose a tag to compare

ton4j migrated to official TON mono repo!

Starting 1.3.3 ton4j is hosted in ton-blockchain/ton4j repository.

Update your Maven or Jitpack dependencies

<dependency>
    <groupId>org.ton.ton4j</groupId>
    <artifactId>smartcontract</artifactId>
    <version>1.3.3</version>
</dependency>
  • Update logback-classic 1.5.20

1.3.2

06 Nov 05:39

Choose a tag to compare

What's Changed

  • Upgrade Apache Commons Lang version to fix vulnerability by @IAGrig in #133 - Thanks @IAGrig for the contribution!
  • Upgrade logback-core  1.5.18 -> 1.5.19
  • Added jacoco-maven-plugin to track code coverage
  • Improved code coverage

New Contributors

Full Changelog: 1.3.1...1.3.2

1.3.1

25 Oct 14:41

Choose a tag to compare

  • TonCenter Indexer v3 wrapper;
  • Add updated JettonWalletV2 and JettonMinterV2 contracts; Add example of user jetton wallet address calculation offline;
  • Fix issue #125, where wrongly set FLAG_USER_FRIENDLY and FLAG_URL_SAFE flgas.

Full Changelog: v1.2.1...1.3.1

v1.2.1

20 Oct 12:01

Choose a tag to compare

  • introduce a new Exporter module that allows to access a TON RockDB database hosted locally;
  • add various RocksDB readers, like CellDbReader, GlobalIndexReader, StateDbReader and ArchiveIndexReader;
  • add simple command line tool TonExporterApp.jar to extract data (like blocks in TL-B or BoC format, last block, latest or by seqno account balance/shard) from TON db.
  • in Exporter module add some TL-B types that use lazy-loading cell mechanism, where during cell deserialization each cell's reference is loaded from the CellDB by its hash;
  • in Exporter module in ShardAccountsLazy added lookup method, that looks for a key in (HashmapAugE 256 ShardAccount DepthBalanceInfo) = ShardAccounts dict without loading the whole HashMap;
  • add endCellNoRecalculation() to CellBuilder, that is used to end the cell without calculating hashes;
  • improve readability of OutMsgQueueInfo de/serialization;
  • fix AccountBlock and LibDescr deserialization;
  • fix MsgEnvelope, McStateExtraInfo, BlockCreateStats, ShardAccountBlocks, OldMcBlocksInfo de/serialization;

v1.1.1

27 Aug 11:05

Choose a tag to compare

  • fix wrong handling of comment field in HighloadWallet v3 and v3s in createSingleTransfer() method;
  • add printTransactions(withMessages) and printMessages() to all smart contracts, tonlib, adnl lite-client and ton-center client;
Screenshot from 2025-08-27 12-41-10 Screenshot from 2025-08-27 12-42-46 Screenshot from 2025-08-27 12-47-51

v1.1.0

19 Aug 07:23
337e0f2

Choose a tag to compare

  • added TonCenterV2 REST client;
  • added support and code examples of TonCenter client with all wallet types:
    WalletV5 contract =
      WalletV5.builder()
        .tonCenterClient(tonCenterClient)
  • AdnlLiteClient can now be used in multpile threads;
  • Breaking changes! in order to generalize response from various providers (tonlib, ADNL lite-client and TonCenter client)
    was:
    ExtMessageInfo extMessageInfo = wallet.send(...
    became:
    SendResponse sendResponse = faucet.send(...
  • fixed ShardHashes deserialization, add getStateInit() and getBalance() to Account tlb class;
  • added getReturnedStake(), getElectionId(), getElectionParticipants() to AdnlLiteClient, add getShards() to AllShardsInfo TL-B;
  • fixed ShardDescr TL-B de/serialization;
  • fixed BinTree deserialization;
  • make AccountStateActive serializable, improve getParticipants() in AdnlLiteClient;

1.0.1

24 Jul 10:45
9d2fd70

Choose a tag to compare

  • adjust de/serialization of WorkchainDescrV2;
  • improve storeVarUint and thus fix some TxEmulator errors;
  • migrate from nexus to central repo for publishing.

1.0.0

19 Jun 07:36

Choose a tag to compare

0.9.9

15 May 11:36
907d14d

Choose a tag to compare

  • migrating from org.ton.java to org.ton.ton4j (adjust your imports)
  • with the release 1.0.0 ton4j will be migrated from maven io.github.neodix42 to org.ton.ton4j
  • add de/serialization of msg_import_deferred_fin, msg_import_deferred_tr, msg_export_new_defer and msg_export_deferred_tr to OutMsg and InMsg
  • add SizeLimitsConfig V2 de/serialization;
  • add MsgEnvelopeV2 de/serialization;;
  • added .sendMode(SendMode) enum to all wallet contracts! Old .mode(int) still works.
  • BouncePhaseNegFounds deserialization fix.
  • update block.tlb;
  • update README.md files