SUN Network V1.0 (DAppChain) MainNet Goes Live

TRON DAO
6 min readSep 25, 2019

--

TRON, one of the world’s largest public blockchain platforms, on Sept. 25 will officially release the MainNet for its sidechain solution, the Sun Network 1.0 (DAppChain).

Sun Network is a scaling solution built to expand the capacity of TRON’s MainNet, including a number of scaling projects such as smart contract DAppChain and cross-chain communication. DAppChain is a sidechain project for the TRON MainNet, enabling DApps to run on TRON with lower energy consumption, higher security and efficiency.

The launch will accelerate the development of the DApp ecosystem and our community’s autonomy. TRON Foundation will also release a demo of DAppChain to encourage greater community participation in demo-chain governance and to highlight how to build more authentication chains. With a concerted effort from the community, TRON’s MainNet will achieve a scalable, cost-effective, and prosperous ecosystem.

In addition, the developer’s community for SUN Network has improved the matching tool kits, including a number of supporting tools and sets such as TRONSCAN, TronLink, and SunWeb, to achieve easy deployment and fast integration of the sidechains. Developers now can onboard with DAppChain network in a more convenient way.

【How to Access Sun Network Demo DAppChain】

1. Access the Demo DAppChain for Non-developer Users

Users can access the network via TronLink/TRONSCAN to transfer assets between the main chain and the sidechain.

2. Developer’s Access to the Demo DAppChain

Apart from TronLink and TRONSCAN, developers can also use SunWeb Node.js SDK and the Java version of SDK to access the chain. Developers can interact with the demo chain directly via codes.

// link to GRPC/HTTP will be added later

3. Become a Node on the Demo DAppChain

Any member of the community may become a Full Node on the demo DAppChain. We welcome all members of the community to join the sidechain network, just as we did for TRON’s MainNet. As long as you set a matching peer-to-peer (P2P) version, sidechain ID, and other parameters, you will have a sidechain Full Node at your disposal.

Detailed information on configuration and deployment will be disclosed to community members at the official launch of the DAppChain.

// Configuration Files

https://github.com/tronprotocol/sun-network/blob/develop/documentation/configs/dapp_chain_config.conf

4. How to Become a Witness Node on the Demo DAppChain

The demo DAppChain applies the same Witness election mechanism as MainNet. A community member can stand for election on the sidechain, deposit TRX to win votes, and get elected to be a Witness with block-generating rights.

However, the block reward for sidechain Witnesses will come solely from the proceeds on the sidechain. Therefore, the block reward will start from a relatively small amount. The bigger the sidechain ecosystem becomes, the higher the reward will be. This will also motivate Witnesses to participate in the development of the sidechain

【How to Create Your Own DAppChain】

Sun Network’s open-source code allows developers and community members to deploy their own blockchains.

The code in the current version provides an isomorphic chain to the TRON MainNet, so the deployed sidechain will enjoy all MainNet features. Deployers can also customize their own chains by configuring the parameters to the needs of their business.

Here are the steps:

1. Deploy a gateway contract on the TRON MainNet

2. Generate sidechainID based on the address of the contract

3. Modify information of the nodes, the genesis block, sidechain ID and so on in Witness configuration files and customize the properties of your own chain

4. Launch your own group of Genesis Witness nodes to create your own sidechain

5. Deploy the gateway contract on the sidechain

6. Launch Oracle nodes and related event service configuration to activate cross-chain interaction

7. Genesis Witness nodes submit and adopt a proposal to change the address of the sidechain gateway contract from the sidechain

8. Prepare tokens. Transfer some of the tokens to the Oracle addresses on the sidechain, and inject tokens into the Oracle addresses on the main chain to support cross-chain interaction

9. Set parameters for the main chain and sidechain contracts, including fees, etc.

10. Genesis Witness nodes submit and adopt a proposal to turn on the transaction fee switch from the sidechain

In this way, the deployer can create their own sidechain and safely transfer assets between the main chain and sidechain.

// For detailed steps, please go to:

https://tron.network/sunnetwork/doc/zh/guide/#vii- How to deploy your own side chain

About TRONSCAN

TRONSCAN has launched the block explorer that supports Sun Network. Users can switch from TRONSCAN, the MainNet-based explorer, to the explorer for Sun Network with just one click, and vice versa, making it easier to look up transactions, accounts, blocks and on-chain statistics. By switching between main chain and sidechain networks, users can deposit and withdraw their assets back and forth between the two chains.

About TronLink

At present, TronLink Wallet has launched its latest version that supports one-click switch to Sun Network. In other words, users can deposit MainNet assets and use them in Sun Network, and withdraw the assets back to MainNet after use.

About SunWeb

SunWeb is a TronWeb-based JS-SDK tool developed for Sun Network. It encapsulates a main-chain object and a side-chain object, which are essentially object instances of TronWeb, with all the attributes and functions of TronWeb instances. For example, users can use Sunweb.mainchain.trx.getbalance () to get balance on the MainNet. In addition, SunWeb has included new functions to support the interaction between the main chain and the sidechain, including deposit, withdrawal, mapping, approve and InjectFund operations. For more information, please refer to the source code.

Sun Network will provide unlimited scalability to the TRON MainNet, allowing more possibilities in the development of TRON DApps and the entire ecosystem. While helping grow the TRON network, SUN Network will also bring positive impact to the entire blockchain industry.

“As time goes on, lots of projects have made great progress,” said Justin Sun, founder of TRON. “We launched TVM in October 2018, and in just seven months, nearly 500 quality DApps have been created for the TRON network.”

The total account number on TRON has reached 3,000,000, while 410 million secure transactions have taken place since the MainNet launch. The energy-saving, highly secure and efficient Sun Network will contribute to a more active TRON ecosystem and a developer-friendly environment. In addition, a number of SUN Network scaling projects such as smart contract DAppChain and cross-chain communication will further expand the overall capacity of the TRON network, with higher TPS and greater efficiency in executing smart contracts.”

About Sun Network

Sun Network is a scaling solution aiming at prospering the TRON MainNet, including smart contract DAppChain, cross-chain communication, and other scaling projects. Among them, DAppChain is a sidechain scaling solution related to TRON smart contracts. Its customizable feature allows DApps to run with low energy consumption, high security and high efficiency on the chain, and provides unlimited scaling capacity for the TRON MainNet to support the growing number of transactions.

About TRON

Established by Justin Sun, one of the first graduates at Jack Ma’s Hupan University, TRON is dedicated to building the infrastructure for a truly decentralized Internet. The TRON Protocol, one of the largest blockchain-based operating systems in the world, offers high-scalability, high-availability, and high-throughput support that serves as the foundation for all decentralized applications in the TRON ecosystem. The Protocol also uses an innovative, pluggable smart contract platform to improve compatibility with Ethereum smart contracts.

On July 24, 2018, TRON acquired BitTorrent Inc., an internet technology company based in San Francisco. The distributed technology designed by BitTorrent Inc. is smart, highly scalable, and keeps creators and consumers in control of their content and data. More than 170 million people use BitTorrent products every month. BitTorrent Inc.’s protocol drives 40% of the world’s internet traffic every day.

--

--

TRON DAO
TRON DAO

Written by TRON DAO

The official Medium of TRON DAO.

No responses yet