This project wraps most of TronWeb into Fluence services. While this wrapper is experimental it should be a great jumping off point for anyone who wants to build anything with Tron in the Fluence ecosystem.
Recommended nodejs version: 16
Install dependencies:
yarn Run Fluence services:
yarn start You can also change Fluence and Tron network settings in settings.json. By default this project connects to krasnodar[0] and the shasta test network.
- First start the Fluence services:
yarn start - Next grab the
Peer IDandRelay IDfrom the terminal output and put them intotests/address.aqua. This is needed because otherwise the test script won't be able to find our services. - Finally you can run the tests.
yarn start:tests:trx yarn start:tests:event yarn start:tests:tronweb Note: These tests were written for the shasta test network, and they are only used to demonstrate the capabilities of this wrapper library
Most of the TronWeb JS library is wrapped and functional. There are very minimal differences in implementation. You should be able to use the official TronWeb documentation and source code to use this wrapper.
- TronWeb - 27/29 functions wrapped
- Event - 3/3 functions wrapped
- Trx - 65/65 functions wrapped
- SideChain - 21/24 functions wrapped
- TransactionBuilder 22/38 functions wrapped
- Plugin - It would be extremely difficult to support plugins through aqua, so this isn't implemented
Since Fluence is a relatively new and complex technology, I took some inspiration from this other great project: https://github.com/ntrotner/web3-exposed-to-fluence