Skip to content

Latest commit

 

History

History
44 lines (23 loc) · 1.46 KB

README.md

File metadata and controls

44 lines (23 loc) · 1.46 KB

tron-contracts

Solidity smart contracts for the TRON blockchain.

This repository contains a library of sample smart contracts for the TRON network.

Configured with TronBox.

Contracts include but not limited to implementations of standard-compliant tokens, library kits, and common utilities.

Usage

Install tronbox:

npm install -g tronbox

Clone repo:

git clone https://github.com/tronprotocol/tron-contracts.git

Import Address and Private Key:

Import an address and private key of an account into the "from" and "privateKey" fields inside the tronbox.js file. Make sure it has test TRX to deploy the contracts. You can request some here.

Compile:

tronbox compile

Migrate:

tronbox migrate --reset

Security

This repository is maintained by the TRON community and is aimed to provide sample contracts with quality and security in mind. Please use common sense when using contracts associated with real money! These contracts are provided as-is; TRON Foundation takes no responsibility for any decisions made with these contracts.

Contribute

Pull requests and suggestions are welcome.

Feel free to consult the Ethereum Conversion Guide to port Ethereum smart contracts over to TRON.

License

Released under the MIT License.