0.5.18_Bacon_v4.3
TRON Solidity compiler 0.5.18 is fully compatible with Ethereum Solidity 0.5.17.
This release supports new instructions and 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 offrom address
votes forto 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.