Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRON Contract Deployment Minimal Scrip

Sometimes we just need a minimal script, and this is just that based on https://trontools.org/energy-and-bandwith-calculator

Quick Start

Steps

  1. git clone this repo
  2. cd into your local repo
  3. npm install OR yarn install to install dependencies
  4. cp env.sample .env
  5. Edit your .env file with your actual testnet/mainnet private key (take the necesary precautions when dealing with mainnet pk)
  6. Import your abi and bytecode json files from already compiled contracts into /abi and /bytecode folders (manually edit constructor inputs whenever necesary in your abi)
  7. bun sc_deploy_estimator.tsx

Note: abi and bytecode examples are provided for testing purposes, make sure to replace those with your own.

You should see something like in your terminal output:

1754094449169

If you encounter issues feel free to open an issue or create a PR to improve the scrip.

About

TRON Contract Deployment Energy estimation script

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages