Skip to content

Commit

Permalink
"docs: update module and OpenAPI specs from zeta-chain/node"
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev authored Aug 31, 2023
1 parent b89d905 commit 2ebb65e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 3 deletions.
9 changes: 9 additions & 0 deletions docs/architecture/modules/crosschain/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,12 @@ message MsgWhitelistERC20 {
}
```

## MsgUpdateTssAddress

```proto
message MsgUpdateTssAddress {
string creator = 1;
string tss_pubkey = 2;
}
```

9 changes: 6 additions & 3 deletions docs/architecture/modules/observer/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

## 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;
bool add_node_account_only = 4;
}
```

Expand Down Expand Up @@ -50,6 +52,7 @@ Only the admin policy account is authorized to broadcast this message.
message MsgUpdatePermissionFlags {
string creator = 1;
bool isInboundEnabled = 3;
bool isOutboundEnabled = 4;
}
```

Expand Down
29 changes: 29 additions & 0 deletions static/data/openapi.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27227,6 +27227,20 @@ paths:
$ref: '#/definitions/googlerpcStatus'
tags:
- Query
/zeta-chain/crosschain/tssHistory: |
get:
operationId: Query_TssHistory
responses:
"200":
description: A successful response.
schema:
$ref: '#/definitions/crosschainQueryTssHistoryResponse'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/googlerpcStatus'
tags:
- Query
/zeta-chain/observer/all_observer_mappers: |
get:
operationId: Query_AllObserverMappers
Expand Down Expand Up @@ -50213,6 +50227,8 @@ definitions:
type: object
crosschainMsgRemoveFromOutTxTrackerResponse:
type: object
crosschainMsgUpdateTssAddressResponse:
type: object
crosschainMsgVoteOnObservedInboundTxResponse:
type: object
crosschainMsgVoteOnObservedOutboundTxResponse:
Expand Down Expand Up @@ -50266,6 +50282,8 @@ definitions:
outbound_tx_observed_external_height:
type: string
format: uint64
tss_pubkey:
type: string
crosschainPendingNonces:
type: object
properties:
Expand Down Expand Up @@ -50440,6 +50458,14 @@ definitions:
properties:
feeInZeta:
type: string
crosschainQueryTssHistoryResponse:
type: object
properties:
tss_list:
type: array
items:
type: object
$ref: '#/definitions/crosschainTSS'
crosschainTSS:
type: object
properties:
Expand Down Expand Up @@ -50736,6 +50762,8 @@ definitions:
properties:
isInboundEnabled:
type: boolean
isOutboundEnabled:
type: boolean
observerPolicy_Type:
type: string
enum:
Expand All @@ -50744,6 +50772,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:
Expand Down

0 comments on commit 2ebb65e

Please sign in to comment.