-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate fift and func runners and put to new modules
- Loading branch information
Showing
30 changed files
with
434 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
target/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea/modules.xml | ||
.idea/jarRepositories.xml | ||
.idea/compiler.xml | ||
.idea/libraries/ | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### Eclipse ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### Mac OS ### | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Liteclient module | ||
|
||
Java Lite-client wrapper uses JNA to access methods in native lite-client binary. | ||
|
||
## Maven [![Maven Central][maven-central-svg]][maven-central] | ||
|
||
```xml | ||
<dependency> | ||
<groupId>io.github.neodix42</groupId> | ||
<artifactId>fift</artifactId> | ||
<version>0.5.5</version> | ||
</dependency> | ||
``` | ||
|
||
## Jitpack | ||
|
||
```xml | ||
<dependency> | ||
<groupId>io.github.neodix42.ton4j</groupId> | ||
<artifactId>fift</artifactId> | ||
<version>0.5.5</version> | ||
</dependency> | ||
``` | ||
|
||
## Usage | ||
|
||
```java | ||
URL resource = TestFiftRunner.class.getResource("/test.fift"); | ||
File fiftFile = Paths.get(resource.toURI()).toFile(); | ||
String absolutePath = fiftFile.getAbsolutePath(); | ||
|
||
FiftRunner fiftRunner = FiftRunner.builder().build(); | ||
|
||
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. | ||
|
||
|
||
[maven-central-svg]: https://img.shields.io/maven-central/v/io.github.neodix42/tonlib | ||
|
||
[maven-central]: https://mvnrepository.com/artifact/io.github.neodix42/tonlib | ||
|
||
[ton-svg]: https://img.shields.io/badge/Based%20on-TON-blue | ||
|
||
[ton]: https://ton.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<?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.5.5</version> | ||
</parent> | ||
|
||
<artifactId>fift</artifactId> | ||
<name>TON Java Fift wrapper</name> | ||
|
||
<description>Java wrapper for fift executable.</description> | ||
|
||
<url>https://github.com/neodiX42/ton4j</url> | ||
|
||
<licenses> | ||
<license> | ||
<name>GNU General Public License v3.0</name> | ||
<url>https://www.gnu.org/licenses/gpl-3.0.html</url> | ||
</license> | ||
</licenses> | ||
|
||
<developers> | ||
<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> | ||
|
||
<properties> | ||
<maven.compiler.source>8</maven.compiler.source> | ||
<maven.compiler.target>8</maven.compiler.target> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>io.github.neodix42</groupId> | ||
<artifactId>utils</artifactId> | ||
<version>${project.parent.version}</version> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-codec</groupId> | ||
<artifactId>commons-codec</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-io</groupId> | ||
<artifactId>commons-io</artifactId> | ||
<version>${commons-io.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
<scope>compile</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>ch.qos.logback</groupId> | ||
<artifactId>logback-classic</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.assertj</groupId> | ||
<artifactId>assertj-core</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
2 changes: 1 addition & 1 deletion
2
.../org/ton/java/smartcontract/Executor.java → ...main/java/org/ton/java/fift/Executor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rg/ton/java/smartcontract/FiftRunner.java → ...in/java/org/ton/java/fift/FiftRunner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
target/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
||
### IntelliJ IDEA ### | ||
.idea/modules.xml | ||
.idea/jarRepositories.xml | ||
.idea/compiler.xml | ||
.idea/libraries/ | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### Eclipse ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
!**/src/main/**/build/ | ||
!**/src/test/**/build/ | ||
|
||
### VS Code ### | ||
.vscode/ | ||
|
||
### Mac OS ### | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Liteclient module | ||
|
||
Java Lite-client wrapper uses JNA to access methods in native lite-client binary. | ||
|
||
## Maven [![Maven Central][maven-central-svg]][maven-central] | ||
|
||
```xml | ||
<dependency> | ||
<groupId>io.github.neodix42</groupId> | ||
<artifactId>func</artifactId> | ||
<version>0.5.5</version> | ||
</dependency> | ||
``` | ||
|
||
## Jitpack | ||
|
||
```xml | ||
<dependency> | ||
<groupId>io.github.neodix42.ton4j</groupId> | ||
<artifactId>func</artifactId> | ||
<version>0.5.5</version> | ||
</dependency> | ||
``` | ||
|
||
## Usage | ||
|
||
```java | ||
URL resource = TestFuncRunner.class.getResource("/test.fc"); | ||
File funcFile = Paths.get(resource.toURI()).toFile(); | ||
String absolutePath = funcFile.getAbsolutePath(); | ||
|
||
FuncRunner funcRunner = FuncRunner.builder().build(); | ||
|
||
String result = funcRunner.run(funcFile.getParent(), "-PA", absolutePath); | ||
log.info("output: {}", result); | ||
``` | ||
|
||
More examples in [TestFuncRunner](../func/src/test/java/org/ton/java/func/TestFuncRunner.java) class. | ||
|
||
|
||
[maven-central-svg]: https://img.shields.io/maven-central/v/io.github.neodix42/tonlib | ||
|
||
[maven-central]: https://mvnrepository.com/artifact/io.github.neodix42/tonlib | ||
|
||
[ton-svg]: https://img.shields.io/badge/Based%20on-TON-blue | ||
|
||
[ton]: https://ton.org |
Oops, something went wrong.