From 621b7ed971939cfe375ed8cf42480b83cd8dfb7a Mon Sep 17 00:00:00 2001 From: fadeev Date: Wed, 30 Aug 2023 00:05:59 +0000 Subject: [PATCH] "docs: update module and OpenAPI specs from zeta-chain/node" --- docs/architecture/modules/observer/messages.md | 8 +++++--- static/data/openapi.swagger.yaml | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/architecture/modules/observer/messages.md b/docs/architecture/modules/observer/messages.md index cfac959d..47ff5021 100644 --- a/docs/architecture/modules/observer/messages.md +++ b/docs/architecture/modules/observer/messages.md @@ -2,13 +2,14 @@ ## MsgAddObserver -Not implemented. +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; - int64 chain_id = 2; - ObservationType observationType = 3; + string observer_address = 2; + string zetaclient_grantee_pubkey = 3; } ``` @@ -50,6 +51,7 @@ Only the admin policy account is authorized to broadcast this message. message MsgUpdatePermissionFlags { string creator = 1; bool isInboundEnabled = 3; + bool isOutboundEnabled = 4; } ``` diff --git a/static/data/openapi.swagger.yaml b/static/data/openapi.swagger.yaml index 57f80145..9e8d7631 100644 --- a/static/data/openapi.swagger.yaml +++ b/static/data/openapi.swagger.yaml @@ -50736,6 +50736,8 @@ definitions: properties: isInboundEnabled: type: boolean + isOutboundEnabled: + type: boolean observerPolicy_Type: type: string enum: @@ -50744,6 +50746,7 @@ definitions: - update_client_params - update_keygen_block - out_tx_tracker + - add_observer default: stop_inbound_cctx title: '- stop_inbound_cctx: some observer sees inbound tx' observerQueryAllBlameRecordsResponse: