Skip to content

Commit

Permalink
Make generate
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Mar 25, 2024
1 parent cf9fb0d commit 5b51e10
Show file tree
Hide file tree
Showing 29 changed files with 475 additions and 448 deletions.
130 changes: 65 additions & 65 deletions docs/openapi/openapi.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53521,33 +53521,15 @@ definitions:
index:
type: integer
format: int64
commonBlockHeader:
type: object
properties:
height:
type: string
format: int64
hash:
type: string
format: byte
parent_hash:
type: string
format: byte
chain_id:
type: string
format: int64
header:
$ref: '#/definitions/commonHeaderData'
title: chain specific header
commonChain:
chainsChain:
type: object
properties:
chain_name:
$ref: '#/definitions/commonChainName'
$ref: '#/definitions/chainsChainName'
chain_id:
type: string
format: int64
commonChainName:
chainsChainName:
type: string
enum:
- empty
Expand All @@ -53573,7 +53555,15 @@ definitions:
zeta_localnet = 13;
- btc_regtest: Athens
zeta_athensnet=15;
commonCoinType:
chainsReceiveStatus:
type: string
enum:
- Created
- Success
- Failed
default: Created
title: '- Created: some observer sees inbound tx'
coinCoinType:
type: string
enum:
- Zeta
Expand All @@ -53585,40 +53575,6 @@ definitions:
- Gas: Ether, BNB, Matic, Klay, BTC, etc
- ERC20: ERC20 token
- Cmd: not a real coin, rather a command
commonHeaderData:
type: object
properties:
ethereum_header:
type: string
format: byte
title: binary encoded headers; RLP for ethereum
bitcoin_header:
type: string
format: byte
title: 80-byte little-endian encoded binary data
commonProof:
type: object
properties:
ethereum_proof:
$ref: '#/definitions/ethereumProof'
bitcoin_proof:
$ref: '#/definitions/bitcoinProof'
commonPubKeySet:
type: object
properties:
secp256k1:
type: string
ed25519:
type: string
title: PubKeySet contains two pub keys , secp256k1 and ed25519
commonReceiveStatus:
type: string
enum:
- Created
- Success
- Failed
default: Created
title: '- Created: some observer sees inbound tx'
crosschainCctxStatus:
type: string
enum:
Expand Down Expand Up @@ -53702,7 +53658,7 @@ definitions:
tx_hash:
type: string
coin_type:
$ref: '#/definitions/commonCoinType'
$ref: '#/definitions/coinCoinType'
crosschainInboundTxParams:
type: object
properties:
Expand All @@ -53716,7 +53672,7 @@ definitions:
type: string
title: this address is the EOA that signs the inbound tx
coin_type:
$ref: '#/definitions/commonCoinType'
$ref: '#/definitions/coinCoinType'
asset:
type: string
title: for ERC20 coin type, the asset is an address of the ERC20 contract
Expand Down Expand Up @@ -53808,7 +53764,7 @@ definitions:
type: string
format: int64
coin_type:
$ref: '#/definitions/commonCoinType'
$ref: '#/definitions/coinCoinType'
amount:
type: string
outbound_tx_tss_nonce:
Expand Down Expand Up @@ -54011,6 +53967,14 @@ definitions:
type: string
proved:
type: boolean
cryptoPubKeySet:
type: object
properties:
secp256k1:
type: string
ed25519:
type: string
title: PubKeySet contains two pub keys , secp256k1 and ed25519
emissionsMsgWithdrawEmissionResponse:
type: object
emissionsQueryGetEmissionsFactorsResponse:
Expand Down Expand Up @@ -54069,7 +54033,7 @@ definitions:
symbol:
type: string
coin_type:
$ref: '#/definitions/commonCoinType'
$ref: '#/definitions/coinCoinType'
gas_limit:
type: string
format: uint64
Expand Down Expand Up @@ -54393,7 +54357,7 @@ definitions:
granteeAddress:
type: string
granteePubkey:
$ref: '#/definitions/commonPubKeySet'
$ref: '#/definitions/cryptoPubKeySet'
nodeStatus:
$ref: '#/definitions/observerNodeStatus'
observerNodeStatus:
Expand All @@ -54419,7 +54383,7 @@ definitions:
type: object
properties:
chain:
$ref: '#/definitions/commonChain'
$ref: '#/definitions/chainsChain'
ballot_threshold:
type: string
min_observer_delegation:
Expand Down Expand Up @@ -54473,7 +54437,7 @@ definitions:
type: array
items:
type: object
$ref: '#/definitions/commonBlockHeader'
$ref: '#/definitions/proofsBlockHeader'
pagination:
$ref: '#/definitions/v1beta1PageResponse'
observerQueryAllChainNoncesResponse:
Expand Down Expand Up @@ -54537,7 +54501,7 @@ definitions:
type: object
properties:
block_header:
$ref: '#/definitions/commonBlockHeader'
$ref: '#/definitions/proofsBlockHeader'
observerQueryGetBlockHeaderStateResponse:
type: object
properties:
Expand Down Expand Up @@ -54619,7 +54583,7 @@ definitions:
type: array
items:
type: object
$ref: '#/definitions/commonChain'
$ref: '#/definitions/chainsChain'
observerQueryTssHistoryResponse:
type: object
properties:
Expand Down Expand Up @@ -54664,6 +54628,42 @@ definitions:
type: string
vote_type:
$ref: '#/definitions/observerVoteType'
proofsBlockHeader:
type: object
properties:
height:
type: string
format: int64
hash:
type: string
format: byte
parent_hash:
type: string
format: byte
chain_id:
type: string
format: int64
header:
$ref: '#/definitions/proofsHeaderData'
title: chain specific header
proofsHeaderData:
type: object
properties:
ethereum_header:
type: string
format: byte
title: binary encoded headers; RLP for ethereum
bitcoin_header:
type: string
format: byte
title: 80-byte little-endian encoded binary data
proofsProof:
type: object
properties:
ethereum_proof:
$ref: '#/definitions/ethereumProof'
bitcoin_proof:
$ref: '#/definitions/bitcoinProof'
protobufAny:
type: object
properties:
Expand Down
14 changes: 7 additions & 7 deletions docs/spec/crosschain/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ message MsgAddToOutTxTracker {
int64 chain_id = 2;
uint64 nonce = 3;
string tx_hash = 4;
common.Proof proof = 5;
proofs.Proof proof = 5;
string block_hash = 6;
int64 tx_index = 7;
}
Expand All @@ -31,8 +31,8 @@ message MsgAddToInTxTracker {
string creator = 1;
int64 chain_id = 2;
string tx_hash = 3;
common.CoinType coin_type = 4;
common.Proof proof = 5;
coin.CoinType coin_type = 4;
proofs.Proof proof = 5;
string block_hash = 6;
int64 tx_index = 7;
}
Expand Down Expand Up @@ -124,10 +124,10 @@ message MsgVoteOnObservedOutboundTx {
string observed_outTx_effective_gas_price = 11;
uint64 observed_outTx_effective_gas_limit = 12;
string value_received = 5;
common.ReceiveStatus status = 6;
chains.ReceiveStatus status = 6;
int64 outTx_chain = 7;
uint64 outTx_tss_nonce = 8;
common.CoinType coin_type = 9;
coin.CoinType coin_type = 9;
}
```

Expand Down Expand Up @@ -187,7 +187,7 @@ message MsgVoteOnObservedInboundTx {
string in_tx_hash = 9;
uint64 in_block_height = 10;
uint64 gas_limit = 11;
common.CoinType coin_type = 12;
coin.CoinType coin_type = 12;
string tx_origin = 13;
string asset = 14;
uint64 event_index = 15;
Expand Down Expand Up @@ -254,7 +254,7 @@ message MsgCreateTSSVoter {
string creator = 1;
string tss_pubkey = 2;
int64 keyGenZetaHeight = 3;
common.ReceiveStatus status = 4;
chains.ReceiveStatus status = 4;
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/spec/fungible/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ message MsgDeployFungibleCoinZRC20 {
uint32 decimals = 4;
string name = 5;
string symbol = 6;
common.CoinType coin_type = 7;
coin.CoinType coin_type = 7;
int64 gas_limit = 8;
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/spec/observer/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ message MsgAddBlockHeader {
int64 chain_id = 2;
bytes block_hash = 3;
int64 height = 4;
common.HeaderData header = 5;
proofs.HeaderData header = 5;
}
```

Expand Down
Loading

0 comments on commit 5b51e10

Please sign in to comment.