8000 GitHub - patoigz/tron-starter-dapp: A Vue based Tron example dApp with tronweb, tronlink, tronbox and vue-cli
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

patoigz/tron-starter-dapp

 
 

Repository files navigation

Tron starter dApp

This project was generated with vue-cli version 3.2.1

A Vue based Tron example dApp with tronweb, tronlink, tronbox and vue-cli

Demo

Update a value of a smart contract with your Tronlink wallet address

Project setup

A TronLink account is required for this dApp to work!

Download Tronlink here

Get some free test TRX coins from here to get some balance on your account

Install dependencies

npm install

Update the .env file

VUE_APP_SHASTA_PRIVATE_KEY="Your key"

Run the development server

npm run serve

Compile your own smart contracts

Add your smart contract to the /contracts folder

Install tronbox

npm install -g tronbox

Compile the contract

tronbox compile

Migrate the contract

tronbox migrate --network shasta

Change the current address to your deployed contract address

  let contractInstance = await tronWeb
      .contract()
      .at("Your deployed contract address");

About

A Vue based Tron example dApp with tronweb, tronlink, tronbox and vue-cli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 38.7%
  • TypeScript 30.2%
  • JavaScript 23.7%
  • HTML 7.4%
0