• Stars
    star
    144
  • Rank 254,841 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 5 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TronBox - Simple development framework for tronweb

TronBox

TronBox

TronBox is a tool for developing, testing, and deploying smart contracts. It is designed for blockchains using the TRON Virtual Machine (TVM).

  • Built-in smart contract compilation, linking, deployment, and binary management.
  • External script runner that executes scripts within a TronBox environment.
  • Interactive console for direct contract communication.
  • Automated contract testing for rapid development.
  • Scriptable, extensible deployment & migrations framework.
  • Network management for deploying to any number of public & private networks.

TronBox is a fork of Truffle.

Quick Start

Install

Before you can use TronBox, install it using the npm command. For details, see Install TronBox.

$ npm install -g tronbox

Note: To verify the PGP signature, see here.

Create a default Tron-Box Project

You can create a bare project without smart contracts, run:

$ tronbox init

Once this operation is completed, you'll now have a project structure with the following items:

contracts/: Directory for Solidity contracts
migrations/: Directory for scriptable deployment files
test/: Directory for test files for testing your application and contracts
tronbox.js: TronBox configuration file

For those getting started, you can use TronBox Boxes, which offers example applications and project templates. For details, see Create a TronBox Project.

Compile

If you want to only compile, run:

$ tronbox compile

To compile all contracts, use the --compile-all option.
Specify a network using the --network option. Network name must exist in the configuration. For details, see Compile a Project.

Migrate

To deploy our smart contracts, you need to connect to a blockchain. Use the TronBox Runtime Environment to create and interact with the blockchain. For details, see Contract Deployment (Migrations).

To run your migrations, run the following:

$ tronbox migrate

Test

To run all tests, run:

$ tronbox test

Alternatively, you can specify a path to a specific file you want to run: tronbox test ./path/to/test/file.js. For details, see Test Your Contracts.

Interact with the contract

To interact with the contract, run:

$ tronbox console

You will see the following prompt:

$ tronbox(development)>

The name in the parentheses of the prompt tronbox(development)> is the network that is currently connected to. For details, see Interact with a Contract.

Development

To dive deeper into advanced topics of the TronBox project lifecycle, please see the Official TronBox Documentation for guides, tips, and examples.

To contribute, see CONTRIUTING.MD.

More Repositories

1

java-tron

Java implementation of the Tron whitepaper
Java
3,699
star
2

wallet-cli

Wallet CLI
Java
598
star
3

documentation

Documentations of project TRON
PHP
578
star
4

tronweb

Javascript API Library for interacting with the TRON Network
JavaScript
423
star
5

sun-network

Java
346
star
6

documentation-en

235
star
7

tips

TRON Improvement Proposals
221
star
8

tron-deployment

tron main net conf
Shell
175
star
9

protocol

Shell
152
star
10

trident

Java
136
star
11

wiki

111
star
12

tron-contracts

Solidity smart contracts for the TRON blockchain https://tron.network
JavaScript
100
star
13

documentation-zh

93
star
14

tronwallet-adapter

TypeScript
59
star
15

tronj

Java sdk of tron
Java
49
star
16

event-plugin

Tron eventsubscribe plugin
Java
36
star
17

tron-eventquery

Tron-EventQuery is implemented with tron's event subscribe model, it's used to query event triggers from fullnode.
Java
36
star
18

docker-tron-quickstart

A full private network for Tron development
33
star
19

libp2p

The p2p system implemented in java language
Java
33
star
20

tron-box

TronBox - Simple development framework for tronweb
31
star
21

tron-demo

Tron tools
JavaScript
28
star
22

tron-studio

DEPRECATED. Use TronBox for smart contract deployment.
Java
26
star
23

chainbase

a decentralized database for blockchain
25
star
24

tron-sdk-py

Python
16
star
25

btfsfile

Proof of concept DApp on BTFS
JavaScript
16
star
26

pm

Project Management: Meeting notes and agenda items
16
star
27

go-client-api

13
star
28

tron-cli

TRON-CLI is a command line tool which allows developers quickly set up and manage TRON nodes and service.
13
star
29

zksnark-java-sdk

a zksnark jni library
Java
13
star
30

tron-station-sdk

Javascript API Library for estimating Tron energy and bandwidth consumption based on Tron network.
JavaScript
13
star
31

system-test

Java
11
star
32

tron-grid

10
star
33

tron-rosetta-api

A java-tron api for rosetta.
Roff
9
star
34

ai-protocol

Solidity
9
star
35

java-http-client

Java
7
star
36

custom-oracle

Custom oracle for the Tron blockchain.
JavaScript
7
star
37

tron-blog

JavaScript
7
star
38

lever

stress testing for java-tron
Java
6
star
39

sun-photon

JavaScript
5
star
40

tron-mpc-testnet

Rust
3
star
41

cpp-tron

the cpp implementation of TRON protocol
3
star
42

OSSRH-87363

3
star
43

tron-events

An application server to save to and retrieve events from a cached db
3
star
44

sun.js

JavaScript
3
star
45

account-audit

Jupyter Notebook
2
star
46

tron-station

JavaScript
2
star
47

tools

Java
2
star
48

tron-zksnark

a tron zksnark server
C++
2
star
49

mp-ecdsa-java-sdk

a multi-party-ecdsa jni library
Java
2
star
50

tron-station-lib

Energy/BP cost API for tron-station and developers
2
star
51

tron-blog-zh

JavaScript
2
star
52

block-parser

implement GRPC to read event infos from block
2
star
53

delivery-wu

Go
1
star
54

multi-party-ecdsa

Rust implementation of {t,n}-threshold ECDSA (elliptic curve digital signature algorithm).
Rust
1
star