Skip to content

2.0.0

Choose a tag to compare

@neodix42 neodix42 released this 16 Feb 11:46
· 19 commits to main since this release

Breaking changes

  • big documentation update: now AI friendly, completely reworked main README.md with the more examples for each topic

  • added .codex and AGENTS.md

  • introduced new class TonProvider (module provider). All ton4j wallet and smart contract classes accept TonProvider interface, e.g.:

TonCenter as a TON client provider

TonCenter tonCenterClient = TonCenter.builder().apiKey("").mainnet().build();
WalletV3R1 contract = WalletV3R1.builder().keyPair("keyPair").tonProvider(tonCenterClient).walletId(42).build();

AdnlLiteClient as a TON client provider

AdnlLiteClient adnlLiteClient =  AdnlLiteClient.builder().mainnet().build();
WalletV3R1 contract = WalletV3R1.builder().keyPair("keyPair").tonProvider(adnlLiteClient).walletId(42).build();

Tonlib as a TON client provider

Tonlib tonlib =
  Tonlib.builder()
    .testnet(true)
    .pathToTonlibSharedLib(Utils.getTonlibGithubUrl())
    .ignoreCache(false)
    .build();
WalletV3R1 contract = WalletV3R1.builder().tonProvider(tonlib).walletId(42).build();
  • breaking change:
    RawTransaction sendWithConfirmation
    reworked to:
      Transaction sendWithConfirmation

  • breaking change:
    SendResponse class moved to module import org.ton.ton4j.provider.

  • improve fift, func and tolk runners output handling

  • added convinience methods to Utils class, toUsdt, formatUsdt etc

  • GenerateWallet made available for public usage

  • added randomV4R2 into GenerateWallet

  • added recipients field into WalletV5

  • implemented missing NFT methods for AdnlLiteClient