From 770ac313034cc89b23cdf83245bc332bf96ab08d Mon Sep 17 00:00:00 2001 From: neodiX Date: Mon, 30 Sep 2024 22:09:27 +0400 Subject: [PATCH] upgrade version to 0.7.0 --- README.md | 8 +++-- address/README.md | 4 +-- address/pom.xml | 2 +- bitstring/README.md | 4 +-- bitstring/pom.xml | 2 +- cell/README.md | 78 ++++++++++++++++++++-------------------- cell/pom.xml | 2 +- emulator/README.md | 4 +-- emulator/pom.xml | 10 +++--- fift/README.md | 16 ++++----- fift/pom.xml | 2 +- func/README.md | 4 +-- func/pom.xml | 2 +- liteclient/README.md | 4 +-- liteclient/pom.xml | 2 +- mnemonic/README.md | 4 +-- mnemonic/pom.xml | 2 +- pom.xml | 2 +- smartcontract/README.md | 10 +++--- smartcontract/pom.xml | 2 +- tl/pom.xml | 4 +-- tonconnect/README.md | 8 +++-- tonconnect/pom.xml | 2 +- tonlib/README.md | 7 ++-- tonlib/pom.xml | 2 +- tweetnacl-java-8/pom.xml | 2 +- utils/README.md | 4 +-- utils/pom.xml | 2 +- 28 files changed, 101 insertions(+), 94 deletions(-) diff --git a/README.md b/README.md index a7180229..164d763d 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ found [here](https://github.com/ton-blockchain/ton/actions). io.github.neodix42 smartcontract - 0.6.0 + 0.7.0 ``` @@ -33,7 +33,7 @@ found [here](https://github.com/ton-blockchain/ton/actions). io.github.neodix42 ton4j - 0.6.0 + 0.7.0 ``` @@ -73,7 +73,9 @@ You can use each submodule individually. Click the module below to get more deta * ✅ HashMap, HashMapE, PfxHashMap, PfxHashMapE, HashMapAug, HashMapAugE serialization / deserialization ## Support ton4j development -If you want to speed up ton4j development and thus change its priority in my backlog, you are welcome to donate some toncoins: + +If you want to speed up ton4j development and thus change its priority in my backlog, you are welcome to donate some +toncoins: ```UQBguBMWc_wUA8pJjC-A9JbTJFzb7lbFbbkiFYajA33-U9YU``` diff --git a/address/README.md b/address/README.md index 61d62b84..42922f6a 100644 --- a/address/README.md +++ b/address/README.md @@ -6,7 +6,7 @@ io.github.neodix42 address - 0.6.0 + 0.7.0 ``` @@ -17,7 +17,7 @@ io.github.neodix42.ton4j address - 0.6.0 + 0.7.0 ``` diff --git a/address/pom.xml b/address/pom.xml index 0d5106de..7402fac8 100644 --- a/address/pom.xml +++ b/address/pom.xml @@ -6,7 +6,7 @@ io.github.neodix42 top - 0.6.0 + 0.7.0 4.0.0 diff --git a/bitstring/README.md b/bitstring/README.md index 6236cb9d..aa569b4b 100644 --- a/bitstring/README.md +++ b/bitstring/README.md @@ -6,7 +6,7 @@ io.github.neodix42 bitstring - 0.6.0 + 0.7.0 ``` @@ -16,7 +16,7 @@ io.github.neodix42.ton4j bitstring - 0.6.0 + 0.7.0 ``` diff --git a/bitstring/pom.xml b/bitstring/pom.xml index 037878cc..3fcaabd8 100644 --- a/bitstring/pom.xml +++ b/bitstring/pom.xml @@ -6,7 +6,7 @@ io.github.neodix42 top - 0.6.0 + 0.7.0 4.0.0 diff --git a/cell/README.md b/cell/README.md index 78df4504..224a85a0 100644 --- a/cell/README.md +++ b/cell/README.md @@ -6,7 +6,7 @@ io.github.neodix42 cell - 0.6.0 + 0.7.0 ``` @@ -16,52 +16,52 @@ io.github.neodix42.ton4j cell - 0.6.0 + 0.7.0 ``` ## Cell Serialization to BoC ```java -Cell c1 = CellBuilder.beginCell().storeUint((long) Math.pow(2, 25), 26).endCell(); - -Cell c2 = CellBuilder.beginCell() - .storeUint((long) Math.pow(2, 37), 38) - .storeRef(c1) - .endCell(); - -Cell c3 = CellBuilder.beginCell().storeUint((long) Math.pow(2, 41), 42).endCell(); -Cell c4 = CellBuilder.beginCell().storeUint((long) Math.pow(2, 42), 44).endCell(); -Cell c5 = CellBuilder.beginCell() - .storeAddress(Address.parseFriendlyAddress("0QAljlSWOKaYCuXTx2OCr9P08y40SC2vw3UeM1hYnI3gDY7I")) - .storeString("HELLO") - .storeRef(c2) - .endCell(); - -log.info("c1 {}", c1.bits); -log.info("c2 {}", c2.bits); -log.info("c2:\n{}", c2.print()); -log.info("c3 {}", c3.bits); -log.info("c4 {}", c4.bits); -log.info("c5 {}", c5.bits); -log.info("c5:\n{}", c5.print()); - -byte[] serializedCell5 = c5.toBocNew(); +Cell c1=CellBuilder.beginCell().storeUint((long)Math.pow(2,25),26).endCell(); + + Cell c2=CellBuilder.beginCell() + .storeUint((long)Math.pow(2,37),38) + .storeRef(c1) + .endCell(); + + Cell c3=CellBuilder.beginCell().storeUint((long)Math.pow(2,41),42).endCell(); + Cell c4=CellBuilder.beginCell().storeUint((long)Math.pow(2,42),44).endCell(); + Cell c5=CellBuilder.beginCell() + .storeAddress(Address.parseFriendlyAddress("0QAljlSWOKaYCuXTx2OCr9P08y40SC2vw3UeM1hYnI3gDY7I")) + .storeString("HELLO") + .storeRef(c2) + .endCell(); + + log.info("c1 {}",c1.bits); + log.info("c2 {}",c2.bits); + log.info("c2:\n{}",c2.print()); + log.info("c3 {}",c3.bits); + log.info("c4 {}",c4.bits); + log.info("c5 {}",c5.bits); + log.info("c5:\n{}",c5.print()); + + byte[]serializedCell5=c5.toBocNew(); // output -c1 8000002_ -c2 8000000002_ -c2: -x{8000000002_} - x{8000002_} - -c3 80000000002_ -c4 40000000000 -c5 8004B1CA92C714D3015CBA78EC7055FA7E9E65C68905B5F86EA3C66B0B1391BC01A908A98989F_ -c5: -x{8004B1CA92C714D3015CBA78EC7055FA7E9E65C68905B5F86EA3C66B0B1391BC01A908A98989F_} - x{8000000002_} - x{8000002_} + c1 8000002_ + c2 8000000002_ + c2: + x{8000000002_} + x{8000002_} + + c3 80000000002_ + c4 40000000000 + c5 8004B1CA92C714D3015CBA78EC7055FA7E9E65C68905B5F86EA3C66B0B1391BC01A908A98989F_ + c5: + x{8004B1CA92C714D3015CBA78EC7055FA7E9E65C68905B5F86EA3C66B0B1391BC01A908A98989F_} + x{8000000002_} + x{8000002_} ``` ## Cell Deserialization from BoC diff --git a/cell/pom.xml b/cell/pom.xml index d7c0a4d6..425d59e4 100644 --- a/cell/pom.xml +++ b/cell/pom.xml @@ -6,7 +6,7 @@ io.github.neodix42 top - 0.6.0 + 0.7.0 4.0.0 diff --git a/emulator/README.md b/emulator/README.md index 70620aaf..46d3662b 100644 --- a/emulator/README.md +++ b/emulator/README.md @@ -8,7 +8,7 @@ Java Emulator wrapper uses JNA to access methods in native emulator shared libra io.github.neodix42 emulator - 0.6.0 + 0.7.0 ``` @@ -18,7 +18,7 @@ Java Emulator wrapper uses JNA to access methods in native emulator shared libra io.github.neodix42.ton4j emulator - 0.6.0 + 0.7.0 ``` diff --git a/emulator/pom.xml b/emulator/pom.xml index 1e49aca5..e4d4535e 100644 --- a/emulator/pom.xml +++ b/emulator/pom.xml @@ -6,7 +6,7 @@ io.github.neodix42 top - 0.6.0 + 0.7.0 emulator @@ -88,25 +88,25 @@ io.github.neodix42 tonlib - 0.6.0 + 0.7.0 test io.github.neodix42 liteclient - 0.6.0 + 0.7.0 test io.github.neodix42 smartcontract - 0.6.0 + 0.7.0 test io.github.neodix42 cell - 0.6.0 + 0.7.0 compile diff --git a/fift/README.md b/fift/README.md index 2e9c53c9..a5f7e6bc 100644 --- a/fift/README.md +++ b/fift/README.md @@ -8,7 +8,7 @@ Java Lite-client wrapper uses JNA to access methods in native lite-client binary io.github.neodix42 fift - 0.6.0 + 0.7.0 ``` @@ -18,21 +18,21 @@ Java Lite-client wrapper uses JNA to access methods in native lite-client binary io.github.neodix42.ton4j fift - 0.6.0 + 0.7.0 ``` ## Usage ```java -URL resource = TestFiftRunner.class.getResource("/test.fift"); -File fiftFile = Paths.get(resource.toURI()).toFile(); -String absolutePath = fiftFile.getAbsolutePath(); +URL resource=TestFiftRunner.class.getResource("/test.fift"); + File fiftFile=Paths.get(resource.toURI()).toFile(); + String absolutePath=fiftFile.getAbsolutePath(); -FiftRunner fiftRunner = FiftRunner.builder().build(); + FiftRunner fiftRunner=FiftRunner.builder().build(); -String result = fiftRunner.run(fiftFile.getParent(), "-s", absolutePath); -log.info("output: {}", result); + String result=fiftRunner.run(fiftFile.getParent(),"-s",absolutePath); + log.info("output: {}",result); ``` More examples in [TestFiftRunner](../fift/src/test/java/org/ton/java/fift/TestFiftRunner.java) class. diff --git a/fift/pom.xml b/fift/pom.xml index 2d39c0bf..eba266c5 100644 --- a/fift/pom.xml +++ b/fift/pom.xml @@ -6,7 +6,7 @@ io.github.neodix42 top - 0.6.0 + 0.7.0 fift diff --git a/func/README.md b/func/README.md index 82cdc0bb..6b2cd027 100644 --- a/func/README.md +++ b/func/README.md @@ -8,7 +8,7 @@ Java Lite-client wrapper uses JNA to access methods in native lite-client binary io.github.neodix42 func - 0.6.0 + 0.7.0 ``` @@ -18,7 +18,7 @@ Java Lite-client wrapper uses JNA to access methods in native lite-client binary io.github.neodix42.ton4j func - 0.6.0 + 0.7.0 ``` diff --git a/func/pom.xml b/func/pom.xml index ae0dd361..9649513b 100644 --- a/func/pom.xml +++ b/func/pom.xml @@ -6,7 +6,7 @@ io.github.neodix42 top - 0.6.0 + 0.7.0 func diff --git a/liteclient/README.md b/liteclient/README.md index db18939d..db62de02 100644 --- a/liteclient/README.md +++ b/liteclient/README.md @@ -8,7 +8,7 @@ Java Lite-client wrapper uses JNA to access methods in native lite-client binary io.github.neodix42 lite-client - 0.6.0 + 0.7.0 ``` @@ -18,7 +18,7 @@ Java Lite-client wrapper uses JNA to access methods in native lite-client binary io.github.neodix42.ton4j lite-client - 0.6.0 + 0.7.0 ``` diff --git a/liteclient/pom.xml b/liteclient/pom.xml index e12a5046..61c8ca25 100644 --- a/liteclient/pom.xml +++ b/liteclient/pom.xml @@ -6,7 +6,7 @@ io.github.neodix42 top - 0.6.0 + 0.7.0 liteclient diff --git a/mnemonic/README.md b/mnemonic/README.md index 471d8a7b..5c9c0032 100644 --- a/mnemonic/README.md +++ b/mnemonic/README.md @@ -6,7 +6,7 @@ io.github.neodix42 mnemonic - 0.6.0 + 0.7.0 ``` @@ -16,7 +16,7 @@ io.github.neodix42.ton4j mnemonic - 0.6.0 + 0.7.0 ``` diff --git a/mnemonic/pom.xml b/mnemonic/pom.xml index ef33964f..b8f28933 100644 --- a/mnemonic/pom.xml +++ b/mnemonic/pom.xml @@ -5,7 +5,7 @@ top io.github.neodix42 - 0.6.0 + 0.7.0 4.0.0 diff --git a/pom.xml b/pom.xml index 1e159fb7..d3a61b1b 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ io.github.neodix42 top pom - 0.6.0 + 0.7.0 bitstring diff --git a/smartcontract/README.md b/smartcontract/README.md index 73a563d1..3672a23b 100644 --- a/smartcontract/README.md +++ b/smartcontract/README.md @@ -6,7 +6,7 @@ io.github.neodix42 smartcontract - 0.6.0 + 0.7.0 ``` @@ -16,7 +16,7 @@ io.github.neodix42.ton4j smartcontract - 0.6.0 + 0.7.0 ``` @@ -35,9 +35,11 @@ Currently, following wallet versions and revisions are supported: * v3R2 [(see usage example)](./src/test/java/org/ton/java/smartcontract/integrationtests/TestWalletV3R2Short.java) * v4R2 - subscription, plugins [(see usage example)](plugin-example.md) * v5R1 - extensions [(see usage example)](./src/test/java/org/ton/java/smartcontract/integrationtests/TestWalletV5.java) -* Lockup - restricted [(see usage example)](./src/test/java/org/ton/java/smartcontract/integrationtests/TestLockupWallet.java) +* Lockup - + restricted [(see usage example)](./src/test/java/org/ton/java/smartcontract/integrationtests/TestLockupWallet.java) * Highload [(see usage example)](./src/test/java/org/ton/java/smartcontract/integrationtests/TestHighloadWalletV2.java) -* Highload V3 [(see usage example)](./src/test/java/org/ton/java/smartcontract/integrationtests/TestHighloadWalletV3.java) +* Highload + V3 [(see usage example)](./src/test/java/org/ton/java/smartcontract/integrationtests/TestHighloadWalletV3.java) * Dns [(see usage example)](dns-example.md) * Jetton [(see usage example)](jetton-example.md) * NFT [(see usage example)](nft-example.md) diff --git a/smartcontract/pom.xml b/smartcontract/pom.xml index 238f4d40..0afb1c37 100644 --- a/smartcontract/pom.xml +++ b/smartcontract/pom.xml @@ -6,7 +6,7 @@ io.github.neodix42 top - 0.6.0 + 0.7.0 4.0.0 diff --git a/tl/pom.xml b/tl/pom.xml index 9d59d589..fa110204 100644 --- a/tl/pom.xml +++ b/tl/pom.xml @@ -5,7 +5,7 @@ top io.github.neodix42 - 0.6.0 + 0.7.0 4.0.0 @@ -47,7 +47,7 @@ io.github.neodix42 cell - 0.6.0 + 0.7.0 compile diff --git a/tonconnect/README.md b/tonconnect/README.md index 2050610b..65c1b4d4 100644 --- a/tonconnect/README.md +++ b/tonconnect/README.md @@ -6,7 +6,7 @@ io.github.neodix42 tonconnect - 0.6.0 + 0.7.0 ``` @@ -16,12 +16,14 @@ io.github.neodix42.ton4j tonconnect - 0.6.0 + 0.7.0 ``` ## Description -Please follow the [official documentation](https://docs.ton.org/develop/dapps/ton-connect/sign#how-does-it-work) for more details. + +Please follow the [official documentation](https://docs.ton.org/develop/dapps/ton-connect/sign#how-does-it-work) for +more details. ## Usage diff --git a/tonconnect/pom.xml b/tonconnect/pom.xml index 3d065117..e14571ef 100644 --- a/tonconnect/pom.xml +++ b/tonconnect/pom.xml @@ -6,7 +6,7 @@ io.github.neodix42 top - 0.6.0 + 0.7.0 tonconnect diff --git a/tonlib/README.md b/tonlib/README.md index 5480c7ca..d9366c33 100644 --- a/tonlib/README.md +++ b/tonlib/README.md @@ -2,7 +2,8 @@ Java Tonlib library uses JNA to access methods in native Tonlib shared library. -Since this is Java Tonlib wrapper around the native binary, you have to specify path to the library, see the example below. +Since this is Java Tonlib wrapper around the native binary, you have to specify path to the library, see the example +below. You can get the latest tonlib library by: @@ -15,7 +16,7 @@ You can get the latest tonlib library by: io.github.neodix42 tonlib - 0.6.0 + 0.7.0 ``` @@ -25,7 +26,7 @@ You can get the latest tonlib library by: io.github.neodix42.ton4j tonlib - 0.6.0 + 0.7.0 ``` diff --git a/tonlib/pom.xml b/tonlib/pom.xml index c508a403..aa926cbb 100644 --- a/tonlib/pom.xml +++ b/tonlib/pom.xml @@ -6,7 +6,7 @@ io.github.neodix42 top - 0.6.0 + 0.7.0 4.0.0 diff --git a/tweetnacl-java-8/pom.xml b/tweetnacl-java-8/pom.xml index 81f84769..93b5ea17 100644 --- a/tweetnacl-java-8/pom.xml +++ b/tweetnacl-java-8/pom.xml @@ -4,7 +4,7 @@ io.github.neodix42 top - 0.6.0 + 0.7.0 tweetnacl-java-8 diff --git a/utils/README.md b/utils/README.md index a12316f3..844b3f5b 100644 --- a/utils/README.md +++ b/utils/README.md @@ -6,7 +6,7 @@ io.github.neodix42 utils - 0.6.0 + 0.7.0 ``` @@ -16,7 +16,7 @@ io.github.neodix42.ton4j utils - 0.6.0 + 0.7.0 ``` diff --git a/utils/pom.xml b/utils/pom.xml index 75a4a9ad..3e70c512 100644 --- a/utils/pom.xml +++ b/utils/pom.xml @@ -6,7 +6,7 @@ io.github.neodix42 top - 0.6.0 + 0.7.0 4.0.0