diff --git a/docs/core/proto-docs.md b/docs/core/proto-docs.md
index c0165ebca4..8494dbe2d0 100644
--- a/docs/core/proto-docs.md
+++ b/docs/core/proto-docs.md
@@ -957,7 +957,8 @@
- [Swapped](#lbm.fswap.v1.Swapped)
- [lbm/fswap/v1/event.proto](#lbm/fswap/v1/event.proto)
- - [EventMakeSwapProposal](#lbm.fswap.v1.EventMakeSwapProposal)
+ - [EventAddDenomMetadata](#lbm.fswap.v1.EventAddDenomMetadata)
+ - [EventMakeSwap](#lbm.fswap.v1.EventMakeSwap)
- [EventSwapCoins](#lbm.fswap.v1.EventSwapCoins)
- [lbm/fswap/v1/genesis.proto](#lbm/fswap/v1/genesis.proto)
@@ -14211,16 +14212,30 @@ From cosmos-sdk 0.46.0 they deprecated this way, but currently finschia-sdk base
-
+
-### EventMakeSwapProposal
+### EventAddDenomMetadata
+
+
+
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| `metadata` | [cosmos.bank.v1beta1.Metadata](#cosmos.bank.v1beta1.Metadata) | | |
+
+
+
+
+
+
+
+
+### EventMakeSwap
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `swap` | [Swap](#lbm.fswap.v1.Swap) | | |
-| `to_denom_metadata` | [cosmos.bank.v1beta1.Metadata](#cosmos.bank.v1beta1.Metadata) | | |
diff --git a/proto/lbm/fswap/v1/event.proto b/proto/lbm/fswap/v1/event.proto
index 09561e98eb..10f9f3ea5d 100644
--- a/proto/lbm/fswap/v1/event.proto
+++ b/proto/lbm/fswap/v1/event.proto
@@ -19,8 +19,11 @@ message EventSwapCoins {
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/Finschia/finschia-sdk/types.Coin"];
}
-message EventMakeSwapProposal {
- Swap swap = 1 [(gogoproto.nullable) = false];
- cosmos.bank.v1beta1.Metadata to_denom_metadata = 2
+message EventMakeSwap {
+ Swap swap = 1 [(gogoproto.nullable) = false];
+}
+
+message EventAddDenomMetadata {
+ cosmos.bank.v1beta1.Metadata metadata = 1
[(gogoproto.moretags) = "yaml:\"denom_metadata\"", (gogoproto.nullable) = false];
}
diff --git a/x/fswap/types/event.pb.go b/x/fswap/types/event.pb.go
index 9b2a17fd1c..a535059e7e 100644
--- a/x/fswap/types/event.pb.go
+++ b/x/fswap/types/event.pb.go
@@ -88,23 +88,22 @@ func (m *EventSwapCoins) GetToCoinAmount() types.Coin {
return types.Coin{}
}
-type EventMakeSwapProposal struct {
- Swap Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap"`
- ToDenomMetadata types1.Metadata `protobuf:"bytes,2,opt,name=to_denom_metadata,json=toDenomMetadata,proto3" json:"to_denom_metadata" yaml:"denom_metadata"`
+type EventMakeSwap struct {
+ Swap Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap"`
}
-func (m *EventMakeSwapProposal) Reset() { *m = EventMakeSwapProposal{} }
-func (m *EventMakeSwapProposal) String() string { return proto.CompactTextString(m) }
-func (*EventMakeSwapProposal) ProtoMessage() {}
-func (*EventMakeSwapProposal) Descriptor() ([]byte, []int) {
+func (m *EventMakeSwap) Reset() { *m = EventMakeSwap{} }
+func (m *EventMakeSwap) String() string { return proto.CompactTextString(m) }
+func (*EventMakeSwap) ProtoMessage() {}
+func (*EventMakeSwap) Descriptor() ([]byte, []int) {
return fileDescriptor_92d5edbd64a725af, []int{1}
}
-func (m *EventMakeSwapProposal) XXX_Unmarshal(b []byte) error {
+func (m *EventMakeSwap) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
-func (m *EventMakeSwapProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+func (m *EventMakeSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
- return xxx_messageInfo_EventMakeSwapProposal.Marshal(b, m, deterministic)
+ return xxx_messageInfo_EventMakeSwap.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
@@ -114,66 +113,104 @@ func (m *EventMakeSwapProposal) XXX_Marshal(b []byte, deterministic bool) ([]byt
return b[:n], nil
}
}
-func (m *EventMakeSwapProposal) XXX_Merge(src proto.Message) {
- xxx_messageInfo_EventMakeSwapProposal.Merge(m, src)
+func (m *EventMakeSwap) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventMakeSwap.Merge(m, src)
}
-func (m *EventMakeSwapProposal) XXX_Size() int {
+func (m *EventMakeSwap) XXX_Size() int {
return m.Size()
}
-func (m *EventMakeSwapProposal) XXX_DiscardUnknown() {
- xxx_messageInfo_EventMakeSwapProposal.DiscardUnknown(m)
+func (m *EventMakeSwap) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventMakeSwap.DiscardUnknown(m)
}
-var xxx_messageInfo_EventMakeSwapProposal proto.InternalMessageInfo
+var xxx_messageInfo_EventMakeSwap proto.InternalMessageInfo
-func (m *EventMakeSwapProposal) GetSwap() Swap {
+func (m *EventMakeSwap) GetSwap() Swap {
if m != nil {
return m.Swap
}
return Swap{}
}
-func (m *EventMakeSwapProposal) GetToDenomMetadata() types1.Metadata {
+type EventAddDenomMetadata struct {
+ Metadata types1.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata" yaml:"denom_metadata"`
+}
+
+func (m *EventAddDenomMetadata) Reset() { *m = EventAddDenomMetadata{} }
+func (m *EventAddDenomMetadata) String() string { return proto.CompactTextString(m) }
+func (*EventAddDenomMetadata) ProtoMessage() {}
+func (*EventAddDenomMetadata) Descriptor() ([]byte, []int) {
+ return fileDescriptor_92d5edbd64a725af, []int{2}
+}
+func (m *EventAddDenomMetadata) XXX_Unmarshal(b []byte) error {
+ return m.Unmarshal(b)
+}
+func (m *EventAddDenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ if deterministic {
+ return xxx_messageInfo_EventAddDenomMetadata.Marshal(b, m, deterministic)
+ } else {
+ b = b[:cap(b)]
+ n, err := m.MarshalToSizedBuffer(b)
+ if err != nil {
+ return nil, err
+ }
+ return b[:n], nil
+ }
+}
+func (m *EventAddDenomMetadata) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_EventAddDenomMetadata.Merge(m, src)
+}
+func (m *EventAddDenomMetadata) XXX_Size() int {
+ return m.Size()
+}
+func (m *EventAddDenomMetadata) XXX_DiscardUnknown() {
+ xxx_messageInfo_EventAddDenomMetadata.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_EventAddDenomMetadata proto.InternalMessageInfo
+
+func (m *EventAddDenomMetadata) GetMetadata() types1.Metadata {
if m != nil {
- return m.ToDenomMetadata
+ return m.Metadata
}
return types1.Metadata{}
}
func init() {
proto.RegisterType((*EventSwapCoins)(nil), "lbm.fswap.v1.EventSwapCoins")
- proto.RegisterType((*EventMakeSwapProposal)(nil), "lbm.fswap.v1.EventMakeSwapProposal")
+ proto.RegisterType((*EventMakeSwap)(nil), "lbm.fswap.v1.EventMakeSwap")
+ proto.RegisterType((*EventAddDenomMetadata)(nil), "lbm.fswap.v1.EventAddDenomMetadata")
}
func init() { proto.RegisterFile("lbm/fswap/v1/event.proto", fileDescriptor_92d5edbd64a725af) }
var fileDescriptor_92d5edbd64a725af = []byte{
// 403 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0xbf, 0xae, 0xd3, 0x30,
- 0x14, 0xc6, 0x93, 0xcb, 0x15, 0x08, 0xdf, 0xab, 0x02, 0x11, 0x95, 0x42, 0xa5, 0xa6, 0x55, 0xa6,
- 0x4a, 0x80, 0xad, 0xb4, 0x1b, 0x1b, 0xe5, 0x8f, 0x58, 0x2a, 0xa1, 0xb0, 0xb1, 0x44, 0x4e, 0xe2,
- 0xb6, 0x51, 0x62, 0x9f, 0x28, 0x76, 0xd3, 0xf6, 0x2d, 0x98, 0x79, 0x04, 0x16, 0x5e, 0xa3, 0x63,
- 0x47, 0xa6, 0x82, 0xda, 0x37, 0xe0, 0x09, 0x90, 0xdd, 0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 0x17, 0x00, 0x00, 0xff, 0xff, 0x9f, 0x45, 0x65, 0x5a, 0xb9,
0x02, 0x00, 0x00,
}
@@ -227,7 +264,7 @@ func (m *EventSwapCoins) MarshalToSizedBuffer(dAtA []byte) (int, error) {
return len(dAtA) - i, nil
}
-func (m *EventMakeSwapProposal) Marshal() (dAtA []byte, err error) {
+func (m *EventMakeSwap) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -237,18 +274,18 @@ func (m *EventMakeSwapProposal) Marshal() (dAtA []byte, err error) {
return dAtA[:n], nil
}
-func (m *EventMakeSwapProposal) MarshalTo(dAtA []byte) (int, error) {
+func (m *EventMakeSwap) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
-func (m *EventMakeSwapProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+func (m *EventMakeSwap) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
{
- size, err := m.ToDenomMetadata.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.Swap.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -256,9 +293,32 @@ func (m *EventMakeSwapProposal) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i = encodeVarintEvent(dAtA, i, uint64(size))
}
i--
- dAtA[i] = 0x12
+ dAtA[i] = 0xa
+ return len(dAtA) - i, nil
+}
+
+func (m *EventAddDenomMetadata) Marshal() (dAtA []byte, err error) {
+ size := m.Size()
+ dAtA = make([]byte, size)
+ n, err := m.MarshalToSizedBuffer(dAtA[:size])
+ if err != nil {
+ return nil, err
+ }
+ return dAtA[:n], nil
+}
+
+func (m *EventAddDenomMetadata) MarshalTo(dAtA []byte) (int, error) {
+ size := m.Size()
+ return m.MarshalToSizedBuffer(dAtA[:size])
+}
+
+func (m *EventAddDenomMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) {
+ i := len(dAtA)
+ _ = i
+ var l int
+ _ = l
{
- size, err := m.Swap.MarshalToSizedBuffer(dAtA[:i])
+ size, err := m.Metadata.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
@@ -298,7 +358,7 @@ func (m *EventSwapCoins) Size() (n int) {
return n
}
-func (m *EventMakeSwapProposal) Size() (n int) {
+func (m *EventMakeSwap) Size() (n int) {
if m == nil {
return 0
}
@@ -306,7 +366,16 @@ func (m *EventMakeSwapProposal) Size() (n int) {
_ = l
l = m.Swap.Size()
n += 1 + l + sovEvent(uint64(l))
- l = m.ToDenomMetadata.Size()
+ return n
+}
+
+func (m *EventAddDenomMetadata) Size() (n int) {
+ if m == nil {
+ return 0
+ }
+ var l int
+ _ = l
+ l = m.Metadata.Size()
n += 1 + l + sovEvent(uint64(l))
return n
}
@@ -465,7 +534,7 @@ func (m *EventSwapCoins) Unmarshal(dAtA []byte) error {
}
return nil
}
-func (m *EventMakeSwapProposal) Unmarshal(dAtA []byte) error {
+func (m *EventMakeSwap) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
@@ -488,10 +557,10 @@ func (m *EventMakeSwapProposal) Unmarshal(dAtA []byte) error {
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
- return fmt.Errorf("proto: EventMakeSwapProposal: wiretype end group for non-group")
+ return fmt.Errorf("proto: EventMakeSwap: wiretype end group for non-group")
}
if fieldNum <= 0 {
- return fmt.Errorf("proto: EventMakeSwapProposal: illegal tag %d (wire type %d)", fieldNum, wire)
+ return fmt.Errorf("proto: EventMakeSwap: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
@@ -527,9 +596,59 @@ func (m *EventMakeSwapProposal) Unmarshal(dAtA []byte) error {
return err
}
iNdEx = postIndex
- case 2:
+ default:
+ iNdEx = preIndex
+ skippy, err := skipEvent(dAtA[iNdEx:])
+ if err != nil {
+ return err
+ }
+ if (skippy < 0) || (iNdEx+skippy) < 0 {
+ return ErrInvalidLengthEvent
+ }
+ if (iNdEx + skippy) > l {
+ return io.ErrUnexpectedEOF
+ }
+ iNdEx += skippy
+ }
+ }
+
+ if iNdEx > l {
+ return io.ErrUnexpectedEOF
+ }
+ return nil
+}
+func (m *EventAddDenomMetadata) Unmarshal(dAtA []byte) error {
+ l := len(dAtA)
+ iNdEx := 0
+ for iNdEx < l {
+ preIndex := iNdEx
+ var wire uint64
+ for shift := uint(0); ; shift += 7 {
+ if shift >= 64 {
+ return ErrIntOverflowEvent
+ }
+ if iNdEx >= l {
+ return io.ErrUnexpectedEOF
+ }
+ b := dAtA[iNdEx]
+ iNdEx++
+ wire |= uint64(b&0x7F) << shift
+ if b < 0x80 {
+ break
+ }
+ }
+ fieldNum := int32(wire >> 3)
+ wireType := int(wire & 0x7)
+ if wireType == 4 {
+ return fmt.Errorf("proto: EventAddDenomMetadata: wiretype end group for non-group")
+ }
+ if fieldNum <= 0 {
+ return fmt.Errorf("proto: EventAddDenomMetadata: illegal tag %d (wire type %d)", fieldNum, wire)
+ }
+ switch fieldNum {
+ case 1:
if wireType != 2 {
- return fmt.Errorf("proto: wrong wireType = %d for field ToDenomMetadata", wireType)
+ return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
@@ -556,7 +675,7 @@ func (m *EventMakeSwapProposal) Unmarshal(dAtA []byte) error {
if postIndex > l {
return io.ErrUnexpectedEOF
}
- if err := m.ToDenomMetadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
+ if err := m.Metadata.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex