Repository navigation
2.0.0
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
ton4jwallet and smart contract classes acceptTonProviderinterface, 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,formatUsdtetc -
GenerateWalletmade available for public usage -
added
randomV4R2into GenerateWallet -
added
recipientsfield intoWalletV5 -
implemented missing NFT methods for AdnlLiteClient