Skip to content

0.7.7_Bacon_v4.3

Compare
Choose a tag to compare
@Lredhdx Lredhdx released this 02 Aug 04:22

TRON Solidity compiler 0.7.7 is fully compatible with Ethereum Solidity 0.7.6.
This release supports two new instructions and six precompile contracts introduced in TIP-271.
Please see the usage-example to use.

Requirement

  • Developers can only use these new instructions and precompile contracts after proposal TIP-271 has been approved in TRON mainnet.

New Features

  • Add VOTEWITNESS instruction: Smart contract can vote for witness and get reward from the system.
  • Add WITHDRAWREWARD instruction: Smart contract can withdraw allowance and reward to it's balance.
  • Add RewardBalance precompile contract: Smart contract can query it's own allowance and reward.
  • Add IsSrCandidate precompile contract: Smart contract can judge whether the address is a candidate address.
  • Add VoteCount precompile contract: Smart contract can query the vote count of from address votes for to address.
  • Add UsedVoteCount precompile contract: Smart contract can query account's used vote count.
  • Add ReceivedVoteCount precompile contract: Smart contract can query account's recevied vote count.
  • Add TotalVoteCount precompile contract: Smart contract can query account's total vote count.