Releases: ton-blockchain/ton4j
Releases · ton-blockchain/ton4j
0.4.6
0.4.5
- fix deserialization of MsgAddressInt
Full Changelog: 0.4.3...0.4.5
0.4.3
0.4.2
0.4.1
0.4.0
This is another major ton4j upgrade that breaks compatibility with previous ton4j versions. Hopefully this is the last time.
- fixed bug in hashmaps' hash calculation;
- improved tlb message java structure and readability;
- added OutAction, OutList, ActionSendMsg tlb support;
- reworked smartcontract user experience;
- optimize memory usage (int replace with byte);
- reworked find cell's depth - was slow;
- remove redundant conversions byte-int-byte;
- use CellBuilder.beginCell().fromBoc instead of Cell.fromBoc;
- always use .endCell() when Use CellBuilder.beginCell();
- reworked cell serialization - added index support in cell;
- fix tonlib getconfig/all;
- provided examples on how to send toncoins or jettons to up to 1000 recipients using Highload Wallet V3;
If you migrate from previous ton4j version, see the major changes below:
was:
Options options = Options.builder()
.publicKey(keyPair.getPublicKey())
.secretKey(keyPair.getSecretKey())
.walletId(42L)
.wc(0L)
.build();
WalletV3ContractR1 contract = new Wallet(WalletVersion.V3R1, options).create();
now:
WalletV3R1 contract = WalletV3R1.builder()
.keyPair(keyPair)
.walletId(42)
.build();
contract.deploy();
was:
contract.sendTonCoins(tonlib, options);
now:
contract.send(config);