From 6664ea05823c92ceda917683eb0b3b2b769a6f51 Mon Sep 17 00:00:00 2001 From: Cosmic Vagabond <121588426+cosmic-vagabond@users.noreply.github.com> Date: Mon, 18 Dec 2023 06:19:06 +0100 Subject: [PATCH] feat: add missing fields to asset profile messages (#308) --- proto/elys/assetprofile/tx.proto | 4 + x/assetprofile/keeper/msg_server_entry.go | 4 + x/assetprofile/types/tx.pb.go | 249 ++++++++++++++++++---- 3 files changed, 220 insertions(+), 37 deletions(-) diff --git a/proto/elys/assetprofile/tx.proto b/proto/elys/assetprofile/tx.proto index f8568faf7..eabb305fe 100644 --- a/proto/elys/assetprofile/tx.proto +++ b/proto/elys/assetprofile/tx.proto @@ -30,6 +30,8 @@ message MsgCreateEntry { string unit_denom = 15; string ibc_counterparty_denom = 16; string ibc_counterparty_chain_id = 17; + bool commit_enabled = 18; + bool withdraw_enabled = 19; } message MsgCreateEntryResponse {} @@ -52,6 +54,8 @@ message MsgUpdateEntry { string unit_denom = 15; string ibc_counterparty_denom = 16; string ibc_counterparty_chain_id = 17; + bool commit_enabled = 18; + bool withdraw_enabled = 19; } message MsgUpdateEntryResponse {} diff --git a/x/assetprofile/keeper/msg_server_entry.go b/x/assetprofile/keeper/msg_server_entry.go index c7a931ccb..76ec24666 100644 --- a/x/assetprofile/keeper/msg_server_entry.go +++ b/x/assetprofile/keeper/msg_server_entry.go @@ -41,6 +41,8 @@ func (k msgServer) CreateEntry(goCtx context.Context, msg *types.MsgCreateEntry) UnitDenom: msg.UnitDenom, IbcCounterpartyDenom: msg.IbcCounterpartyDenom, IbcCounterpartyChainId: msg.IbcCounterpartyChainId, + CommitEnabled: msg.CommitEnabled, + WithdrawEnabled: msg.WithdrawEnabled, } k.SetEntry(ctx, entry) @@ -83,6 +85,8 @@ func (k msgServer) UpdateEntry(goCtx context.Context, msg *types.MsgUpdateEntry) UnitDenom: msg.UnitDenom, IbcCounterpartyDenom: msg.IbcCounterpartyDenom, IbcCounterpartyChainId: msg.IbcCounterpartyChainId, + CommitEnabled: msg.CommitEnabled, + WithdrawEnabled: msg.WithdrawEnabled, } k.SetEntry(ctx, entry) diff --git a/x/assetprofile/types/tx.pb.go b/x/assetprofile/types/tx.pb.go index 361fcd33e..dfc0f346e 100644 --- a/x/assetprofile/types/tx.pb.go +++ b/x/assetprofile/types/tx.pb.go @@ -45,6 +45,8 @@ type MsgCreateEntry struct { UnitDenom string `protobuf:"bytes,15,opt,name=unit_denom,json=unitDenom,proto3" json:"unit_denom,omitempty"` IbcCounterpartyDenom string `protobuf:"bytes,16,opt,name=ibc_counterparty_denom,json=ibcCounterpartyDenom,proto3" json:"ibc_counterparty_denom,omitempty"` IbcCounterpartyChainId string `protobuf:"bytes,17,opt,name=ibc_counterparty_chain_id,json=ibcCounterpartyChainId,proto3" json:"ibc_counterparty_chain_id,omitempty"` + CommitEnabled bool `protobuf:"varint,18,opt,name=commit_enabled,json=commitEnabled,proto3" json:"commit_enabled,omitempty"` + WithdrawEnabled bool `protobuf:"varint,19,opt,name=withdraw_enabled,json=withdrawEnabled,proto3" json:"withdraw_enabled,omitempty"` } func (m *MsgCreateEntry) Reset() { *m = MsgCreateEntry{} } @@ -199,6 +201,20 @@ func (m *MsgCreateEntry) GetIbcCounterpartyChainId() string { return "" } +func (m *MsgCreateEntry) GetCommitEnabled() bool { + if m != nil { + return m.CommitEnabled + } + return false +} + +func (m *MsgCreateEntry) GetWithdrawEnabled() bool { + if m != nil { + return m.WithdrawEnabled + } + return false +} + type MsgCreateEntryResponse struct { } @@ -253,6 +269,8 @@ type MsgUpdateEntry struct { UnitDenom string `protobuf:"bytes,15,opt,name=unit_denom,json=unitDenom,proto3" json:"unit_denom,omitempty"` IbcCounterpartyDenom string `protobuf:"bytes,16,opt,name=ibc_counterparty_denom,json=ibcCounterpartyDenom,proto3" json:"ibc_counterparty_denom,omitempty"` IbcCounterpartyChainId string `protobuf:"bytes,17,opt,name=ibc_counterparty_chain_id,json=ibcCounterpartyChainId,proto3" json:"ibc_counterparty_chain_id,omitempty"` + CommitEnabled bool `protobuf:"varint,18,opt,name=commit_enabled,json=commitEnabled,proto3" json:"commit_enabled,omitempty"` + WithdrawEnabled bool `protobuf:"varint,19,opt,name=withdraw_enabled,json=withdrawEnabled,proto3" json:"withdraw_enabled,omitempty"` } func (m *MsgUpdateEntry) Reset() { *m = MsgUpdateEntry{} } @@ -407,6 +425,20 @@ func (m *MsgUpdateEntry) GetIbcCounterpartyChainId() string { return "" } +func (m *MsgUpdateEntry) GetCommitEnabled() bool { + if m != nil { + return m.CommitEnabled + } + return false +} + +func (m *MsgUpdateEntry) GetWithdrawEnabled() bool { + if m != nil { + return m.WithdrawEnabled + } + return false +} + type MsgUpdateEntryResponse struct { } @@ -543,43 +575,46 @@ func init() { func init() { proto.RegisterFile("elys/assetprofile/tx.proto", fileDescriptor_e44109b52b4565a5) } var fileDescriptor_e44109b52b4565a5 = []byte{ - // 572 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0xcd, 0x6e, 0xd3, 0x4c, - 0x14, 0xad, 0x9b, 0xf4, 0x27, 0x37, 0xa9, 0xfb, 0x75, 0x54, 0x45, 0xf3, 0x05, 0x6a, 0xa5, 0x15, - 0x15, 0x65, 0x41, 0x22, 0x7e, 0x36, 0x2c, 0xd8, 0xd0, 0xb2, 0xa8, 0x20, 0x2c, 0x82, 0xd8, 0xc0, - 0x22, 0x1a, 0xc7, 0xb7, 0xc9, 0x08, 0x7b, 0x6c, 0xcd, 0x4c, 0x44, 0xfc, 0x16, 0x3c, 0x00, 0x0f, - 0xc4, 0xb2, 0x4b, 0x96, 0x28, 0x79, 0x09, 0x96, 0x68, 0xc6, 0x76, 0xeb, 0x36, 0x89, 0xd8, 0x20, - 0xb1, 0xe9, 0x2e, 0xf7, 0xdc, 0x73, 0xce, 0xc4, 0xf7, 0x1e, 0x7b, 0xa0, 0x85, 0x61, 0xaa, 0xba, - 0x4c, 0x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, - 0xcb, 0x87, 0x9d, 0x85, 0x8f, 0x7b, 0xe7, 0xe6, 0xfb, 0xd3, 0x7a, 0xf4, 0x47, 0x4a, 0x71, 0x88, - 0x31, 0x2f, 0xbf, 0x5e, 0x2b, 0xcc, 0x4b, 0x94, 0x55, 0xe6, 0x4b, 0x46, 0x65, 0xcc, 0xcb, 0x73, - 0x5a, 0x61, 0x5e, 0xa2, 0xac, 0x32, 0x5f, 0x32, 0x9e, 0x57, 0x6f, 0xbe, 0xcf, 0x3c, 0xe7, 0x72, - 0xe6, 0x39, 0x3f, 0x67, 0x9e, 0xf3, 0x75, 0xee, 0xad, 0x5d, 0xce, 0xbd, 0xb5, 0x1f, 0x73, 0x6f, - 0xed, 0xe3, 0x93, 0x11, 0xd7, 0xe3, 0x89, 0xdf, 0x19, 0xc6, 0x51, 0xd7, 0xd8, 0x3d, 0xce, 0x03, - 0x6f, 0x8b, 0xee, 0xf4, 0xd6, 0x9d, 0x99, 0x26, 0xa8, 0xfc, 0x4d, 0x7b, 0x0b, 0x3e, 0xfb, 0x1d, - 0x00, 0x00, 0xff, 0xff, 0x3b, 0xa5, 0x11, 0x1a, 0x55, 0x07, 0x00, 0x00, + // 610 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0xcb, 0x4e, 0x1b, 0x31, + 0x14, 0x65, 0x78, 0xe3, 0xc0, 0x00, 0x2e, 0x42, 0x6e, 0x5a, 0x46, 0x01, 0x15, 0x15, 0x16, 0x4d, + 0xd4, 0xc7, 0xa6, 0x8b, 0x6e, 0x0a, 0x2c, 0x50, 0x4b, 0x17, 0xa9, 0xba, 0x69, 0x17, 0x23, 0xcf, + 0xcc, 0x85, 0x58, 0x9d, 0xb1, 0x47, 0xb6, 0x23, 0x98, 0xbf, 0xe8, 0x07, 0xf4, 0x83, 0xaa, 0xae, + 0x58, 0x76, 0x59, 0x25, 0x3f, 0x52, 0xd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, 0x7a, 0x39, 0x22, 0x3e, 0xb0, 0xc4, 0xf5, 0x0a, 0x2f, 0xa9, 0x7b, + 0x04, 0x6d, 0xdf, 0xce, 0x72, 0x17, 0x54, 0x2e, 0xb8, 0x82, 0x2a, 0xe6, 0x9f, 0xf2, 0xe4, 0x3e, + 0xe6, 0xf7, 0x31, 0xff, 0x2f, 0x62, 0x5e, 0xcb, 0xf2, 0x28, 0xe6, 0x67, 0x36, 0xe5, 0xc7, 0x90, + 0xc2, 0xbf, 0x48, 0x79, 0x79, 0x50, 0xcd, 0xae, 0x3a, 0xe8, 0xc5, 0xf7, 0x59, 0x34, 0x77, 0xa6, + 0x2e, 0xf0, 0x17, 0xd4, 0xa8, 0x3f, 0x1d, 0xbb, 0xed, 0xb1, 0x07, 0xa8, 0x7d, 0xfb, 0x46, 0x36, + 0x0f, 0xff, 0x4a, 0xa9, 0x0e, 0x31, 0xe6, 0xf5, 0x0b, 0x3b, 0xc5, 0xbc, 0x46, 0x99, 0x66, 0x3e, + 0x61, 0x54, 0xc6, 0xbc, 0x3e, 0xa7, 0x29, 0xe6, 0x35, 0xca, 0x34, 0xf3, 0x09, 0xe3, 0x79, 0xfb, + 0xee, 0xc7, 0x20, 0xf0, 0xae, 0x07, 0x81, 0xf7, 0x7b, 0x10, 0x78, 0xdf, 0x86, 0xc1, 0xcc, 0xf5, + 0x30, 0x98, 0xf9, 0x35, 0x0c, 0x66, 0x3e, 0x3f, 0xbf, 0x60, 0xba, 0xd7, 0x8f, 0xda, 0xb1, 0xc8, + 0x3a, 0xc6, 0xee, 0x59, 0x79, 0x85, 0x6c, 0xd1, 0xb9, 0xba, 0xf3, 0xae, 0x17, 0x39, 0xa8, 0x68, + 0xd1, 0xbe, 0xd4, 0x2f, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x14, 0x05, 0x56, 0xa2, 0xf9, 0x07, + 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -754,6 +789,30 @@ func (m *MsgCreateEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.WithdrawEnabled { + i-- + if m.WithdrawEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if m.CommitEnabled { + i-- + if m.CommitEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } if len(m.IbcCounterpartyChainId) > 0 { i -= len(m.IbcCounterpartyChainId) copy(dAtA[i:], m.IbcCounterpartyChainId) @@ -923,6 +982,30 @@ func (m *MsgUpdateEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.WithdrawEnabled { + i-- + if m.WithdrawEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x98 + } + if m.CommitEnabled { + i-- + if m.CommitEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x1 + i-- + dAtA[i] = 0x90 + } if len(m.IbcCounterpartyChainId) > 0 { i -= len(m.IbcCounterpartyChainId) copy(dAtA[i:], m.IbcCounterpartyChainId) @@ -1218,6 +1301,12 @@ func (m *MsgCreateEntry) Size() (n int) { if l > 0 { n += 2 + l + sovTx(uint64(l)) } + if m.CommitEnabled { + n += 3 + } + if m.WithdrawEnabled { + n += 3 + } return n } @@ -1305,6 +1394,12 @@ func (m *MsgUpdateEntry) Size() (n int) { if l > 0 { n += 2 + l + sovTx(uint64(l)) } + if m.CommitEnabled { + n += 3 + } + if m.WithdrawEnabled { + n += 3 + } return n } @@ -1909,6 +2004,46 @@ func (m *MsgCreateEntry) Unmarshal(dAtA []byte) error { } m.IbcCounterpartyChainId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CommitEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CommitEnabled = bool(v != 0) + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WithdrawEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.WithdrawEnabled = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -2540,6 +2675,46 @@ func (m *MsgUpdateEntry) Unmarshal(dAtA []byte) error { } m.IbcCounterpartyChainId = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 18: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field CommitEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.CommitEnabled = bool(v != 0) + case 19: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WithdrawEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.WithdrawEnabled = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:])