diff --git a/docs/spec/observer/messages.md b/docs/spec/observer/messages.md index 1c4d2b04b1..9cddf0afd3 100644 --- a/docs/spec/observer/messages.md +++ b/docs/spec/observer/messages.md @@ -117,8 +117,8 @@ Authorized: admin policy group 2 (admin update) message MsgResetChainNonces { string creator = 1; int64 chain_id = 2; - uint64 chain_nonce_low = 3; - uint64 chain_nonce_high = 4; + int64 chain_nonce_low = 3; + int64 chain_nonce_high = 4; } ``` diff --git a/proto/observer/tx.proto b/proto/observer/tx.proto index c1e3b49d9e..85e0ffe9ef 100644 --- a/proto/observer/tx.proto +++ b/proto/observer/tx.proto @@ -93,8 +93,8 @@ message MsgUpdateKeygenResponse {} message MsgResetChainNonces { string creator = 1; int64 chain_id = 2; - uint64 chain_nonce_low = 3; - uint64 chain_nonce_high = 4; + int64 chain_nonce_low = 3; + int64 chain_nonce_high = 4; } message MsgResetChainNoncesResponse {} diff --git a/typescript/observer/tx_pb.d.ts b/typescript/observer/tx_pb.d.ts index 3543427ae3..4f7a346cc2 100644 --- a/typescript/observer/tx_pb.d.ts +++ b/typescript/observer/tx_pb.d.ts @@ -465,12 +465,12 @@ export declare class MsgResetChainNonces extends Message { chainId: bigint; /** - * @generated from field: uint64 chain_nonce_low = 3; + * @generated from field: int64 chain_nonce_low = 3; */ chainNonceLow: bigint; /** - * @generated from field: uint64 chain_nonce_high = 4; + * @generated from field: int64 chain_nonce_high = 4; */ chainNonceHigh: bigint; diff --git a/x/observer/client/cli/tx_reset_chain_nonces.go b/x/observer/client/cli/tx_reset_chain_nonces.go index 9f1c81eccb..01a992bd9e 100644 --- a/x/observer/client/cli/tx_reset_chain_nonces.go +++ b/x/observer/client/cli/tx_reset_chain_nonces.go @@ -27,14 +27,14 @@ func CmdResetChainNonces() *cobra.Command { return err } - // get chainNonceLow as uint64 - chainNonceLow, err := strconv.ParseUint(args[1], 10, 64) + // get chainNonceLow as int64 + chainNonceLow, err := strconv.ParseInt(args[1], 10, 64) if err != nil { return err } - // get chainNonceHigh as uint64 - chainNonceHigh, err := strconv.ParseUint(args[2], 10, 64) + // get chainNonceHigh as int64 + chainNonceHigh, err := strconv.ParseInt(args[2], 10, 64) if err != nil { return err } diff --git a/x/observer/keeper/msg_server_reset_chain_nonces.go b/x/observer/keeper/msg_server_reset_chain_nonces.go index 997e693b20..48a9f59eb4 100644 --- a/x/observer/keeper/msg_server_reset_chain_nonces.go +++ b/x/observer/keeper/msg_server_reset_chain_nonces.go @@ -30,7 +30,8 @@ func (k msgServer) ResetChainNonces(goCtx context.Context, msg *types.MsgResetCh chainNonce := types.ChainNonces{ Index: chain.ChainName.String(), ChainId: chain.ChainId, - Nonce: msg.ChainNonceHigh, + // #nosec G701 always positive + Nonce: uint64(msg.ChainNonceHigh), // #nosec G701 always positive FinalizedHeight: uint64(ctx.BlockHeight()), } @@ -38,10 +39,8 @@ func (k msgServer) ResetChainNonces(goCtx context.Context, msg *types.MsgResetCh // set pending nonces p := types.PendingNonces{ - // #nosec G701 always in the range - NonceLow: int64(msg.ChainNonceLow), - // #nosec G701 always in the range - NonceHigh: int64(msg.ChainNonceHigh), + NonceLow: msg.ChainNonceLow, + NonceHigh: msg.ChainNonceHigh, ChainId: chain.ChainId, Tss: tss.TssPubkey, } diff --git a/x/observer/keeper/msg_server_reset_chain_nonces_test.go b/x/observer/keeper/msg_server_reset_chain_nonces_test.go index fb12c70a1f..9a0c8cd696 100644 --- a/x/observer/keeper/msg_server_reset_chain_nonces_test.go +++ b/x/observer/keeper/msg_server_reset_chain_nonces_test.go @@ -98,8 +98,8 @@ func TestMsgServer_ResetChainNonces(t *testing.T) { _, err := srv.ResetChainNonces(sdk.WrapSDKContext(ctx), &types.MsgResetChainNonces{ Creator: admin, ChainId: chainId, - ChainNonceLow: uint64(nonceLow), - ChainNonceHigh: uint64(nonceHigh), + ChainNonceLow: int64(nonceLow), + ChainNonceHigh: int64(nonceHigh), }) require.NoError(t, err) @@ -121,8 +121,8 @@ func TestMsgServer_ResetChainNonces(t *testing.T) { _, err = srv.ResetChainNonces(sdk.WrapSDKContext(ctx), &types.MsgResetChainNonces{ Creator: admin, ChainId: chainId, - ChainNonceLow: uint64(0), - ChainNonceHigh: uint64(0), + ChainNonceLow: 0, + ChainNonceHigh: 0, }) require.NoError(t, err) diff --git a/x/observer/types/message_reset_chain_nonces.go b/x/observer/types/message_reset_chain_nonces.go index 89bf5698e5..71e438d103 100644 --- a/x/observer/types/message_reset_chain_nonces.go +++ b/x/observer/types/message_reset_chain_nonces.go @@ -1,6 +1,8 @@ package types import ( + "errors" + cosmoserrors "cosmossdk.io/errors" "github.com/zeta-chain/zetacore/common" @@ -12,7 +14,7 @@ const TypeMsgResetChainNonces = "reset_chain_nonces" var _ sdk.Msg = &MsgResetChainNonces{} -func NewMsgResetChainNonces(creator string, chainID int64, chainNonceLow uint64, chainNonceHigh uint64) *MsgResetChainNonces { +func NewMsgResetChainNonces(creator string, chainID int64, chainNonceLow int64, chainNonceHigh int64) *MsgResetChainNonces { return &MsgResetChainNonces{ Creator: creator, ChainId: chainID, @@ -54,5 +56,17 @@ func (msg *MsgResetChainNonces) ValidateBasic() error { return cosmoserrors.Wrapf(sdkerrors.ErrInvalidChainID, "invalid chain id (%d)", msg.ChainId) } + if msg.ChainNonceLow < 0 { + return errors.New("chain nonce low must be greater or equal 0") + } + + if msg.ChainNonceHigh < 0 { + return errors.New("chain nonce high must be greater or equal 0") + } + + if msg.ChainNonceLow > msg.ChainNonceHigh { + return errors.New("chain nonce low must be less or equal than chain nonce high") + } + return nil } diff --git a/x/observer/types/message_reset_chain_nonces_test.go b/x/observer/types/message_reset_chain_nonces_test.go index 21545dc52d..8c79fbf4ea 100644 --- a/x/observer/types/message_reset_chain_nonces_test.go +++ b/x/observer/types/message_reset_chain_nonces_test.go @@ -3,7 +3,6 @@ package types_test import ( "testing" - sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/stretchr/testify/require" "github.com/zeta-chain/zetacore/common" "github.com/zeta-chain/zetacore/testutil/sample" @@ -12,18 +11,29 @@ import ( func TestMsgResetChainNonces_ValidateBasic(t *testing.T) { tests := []struct { - name string - msg types.MsgResetChainNonces - err error + name string + msg types.MsgResetChainNonces + wantErr bool }{ { - name: "valid message", + name: "valid message chain nonce high greater than nonce low", msg: types.MsgResetChainNonces{ Creator: sample.AccAddress(), ChainId: common.ExternalChainList()[0].ChainId, ChainNonceLow: 1, ChainNonceHigh: 5, }, + wantErr: false, + }, + { + name: "valid message chain nonce high same as nonce low", + msg: types.MsgResetChainNonces{ + Creator: sample.AccAddress(), + ChainId: common.ExternalChainList()[0].ChainId, + ChainNonceLow: 1, + ChainNonceHigh: 1, + }, + wantErr: false, }, { name: "invalid address", @@ -31,23 +41,51 @@ func TestMsgResetChainNonces_ValidateBasic(t *testing.T) { Creator: "invalid_address", ChainId: common.ExternalChainList()[0].ChainId, }, - err: sdkerrors.ErrInvalidAddress, + wantErr: true, }, - { name: "invalid chain ID", msg: types.MsgResetChainNonces{ Creator: sample.AccAddress(), ChainId: 999, }, - err: sdkerrors.ErrInvalidChainID, + wantErr: true, + }, + { + name: "invalid chain nonce low", + msg: types.MsgResetChainNonces{ + Creator: sample.AccAddress(), + ChainId: common.ExternalChainList()[0].ChainId, + ChainNonceLow: -1, + }, + wantErr: true, + }, + { + name: "invalid chain nonce high", + msg: types.MsgResetChainNonces{ + Creator: sample.AccAddress(), + ChainId: common.ExternalChainList()[0].ChainId, + ChainNonceLow: 1, + ChainNonceHigh: -1, + }, + wantErr: true, + }, + { + name: "invalid chain nonce low greater than chain nonce high", + msg: types.MsgResetChainNonces{ + Creator: sample.AccAddress(), + ChainId: common.ExternalChainList()[0].ChainId, + ChainNonceLow: 1, + ChainNonceHigh: 0, + }, + wantErr: true, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { err := tt.msg.ValidateBasic() - if tt.err != nil { - require.ErrorIs(t, err, tt.err) + if tt.wantErr { + require.Error(t, err) return } require.NoError(t, err) diff --git a/x/observer/types/tx.pb.go b/x/observer/types/tx.pb.go index 6c73455ae6..481efd0716 100644 --- a/x/observer/types/tx.pb.go +++ b/x/observer/types/tx.pb.go @@ -825,8 +825,8 @@ var xxx_messageInfo_MsgUpdateKeygenResponse proto.InternalMessageInfo type MsgResetChainNonces struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` ChainId int64 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` - ChainNonceLow uint64 `protobuf:"varint,3,opt,name=chain_nonce_low,json=chainNonceLow,proto3" json:"chain_nonce_low,omitempty"` - ChainNonceHigh uint64 `protobuf:"varint,4,opt,name=chain_nonce_high,json=chainNonceHigh,proto3" json:"chain_nonce_high,omitempty"` + ChainNonceLow int64 `protobuf:"varint,3,opt,name=chain_nonce_low,json=chainNonceLow,proto3" json:"chain_nonce_low,omitempty"` + ChainNonceHigh int64 `protobuf:"varint,4,opt,name=chain_nonce_high,json=chainNonceHigh,proto3" json:"chain_nonce_high,omitempty"` } func (m *MsgResetChainNonces) Reset() { *m = MsgResetChainNonces{} } @@ -876,14 +876,14 @@ func (m *MsgResetChainNonces) GetChainId() int64 { return 0 } -func (m *MsgResetChainNonces) GetChainNonceLow() uint64 { +func (m *MsgResetChainNonces) GetChainNonceLow() int64 { if m != nil { return m.ChainNonceLow } return 0 } -func (m *MsgResetChainNonces) GetChainNonceHigh() uint64 { +func (m *MsgResetChainNonces) GetChainNonceHigh() int64 { if m != nil { return m.ChainNonceHigh } @@ -950,71 +950,71 @@ func init() { func init() { proto.RegisterFile("observer/tx.proto", fileDescriptor_1bcd40fa296a2b1d) } var fileDescriptor_1bcd40fa296a2b1d = []byte{ - // 1022 bytes of a gzipped FileDescriptorProto + // 1021 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcb, 0x6e, 0xdb, 0x46, - 0x14, 0x35, 0x63, 0xc7, 0xb1, 0xaf, 0x1c, 0x3f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reference imports to suppress errors if they are not otherwise used. @@ -3975,7 +3975,7 @@ func (m *MsgResetChainNonces) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChainNonceLow |= uint64(b&0x7F) << shift + m.ChainNonceLow |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -3994,7 +3994,7 @@ func (m *MsgResetChainNonces) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ChainNonceHigh |= uint64(b&0x7F) << shift + m.ChainNonceHigh |= int64(b&0x7F) << shift if b < 0x80 { break }