Skip to content

Releases: neodix42/ton4j

0.8.2

06 Dec 07:26
6daaecd
Compare
Choose a tag to compare
  • add sendRawMessageWithConfirmation() to Tonlib; (works with tonlibjson.so/dll from testnet, pending ton-blockchain/ton#1379)
    • Sends raw message, bag of cells encoded in base64, with delivery confirmation. After the message
    • has been sent to the network this method looks up specified account transactions and returns
    • true if message was found among them. Timeout 60 seconds.
  • add waitForDeployment() with default timeout 60s;
  • to all contracts added method sendWithConfirmation();
  • fix ConfigParams 1-5 TL-B types;
  • update third-parties;
  • improve java docs;
  • add ton artifacts for quicker dev (windows only);
  • removed tonlib redundant logging;
  • add more fromNano and toNano methods with precision;

0.8.0

20 Nov 08:48
6daaecd
Compare
Choose a tag to compare
  • fixed bug #69
  • added an example on how to send jettons using wallet V5
  • improved system stdout handling of shared libraries on linux, mac and windows;

0.7.1

26 Oct 16:25
4529648
Compare
Choose a tag to compare
  • use slf4j facade in all places (was not consistent);
  • add getNewStateInit() helper method EmulateTransactionResult;
  • add devenv module - archetype for dev environment;
  • class ExternalMessageInfo renamed to ExternalMessageInInfo for better readability;
  • add List getInMessages() to InMsgDescr;
  • add List getOutMessages() to OutMsgDescr;
  • add List getCreatorStatsAsList() to BlockCreateStatsExt;
  • add List getShardAccountBlocksAsList() to BlockExtra;
  • add List getShardFeesCreatedAsList() to ShardFees;
  • add List getKeyExtBlkRefAsList() to OldMcBlocksInfo;
  • add List getPrevBlocksAsList() to McStateExtraInfo;
  • add List getShardAccountsAsList() to ShardAccounts;
  • add printAllMessages() to Block;
  • add printAllTransactions() to Block;
  • add printAllMessages() to Transaction;
  • add printTransactionFees() to Transaction;

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.