diff --git a/CHANGELOG.md b/CHANGELOG.md index a042e5b09..f9d0abba4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## Unreleased +### API Breaking + +- [#273](https://github.com/babylonlabs-io/babylon/pull/273) Add full staking tx to BTC delegation creation event + ## v0.16.0 ### Improvements diff --git a/proto/babylon/btcstaking/v1/events.proto b/proto/babylon/btcstaking/v1/events.proto index 1c7634681..9d54052f3 100644 --- a/proto/babylon/btcstaking/v1/events.proto +++ b/proto/babylon/btcstaking/v1/events.proto @@ -144,33 +144,27 @@ enum FinalityProviderStatus { // EventBTCDelegationCreated is the event emitted when a BTC delegation is created // on the Babylon chain message EventBTCDelegationCreated { - // staking_tx_hash is the hash of the staking tx. - // It uniquely identifies a BTC delegation - string staking_tx_hash = 1 [(amino.dont_omitempty) = true]; - // staking_output_pk_script is the hex encoded PK script of the staking output - string staking_output_pk_script = 2 [(amino.dont_omitempty) = true]; + // staking_tx_hex is the hex encoded staking tx + string staking_tx_hex = 1 [(amino.dont_omitempty) = true]; // staking_output_index is the index of the staking output in the staking tx - string staking_output_index = 3 [(amino.dont_omitempty) = true]; + string staking_output_index = 2 [(amino.dont_omitempty) = true]; // version of the params used to validate the delegation - string params_version = 4 [(amino.dont_omitempty) = true]; + string params_version = 3 [(amino.dont_omitempty) = true]; // finality_provider_btc_pks_hex is the list of hex str of Bitcoin secp256k1 PK of // the finality providers that this BTC delegation delegates to // the PK follows encoding in BIP-340 spec - repeated string finality_provider_btc_pks_hex = 5 [(amino.dont_omitempty) = true]; + repeated string finality_provider_btc_pks_hex = 4 [(amino.dont_omitempty) = true]; // staker_btc_pk_hex is the hex str of Bitcoin secp256k1 PK of the staker that // creates this BTC delegation the PK follows encoding in BIP-340 spec - string staker_btc_pk_hex = 6 [(amino.dont_omitempty) = true]; + string staker_btc_pk_hex = 5 [(amino.dont_omitempty) = true]; // staking_time is the timelock of the staking tx specified in the BTC script - string staking_time = 7 [(amino.dont_omitempty) = true]; - // staking_amount is the total amount of BTC stake in this delegation - // quantified in satoshi - string staking_amount = 8 [(amino.dont_omitempty) = true]; + string staking_time = 6 [(amino.dont_omitempty) = true]; // unbonding_time is the time is timelock on unbonding tx chosen by the staker - string unbonding_time = 9 [(amino.dont_omitempty) = true]; + string unbonding_time = 7 [(amino.dont_omitempty) = true]; // unbonding_tx is hex encoded bytes of the unsigned unbonding tx - string unbonding_tx = 10 [(amino.dont_omitempty) = true]; + string unbonding_tx = 8 [(amino.dont_omitempty) = true]; // new_state of the BTC delegation - string new_state = 11 [(amino.dont_omitempty) = true]; + string new_state = 9 [(amino.dont_omitempty) = true]; } // EventCovenantSignatureReceived is the event emitted when a covenant committee diff --git a/x/btcstaking/keeper/btc_delegations.go b/x/btcstaking/keeper/btc_delegations.go index 3c0795d68..d1496d187 100644 --- a/x/btcstaking/keeper/btc_delegations.go +++ b/x/btcstaking/keeper/btc_delegations.go @@ -53,7 +53,6 @@ func (k Keeper) AddBTCDelegation( k.setBTCDelegation(ctx, btcDel) if err := ctx.EventManager().EmitTypedEvents(types.NewBtcDelCreationEvent( - stakingTxHash.String(), btcDel, )); err != nil { panic(fmt.Errorf("failed to emit events for the new pending BTC delegation: %w", err)) diff --git a/x/btcstaking/types/events.go b/x/btcstaking/types/events.go index 837442fdd..55a476e7e 100644 --- a/x/btcstaking/types/events.go +++ b/x/btcstaking/types/events.go @@ -88,18 +88,15 @@ func NewInclusionProofEvent( } func NewBtcDelCreationEvent( - stakingTxHash string, btcDel *BTCDelegation, ) *EventBTCDelegationCreated { return &EventBTCDelegationCreated{ - StakingTxHash: stakingTxHash, - StakingOutputPkScript: hex.EncodeToString(btcDel.MustGetStakingTx().TxOut[btcDel.StakingOutputIdx].PkScript), + StakingTxHex: hex.EncodeToString(btcDel.StakingTx), StakingOutputIndex: strconv.FormatUint(uint64(btcDel.StakingOutputIdx), 10), ParamsVersion: strconv.FormatUint(uint64(btcDel.ParamsVersion), 10), FinalityProviderBtcPksHex: btcDel.FinalityProviderKeys(), StakerBtcPkHex: btcDel.BtcPk.MarshalHex(), StakingTime: strconv.FormatUint(uint64(btcDel.StakingTime), 10), - StakingAmount: strconv.FormatUint(btcDel.TotalSat, 10), UnbondingTime: strconv.FormatUint(uint64(btcDel.UnbondingTime), 10), UnbondingTx: hex.EncodeToString(btcDel.BtcUndelegation.UnbondingTx), NewState: BTCDelegationStatus_PENDING.String(), diff --git a/x/btcstaking/types/events.pb.go b/x/btcstaking/types/events.pb.go index 5d393d9e9..c7b7a9a27 100644 --- a/x/btcstaking/types/events.pb.go +++ b/x/btcstaking/types/events.pb.go @@ -701,33 +701,27 @@ func (m *EventFinalityProviderStatusChange) GetNewState() string { // EventBTCDelegationCreated is the event emitted when a BTC delegation is created // on the Babylon chain type EventBTCDelegationCreated struct { - // staking_tx_hash is the hash of the staking tx. - // It uniquely identifies a BTC delegation - StakingTxHash string `protobuf:"bytes,1,opt,name=staking_tx_hash,json=stakingTxHash,proto3" json:"staking_tx_hash,omitempty"` - // staking_output_pk_script is the hex encoded PK script of the staking output - StakingOutputPkScript string `protobuf:"bytes,2,opt,name=staking_output_pk_script,json=stakingOutputPkScript,proto3" json:"staking_output_pk_script,omitempty"` + // staking_tx_hex is the hex encoded staking tx + StakingTxHex string `protobuf:"bytes,1,opt,name=staking_tx_hex,json=stakingTxHex,proto3" json:"staking_tx_hex,omitempty"` // staking_output_index is the index of the staking output in the staking tx - StakingOutputIndex string `protobuf:"bytes,3,opt,name=staking_output_index,json=stakingOutputIndex,proto3" json:"staking_output_index,omitempty"` + StakingOutputIndex string `protobuf:"bytes,2,opt,name=staking_output_index,json=stakingOutputIndex,proto3" json:"staking_output_index,omitempty"` // version of the params used to validate the delegation - ParamsVersion string `protobuf:"bytes,4,opt,name=params_version,json=paramsVersion,proto3" json:"params_version,omitempty"` + ParamsVersion string `protobuf:"bytes,3,opt,name=params_version,json=paramsVersion,proto3" json:"params_version,omitempty"` // finality_provider_btc_pks_hex is the list of hex str of Bitcoin secp256k1 PK of // the finality providers that this BTC delegation delegates to // the PK follows encoding in BIP-340 spec - FinalityProviderBtcPksHex []string `protobuf:"bytes,5,rep,name=finality_provider_btc_pks_hex,json=finalityProviderBtcPksHex,proto3" json:"finality_provider_btc_pks_hex,omitempty"` + FinalityProviderBtcPksHex []string `protobuf:"bytes,4,rep,name=finality_provider_btc_pks_hex,json=finalityProviderBtcPksHex,proto3" json:"finality_provider_btc_pks_hex,omitempty"` // staker_btc_pk_hex is the hex str of Bitcoin secp256k1 PK of the staker that // creates this BTC delegation the PK follows encoding in BIP-340 spec - StakerBtcPkHex string `protobuf:"bytes,6,opt,name=staker_btc_pk_hex,json=stakerBtcPkHex,proto3" json:"staker_btc_pk_hex,omitempty"` + StakerBtcPkHex string `protobuf:"bytes,5,opt,name=staker_btc_pk_hex,json=stakerBtcPkHex,proto3" json:"staker_btc_pk_hex,omitempty"` // staking_time is the timelock of the staking tx specified in the BTC script - StakingTime string `protobuf:"bytes,7,opt,name=staking_time,json=stakingTime,proto3" json:"staking_time,omitempty"` - // staking_amount is the total amount of BTC stake in this delegation - // quantified in satoshi - StakingAmount string `protobuf:"bytes,8,opt,name=staking_amount,json=stakingAmount,proto3" json:"staking_amount,omitempty"` + StakingTime string `protobuf:"bytes,6,opt,name=staking_time,json=stakingTime,proto3" json:"staking_time,omitempty"` // unbonding_time is the time is timelock on unbonding tx chosen by the staker - UnbondingTime string `protobuf:"bytes,9,opt,name=unbonding_time,json=unbondingTime,proto3" json:"unbonding_time,omitempty"` + UnbondingTime string `protobuf:"bytes,7,opt,name=unbonding_time,json=unbondingTime,proto3" json:"unbonding_time,omitempty"` // unbonding_tx is hex encoded bytes of the unsigned unbonding tx - UnbondingTx string `protobuf:"bytes,10,opt,name=unbonding_tx,json=unbondingTx,proto3" json:"unbonding_tx,omitempty"` + UnbondingTx string `protobuf:"bytes,8,opt,name=unbonding_tx,json=unbondingTx,proto3" json:"unbonding_tx,omitempty"` // new_state of the BTC delegation - NewState string `protobuf:"bytes,11,opt,name=new_state,json=newState,proto3" json:"new_state,omitempty"` + NewState string `protobuf:"bytes,9,opt,name=new_state,json=newState,proto3" json:"new_state,omitempty"` } func (m *EventBTCDelegationCreated) Reset() { *m = EventBTCDelegationCreated{} } @@ -763,16 +757,9 @@ func (m *EventBTCDelegationCreated) XXX_DiscardUnknown() { var xxx_messageInfo_EventBTCDelegationCreated proto.InternalMessageInfo -func (m *EventBTCDelegationCreated) GetStakingTxHash() string { +func (m *EventBTCDelegationCreated) GetStakingTxHex() string { if m != nil { - return m.StakingTxHash - } - return "" -} - -func (m *EventBTCDelegationCreated) GetStakingOutputPkScript() string { - if m != nil { - return m.StakingOutputPkScript + return m.StakingTxHex } return "" } @@ -812,13 +799,6 @@ func (m *EventBTCDelegationCreated) GetStakingTime() string { return "" } -func (m *EventBTCDelegationCreated) GetStakingAmount() string { - if m != nil { - return m.StakingAmount - } - return "" -} - func (m *EventBTCDelegationCreated) GetUnbondingTime() string { if m != nil { return m.UnbondingTime @@ -1267,88 +1247,86 @@ func init() { } var fileDescriptor_74118427820fff75 = []byte{ - // 1290 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcb, 0x6f, 0xdb, 0xc6, - 0x13, 0xb6, 0x64, 0xd9, 0xb1, 0xc7, 0x79, 0x38, 0xfc, 0x39, 0x81, 0xac, 0x5f, 0xa2, 0x38, 0xca, - 0x03, 0x6e, 0xd0, 0x48, 0x79, 0x18, 0x68, 0x4f, 0x05, 0x24, 0x5b, 0x8e, 0x94, 0x1a, 0x8e, 0x2a, - 0xd9, 0x01, 0xda, 0x0b, 0xb1, 0x24, 0xc7, 0xd2, 0x56, 0xd4, 0x2e, 0x41, 0x2e, 0x65, 0xe9, 0x5e, - 0xa0, 0xd7, 0x9c, 0x0b, 0xf4, 0xde, 0x5b, 0xfb, 0x27, 0xf4, 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6, 0x6e, 0x7d, 0xbf, 0xbc, 0x57, 0x3f, 0xf8, 0x52, 0x6f, 0x34, 0x5f, 0xbc, 0xac, 0xef, 0x54, - 0x9b, 0x7a, 0xeb, 0xa0, 0x7c, 0x70, 0xd8, 0xd2, 0xeb, 0xfb, 0xe5, 0xed, 0x83, 0xfa, 0xcb, 0xea, - 0xea, 0x9c, 0x76, 0x07, 0x6e, 0xcd, 0x84, 0x85, 0xa0, 0xd4, 0x5b, 0x41, 0xcf, 0xcb, 0xf5, 0xbd, - 0xea, 0xce, 0x6a, 0x5a, 0xbb, 0x0b, 0x1b, 0x33, 0x41, 0xad, 0xbd, 0x72, 0xab, 0x56, 0xdd, 0x59, - 0x9d, 0xaf, 0xec, 0xff, 0xf2, 0x26, 0x9f, 0x7a, 0xfd, 0x26, 0x9f, 0xfa, 0xeb, 0x4d, 0x3e, 0xf5, - 0xea, 0x24, 0x3f, 0xf7, 0xfa, 0x24, 0x3f, 0xf7, 0xfb, 0x49, 0x7e, 0xee, 0xab, 0x33, 0x2c, 0xfa, - 0xc1, 0xe4, 0x4f, 0x47, 0xb9, 0xf5, 0x8d, 0x45, 0xf9, 0x2b, 0xf0, 0xe9, 0xbf, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x85, 0xad, 0xdc, 0x00, 0xd4, 0x0e, 0x00, 0x00, + // 1264 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xcd, 0x6f, 0xdb, 0xc6, + 0x12, 0xb7, 0x24, 0x7f, 0xae, 0x1d, 0xc7, 0xd9, 0xe7, 0x17, 0xc8, 0x7a, 0x89, 0xe2, 0x28, 0x1f, + 0xf0, 0xcb, 0x7b, 0x91, 0xf2, 0x61, 0xa0, 0xbd, 0x5a, 0xb6, 0x1c, 0x29, 0x35, 0x1c, 0x55, 0xb2, + 0x03, 0xb4, 0x17, 0x62, 0x49, 0x8e, 0xa5, 0x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18, 0xcd, + 0xd6, 0x8b, 0x97, 0x8d, 0xbd, 0x5a, 0xcb, 0x68, 0x1f, 0xed, 0x1c, 0x1d, 0xb7, 0x8d, 0xc6, 0xe1, + 0xce, 0xee, 0x51, 0xe3, 0x65, 0x6d, 0x6d, 0x06, 0xdf, 0x41, 0xb7, 0xa6, 0xc2, 0x34, 0x28, 0xf3, + 0x4e, 0xd0, 0xf3, 0x9d, 0xc6, 0x41, 0x6d, 0x6f, 0x2d, 0x8b, 0xef, 0xa2, 0xcd, 0xa9, 0xa0, 0xf6, + 0xc1, 0x4e, 0xbb, 0x5e, 0xdb, 0x5b, 0xcb, 0x55, 0x0f, 0x7f, 0x7a, 0x53, 0xcc, 0xbc, 0x7e, 0x53, + 0xcc, 0xfc, 0xf1, 0xa6, 0x98, 0x79, 0xf5, 0xb6, 0x38, 0xf3, 0xfa, 0x6d, 0x71, 0xe6, 0xd7, 0xb7, + 0xc5, 0x99, 0x2f, 0x2f, 0x30, 0x78, 0x87, 0x93, 0x9f, 0x72, 0x72, 0x0a, 0x9b, 0xf3, 0xf2, 0xab, + 0xec, 0xe9, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x17, 0xaf, 0x52, 0x0e, 0x64, 0x0e, 0x00, 0x00, } func (m *EventFinalityProviderCreated) Marshal() (dAtA []byte, err error) { @@ -1855,42 +1833,35 @@ func (m *EventBTCDelegationCreated) MarshalToSizedBuffer(dAtA []byte) (int, erro copy(dAtA[i:], m.NewState) i = encodeVarintEvents(dAtA, i, uint64(len(m.NewState))) i-- - dAtA[i] = 0x5a + dAtA[i] = 0x4a } if len(m.UnbondingTx) > 0 { i -= len(m.UnbondingTx) copy(dAtA[i:], m.UnbondingTx) i = encodeVarintEvents(dAtA, i, uint64(len(m.UnbondingTx))) i-- - dAtA[i] = 0x52 + dAtA[i] = 0x42 } if len(m.UnbondingTime) > 0 { i -= len(m.UnbondingTime) copy(dAtA[i:], m.UnbondingTime) i = encodeVarintEvents(dAtA, i, uint64(len(m.UnbondingTime))) i-- - dAtA[i] = 0x4a - } - if len(m.StakingAmount) > 0 { - i -= len(m.StakingAmount) - copy(dAtA[i:], m.StakingAmount) - i = encodeVarintEvents(dAtA, i, uint64(len(m.StakingAmount))) - i-- - dAtA[i] = 0x42 + dAtA[i] = 0x3a } if len(m.StakingTime) > 0 { i -= len(m.StakingTime) copy(dAtA[i:], m.StakingTime) i = encodeVarintEvents(dAtA, i, uint64(len(m.StakingTime))) i-- - dAtA[i] = 0x3a + dAtA[i] = 0x32 } if len(m.StakerBtcPkHex) > 0 { i -= len(m.StakerBtcPkHex) copy(dAtA[i:], m.StakerBtcPkHex) i = encodeVarintEvents(dAtA, i, uint64(len(m.StakerBtcPkHex))) i-- - dAtA[i] = 0x32 + dAtA[i] = 0x2a } if len(m.FinalityProviderBtcPksHex) > 0 { for iNdEx := len(m.FinalityProviderBtcPksHex) - 1; iNdEx >= 0; iNdEx-- { @@ -1898,7 +1869,7 @@ func (m *EventBTCDelegationCreated) MarshalToSizedBuffer(dAtA []byte) (int, erro copy(dAtA[i:], m.FinalityProviderBtcPksHex[iNdEx]) i = encodeVarintEvents(dAtA, i, uint64(len(m.FinalityProviderBtcPksHex[iNdEx]))) i-- - dAtA[i] = 0x2a + dAtA[i] = 0x22 } } if len(m.ParamsVersion) > 0 { @@ -1906,26 +1877,19 @@ func (m *EventBTCDelegationCreated) MarshalToSizedBuffer(dAtA []byte) (int, erro copy(dAtA[i:], m.ParamsVersion) i = encodeVarintEvents(dAtA, i, uint64(len(m.ParamsVersion))) i-- - dAtA[i] = 0x22 + dAtA[i] = 0x1a } if len(m.StakingOutputIndex) > 0 { i -= len(m.StakingOutputIndex) copy(dAtA[i:], m.StakingOutputIndex) i = encodeVarintEvents(dAtA, i, uint64(len(m.StakingOutputIndex))) i-- - dAtA[i] = 0x1a - } - if len(m.StakingOutputPkScript) > 0 { - i -= len(m.StakingOutputPkScript) - copy(dAtA[i:], m.StakingOutputPkScript) - i = encodeVarintEvents(dAtA, i, uint64(len(m.StakingOutputPkScript))) - i-- dAtA[i] = 0x12 } - if len(m.StakingTxHash) > 0 { - i -= len(m.StakingTxHash) - copy(dAtA[i:], m.StakingTxHash) - i = encodeVarintEvents(dAtA, i, uint64(len(m.StakingTxHash))) + if len(m.StakingTxHex) > 0 { + i -= len(m.StakingTxHex) + copy(dAtA[i:], m.StakingTxHex) + i = encodeVarintEvents(dAtA, i, uint64(len(m.StakingTxHex))) i-- dAtA[i] = 0xa } @@ -2434,11 +2398,7 @@ func (m *EventBTCDelegationCreated) Size() (n int) { } var l int _ = l - l = len(m.StakingTxHash) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } - l = len(m.StakingOutputPkScript) + l = len(m.StakingTxHex) if l > 0 { n += 1 + l + sovEvents(uint64(l)) } @@ -2464,10 +2424,6 @@ func (m *EventBTCDelegationCreated) Size() (n int) { if l > 0 { n += 1 + l + sovEvents(uint64(l)) } - l = len(m.StakingAmount) - if l > 0 { - n += 1 + l + sovEvents(uint64(l)) - } l = len(m.UnbondingTime) if l > 0 { n += 1 + l + sovEvents(uint64(l)) @@ -3971,7 +3927,7 @@ func (m *EventBTCDelegationCreated) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StakingTxHash", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field StakingTxHex", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3999,41 +3955,9 @@ func (m *EventBTCDelegationCreated) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.StakingTxHash = string(dAtA[iNdEx:postIndex]) + m.StakingTxHex = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StakingOutputPkScript", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StakingOutputPkScript = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StakingOutputIndex", wireType) } @@ -4065,7 +3989,7 @@ func (m *EventBTCDelegationCreated) Unmarshal(dAtA []byte) error { } m.StakingOutputIndex = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 4: + case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ParamsVersion", wireType) } @@ -4097,7 +4021,7 @@ func (m *EventBTCDelegationCreated) Unmarshal(dAtA []byte) error { } m.ParamsVersion = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 5: + case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field FinalityProviderBtcPksHex", wireType) } @@ -4129,7 +4053,7 @@ func (m *EventBTCDelegationCreated) Unmarshal(dAtA []byte) error { } m.FinalityProviderBtcPksHex = append(m.FinalityProviderBtcPksHex, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex - case 6: + case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StakerBtcPkHex", wireType) } @@ -4161,7 +4085,7 @@ func (m *EventBTCDelegationCreated) Unmarshal(dAtA []byte) error { } m.StakerBtcPkHex = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 7: + case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field StakingTime", wireType) } @@ -4193,39 +4117,7 @@ func (m *EventBTCDelegationCreated) Unmarshal(dAtA []byte) error { } m.StakingTime = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 8: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field StakingAmount", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowEvents - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthEvents - } - postIndex := iNdEx + intStringLen - if postIndex < 0 { - return ErrInvalidLengthEvents - } - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.StakingAmount = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 9: + case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field UnbondingTime", wireType) } @@ -4257,7 +4149,7 @@ func (m *EventBTCDelegationCreated) Unmarshal(dAtA []byte) error { } m.UnbondingTime = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 10: + case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field UnbondingTx", wireType) } @@ -4289,7 +4181,7 @@ func (m *EventBTCDelegationCreated) Unmarshal(dAtA []byte) error { } m.UnbondingTx = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex - case 11: + case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field NewState", wireType) }