diff --git a/proto/babylon/zoneconcierge/v1/packet.proto b/proto/babylon/zoneconcierge/v1/packet.proto index 39ec0be0b..7476c9bba 100644 --- a/proto/babylon/zoneconcierge/v1/packet.proto +++ b/proto/babylon/zoneconcierge/v1/packet.proto @@ -8,6 +8,7 @@ import "babylon/checkpointing/v1/checkpoint.proto"; import "babylon/epoching/v1/epoching.proto"; import "babylon/zoneconcierge/v1/zoneconcierge.proto"; import "babylon/finality/v1/finality.proto"; +import "ibc/applications/transfer/v2/packet.proto"; option go_package = "github.com/babylonlabs-io/babylon/x/zoneconcierge/types"; @@ -19,6 +20,7 @@ message ZoneconciergePacketData { BTCTimestamp btc_timestamp = 1; babylon.btcstaking.v1.BTCStakingIBCPacket btc_staking = 2; ConsumerSlashingIBCPacket consumer_slashing = 3; + ibc.applications.transfer.v2.FungibleTokenPacketData consumer_fp_distribution = 4; } } @@ -62,4 +64,4 @@ message BTCTimestamp { message ConsumerSlashingIBCPacket { /// evidence is the FP slashing evidence that the Consumer sends to Babylon babylon.finality.v1.Evidence evidence = 1; -} +} \ No newline at end of file diff --git a/proto/buf.lock b/proto/buf.lock index b7694ebc3..850ba5bf8 100644 --- a/proto/buf.lock +++ b/proto/buf.lock @@ -19,8 +19,8 @@ deps: - remote: buf.build owner: cosmos repository: ibc - commit: 41fbc441e4d645119d275150719c5441 - digest: shake256:a61d3e152909abddc91dcc1aec8ac997007bebd48a7921bc243681c708e6c9068f6484aa7ed4e6ff60101d3422c98744a4a5294bbda6aacdba07f1dfa4291020 + commit: 6b221c7d310545198c1dafe70287d254 + digest: shake256:c5ea4d89af1c47f4d02057892eacdcb863359178079d9599f30d853b374fe9e9bfb3d9ca6720361c3439999a885a4f87fff4cd41c6c26b1f1142d60c386f8323 - remote: buf.build owner: cosmos repository: ics23 diff --git a/proto/buf.yaml b/proto/buf.yaml index de76aba44..bec8de47c 100644 --- a/proto/buf.yaml +++ b/proto/buf.yaml @@ -5,7 +5,7 @@ deps: - buf.build/cosmos/cosmos-proto:1935555c206d4afb9e94615dfd0fad31 - buf.build/cosmos/gogo-proto:a14993478f40695898ed8a86931094b6656e8a5d - buf.build/googleapis/googleapis:8d7204855ec14631a499bd7393ce1970 - - buf.build/cosmos/ibc + - buf.build/cosmos/ibc:6b221c7d310545198c1dafe70287d254 # Corresponds to ibc-go v8 breaking: use: - FILE diff --git a/x/zoneconcierge/types/packet.pb.go b/x/zoneconcierge/types/packet.pb.go index 12a36f523..90df1a1db 100644 --- a/x/zoneconcierge/types/packet.pb.go +++ b/x/zoneconcierge/types/packet.pb.go @@ -5,13 +5,14 @@ package types import ( fmt "fmt" - types4 "github.com/babylonlabs-io/babylon/x/btccheckpoint/types" - types1 "github.com/babylonlabs-io/babylon/x/btclightclient/types" + types5 "github.com/babylonlabs-io/babylon/x/btccheckpoint/types" + types2 "github.com/babylonlabs-io/babylon/x/btclightclient/types" types "github.com/babylonlabs-io/babylon/x/btcstaking/types" - types3 "github.com/babylonlabs-io/babylon/x/checkpointing/types" - types2 "github.com/babylonlabs-io/babylon/x/epoching/types" - types5 "github.com/babylonlabs-io/babylon/x/finality/types" + types4 "github.com/babylonlabs-io/babylon/x/checkpointing/types" + types3 "github.com/babylonlabs-io/babylon/x/epoching/types" + types6 "github.com/babylonlabs-io/babylon/x/finality/types" proto "github.com/cosmos/gogoproto/proto" + types1 "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" io "io" math "math" math_bits "math/bits" @@ -37,6 +38,7 @@ type ZoneconciergePacketData struct { // *ZoneconciergePacketData_BtcTimestamp // *ZoneconciergePacketData_BtcStaking // *ZoneconciergePacketData_ConsumerSlashing + // *ZoneconciergePacketData_ConsumerFpDistribution Packet isZoneconciergePacketData_Packet `protobuf_oneof:"packet"` } @@ -88,10 +90,14 @@ type ZoneconciergePacketData_BtcStaking struct { type ZoneconciergePacketData_ConsumerSlashing struct { ConsumerSlashing *ConsumerSlashingIBCPacket `protobuf:"bytes,3,opt,name=consumer_slashing,json=consumerSlashing,proto3,oneof" json:"consumer_slashing,omitempty"` } +type ZoneconciergePacketData_ConsumerFpDistribution struct { + ConsumerFpDistribution *types1.FungibleTokenPacketData `protobuf:"bytes,4,opt,name=consumer_fp_distribution,json=consumerFpDistribution,proto3,oneof" json:"consumer_fp_distribution,omitempty"` +} -func (*ZoneconciergePacketData_BtcTimestamp) isZoneconciergePacketData_Packet() {} -func (*ZoneconciergePacketData_BtcStaking) isZoneconciergePacketData_Packet() {} -func (*ZoneconciergePacketData_ConsumerSlashing) isZoneconciergePacketData_Packet() {} +func (*ZoneconciergePacketData_BtcTimestamp) isZoneconciergePacketData_Packet() {} +func (*ZoneconciergePacketData_BtcStaking) isZoneconciergePacketData_Packet() {} +func (*ZoneconciergePacketData_ConsumerSlashing) isZoneconciergePacketData_Packet() {} +func (*ZoneconciergePacketData_ConsumerFpDistribution) isZoneconciergePacketData_Packet() {} func (m *ZoneconciergePacketData) GetPacket() isZoneconciergePacketData_Packet { if m != nil { @@ -121,12 +127,20 @@ func (m *ZoneconciergePacketData) GetConsumerSlashing() *ConsumerSlashingIBCPack return nil } +func (m *ZoneconciergePacketData) GetConsumerFpDistribution() *types1.FungibleTokenPacketData { + if x, ok := m.GetPacket().(*ZoneconciergePacketData_ConsumerFpDistribution); ok { + return x.ConsumerFpDistribution + } + return nil +} + // XXX_OneofWrappers is for the internal use of the proto package. func (*ZoneconciergePacketData) XXX_OneofWrappers() []interface{} { return []interface{}{ (*ZoneconciergePacketData_BtcTimestamp)(nil), (*ZoneconciergePacketData_BtcStaking)(nil), (*ZoneconciergePacketData_ConsumerSlashing)(nil), + (*ZoneconciergePacketData_ConsumerFpDistribution)(nil), } } @@ -142,13 +156,13 @@ type BTCTimestamp struct { // - the block AFTER the common ancestor of BTC tip at epoch `lastFinalizedEpoch-1` and BTC tip at epoch `lastFinalizedEpoch` // - BTC tip at epoch `lastFinalizedEpoch` // where `lastFinalizedEpoch` is the last finalised epoch in Babylon - BtcHeaders []*types1.BTCHeaderInfo `protobuf:"bytes,2,rep,name=btc_headers,json=btcHeaders,proto3" json:"btc_headers,omitempty"` + BtcHeaders []*types2.BTCHeaderInfo `protobuf:"bytes,2,rep,name=btc_headers,json=btcHeaders,proto3" json:"btc_headers,omitempty"` // epoch_info is the metadata of the sealed epoch - EpochInfo *types2.Epoch `protobuf:"bytes,3,opt,name=epoch_info,json=epochInfo,proto3" json:"epoch_info,omitempty"` + EpochInfo *types3.Epoch `protobuf:"bytes,3,opt,name=epoch_info,json=epochInfo,proto3" json:"epoch_info,omitempty"` // raw_checkpoint is the raw checkpoint that seals this epoch - RawCheckpoint *types3.RawCheckpoint `protobuf:"bytes,4,opt,name=raw_checkpoint,json=rawCheckpoint,proto3" json:"raw_checkpoint,omitempty"` + RawCheckpoint *types4.RawCheckpoint `protobuf:"bytes,4,opt,name=raw_checkpoint,json=rawCheckpoint,proto3" json:"raw_checkpoint,omitempty"` // btc_submission_key is position of two BTC txs that include the raw checkpoint of this epoch - BtcSubmissionKey *types4.SubmissionKey `protobuf:"bytes,5,opt,name=btc_submission_key,json=btcSubmissionKey,proto3" json:"btc_submission_key,omitempty"` + BtcSubmissionKey *types5.SubmissionKey `protobuf:"bytes,5,opt,name=btc_submission_key,json=btcSubmissionKey,proto3" json:"btc_submission_key,omitempty"` // //Proofs that the header is finalized Proof *ProofFinalizedChainInfo `protobuf:"bytes,6,opt,name=proof,proto3" json:"proof,omitempty"` @@ -194,28 +208,28 @@ func (m *BTCTimestamp) GetHeader() *IndexedHeader { return nil } -func (m *BTCTimestamp) GetBtcHeaders() []*types1.BTCHeaderInfo { +func (m *BTCTimestamp) GetBtcHeaders() []*types2.BTCHeaderInfo { if m != nil { return m.BtcHeaders } return nil } -func (m *BTCTimestamp) GetEpochInfo() *types2.Epoch { +func (m *BTCTimestamp) GetEpochInfo() *types3.Epoch { if m != nil { return m.EpochInfo } return nil } -func (m *BTCTimestamp) GetRawCheckpoint() *types3.RawCheckpoint { +func (m *BTCTimestamp) GetRawCheckpoint() *types4.RawCheckpoint { if m != nil { return m.RawCheckpoint } return nil } -func (m *BTCTimestamp) GetBtcSubmissionKey() *types4.SubmissionKey { +func (m *BTCTimestamp) GetBtcSubmissionKey() *types5.SubmissionKey { if m != nil { return m.BtcSubmissionKey } @@ -234,7 +248,7 @@ func (m *BTCTimestamp) GetProof() *ProofFinalizedChainInfo { // It includes the FP public key, the Consumer block height at the slashing event, and the double sign evidence. type ConsumerSlashingIBCPacket struct { /// evidence is the FP slashing evidence that the Consumer sends to Babylon - Evidence *types5.Evidence `protobuf:"bytes,1,opt,name=evidence,proto3" json:"evidence,omitempty"` + Evidence *types6.Evidence `protobuf:"bytes,1,opt,name=evidence,proto3" json:"evidence,omitempty"` } func (m *ConsumerSlashingIBCPacket) Reset() { *m = ConsumerSlashingIBCPacket{} } @@ -270,7 +284,7 @@ func (m *ConsumerSlashingIBCPacket) XXX_DiscardUnknown() { var xxx_messageInfo_ConsumerSlashingIBCPacket proto.InternalMessageInfo -func (m *ConsumerSlashingIBCPacket) GetEvidence() *types5.Evidence { +func (m *ConsumerSlashingIBCPacket) GetEvidence() *types6.Evidence { if m != nil { return m.Evidence } @@ -288,44 +302,49 @@ func init() { } var fileDescriptor_be12e124c5c4fdb9 = []byte{ - // 585 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0x4d, 0x6f, 0xd3, 0x30, - 0x18, 0xc7, 0xdb, 0x8d, 0x55, 0xc3, 0xdd, 0xd0, 0xf0, 0x85, 0x50, 0x89, 0x68, 0xaa, 0x04, 0x14, - 0x34, 0x52, 0x75, 0x3b, 0xa0, 0x9d, 0x90, 0x5a, 0x5e, 0x5a, 0xa1, 0xa1, 0x91, 0x0e, 0x0e, 0xbb, - 0x54, 0x8e, 0xeb, 0x36, 0x56, 0x5b, 0x3b, 0x4a, 0xdc, 0x6e, 0xdd, 0xa7, 0xe0, 0x4b, 0xf0, 0x51, - 0x90, 0x38, 0xee, 0xc8, 0x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, 0x9a, 0x24, 0x94, 0xb3, 0xc1, 0x84, 0x2c, 0x9d, 0xbd, 0x9c, 0xe6, 0xf6, 0xf8, 0x2d, - 0x5a, 0x5e, 0xdf, 0xf2, 0x9f, 0xc9, 0xd2, 0x3f, 0x92, 0xcf, 0x9c, 0xcd, 0xc0, 0x4f, 0x60, 0x2f, - 0x8a, 0x39, 0x1f, 0x39, 0x15, 0xa5, 0xd4, 0x2a, 0x36, 0xfb, 0x52, 0x62, 0x1f, 0x55, 0x93, 0xdf, - 0x91, 0x61, 0x27, 0x44, 0x94, 0x29, 0xbf, 0x74, 0x7d, 0xfd, 0x3b, 0x78, 0x5a, 0xd8, 0x02, 0xf0, - 0x1c, 0xec, 0x93, 0x05, 0x1d, 0x12, 0x86, 0x89, 0x79, 0xd5, 0x67, 0x76, 0x23, 0x3b, 0x37, 0xd2, - 0x45, 0x03, 0xf9, 0x16, 0x6f, 0x7f, 0xfd, 0xbd, 0x72, 0xcb, 0xf7, 0x2b, 0xb7, 0xfc, 0x77, 0xe5, - 0x96, 0x7f, 0xac, 0xdd, 0xd2, 0xfd, 0xda, 0x2d, 0xfd, 0x59, 0xbb, 0xa5, 0xeb, 0xb7, 0x63, 0x2a, - 0xc2, 0x79, 0xe0, 0x61, 0x3e, 0x6b, 0x1a, 0xb1, 0x29, 0x0a, 0x92, 0x37, 0x94, 0xa7, 0x61, 0xf3, - 0x36, 0x37, 0xcf, 0x62, 0x19, 0x91, 0x24, 0xa8, 0xa8, 0x09, 0x3d, 0xfb, 0x17, 0x00, 0x00, 0xff, - 0xff, 0x2c, 0xdb, 0xe9, 0xb1, 0x07, 0x05, 0x00, 0x00, + // 664 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x94, 0xc1, 0x6e, 0x13, 0x3d, + 0x10, 0xc7, 0x93, 0xe6, 0x6b, 0xd4, 0xcf, 0x6d, 0x51, 0xf1, 0x01, 0x96, 0x4a, 0x44, 0x55, 0x24, + 0xa0, 0xa0, 0xe2, 0x55, 0x52, 0x21, 0xd4, 0x13, 0x52, 0x52, 0x4a, 0x22, 0x54, 0x54, 0xb6, 0x85, + 0x43, 0x2f, 0x91, 0xed, 0x38, 0x89, 0x95, 0x8d, 0xbd, 0xac, 0x9d, 0x6d, 0xd3, 0xa7, 0xe0, 0xc8, + 0x0b, 0x21, 0x71, 0xec, 0x91, 0x23, 0x6a, 0x5f, 0x04, 0xad, 0xd7, 0xbb, 0x71, 0x82, 0x72, 0x89, + 0x76, 0x26, 0x7f, 0xff, 0xc6, 0xfe, 0x8f, 0xc7, 0xe0, 0x19, 0xc1, 0x64, 0x16, 0x4a, 0xe1, 0xdf, + 0x48, 0xc1, 0xa8, 0x14, 0x94, 0xb3, 0x78, 0xc8, 0xfc, 0xa4, 0xe1, 0x47, 0x98, 0x8e, 0x99, 0x46, + 0x51, 0x2c, 0xb5, 0x84, 0x9e, 0x95, 0xa1, 0x05, 0x19, 0x4a, 0x1a, 0xbb, 0x07, 0x39, 0x80, 0x68, + 0x4a, 0x47, 0x8c, 0x8e, 0x23, 0xc9, 0x85, 0x4e, 0x01, 0x0b, 0x89, 0x8c, 0xb3, 0x8b, 0x1c, 0x75, + 0xc8, 0x87, 0xa3, 0xf4, 0x97, 0x15, 0x72, 0x27, 0x63, 0xf5, 0x75, 0x47, 0xaf, 0x34, 0x1e, 0x73, + 0x31, 0x5c, 0xde, 0xdb, 0xee, 0xcb, 0x5c, 0x33, 0xaf, 0x66, 0x65, 0xff, 0x94, 0x2f, 0x70, 0x2c, + 0x92, 0x74, 0x64, 0x55, 0xf9, 0xb7, 0xd5, 0x1c, 0xac, 0x74, 0x64, 0xf1, 0xec, 0x4b, 0xc4, 0x01, + 0x17, 0x38, 0xe4, 0x7a, 0x96, 0x0a, 0xf3, 0xef, 0x7c, 0x83, 0x9c, 0x50, 0x1f, 0x47, 0x51, 0xc8, + 0x29, 0xd6, 0x5c, 0x0a, 0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0x06, + 0x4b, 0x78, 0x9f, 0x09, 0xca, 0x6c, 0x57, 0x9f, 0x16, 0x85, 0x8a, 0xa9, 0x4e, 0x5d, 0xb4, 0xa2, + 0xa0, 0x90, 0xb7, 0x3e, 0xff, 0xba, 0xab, 0x95, 0x6f, 0xef, 0x6a, 0xe5, 0x3f, 0x77, 0xb5, 0xf2, + 0xf7, 0xfb, 0x5a, 0xe9, 0xf6, 0xbe, 0x56, 0xfa, 0x7d, 0x5f, 0x2b, 0x5d, 0xbe, 0x1d, 0x72, 0x3d, + 0x9a, 0x12, 0x44, 0xe5, 0xc4, 0xb7, 0xb0, 0x10, 0x13, 0xf5, 0x9a, 0xcb, 0x3c, 0xf4, 0xaf, 0x97, + 0x5e, 0x1b, 0x3d, 0x8b, 0x98, 0x22, 0x55, 0xf3, 0x28, 0x1c, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, + 0xe6, 0xa9, 0x3d, 0x80, 0xa5, 0x05, 0x00, 0x00, } func (m *ZoneconciergePacketData) Marshal() (dAtA []byte, err error) { @@ -423,6 +442,27 @@ func (m *ZoneconciergePacketData_ConsumerSlashing) MarshalToSizedBuffer(dAtA []b } return len(dAtA) - i, nil } +func (m *ZoneconciergePacketData_ConsumerFpDistribution) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ZoneconciergePacketData_ConsumerFpDistribution) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + if m.ConsumerFpDistribution != nil { + { + size, err := m.ConsumerFpDistribution.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintPacket(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + return len(dAtA) - i, nil +} func (m *BTCTimestamp) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -614,6 +654,18 @@ func (m *ZoneconciergePacketData_ConsumerSlashing) Size() (n int) { } return n } +func (m *ZoneconciergePacketData_ConsumerFpDistribution) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + if m.ConsumerFpDistribution != nil { + l = m.ConsumerFpDistribution.Size() + n += 1 + l + sovPacket(uint64(l)) + } + return n +} func (m *BTCTimestamp) Size() (n int) { if m == nil { return 0 @@ -802,6 +854,41 @@ func (m *ZoneconciergePacketData) Unmarshal(dAtA []byte) error { } m.Packet = &ZoneconciergePacketData_ConsumerSlashing{v} iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ConsumerFpDistribution", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPacket + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPacket + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthPacket + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + v := &types1.FungibleTokenPacketData{} + if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + m.Packet = &ZoneconciergePacketData_ConsumerFpDistribution{v} + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipPacket(dAtA[iNdEx:]) @@ -917,7 +1004,7 @@ func (m *BTCTimestamp) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.BtcHeaders = append(m.BtcHeaders, &types1.BTCHeaderInfo{}) + m.BtcHeaders = append(m.BtcHeaders, &types2.BTCHeaderInfo{}) if err := m.BtcHeaders[len(m.BtcHeaders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } @@ -952,7 +1039,7 @@ func (m *BTCTimestamp) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.EpochInfo == nil { - m.EpochInfo = &types2.Epoch{} + m.EpochInfo = &types3.Epoch{} } if err := m.EpochInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -988,7 +1075,7 @@ func (m *BTCTimestamp) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.RawCheckpoint == nil { - m.RawCheckpoint = &types3.RawCheckpoint{} + m.RawCheckpoint = &types4.RawCheckpoint{} } if err := m.RawCheckpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1024,7 +1111,7 @@ func (m *BTCTimestamp) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.BtcSubmissionKey == nil { - m.BtcSubmissionKey = &types4.SubmissionKey{} + m.BtcSubmissionKey = &types5.SubmissionKey{} } if err := m.BtcSubmissionKey.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err @@ -1146,7 +1233,7 @@ func (m *ConsumerSlashingIBCPacket) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } if m.Evidence == nil { - m.Evidence = &types5.Evidence{} + m.Evidence = &types6.Evidence{} } if err := m.Evidence.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err