From abc15c894d5eab3a7953b431f7068c4440c802d2 Mon Sep 17 00:00:00 2001 From: mohitsethia <45464245+mohitsethia@users.noreply.github.com> Date: Wed, 17 Jul 2024 10:09:08 +0200 Subject: [PATCH] refactor: rename name to zrc20_address for MsgRemoveForeignCoin (#2484) * rename name to zrc20_address for MsgRemoveForeignCoin * update variable name --- docs/spec/fungible/messages.md | 2 +- proto/zetachain/zetacore/fungible/tx.proto | 2 +- .../zetachain/zetacore/fungible/tx_pb.d.ts | 4 +- .../keeper/msg_server_remove_foreign_coin.go | 2 +- .../types/message_remove_foreign_coin.go | 6 +- x/fungible/types/tx.pb.go | 149 +++++++++--------- 6 files changed, 82 insertions(+), 83 deletions(-) diff --git a/docs/spec/fungible/messages.md b/docs/spec/fungible/messages.md index 93c7864aef..ce845608e6 100644 --- a/docs/spec/fungible/messages.md +++ b/docs/spec/fungible/messages.md @@ -56,7 +56,7 @@ Authorized: admin policy group 2. ```proto message MsgRemoveForeignCoin { string creator = 1; - string name = 2; + string zrc20_address = 2; } ``` diff --git a/proto/zetachain/zetacore/fungible/tx.proto b/proto/zetachain/zetacore/fungible/tx.proto index bdb9ee8939..a73dcc2350 100644 --- a/proto/zetachain/zetacore/fungible/tx.proto +++ b/proto/zetachain/zetacore/fungible/tx.proto @@ -73,7 +73,7 @@ message MsgDeployFungibleCoinZRC20Response { string address = 1; } message MsgRemoveForeignCoin { string creator = 1; - string name = 2; + string zrc20_address = 2; } message MsgRemoveForeignCoinResponse {} diff --git a/typescript/zetachain/zetacore/fungible/tx_pb.d.ts b/typescript/zetachain/zetacore/fungible/tx_pb.d.ts index a1038d4bfd..131f438020 100644 --- a/typescript/zetachain/zetacore/fungible/tx_pb.d.ts +++ b/typescript/zetachain/zetacore/fungible/tx_pb.d.ts @@ -276,9 +276,9 @@ export declare class MsgRemoveForeignCoin extends Message creator: string; /** - * @generated from field: string name = 2; + * @generated from field: string zrc20_address = 2; */ - name: string; + zrc20Address: string; constructor(data?: PartialMessage); diff --git a/x/fungible/keeper/msg_server_remove_foreign_coin.go b/x/fungible/keeper/msg_server_remove_foreign_coin.go index 6903531cd3..dbbcf36fe6 100644 --- a/x/fungible/keeper/msg_server_remove_foreign_coin.go +++ b/x/fungible/keeper/msg_server_remove_foreign_coin.go @@ -24,7 +24,7 @@ func (k msgServer) RemoveForeignCoin( if err != nil { return nil, cosmoserrors.Wrap(authoritytypes.ErrUnauthorized, err.Error()) } - index := msg.Name + index := msg.Zrc20Address _, found := k.GetForeignCoins(ctx, index) if !found { return nil, cosmoserrors.Wrapf(sdkerrors.ErrInvalidRequest, "foreign coin not found") diff --git a/x/fungible/types/message_remove_foreign_coin.go b/x/fungible/types/message_remove_foreign_coin.go index 0c7282dc4a..7fc1781b76 100644 --- a/x/fungible/types/message_remove_foreign_coin.go +++ b/x/fungible/types/message_remove_foreign_coin.go @@ -10,10 +10,10 @@ const TypeMsgRemoveForeignCoin = "remove_foreign_coin" var _ sdk.Msg = &MsgRemoveForeignCoin{} -func NewMsgRemoveForeignCoin(creator string, name string) *MsgRemoveForeignCoin { +func NewMsgRemoveForeignCoin(creator string, zrc20Address string) *MsgRemoveForeignCoin { return &MsgRemoveForeignCoin{ - Creator: creator, - Name: name, + Creator: creator, + Zrc20Address: zrc20Address, } } diff --git a/x/fungible/types/tx.pb.go b/x/fungible/types/tx.pb.go index f72a00bc24..8409ef6f36 100644 --- a/x/fungible/types/tx.pb.go +++ b/x/fungible/types/tx.pb.go @@ -473,8 +473,8 @@ func (m *MsgDeployFungibleCoinZRC20Response) GetAddress() string { } type MsgRemoveForeignCoin struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + Zrc20Address string `protobuf:"bytes,2,opt,name=zrc20_address,json=zrc20Address,proto3" json:"zrc20_address,omitempty"` } func (m *MsgRemoveForeignCoin) Reset() { *m = MsgRemoveForeignCoin{} } @@ -517,9 +517,9 @@ func (m *MsgRemoveForeignCoin) GetCreator() string { return "" } -func (m *MsgRemoveForeignCoin) GetName() string { +func (m *MsgRemoveForeignCoin) GetZrc20Address() string { if m != nil { - return m.Name + return m.Zrc20Address } return "" } @@ -947,70 +947,69 @@ func init() { } var fileDescriptor_7bea9688d1d01113 = []byte{ - // 998 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xdd, 0x6e, 0xdb, 0x46, - 0x13, 0x35, 0xed, 0xf8, 0x6f, 0x3e, 0xcb, 0xf6, 0xb7, 0x50, 0x62, 0x86, 0x2e, 0xe4, 0x84, 0x71, - 0x13, 0x37, 0x68, 0xc4, 0x54, 0x75, 0x1b, 0x14, 0x68, 0x52, 0xd4, 0x4a, 0xdc, 0x06, 0x88, 0x80, - 0x82, 0x71, 0x52, 0xd4, 0x37, 0xc4, 0x9a, 0x5c, 0x53, 0x84, 0xa5, 0x5d, 0x96, 0x4b, 0x55, 0x51, - 0xee, 0x0a, 0xf4, 0x2a, 0x40, 0x81, 0x00, 0x7d, 0x80, 0x3e, 0x43, 0xdf, 0x22, 0x97, 0xb9, 0x2c, - 0x82, 0x22, 0x28, 0xec, 0x17, 0x29, 0x76, 0xf9, 0x63, 0x52, 0x12, 0x25, 0x59, 0xed, 0x8d, 0xcd, - 0x1d, 0x9d, 0x39, 0x7b, 0x66, 0x76, 0x66, 0x96, 0x84, 0xed, 0x97, 0x24, 0xc4, 0x76, 0x13, 0x7b, - 0xd4, 0x90, 0x4f, 0x2c, 0x20, 0xc6, 0x71, 0x87, 0xba, 0xde, 0x51, 0x8b, 0x18, 0xe1, 0x8b, 0xaa, - 0x1f, 0xb0, 0x90, 0xa1, 0xcd, 0x14, 0x55, 0x4d, 0x50, 0xd5, 0x04, 0xa5, 0x95, 0x5d, 0xe6, 0x32, - 0x89, 0x33, 0xc4, 0x53, 0x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de, 0x61, 0x26, - 0x94, 0xd4, 0xef, 0x37, 0xa9, 0xa4, 0xa2, 0xf7, 0x04, 0x59, 0xcc, 0x45, 0x93, 0xf1, 0xde, 0x05, - 0xb8, 0xb3, 0x8e, 0xe3, 0x8b, 0x79, 0xcc, 0x60, 0x43, 0x2d, 0x80, 0xcc, 0x54, 0xbb, 0x3d, 0x8e, - 0xee, 0x1c, 0xab, 0xd5, 0x26, 0xc7, 0xa6, 0xbb, 0x05, 0xb0, 0x92, 0x1b, 0x6b, 0x1f, 0x8f, 0x95, - 0x9f, 0x41, 0x6b, 0xbb, 0x17, 0x41, 0x27, 0x7b, 0xee, 0x3d, 0x7e, 0x73, 0x5a, 0x51, 0xde, 0x9e, - 0x56, 0x94, 0xbf, 0x4f, 0x2b, 0xca, 0xeb, 0xb3, 0xca, 0xcc, 0xdb, 0xb3, 0xca, 0xcc, 0x9f, 0x67, - 0x95, 0x99, 0x43, 0x23, 0x73, 0x63, 0x08, 0xbe, 0x3b, 0x7d, 0x1f, 0x0d, 0x2f, 0x32, 0xdf, 0x23, - 0xe2, 0xfa, 0x38, 0x5a, 0x90, 0x1f, 0x0e, 0x9f, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0x6a, 0x35, - 0xf0, 0xc9, 0xbb, 0x0c, 0x00, 0x00, + // 992 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xdd, 0x6e, 0xdb, 0x36, + 0x14, 0x8e, 0x92, 0xe6, 0xef, 0x2c, 0x4e, 0x32, 0xc2, 0x6d, 0x54, 0x65, 0x70, 0x5a, 0x35, 0x6b, + 0xb3, 0x62, 0xb5, 0x3a, 0x2f, 0x5b, 0x31, 0x60, 0xed, 0xb0, 0x78, 0xcd, 0x56, 0xa0, 0x06, 0x06, + 0x35, 0xe9, 0xb0, 0xdc, 0x08, 0x8c, 0xc4, 0xc8, 0x42, 0x6c, 0x52, 0x13, 0xe5, 0xb9, 0xee, 0xdd, + 0x80, 0x5d, 0x15, 0x18, 0x50, 0x60, 0x0f, 0xb0, 0x67, 0xd8, 0x5b, 0xf4, 0xb2, 0x97, 0x43, 0x31, + 0x14, 0x43, 0xf2, 0x22, 0x03, 0xa9, 0x9f, 0x4a, 0xb6, 0x15, 0x3b, 0x4e, 0x6f, 0x12, 0x91, 0xfe, + 0xce, 0xc7, 0x8f, 0x87, 0xe7, 0x3b, 0x94, 0x60, 0xf3, 0x39, 0x09, 0xb1, 0xdd, 0xc4, 0x1e, 0x35, + 0xe4, 0x13, 0x0b, 0x88, 0x71, 0xd4, 0xa1, 0xae, 0x77, 0xd8, 0x22, 0x46, 0xf8, 0xac, 0xea, 0x07, + 0x2c, 0x64, 0x68, 0x3d, 0x45, 0x55, 0x13, 0x54, 0x35, 0x41, 0x69, 0x65, 0x97, 0xb9, 0x4c, 0xe2, + 0x0c, 0xf1, 0x14, 0x85, 0x68, 0x37, 0x87, 0x10, 0xfb, 0xc7, 0xae, 0x61, 0x33, 0x8f, 0xca, 0x3f, + 0x11, 0x4e, 0xdf, 0x06, 0xb5, 0xc1, 0xdd, 0xef, 0x88, 0xdf, 0x62, 0xbd, 0x27, 0x3d, 0x1e, 0x92, + 0x76, 0x9d, 0xd1, 0x30, 0xc0, 0x76, 0xc8, 0x91, 0x0a, 0xf3, 0x76, 0x40, 0x70, 0xc8, 0x02, 0x55, + 0xb9, 0xa6, 0x6c, 0x2d, 0x9a, 0xc9, 0x50, 0xff, 0x57, 0x81, 0x6b, 0x45, 0x61, 0x26, 0xe1, 0x3e, + 0xa3, 0x9c, 0xa0, 0xdb, 0xb0, 0xda, 0xa1, 0x1e, 0xef, 0x62, 0xff, 0x69, 0x6d, 0x17, 0xdb, 0x21, + 0x0b, 0x7a, 0x31, 0xcf, 0xc0, 0x3c, 0x2a, 0xc3, 0x6c, 0x57, 0xe8, 0x54, 0xa7, 0x25, 0x20, 0x1a, + 0xa0, 0x2d, 0x58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 0x1c, 0xce, 0xc9, 0x2f, + 0x89, 0xcf, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, 0xe6, 0xe8, 0x3c, 0x66, 0xcc, 0x0c, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1730,10 +1729,10 @@ func (m *MsgRemoveForeignCoin) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l - if len(m.Name) > 0 { - i -= len(m.Name) - copy(dAtA[i:], m.Name) - i = encodeVarintTx(dAtA, i, uint64(len(m.Name))) + if len(m.Zrc20Address) > 0 { + i -= len(m.Zrc20Address) + copy(dAtA[i:], m.Zrc20Address) + i = encodeVarintTx(dAtA, i, uint64(len(m.Zrc20Address))) i-- dAtA[i] = 0x12 } @@ -2200,7 +2199,7 @@ func (m *MsgRemoveForeignCoin) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Name) + l = len(m.Zrc20Address) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -3423,7 +3422,7 @@ func (m *MsgRemoveForeignCoin) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Zrc20Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3451,7 +3450,7 @@ func (m *MsgRemoveForeignCoin) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Name = string(dAtA[iNdEx:postIndex]) + m.Zrc20Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex