diff --git a/proto/fungible/tx.proto b/proto/fungible/tx.proto index ed04693a5b..42a25b7e8b 100644 --- a/proto/fungible/tx.proto +++ b/proto/fungible/tx.proto @@ -16,8 +16,8 @@ service Msg { message MsgUpdateZRC20WithdrawFee { string creator = 1; - string zrc20 = 2; // zrc20 address - string newWithdrawFee = 6 [ + string zrc20_address = 2; // zrc20 address + string new_withdraw_fee = 6 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", (gogoproto.nullable) = false ]; @@ -27,7 +27,7 @@ message MsgUpdateZRC20WithdrawFeeResponse {} message MsgUpdateSystemContract { string creator = 1; - string newSystemContractAddress = 2; + string new_system_contract_address = 2; } message MsgUpdateSystemContractResponse {} diff --git a/x/fungible/keeper/msg_server_update_zrc20_withdraw_fee.go b/x/fungible/keeper/msg_server_update_zrc20_withdraw_fee.go index f8db7481c6..0d85cb917a 100644 --- a/x/fungible/keeper/msg_server_update_zrc20_withdraw_fee.go +++ b/x/fungible/keeper/msg_server_update_zrc20_withdraw_fee.go @@ -17,9 +17,9 @@ func (k Keeper) UpdateZRC20WithdrawFee(goCtx context.Context, msg *types.MsgUpda if msg.Creator != k.zetaobserverKeeper.GetParams(ctx).GetAdminPolicyAccount(zetaObserverTypes.Policy_Type_deploy_fungible_coin) { return nil, sdkerrors.Wrap(sdkerrors.ErrUnauthorized, "Deploy can only be executed by the correct policy account") } - zrc20Addr := ethcommon.HexToAddress(msg.Zrc20) + zrc20Addr := ethcommon.HexToAddress(msg.Zrc20Address) if zrc20Addr == (ethcommon.Address{}) { - return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid zrc20 contract address (%s)", msg.Zrc20) + return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid zrc20 contract address (%s)", msg.Zrc20Address) } // update contracts @@ -45,7 +45,7 @@ func (k Keeper) UpdateZRC20WithdrawFee(goCtx context.Context, msg *types.MsgUpda } if !found { - return nil, sdkerrors.Wrapf(types.ErrInvalidAddress, "no foreign coin match requested zrc20 address (%s)", msg.Zrc20) + return nil, sdkerrors.Wrapf(types.ErrInvalidAddress, "no foreign coin match requested zrc20 address (%s)", msg.Zrc20Address) } res, err := k.CallEVM(ctx, *zrc20ABI, types.ModuleAddressEVM, zrc20Addr, BigIntZero, nil, false, "PROTOCOL_FLAT_FEE") diff --git a/x/fungible/types/message_update_zrc20_withdraw_fee.go b/x/fungible/types/message_update_zrc20_withdraw_fee.go index ed9dcad9a9..f661003a18 100644 --- a/x/fungible/types/message_update_zrc20_withdraw_fee.go +++ b/x/fungible/types/message_update_zrc20_withdraw_fee.go @@ -13,7 +13,7 @@ var _ sdk.Msg = &MsgUpdateZRC20WithdrawFee{} func NewMsgUpdateZRC20WithdrawFee(creator string, zrc20 string, newFee sdk.Uint) *MsgUpdateZRC20WithdrawFee { return &MsgUpdateZRC20WithdrawFee{ Creator: creator, - Zrc20: zrc20, + Zrc20Address: zrc20, NewWithdrawFee: newFee, } } @@ -45,8 +45,8 @@ func (msg *MsgUpdateZRC20WithdrawFee) ValidateBasic() error { return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid creator address (%s)", err) } // check if the system contract address is valid - if ethcommon.HexToAddress(msg.Zrc20) == (ethcommon.Address{}) { - return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid system contract address (%s)", msg.Zrc20) + if ethcommon.HexToAddress(msg.Zrc20Address) == (ethcommon.Address{}) { + return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid system contract address (%s)", msg.Zrc20Address) } return nil diff --git a/x/fungible/types/tx.pb.go b/x/fungible/types/tx.pb.go index b74f629f3c..e439aa1548 100644 --- a/x/fungible/types/tx.pb.go +++ b/x/fungible/types/tx.pb.go @@ -33,8 +33,8 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type MsgUpdateZRC20WithdrawFee struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - Zrc20 string `protobuf:"bytes,2,opt,name=zrc20,proto3" json:"zrc20,omitempty"` - NewWithdrawFee github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,6,opt,name=newWithdrawFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"newWithdrawFee"` + Zrc20Address string `protobuf:"bytes,2,opt,name=zrc20_address,json=zrc20Address,proto3" json:"zrc20_address,omitempty"` + NewWithdrawFee github_com_cosmos_cosmos_sdk_types.Uint `protobuf:"bytes,6,opt,name=new_withdraw_fee,json=newWithdrawFee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Uint" json:"new_withdraw_fee"` } func (m *MsgUpdateZRC20WithdrawFee) Reset() { *m = MsgUpdateZRC20WithdrawFee{} } @@ -77,9 +77,9 @@ func (m *MsgUpdateZRC20WithdrawFee) GetCreator() string { return "" } -func (m *MsgUpdateZRC20WithdrawFee) GetZrc20() string { +func (m *MsgUpdateZRC20WithdrawFee) GetZrc20Address() string { if m != nil { - return m.Zrc20 + return m.Zrc20Address } return "" } @@ -122,7 +122,7 @@ var xxx_messageInfo_MsgUpdateZRC20WithdrawFeeResponse proto.InternalMessageInfo type MsgUpdateSystemContract struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - NewSystemContractAddress string `protobuf:"bytes,2,opt,name=newSystemContractAddress,proto3" json:"newSystemContractAddress,omitempty"` + NewSystemContractAddress string `protobuf:"bytes,2,opt,name=new_system_contract_address,json=newSystemContractAddress,proto3" json:"new_system_contract_address,omitempty"` } func (m *MsgUpdateSystemContract) Reset() { *m = MsgUpdateSystemContract{} } @@ -446,44 +446,46 @@ func init() { func init() { proto.RegisterFile("fungible/tx.proto", fileDescriptor_197fdedece277fa0) } var fileDescriptor_197fdedece277fa0 = []byte{ - // 590 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0x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x18, 0x5d, 0x6f, 0x98, 0x47, 0x27, 0x95, - 0xc2, 0xef, 0x93, 0xca, 0x03, 0x8f, 0xca, 0xce, 0x5e, 0xdb, 0x70, 0xb8, 0x6f, 0x3a, 0x5c, 0xf8, - 0x5c, 0x24, 0x9f, 0x35, 0xe1, 0x7e, 0x32, 0x65, 0x3f, 0x20, 0xc2, 0xd8, 0xa2, 0x4c, 0x5a, 0x17, - 0x68, 0xf4, 0x7b, 0xb0, 0x9a, 0x5b, 0xa5, 0x45, 0x44, 0xc0, 0x99, 0x20, 0x3a, 0x87, 0x95, 0x2c, - 0xe8, 0x43, 0x5f, 0x48, 0xe2, 0x37, 0x38, 0x93, 0xa1, 0xed, 0xc8, 0x09, 0x42, 0x5e, 0x80, 0xc2, - 0x48, 0xef, 0x7c, 0xf8, 0x1b, 0xd7, 0x0d, 0x89, 0x10, 0x89, 0xb6, 0xdc, 0x7b, 0x7d, 0x15, 0x2a, - 0x39, 0x09, 0xb3, 0x9a, 0xbe, 0xce, 0x80, 0xda, 0x12, 0xde, 0x26, 0x09, 0xba, 0xbc, 0xdf, 0x4c, - 0x06, 0xd4, 0xe0, 0x94, 0xc5, 0x2a, 0x26, 0x37, 0xf8, 0x6d, 0x14, 0x92, 0x36, 0x38, 0x36, 0xb0, - 0x0e, 0xd7, 0x77, 0x79, 0x48, 0xa8, 0xc7, 0x1a, 0xd1, 0xec, 0x95, 0xd9, 0xf8, 0xf2, 0x9c, 0x0f, - 0xab, 0x50, 0x72, 0x89, 0x43, 0x7d, 0xbb, 0x2b, 0x94, 0xb9, 0x2a, 0xaa, 0xdd, 0xb0, 0x32, 0x1b, - 0x63, 0x98, 0x63, 0xb6, 0x4f, 0x94, 0xf9, 0x18, 0x17, 0x9f, 0xf1, 0x32, 0x14, 0x45, 0xdf, 0x6f, - 0xf3, 0xee, 0x68, 0x58, 0x56, 0x62, 0xe1, 0x87, 0x50, 0x72, 0x38, 0x65, 0x1f, 0xfb, 0x01, 0x51, - 0x16, 0x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f, 0x76, 0x5d, 0xbb, 0x18, 0x2f, 0xe1, 0xc7, - 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x5d, 0xef, 0x40, 0xb1, 0xe1, 0x05, 0x00, 0x00, + // 613 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xcd, 0x4f, 0x13, 0x51, + 0x10, 0xef, 0xe3, 0xdb, 0x09, 0x10, 0x78, 0x36, 0xb0, 0x2e, 0x66, 0x29, 0x8b, 0x89, 0x3d, 0xc8, + 0x2e, 0x56, 0xa3, 0x31, 0xf1, 0x23, 0x52, 0x24, 0x31, 0xb1, 0x97, 0x55, 0x62, 0xe4, 0xd2, 0x6c, + 0xb7, 0xc3, 0xf2, 0x62, 0xf7, 0xbd, 0x66, 0xdf, 0xc3, 0x52, 0x6e, 0x7a, 0xf4, 0x44, 0xe2, 0xdf, + 0xe2, 0xd9, 0x2b, 0x47, 0x8e, 0xc6, 0x03, 0x31, 0xf0, 0x8f, 0x98, 0xfd, 0x04, 0x81, 0x16, 0xed, + 0x69, 0x67, 0x66, 0xe7, 0x37, 0xf3, 0xfb, 0xcd, 0xec, 0x0e, 0xcc, 0x6e, 0xef, 0x72, 0x9f, 0x35, + 0x5a, 0x68, 0xab, 0x3d, 0xab, 0x1d, 0x0a, 0x25, 0xe8, 0xc2, 0x3e, 0x2a, 0xd7, 0xdb, 0x71, 0x19, + 0xb7, 0x62, 0x4b, 0x84, 0x68, 0x65, 0x59, 0xfa, 0x4d, 0x4f, 0x04, 0x81, 0xe0, 0x76, 0xf2, 0x48, + 0x10, 0x7a, 0xd1, 0x17, 0xbe, 0x88, 0x4d, 0x3b, 0xb2, 0x92, 0xa8, 0xf9, 0x9d, 0xc0, 0xad, 0x9a, + 0xf4, 0x37, 0xdb, 0x4d, 0x57, 0xe1, 0x96, 0x53, 0xad, 0xac, 0xbe, 0x67, 0x6a, 0xa7, 0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78, 0x5d, 0xcd, 0xab, 0x50, + 0xfa, 0xd3, 0x41, 0x50, 0x39, 0x99, 0x03, 0x02, 0x73, 0x3d, 0x0e, 0xd6, 0xa3, 0x7f, 0x2b, 0x7c, + 0x11, 0xa7, 0x3f, 0x1f, 0x0c, 0x97, 0x51, 0x5a, 0x7b, 0x7d, 0x78, 0x62, 0x90, 0xa3, 0x13, 0x83, + 0xfc, 0x3e, 0x31, 0xc8, 0xc1, 0xa9, 0x51, 0x38, 0x3a, 0x35, 0x0a, 0x3f, 0x4f, 0x8d, 0xc2, 0x96, + 0x7d, 0xee, 0xc2, 0x45, 0x95, 0x57, 0xe2, 0x26, 0x76, 0xd6, 0xc4, 0xde, 0xb3, 0xcf, 0x8e, 0x7b, + 0x74, 0xee, 0x1a, 0x63, 0xf1, 0x61, 0x7e, 0xf0, 0x27, 0x00, 0x00, 0xff, 0xff, 0x31, 0x41, 0xaf, + 0x74, 0xf5, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -704,10 +706,10 @@ func (m *MsgUpdateZRC20WithdrawFee) MarshalToSizedBuffer(dAtA []byte) (int, erro } i-- dAtA[i] = 0x32 - if len(m.Zrc20) > 0 { - i -= len(m.Zrc20) - copy(dAtA[i:], m.Zrc20) - i = encodeVarintTx(dAtA, i, uint64(len(m.Zrc20))) + 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 } @@ -981,7 +983,7 @@ func (m *MsgUpdateZRC20WithdrawFee) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } - l = len(m.Zrc20) + l = len(m.Zrc20Address) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -1167,7 +1169,7 @@ func (m *MsgUpdateZRC20WithdrawFee) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Zrc20", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Zrc20Address", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1195,7 +1197,7 @@ func (m *MsgUpdateZRC20WithdrawFee) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Zrc20 = string(dAtA[iNdEx:postIndex]) + m.Zrc20Address = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 6: if wireType != 2 {