From 18a64bfa8ec1cfb8ebb8af8cf5a3dfa46a86a9c2 Mon Sep 17 00:00:00 2001 From: hacheigriega Date: Fri, 15 Mar 2024 10:49:44 -0400 Subject: [PATCH] refactor: modify vesting account proto for keplr support --- proto/sedachain/vesting/v1/vesting.proto | 2 +- x/vesting/types/vesting.pb.go | 27 ++++++++++++------------ 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/proto/sedachain/vesting/v1/vesting.proto b/proto/sedachain/vesting/v1/vesting.proto index 82ff8de1..462b615a 100644 --- a/proto/sedachain/vesting/v1/vesting.proto +++ b/proto/sedachain/vesting/v1/vesting.proto @@ -13,7 +13,7 @@ message ClawbackContinuousVestingAccount { option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_stringer) = false; - cosmos.vesting.v1beta1.ContinuousVestingAccount vesting_account = 1 + cosmos.vesting.v1beta1.ContinuousVestingAccount base_vesting_account = 1 [ (gogoproto.embed) = true ]; string funder_address = 2; } diff --git a/x/vesting/types/vesting.pb.go b/x/vesting/types/vesting.pb.go index 66a6b007..84446e4c 100644 --- a/x/vesting/types/vesting.pb.go +++ b/x/vesting/types/vesting.pb.go @@ -28,7 +28,7 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // It wraps a ContinuousVestingAccount provided by Cosmos SDK to provide // additional support for clawback. type ClawbackContinuousVestingAccount struct { - *types.ContinuousVestingAccount `protobuf:"bytes,1,opt,name=vesting_account,json=vestingAccount,proto3,embedded=vesting_account" json:"vesting_account,omitempty"` + *types.ContinuousVestingAccount `protobuf:"bytes,1,opt,name=base_vesting_account,json=baseVestingAccount,proto3,embedded=base_vesting_account" json:"base_vesting_account,omitempty"` FunderAddress string `protobuf:"bytes,2,opt,name=funder_address,json=funderAddress,proto3" json:"funder_address,omitempty"` } @@ -73,24 +73,25 @@ func init() { } var fileDescriptor_f2e41653215b022f = []byte{ - // 272 bytes of a gzipped FileDescriptorProto + // 278 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08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x6a, 0x70, 0x06, 0xf1, - 0x42, 0x44, 0x1d, 0x21, 0x82, 0x56, 0x1c, 0x1d, 0x0b, 0xe4, 0x19, 0x66, 0x2c, 0x90, 0x67, 0x70, - 0xf2, 0x39, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 0xe4, 0x18, 0x27, 0x3c, - 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x28, 0xa3, 0xf4, 0xcc, 0x92, - 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0x50, 0x68, 0x81, 0xbd, 0x99, 0x9c, 0x9f, 0x03, - 0xe6, 0xe8, 0x42, 0xc2, 0xb7, 0x02, 0x1e, 0x54, 0x25, 0x95, 0x05, 0xa9, 0xc5, 0x49, 0x6c, 0x60, - 0x45, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x63, 0xa3, 0x68, 0xd1, 0x83, 0x01, 0x00, 0x00, + 0x06, 0x97, 0x48, 0x52, 0x62, 0x71, 0x6a, 0x3c, 0xd4, 0xc0, 0xf8, 0x44, 0x88, 0xb8, 0x04, 0xa3, + 0x02, 0xa3, 0x06, 0xb7, 0x91, 0x81, 0x1e, 0xc4, 0x7e, 0x24, 0x27, 0x81, 0xed, 0xd7, 0xc3, 0x65, + 0x9e, 0x13, 0xcb, 0x85, 0x7b, 0xf2, 0x8c, 0x41, 0x42, 0x20, 0x33, 0xd1, 0x6c, 0x52, 0xe5, 0xe2, + 0x4b, 0x2b, 0xcd, 0x4b, 0x49, 0x2d, 0x8a, 0x4f, 0x4c, 0x49, 0x29, 0x4a, 0x2d, 0x2e, 0x96, 0x60, + 0x52, 0x60, 0xd4, 0xe0, 0x0c, 0xe2, 0x85, 0x88, 0x3a, 0x42, 0x04, 0xad, 0x38, 0x3a, 0x16, 0xc8, + 0x33, 0xcc, 0x58, 0x20, 0xcf, 0xe0, 0xe4, 0x73, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, + 0x0f, 0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, + 0x0c, 0x51, 0x46, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0xa0, 0x60, + 0x03, 0xfb, 0x37, 0x39, 0x3f, 0x07, 0xcc, 0xd1, 0x85, 0x04, 0x74, 0x05, 0x3c, 0xcc, 0x4a, 0x2a, + 0x0b, 0x52, 0x8b, 0x93, 0xd8, 0xc0, 0x8a, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x48, 0xd8, + 0x47, 0xa5, 0x8c, 0x01, 0x00, 0x00, } func (m *ClawbackContinuousVestingAccount) Marshal() (dAtA []byte, err error) {