Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add burn transaction #37

Open
4 tasks
jasny opened this issue May 2, 2022 · 0 comments
Open
4 tasks

Add burn transaction #37

jasny opened this issue May 2, 2022 · 0 comments

Comments

@jasny
Copy link
Member

jasny commented May 2, 2022

The JUICY upgrade has added a new transaction type: Burn (type 21). A burn transaction is similar to a transfer transaction, but there is no recipient. The amount is deducted from the sender's balance, and removed from the total supply (aka burned). Burn transactions should be supported by the java client.

The binary schema and JSON are described in the documentation. This transaction type is already implemented in Python, which can be used as example.

  • Add Burn class to the transaction package (com.ltonetwork.client.core.transaction).
  • Copy logic from other classes where it applies. The class properties should match those available in the burn JSON.
  • Implement the toBinaryV3() method using information from the documentation and/or python lib. (Note that there is no v1 or v2 binary for burn transactions.)
  • Create unit tests for this class.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant