Skip to content

Releases: tronprotocol/tronbox

v3.1.2

01 Mar 10:09
eb005e8
Compare
Choose a tag to compare
  • Add support for Solidity compiler 0.8.18

v3.1.1

20 Feb 03:43
839cb8b
Compare
Choose a tag to compare
  • Add support for Solidity compiler 0.8.17

v3.1.0

02 Feb 08:52
af0d3ee
Compare
Choose a tag to compare
  • Bump chokidar from 1.7.0 to 3.5.3
  • Bump yargs from 8.0.2 to 15.4.1
  • Bump tronweb from 4.4.0 to 5.1.0

v3.0.2

09 Dec 09:52
0cc1577
Compare
Choose a tag to compare
  • Add support for ABIEncoderV2
  • Add support for using mnemonic in network config
  • Add support for converting a truffle project to tronbox project when init
  • Bump tronweb from 4.3.0 to 4.4.0

v3.0.1

21 Nov 08:20
45abd43
Compare
Choose a tag to compare
  • Bug fixed and internal improvements

v3.0.0

21 Oct 08:37
3e38651
Compare
Choose a tag to compare
  • Bump tronweb from 4.0.1 to 4.3.0
  • Add support for Solidity compiler 0.8.7 and 0.8.11
  • Add tronWrap.send function to test environment for supporting tronbox/tre docker image.
  • Add tre_setAccountBalance RPC method. The method can set the given account's balance to the specified SUN value.
  • Add tre_setAccountCode RPC method. The method can set the given account's code to the specified value.
  • Add tre_setAccountStorageAt RPC method. The method can set the given account's storage slot to the specified data.
  • Add tre_blockTime RPC method. The method can set the blockTime in seconds for automatic mining. A blockTime of 0 enables "instamine mode", where new executable transactions will be mined instantly.
  • Add tre_mine RPC method. The method can mine exactly blocks number of blocks.
  • Add tre_unlockedAccounts RPC method. The method can set up any arbitrary account to impersonate during development.

tre_setAccountBalance:

const address = "TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL";
const balance = "0x3e8";
const result = await tronWrap.send("tre_setAccountBalance", [address, balance]);
console.log(result);

tre_setAccountCode:

const address = "TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL";
const data = "0xbaddad42";
const result = await tronWrap.send("tre_setAccountCode", [address, data]);
console.log(result);

tre_setAccountStorageAt:

const address = "TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL";
const slot = "0x0000000000000000000000000000000000000000000000000000000000000005";
const data = "0xbaddad42";
const result = await tronWrap.send("tre_setAccountStorageAt", [address, slot, data]);
console.log(result);

tre_blockTime:

const result = await tronWrap.send("tre_blockTime", [3]);
console.log(result);

tre_mine:

const result = await tronWrap.send("tre_mine", [{ blocks: 5}]);
console.log(result);

tre_unlockedAccounts:

const result = await tronWrap.send("tre_unlockedAccounts", [["TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL"]]);
console.log(result);

v2.7.25

17 Nov 07:18
d3b76ed
Compare
Choose a tag to compare

Bump tronweb from 4.0.0 to 4.0.1

v2.7.24

17 Aug 09:36
a6ef46a
Compare
Choose a tag to compare

Add support for Solidity compiler 0.5.18, 0.6.13, 0.7.7 and 0.8.6

v2.7.23

12 Jul 07:46
8d3c5aa
Compare
Choose a tag to compare

Add support for Solidity compiler 0.8.0

v2.7.22

02 Jul 11:50
ba4c20f
Compare
Choose a tag to compare

Add support for Solidity compiler 0.7.6