diff --git a/docs/cli/zetacored/zetacored_query_observer_show-node-account.md b/docs/cli/zetacored/zetacored_query_observer_show-node-account.md index 673a341b36..e597d089e1 100644 --- a/docs/cli/zetacored/zetacored_query_observer_show-node-account.md +++ b/docs/cli/zetacored/zetacored_query_observer_show-node-account.md @@ -3,7 +3,7 @@ shows a NodeAccount ``` -zetacored query observer show-node-account [index] [flags] +zetacored query observer show-node-account [operator_address] [flags] ``` ### Options diff --git a/docs/cli/zetacored/zetacored_tx_observer.md b/docs/cli/zetacored/zetacored_tx_observer.md index a072bed60f..72bcc4c47a 100644 --- a/docs/cli/zetacored/zetacored_tx_observer.md +++ b/docs/cli/zetacored/zetacored_tx_observer.md @@ -31,4 +31,5 @@ zetacored tx observer [flags] * [zetacored tx observer update-client-params](zetacored_tx_observer_update-client-params.md) - Broadcast message updateClientParams * [zetacored tx observer update-crosschain-flags](zetacored_tx_observer_update-crosschain-flags.md) - Update crosschain flags * [zetacored tx observer update-keygen](zetacored_tx_observer_update-keygen.md) - command to update the keygen block via a group proposal +* [zetacored tx observer update-observer](zetacored_tx_observer_update-observer.md) - Broadcast message add-observer diff --git a/docs/cli/zetacored/zetacored_tx_observer_update-observer.md b/docs/cli/zetacored/zetacored_tx_observer_update-observer.md new file mode 100644 index 0000000000..bee8851349 --- /dev/null +++ b/docs/cli/zetacored/zetacored_tx_observer_update-observer.md @@ -0,0 +1,52 @@ +# tx observer update-observer + +Broadcast message add-observer + +``` +zetacored tx observer update-observer [old-observer-address] [new-observer-address] [update-reason] [flags] +``` + +### Options + +``` + -a, --account-number uint The account number of the signing account (offline mode only) + --aux Generate aux signer data instead of sending a tx + -b, --broadcast-mode string Transaction broadcasting mode (sync|async|block) + --dry-run ignore the --gas flag and perform a simulation of a transaction, but don't broadcast it (when enabled, the local Keybase is not accessible) + --fee-granter string Fee granter grants fees for the transaction + --fee-payer string Fee payer pays fees for the transaction instead of deducting from the signer + --fees string Fees to pay along with transaction; eg: 10uatom + --from string Name or address of private key with which to sign + --gas string gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically. Note: "auto" option doesn't always report accurate results. Set a valid coin value to adjust the result. Can be used instead of "fees". (default 200000) + --gas-adjustment float adjustment factor to be multiplied against the estimate returned by the tx simulation; if the gas limit is set manually this flag is ignored (default 1) + --gas-prices string Gas prices in decimal format to determine the transaction fee (e.g. 0.1uatom) + --generate-only Build an unsigned transaction and write it to STDOUT (when enabled, the local Keybase only accessed when providing a key name) + -h, --help help for update-observer + --keyring-backend string Select keyring's backend (os|file|kwallet|pass|test|memory) + --keyring-dir string The client Keyring directory; if omitted, the default 'home' directory will be used + --ledger Use a connected Ledger device + --node string [host]:[port] to tendermint rpc interface for this chain + --note string Note to add a description to the transaction (previously --memo) + --offline Offline mode (does not allow any online functionality) + -o, --output string Output format (text|json) + -s, --sequence uint The sequence number of the signing account (offline mode only) + --sign-mode string Choose sign mode (direct|amino-json|direct-aux), this is an advanced feature + --timeout-height uint Set a block timeout height to prevent the tx from being committed past a certain height + --tip string Tip is the amount that is going to be transferred to the fee payer on the target chain. This flag is only valid when used with --aux, and is ignored if the target chain didn't enable the TipDecorator + -y, --yes Skip tx broadcasting prompt confirmation +``` + +### Options inherited from parent commands + +``` + --chain-id string The network chain ID + --home string directory for config and data + --log_format string The logging format (json|plain) + --log_level string The logging level (trace|debug|info|warn|error|fatal|panic) + --trace print out full stack trace on errors +``` + +### SEE ALSO + +* [zetacored tx observer](zetacored_tx_observer.md) - observer transactions subcommands + diff --git a/docs/spec/observer/messages.md b/docs/spec/observer/messages.md index 4b8142a6e4..84b9e4dbd4 100644 --- a/docs/spec/observer/messages.md +++ b/docs/spec/observer/messages.md @@ -2,9 +2,6 @@ ## MsgAddObserver -AddObserver adds in a new observer to the store.It can be executed using an admin policy account -Once added, the function also resets keygen and pauses inbound so that a new TSS can be generated. - ```proto message MsgAddObserver { string creator = 1; diff --git a/typescript/observer/observer_pb.d.ts b/typescript/observer/observer_pb.d.ts index 60f70c21cb..31735fcc7e 100644 --- a/typescript/observer/observer_pb.d.ts +++ b/typescript/observer/observer_pb.d.ts @@ -37,6 +37,26 @@ export declare enum ObservationType { TSSKeySign = 4, } +/** + * @generated from enum zetachain.zetacore.observer.ObserverUpdateReason + */ +export declare enum ObserverUpdateReason { + /** + * @generated from enum value: EmptyObserverUpdateReason = 0; + */ + EmptyObserverUpdateReason = 0, + + /** + * @generated from enum value: Tombstoned = 1; + */ + Tombstoned = 1, + + /** + * @generated from enum value: AdminUpdate = 2; + */ + AdminUpdate = 2, +} + /** * @generated from message zetachain.zetacore.observer.ObserverMapper */ diff --git a/typescript/observer/tx_pb.d.ts b/typescript/observer/tx_pb.d.ts index c1933dd04f..47e1512fbb 100644 --- a/typescript/observer/tx_pb.d.ts +++ b/typescript/observer/tx_pb.d.ts @@ -5,11 +5,70 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; +import type { ObserverUpdateReason } from "./observer_pb.js"; import type { HeaderData } from "../common/common_pb.js"; import type { CoreParams } from "./params_pb.js"; import type { Blame } from "./blame_pb.js"; import type { BlockHeaderVerificationFlags, GasPriceIncreaseFlags } from "./crosschain_flags_pb.js"; +/** + * @generated from message zetachain.zetacore.observer.MsgUpdateObserver + */ +export declare class MsgUpdateObserver extends Message { + /** + * @generated from field: string creator = 1; + */ + creator: string; + + /** + * @generated from field: string old_observer_address = 2; + */ + oldObserverAddress: string; + + /** + * @generated from field: string new_observer_address = 3; + */ + newObserverAddress: string; + + /** + * @generated from field: zetachain.zetacore.observer.ObserverUpdateReason update_reason = 4; + */ + updateReason: ObserverUpdateReason; + + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgUpdateObserver"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateObserver; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateObserver; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateObserver; + + static equals(a: MsgUpdateObserver | PlainMessage | undefined, b: MsgUpdateObserver | PlainMessage | undefined): boolean; +} + +/** + * @generated from message zetachain.zetacore.observer.MsgUpdateObserverResponse + */ +export declare class MsgUpdateObserverResponse extends Message { + constructor(data?: PartialMessage); + + static readonly runtime: typeof proto3; + static readonly typeName = "zetachain.zetacore.observer.MsgUpdateObserverResponse"; + static readonly fields: FieldList; + + static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateObserverResponse; + + static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateObserverResponse; + + static fromJsonString(jsonString: string, options?: Partial): MsgUpdateObserverResponse; + + static equals(a: MsgUpdateObserverResponse | PlainMessage | undefined, b: MsgUpdateObserverResponse | PlainMessage | undefined): boolean; +} + /** * @generated from message zetachain.zetacore.observer.MsgAddBlockHeader */ diff --git a/x/observer/keeper/msg_server_update_observer_test.go b/x/observer/keeper/msg_server_update_observer_test.go index 16a0344674..82ed545051 100644 --- a/x/observer/keeper/msg_server_update_observer_test.go +++ b/x/observer/keeper/msg_server_update_observer_test.go @@ -1,6 +1,10 @@ package keeper_test import ( + "math/rand" + "testing" + "time" + sdk "github.com/cosmos/cosmos-sdk/types" slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" "github.com/stretchr/testify/assert" @@ -8,9 +12,6 @@ import ( "github.com/zeta-chain/zetacore/testutil/sample" "github.com/zeta-chain/zetacore/x/observer/keeper" "github.com/zeta-chain/zetacore/x/observer/types" - "math/rand" - "testing" - "time" ) func TestMsgServer_UpdateObserver(t *testing.T) { diff --git a/x/observer/types/errors.go b/x/observer/types/errors.go index 7e1169016e..0e0512ff0a 100644 --- a/x/observer/types/errors.go +++ b/x/observer/types/errors.go @@ -31,7 +31,7 @@ var ( ErrNoParentHash = errorsmod.Register(ModuleName, 1120, "no parent hash") ErrInvalidTimestamp = errorsmod.Register(ModuleName, 1121, "invalid timestamp") ErrBlockHeaderVerificationDisabled = errorsmod.Register(ModuleName, 1122, "block header verification is disabled") - ErrLastObserverCountNotFound = errorsmod.Register(ModuleName, 1122, "last observer count not found") - ErrUpdateObserver = errorsmod.Register(ModuleName, 1123, "unable to update observer") - ErrNodeAccountNotFound = errorsmod.Register(ModuleName, 1124, "node account not found") + ErrLastObserverCountNotFound = errorsmod.Register(ModuleName, 1123, "last observer count not found") + ErrUpdateObserver = errorsmod.Register(ModuleName, 1124, "unable to update observer") + ErrNodeAccountNotFound = errorsmod.Register(ModuleName, 1125, "node account not found") ) diff --git a/x/observer/types/message_update_observer_test.go b/x/observer/types/message_update_observer_test.go index 1e2d716375..7b2cd316f0 100644 --- a/x/observer/types/message_update_observer_test.go +++ b/x/observer/types/message_update_observer_test.go @@ -1,11 +1,12 @@ package types_test import ( + "testing" + sdkerrors "github.com/cosmos/cosmos-sdk/types/errors" "github.com/stretchr/testify/require" "github.com/zeta-chain/zetacore/testutil/sample" "github.com/zeta-chain/zetacore/x/observer/types" - "testing" ) func TestNewMsgUpdateObserver(t *testing.T) { diff --git a/x/observer/types/tx.pb.go b/x/observer/types/tx.pb.go index 69e89af688..bdf68b3568 100644 --- a/x/observer/types/tx.pb.go +++ b/x/observer/types/tx.pb.go @@ -535,10 +535,11 @@ func (m *MsgAddBlameVoteResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgAddBlameVoteResponse proto.InternalMessageInfo type MsgUpdateCrosschainFlags struct { - Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` - IsInboundEnabled bool `protobuf:"varint,3,opt,name=isInboundEnabled,proto3" json:"isInboundEnabled,omitempty"` - IsOutboundEnabled bool `protobuf:"varint,4,opt,name=isOutboundEnabled,proto3" json:"isOutboundEnabled,omitempty"` - GasPriceIncreaseFlags *GasPriceIncreaseFlags `protobuf:"bytes,5,opt,name=gasPriceIncreaseFlags,proto3" json:"gasPriceIncreaseFlags,omitempty"` + Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` + IsInboundEnabled bool `protobuf:"varint,3,opt,name=isInboundEnabled,proto3" json:"isInboundEnabled,omitempty"` + IsOutboundEnabled bool `protobuf:"varint,4,opt,name=isOutboundEnabled,proto3" json:"isOutboundEnabled,omitempty"` + GasPriceIncreaseFlags *GasPriceIncreaseFlags `protobuf:"bytes,5,opt,name=gasPriceIncreaseFlags,proto3" json:"gasPriceIncreaseFlags,omitempty"` + BlockHeaderVerificationFlags *BlockHeaderVerificationFlags `protobuf:"bytes,6,opt,name=blockHeaderVerificationFlags,proto3" json:"blockHeaderVerificationFlags,omitempty"` } func (m *MsgUpdateCrosschainFlags) Reset() { *m = MsgUpdateCrosschainFlags{} } @@ -602,6 +603,13 @@ func (m *MsgUpdateCrosschainFlags) GetGasPriceIncreaseFlags() *GasPriceIncreaseF return nil } +func (m *MsgUpdateCrosschainFlags) GetBlockHeaderVerificationFlags() *BlockHeaderVerificationFlags { + if m != nil { + return m.BlockHeaderVerificationFlags + } + return nil +} + type MsgUpdateCrosschainFlagsResponse struct { } @@ -746,61 +754,63 @@ func init() { func init() { proto.RegisterFile("observer/tx.proto", fileDescriptor_1bcd40fa296a2b1d) } var fileDescriptor_1bcd40fa296a2b1d = []byte{ - // 855 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcd, 0x6e, 0xdb, 0x46, - 0x10, 0x36, 0xeb, 0xc4, 0x71, 0xc6, 0xae, 0x63, 0x33, 0x76, 0x2c, 0xc9, 0x88, 0x22, 0xf0, 0x52, - 0xb7, 0x75, 0x49, 0x47, 0x69, 0x8b, 0xa2, 0x40, 0x0f, 0x72, 0x7f, 0x1c, 0xa1, 0x48, 0x6d, 0x10, - 0x68, 0x0e, 0xbd, 0x10, 0x4b, 0xee, 0x98, 0x24, 0x42, 0xed, 0x0a, 0x5c, 0xaa, 0x91, 0x7a, 0xe8, - 0xbd, 0x87, 0x02, 0x7d, 0x95,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e3, 0xa6, 0xf6, 0xc7, 0x75, - 0x73, 0xed, 0xf5, 0x75, 0x73, 0xed, 0xef, 0xeb, 0xe6, 0xda, 0x4f, 0x96, 0x1f, 0x26, 0xc1, 0xc0, - 0x4d, 0xbf, 0xb0, 0x56, 0xca, 0xf8, 0x89, 0x24, 0xb7, 0x0a, 0x72, 0x6b, 0x68, 0x4d, 0xfe, 0xd9, - 0x8d, 0xfa, 0x28, 0xdc, 0x0d, 0xf9, 0x77, 0xe9, 0xc9, 0x9b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0c, - 0x76, 0xfe, 0xbe, 0xf2, 0x09, 0x00, 0x00, + // 886 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4d, 0x6f, 0xdb, 0x46, + 0x10, 0x35, 0xe3, 0xc4, 0x71, 0xc6, 0xae, 0x63, 0x33, 0x76, 0x2c, 0xcb, 0x8d, 0x62, 0xf0, 0x52, + 0xb7, 0x75, 0x45, 0x47, 0x69, 0x8b, 0xb6, 0x40, 0x0f, 0x72, 0x3f, 0x1c, 0xa1, 0x48, 0x6d, 0x10, + 0xa8, 0x0f, 0xbd, 0x10, 0x4b, 0xee, 0x98, 0x24, 0x42, 0xed, 0x0a, 0x5c, 0xaa, 0xb1, 0x0a, 0xb4, + 0xf7, 0x1e, 0x0a, 0xf4, 0xaf, 0xf4, 0x3f, 0xf4, 0x90, 0x63, 0x8e, 0x3d, 0x15, 0x85, 0x7d, 0xea, + 0x2f, 0xe8, 0x35, 0xe0, 0x2e, 0xb9, 0x12, 0x25, 0x99, 0x96, 0x72, 0x12, 0x77, 0xf7, 0xcd, 0x9b, + 0x79, 0x33, 0x8f, 0x5c, 0xc1, 0x06, 0xf7, 0x04, 0x26, 0x3f, 0x61, 0x62, 0xa7, 0x17, 0xcd, 0x5e, + 0xc2, 0x53, 0x6e, 0xee, 0xfe, 0x8c, 0x29, 0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xb0, 0xef, 0x65, + 0x17, 0xbc, 0x9d, 0x31, 0x7e, 0x24, 0xc9, 0xed, 0x82, 0xdc, 0xbe, 0xb0, 0x87, 0x7f, 0x2c, 0x07, + 0x3d, 0x14, 0xde, 0x92, 0xfc, 0xb7, 0xf6, 0xf4, 0x4d, 0x00, 0x00, 0x00, 0xff, 0xff, 0x26, 0x4e, + 0x23, 0xa3, 0x71, 0x0a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1483,6 +1493,18 @@ func (m *MsgUpdateCrosschainFlags) MarshalToSizedBuffer(dAtA []byte) (int, error _ = i var l int _ = l + if m.BlockHeaderVerificationFlags != nil { + { + size, err := m.BlockHeaderVerificationFlags.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTx(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x32 + } if m.GasPriceIncreaseFlags != nil { { size, err := m.GasPriceIncreaseFlags.MarshalToSizedBuffer(dAtA[:i]) @@ -1792,6 +1814,10 @@ func (m *MsgUpdateCrosschainFlags) Size() (n int) { l = m.GasPriceIncreaseFlags.Size() n += 1 + l + sovTx(uint64(l)) } + if m.BlockHeaderVerificationFlags != nil { + l = m.BlockHeaderVerificationFlags.Size() + n += 1 + l + sovTx(uint64(l)) + } return n } @@ -2995,6 +3021,42 @@ func (m *MsgUpdateCrosschainFlags) Unmarshal(dAtA []byte) error { return err } iNdEx = postIndex + case 6: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field BlockHeaderVerificationFlags", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthTx + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTx + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.BlockHeaderVerificationFlags == nil { + m.BlockHeaderVerificationFlags = &BlockHeaderVerificationFlags{} + } + if err := m.BlockHeaderVerificationFlags.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:])