From eedeb942eca82df01c1a5820ca5bf2deb38aec2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gi=CC=81sli=20Kristja=CC=81nsson?= Date: Sat, 28 Sep 2024 18:07:30 +0000 Subject: [PATCH] feat: adding msgburnv1 for backwards compatibility 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 --- proto/florin/v1/tx.proto | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/proto/florin/v1/tx.proto b/proto/florin/v1/tx.proto index bf5a2632..371589e5 100644 --- a/proto/florin/v1/tx.proto +++ b/proto/florin/v1/tx.proto @@ -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";