Giter Site home page Giter Site logo

mercedesbenz00 / ton4j Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 103.75 MB

Java libraries for interacting with TON blockchain.

License: GNU General Public License v3.0

Java 99.91% Shell 0.09%
blockchain cryptocurrency fift java telegram tonlib tonlibjson

ton4j's Introduction

Java SDK for The Open Network (TON)

License: GPL v3 Based on TON GitHub last commit

Java libraries for interacting with TON blockchain. Do not forget to place tonlibjson library to your project. Latest Tonlib libraries can be found here.

Maven Maven Central

<dependency>
    <groupId>io.github.neodix42</groupId>
    <artifactId>smartcontract</artifactId>
    <version>0.4.7</version>
</dependency>

Jitpack JitPack

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>
<dependency>
    <groupId>io.github.neodix42</groupId>
    <artifactId>ton4j</artifactId>
    <version>0.4.7</version>
</dependency>

You can use each submodule individually. Click the module below to get more details.

  • Tonlib - use external Tonlib shared library to communicate with TON blockchain.
  • SmartContract - create and deploy custom and predefined smart-contracts.
  • Cell - create, read and manipulate Bag of Cells.
  • BitString - construct bit-strings.
  • Address - create and parse TON wallet addresses.
  • Mnemonic - helpful methods for generating deterministic keys for TON blockchain.
  • Emulator - wrapper for using with external precompiled emulator shared library.
  • Liteclient - wrapper for using with external precompiled lite-client binary.
  • Utils - create private and public keys, convert data, etc.

Features

  • ✅ BitString manipulations
  • ✅ Cells serialization / deserialization
  • ✅ TL-B serialization / deserialization
  • ✅ Cell builder and cell slicer (reader)
  • ✅ Tonlib wrapper
  • ✅ Lite-client wrapper
  • ✅ Support num, cell and slice as arguments for runMethod
  • ✅ Render List, Tuple, Slice, Cell and Number results from runMethod
  • ✅ Generate or import private key, sign, encrypt and decrypt using Tonlib
  • ✅ Encrypt/decrypt with mnemonic
  • ✅ Send external message
  • ✅ Get block transactions
  • ✅ Deploy contracts and send external messages using Tonlib
  • ✅ Wallets - Simple (V1), V2, V3, V4 (plugins), Lockup, Highload/Highload-V3, DNS, Jetton, StableCoin, NFT, Payment-channels, Multisig V1
  • ✅ HashMap, HashMapE, PfxHashMap, PfxHashMapE, HashMapAug, HashMapAugE serialization / deserialization

Todo

  • Support tuple and list as arguments for runMethod
  • Improve code coverage and add more integration tests
  • BinTree 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

ton4j's People

Contributors

neodix42 avatar mercedesbenz00 avatar

Stargazers

SONY avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.