Closed k-yang closed 5 months ago
This update introduces a new upgrade version v1_2_0
, adding support for burning native tokens through a new BurnNative
RPC method, while removing the previous Burn
method related to inflation. The changes span across application upgrade logic, protobuf definitions, and keeper functionality, including tests to ensure proper operation. This shift refines the token management capabilities, specifically enhancing the process of burning tokens within the system.
Files | Change Summary |
---|---|
app/upgrades.go app/upgrades/v1_2_0/... |
Added support for new upgrade version v1_2_0 . |
proto/.../inflation/v1/tx.proto proto/.../tokenfactory/v1/tx.proto |
Removed Burn method from Msg service in inflation and added BurnNative RPC for tokenfactory. |
x/inflation/keeper/msg_server.go x/inflation/keeper/msg_server_test.go |
Removed Burn function and related tests for inflation. |
x/tokenfactory/cli/tx.go x/tokenfactory/keeper/... x/tokenfactory/keeper/msg_server.go x/tokenfactory/keeper/msg_server_test.go x/tokenfactory/types/tx_msgs.go |
Added CmdBurnNative() , handling for MsgBurnNative , and updated validations and tests. |
🐇💬✨
"In the land of code and byte,
A new burn method takes its flight.
Tokens vanish, not with sorrow,
Making way for bright tomorrow.
Hop, hop, hop, on we go,
Into the future, with code aglow!"
🌟🚀🐰
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Purpose / Abstract
x/tokenfactory
msg server. The tokenfactory module was chosen because it already has theburner
permission.v1.2.0
upgrade handlerlegacytx.LegacyMsg
interface, which is required for amino signingSummary by CodeRabbit
New Features
v1_2_0
for enhanced application functionality.Bug Fixes
Burn
RPC method to streamline token operations and improve security.Documentation
tokenfactory
module.Tests
Burn
function, ensuring test suite relevance.BurnNative
functionality, enhancing code reliability.