Skip to content

Releases: neodix42/ton4j

0.7.0

30 Sep 18:28
Compare
Choose a tag to compare
  • fixed when tonlib.sendRawMessage was not returning body hash;
  • reworked boc serialization, improved performance. tests adjusted accordingly to new boc results;
  • reworked hashmap serialization;
  • switched to google-java-formatter.
  • fixed issue 63 - see here
  • fixed issue 64

0.6.0

12 Sep 10:08
Compare
Choose a tag to compare
  • Fixed issue #46 in TonConnect;
  • Added Fift and Func wrappers as separate modules;

0.5.5

11 Sep 17:25
Compare
Choose a tag to compare
  • Added Wallet V5 support;
  • CellBuilder can now set exotic flag setExotic(true);
  • Added LibraryDeployer class;

0.5.4

07 Sep 17:07
Compare
Choose a tag to compare
  • add TonConnect support (thanks https://github.com/fanfq for the initial code example)
  • add getPublickey() to Tonlib;
  • add isWallet to Address to detect offline if an address is a wallet contract.
  • fix pruned cell serialization (thanks Nikita https://t.me/oyiiyo for the report and bug examples)
  • CellBuilder can now specify cell type via .cellType(CellType type) (avoid using new Cell() directly)
  • fix VmStackValueInt de/serialization;
  • fix issue #43
  • reworked VmStack, VmStackValue, VmControlData and VmStackValueInt se/deserialization;
  • CellSlice.preloadUint now returns 0 instead of error if too many bits requested.
  • add more hashmap de/serialization tests;
  • add getKeyByIndex() and getValueByIndex in TonHashMaps;
  • add Utils.calculateMethodId("method_name") to calculate methodId for run_method in Tonlib.

0.5.3

24 Aug 17:00
Compare
Choose a tag to compare
  • Further optimizations from @h6x0r (BitString, AdnlAddress, BinTree, improved de/serialization of McBlockExtra, McStateExtra, ShardHashes)
  • fix handling of ignoreCache flag in Tonlib;
  • added ShardIdent constructors and tests;
  • to contracts V1, V2, V3 and V4 added a method getGasFees(), that can be used if one wants to send an amount so that it would land at the recipient with the exact value (also add storage fee retrieved by tonlib.estimateFees())

0.5.2

15 Aug 20:04
Compare
Choose a tag to compare
  • upgrade bouncycastle to 1.78.1
  • merge optimizations from @h6x0r
  • added more cell deserialization tests

What's Changed

  • Optimizations Address, Utils, additional tests TestAddress, TestUtils by @h6x0r in #32

Full Changelog: 0.5.0...0.5.2

0.5.1

11 Aug 09:49
Compare
Choose a tag to compare
  • small optimizations of Address, Utils and BitString (thanks to @h6xor)
  • upgrade test resources (ton binaries) to release 2024.08;
  • rename default names for tonlibjson and libemulator in tonlib and emulator modules
  • Contract.java interface extended with default prepareDeployMsg() in order to get initial External Message for generic contracts.

0.5.0

08 Aug 08:04
Compare
Choose a tag to compare

Improved Tonlib!

  • tonlib now tries to reconnect to the next lite-server from the list automatically.
  • tonlib receive() returns Error instead of RuntimeException now.

fixed issue #2. Thanks h6x0r for the contribution and rework of PatriciaTree!

(there was a mistake in release 0.4.9, please do not use it)

0.4.8

02 Aug 18:52
Compare
Choose a tag to compare
  • added examples and tests for all major types of wallets (see TestTonSdkTestCasesSmartContracts.java)
  • added writeBits(String) into BitString to accept input like "110101".
  • added storeBits(String) into CellBuilder;
  • added isExotic() method to Cell class;

0.4.7

21 Jun 10:25
Compare
Choose a tag to compare
  • RawMessage now contains a helper method getComment() for easier retrieval of text comment;
  • removed keyPair argument in JettonWallet builder;
  • updated tonlib's readme.md file with info on how to get tonlib binaries;
  • liteClient's executeRunMethod method now supports blockId parameter;
  • extended Tonlib's methods with supporting block height (BlockIdExt) as a parameter:
    runMethod()
    getAccountState()
    getRawAccountState()
    loadContract()
    getAccountStatus()

Full Changelog: 0.4.6...0.4.7