Skip to content

Commit

Permalink
feat: adding msgburnv1 for backwards compatibility
Browse files Browse the repository at this point in the history
as we transition to v2 we'll need to have access to both v1 and v2 types
for burn and control by feature flags which version to use
  • Loading branch information
gislik committed Sep 28, 2024
1 parent 1018d5a commit eedeb94
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions proto/florin/v1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,26 @@ message MsgAllowDenom {
// MsgAllowDenomResponse is the response of the AllowDenom action.
message MsgAllowDenomResponse {}

// MsgBurnV1 implements the burn (0x8d1247ba) method.
message MsgBurnV1 {
option (cosmos.msg.v1.signer) = "signer";
option (amino.name) = "florin/Burn";

option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

string denom = 1;
string signer = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string from = 3 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string amount = 4 [
(amino.dont_omitempty) = true,
(cosmos_proto.scalar) = "cosmos.Int",
(gogoproto.customtype) = "cosmossdk.io/math.Int",
(gogoproto.nullable) = false
];
bytes signature = 5;
}

// MsgBurn implements the burn (0x8d1247ba) method.
message MsgBurn {
option (cosmos.msg.v1.signer) = "signer";
Expand Down

0 comments on commit eedeb94

Please sign in to comment.