https://github.com/tronprotocol/tron-contracts
Solidity smart contracts for the TRON blockchain https://tron.network
https://github.com/tronprotocol/tron-contracts
Last synced: about 1 year ago
JSON representation
Solidity smart contracts for the TRON blockchain https://tron.network
- Host: GitHub
- URL: https://github.com/tronprotocol/tron-contracts
- Owner: tronprotocol
- License: mit
- Created: 2018-11-08T01:14:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-31T08:31:34.000Z (almost 7 years ago)
- Last Synced: 2025-04-15T11:46:33.092Z (about 1 year ago)
- Language: JavaScript
- Size: 28.3 KB
- Stars: 110
- Watchers: 13
- Forks: 111
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tron-contracts
Solidity smart contracts for the [TRON](https://tron.network) blockchain.
This repository contains a library of sample smart contracts for the TRON network.
Configured with [TronBox](https://github.com/tronprotocol/tron-box).
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](https://www.trongrid.io/shasta/#request).
### 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](https://developers.tron.network/docs/converting-ethereum-contracts-to-tron) to port Ethereum smart contracts over to TRON.
## License
Released under the [MIT License](LICENSE).