Skip to content

Commit

Permalink
review TON BoC disassembler made by @h6x0r;
Browse files Browse the repository at this point in the history
reformat, remove binaries, update readme;
  • Loading branch information
neodix42 committed Jan 13, 2025
1 parent f35c1a8 commit f0bde18
Show file tree
Hide file tree
Showing 9 changed files with 196 additions and 199 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ You can use each submodule individually. Click the module below to get more deta
* [Func](func/README.md) - wrapper for using with external precompiled func binary.
* [Tolk](tolk/README.md) - wrapper for using with external precompiled tolk binary.
* [TonConnect](tonconnect/README.md) - implementation of Ton Connect standard.
* [Disassembler](disassembler/README.md) - implementation of Ton Connect standard.
* [Utils](utils/README.md) - create private and public keys, convert data, etc.

### Features
Expand All @@ -80,13 +81,6 @@ You can use each submodule individually. Click the module below to get more deta
Payment-channels, Multisig V1
* ✅ 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:

```UQBguBMWc_wUA8pJjC-A9JbTJFzb7lbFbbkiFYajA33-U9YU```

## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=neodiX42/ton4j&type=Date)](https://star-history.com/#neodiX42/ton4j&Date)
Expand Down
12 changes: 6 additions & 6 deletions disassembler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@
<dependency>
<groupId>io.github.neodix42</groupId>
<artifactId>disassembler</artifactId>
<version>1.0.0</version>
<version>0.8.2</version>
</dependency>
```

## Usage

```java
Tonlib tonlib = Tonlib.builder()
Tonlib tonlib=Tonlib.builder()
.testnet(false)
.ignoreCache(false)
.build();

Address address = Address.of(addr);
FullAccountState accountState = this.tonlib.getAccountState(this.address);
Address address=Address.of(addr);
FullAccountState accountState=this.tonlib.getAccountState(address);

byte[] accountStateCode = Utils.base64ToBytes(this.accountState.getAccount_state().getCode());
byte[]accountStateCode=Utils.base64ToBytes(accountState.getAccount_state().getCode());

String disassembledInstruction = Disassembler.fromBoc(this.accountStateCode);
String disassembledInstruction=Disassembler.fromBoc(accountStateCode);
```

[maven-central-svg]: https://img.shields.io/maven-central/v/io.github.neodix42/disassembler?color=red
Expand Down
138 changes: 69 additions & 69 deletions disassembler/pom.xml
Original file line number Diff line number Diff line change
@@ -1,79 +1,79 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.github.neodix42</groupId>
<artifactId>top</artifactId>
<version>0.8.2</version>
</parent>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.github.neodix42</groupId>
<artifactId>top</artifactId>
<version>0.8.2</version>
</parent>

<artifactId>disassembler</artifactId>
<name>TON Java Boc Disassembler</name>
<artifactId>disassembler</artifactId>
<name>TON Java BoC Disassembler</name>

<url>https://github.com/neodiX42/ton4j</url>
<url>https://github.com/neodiX42/ton4j</url>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<surefire.plugin.version>3.0.0-M7</surefire.plugin.version>
<maven.compiler.plugin>3.10.1</maven.compiler.plugin>
<maven.source.plugin>2.2.1</maven.source.plugin>
<maven.javadoc.plugin>3.4.1</maven.javadoc.plugin>
<maven.gpg.plugin>1.5</maven.gpg.plugin>
<central.publishing.maven.plugin>0.6.0</central.publishing.maven.plugin>
<nexus.staging.plugin>1.6.7</nexus.staging.plugin>
</properties>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<surefire.plugin.version>3.0.0-M7</surefire.plugin.version>
<maven.compiler.plugin>3.10.1</maven.compiler.plugin>
<maven.source.plugin>2.2.1</maven.source.plugin>
<maven.javadoc.plugin>3.4.1</maven.javadoc.plugin>
<maven.gpg.plugin>1.5</maven.gpg.plugin>
<central.publishing.maven.plugin>0.6.0</central.publishing.maven.plugin>
<nexus.staging.plugin>1.6.7</nexus.staging.plugin>
</properties>

<developers>
<developer>
<name>h6x0r</name>
<email>[email protected]</email>
</developer>
<developer>
<name>neodiX</name>
<email>[email protected]</email>
</developer>
</developers>
<developers>
<developer>
<name>h6x0r</name>
<email>[email protected]</email>
</developer>
<developer>
<name>neodiX</name>
<email>[email protected]</email>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/neodiX42/ton4j.git</connection>
<developerConnection>scm:git:ssh://github.com/neodiX42/ton4j.git</developerConnection>
<url>https://github.com/neodiX42/ton4j/tree/main</url>
</scm>
<scm>
<connection>scm:git:git://github.com/neodiX42/ton4j.git</connection>
<developerConnection>scm:git:ssh://github.com/neodiX42/ton4j.git</developerConnection>
<url>https://github.com/neodiX42/ton4j/tree/main</url>
</scm>

<dependencies>
<dependency>
<groupId>io.github.neodix42</groupId>
<artifactId>smartcontract</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.3.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.3.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<dependencies>
<dependency>
<groupId>io.github.neodix42</groupId>
<artifactId>smartcontract</artifactId>
<version>${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.3.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>5.3.1</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
Loading

0 comments on commit f0bde18

Please sign in to comment.