Skip to content

Commit

Permalink
(api/docgen): Example types (celestiaorg#1921)
Browse files Browse the repository at this point in the history
Replaces celestiaorg#1408, closes celestiaorg#1358

---------

Co-authored-by: Ryan <[email protected]>
Co-authored-by: Ryan <[email protected]>
  • Loading branch information
3 people authored Mar 31, 2023
1 parent f18b1ab commit 6aacc7b
Show file tree
Hide file tree
Showing 9 changed files with 600 additions and 41 deletions.
77 changes: 77 additions & 0 deletions api/docgen/exampledata/extendedHeader.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"header": {
"version": {
"block": "11"
},
"chain_id": "arabica-6",
"height": "67374",
"time": "2023-02-25T12:10:28.067566292Z",
"last_block_id": {
"hash": "47A2C7758760988500B2F043D3903BBBF1C8B383CA33CF7056AA45E22055663E",
"parts": {
"total": 1,
"hash": "33B012F244E27672169DD3D62CDBC92DA9486E410A5530F41FE6A890D8E2EE42"
}
},
"last_commit_hash": "888D47F5E9473501C99F2B6136B6B9FFBC9D1CD2F54002BCD5DF002FFEF0A83D",
"data_hash": "257760461993F8F197B421EC7435F3C36C3734923E3DA9A42DC73B05F07B3D08",
"validators_hash": "883A0C92B8D976312B249C1397E73CF2981A9EB715717CBEE3800B8380C22C1D",
"next_validators_hash": "883A0C92B8D976312B249C1397E73CF2981A9EB715717CBEE3800B8380C22C1D",
"consensus_hash": "048091BC7DDC283F77BFBF91D73C44DA58C3DF8A9CBC867405D8B7F3DAADA22F",
"app_hash": "1FC70854A185737C7FD720FCCE9167876EE4B9ABE23DB1EBB8C552D3E3978435",
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"proposer_address": "57DC09D28388DBF977CFC30EF50BE8B644CCC1FA"
},
"validator_set": {
"validators": [
{
"address": "57DC09D28388DBF977CFC30EF50BE8B644CCC1FA",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "aoB4xU9//HAqOP9ciyp0+PTdZxt/UGKgZOabU6JxW8o="
},
"voting_power": "5000000000",
"proposer_priority": "0"
}
],
"proposer": {
"address": "57DC09D28388DBF977CFC30EF50BE8B644CCC1FA",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "aoB4xU9//HAqOP9ciyp0+PTdZxt/UGKgZOabU6JxW8o="
},
"voting_power": "5000000000",
"proposer_priority": "0"
}
},
"commit": {
"height": 67374,
"round": 0,
"block_id": {
"hash": "A7F6B1CF33313121539206754A73FDC22ADA48C4AA8C4BB4F707ED2E089E59D3",
"parts": {
"total": 1,
"hash": "6634FE1E1DDDCB9914ACE81F146013986F5FDA03A8F1C16DC5ECA0D9B0E08FBC"
}
},
"signatures": [
{
"block_id_flag": 2,
"validator_address": "57DC09D28388DBF977CFC30EF50BE8B644CCC1FA",
"timestamp": "2023-02-25T12:10:38.130121476Z",
"signature": "HyR/uRIUNc5GNqQteZyrVjJM47SI9sRAgrLsNqJDls3AzbvHUfN4zzWyw0afyEvNm98Bm2GIoJoZC5D8oQvdBA=="
}
]
},
"dah": {
"row_roots": [
"//////////7//////////ql+/VFmJ8PWE9BcjrTDLrY/hzVeGdzFCpfEhiXDXZmt",
"/////////////////////zHeGnUtPJn8QyPpePSYl4qRVrcUvG2fwptyoA85Myik"
],
"column_roots": [
"//////////7//////////ql+/VFmJ8PWE9BcjrTDLrY/hzVeGdzFCpfEhiXDXZmt",
"/////////////////////zHeGnUtPJn8QyPpePSYl4qRVrcUvG2fwptyoA85Myik"
]
}
}
88 changes: 88 additions & 0 deletions api/docgen/exampledata/resourceManagerStats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"System": {
"NumStreamsInbound": 4,
"NumStreamsOutbound": 13,
"NumConnsInbound": 0,
"NumConnsOutbound": 13,
"NumFD": 7,
"Memory": 4456448
},
"Transient": {
"NumStreamsInbound": 0,
"NumStreamsOutbound": 0,
"NumConnsInbound": 0,
"NumConnsOutbound": 0,
"NumFD": 0,
"Memory": 0
},
"Services": {
"libp2p.autonat": {
"NumStreamsInbound": 0,
"NumStreamsOutbound": 0,
"NumConnsInbound": 0,
"NumConnsOutbound": 0,
"NumFD": 0,
"Memory": 0
},
"libp2p.identify": {
"NumStreamsInbound": 0,
"NumStreamsOutbound": 0,
"NumConnsInbound": 0,
"NumConnsOutbound": 0,
"NumFD": 0,
"Memory": 0
}
},
"Protocols": {
"/celestia/arabica-3/ipfs/bitswap/1.2.0": {
"NumStreamsInbound": 0,
"NumStreamsOutbound": 4,
"NumConnsInbound": 0,
"NumConnsOutbound": 0,
"NumFD": 0,
"Memory": 0
},
"/celestia/arabica-3/kad/1.0.0": {
"NumStreamsInbound": 0,
"NumStreamsOutbound": 4,
"NumConnsInbound": 0,
"NumConnsOutbound": 0,
"NumFD": 0,
"Memory": 0
},
"/floodsub/1.0.0": {
"NumStreamsInbound": 2,
"NumStreamsOutbound": 0,
"NumConnsInbound": 0,
"NumConnsOutbound": 0,
"NumFD": 0,
"Memory": 0
},
"/ipfs/id/1.0.0": {
"NumStreamsInbound": 0,
"NumStreamsOutbound": 1,
"NumConnsInbound": 0,
"NumConnsOutbound": 0,
"NumFD": 0,
"Memory": 0
},
"/meshsub/1.1.0": {
"NumStreamsInbound": 2,
"NumStreamsOutbound": 4,
"NumConnsInbound": 0,
"NumConnsOutbound": 0,
"NumFD": 0,
"Memory": 0
}
},
"Peers": {
"12D3KooWPRb5h3g9MH7sx9qfbSQZG5cXv1a2Qs3o4aW5YmmzPq82": {
"NumStreamsInbound": 1,
"NumStreamsOutbound": 3,
"NumConnsInbound": 0,
"NumConnsOutbound": 3,
"NumFD": 3,
"Memory": 1048576
}
}
}
90 changes: 90 additions & 0 deletions api/docgen/exampledata/samplingStats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"head_of_sampled_chain": 27499,
"head_of_catchup": 29101,
"network_head_height": 30483,
"workers": [
{
"current": 28806,
"from": 28802,
"to": 28901
},
{
"current": 28906,
"from": 28902,
"to": 29001
},
{
"current": 27794,
"from": 27702,
"to": 27801
},
{
"current": 28191,
"from": 28102,
"to": 28201
},
{
"current": 28420,
"from": 28402,
"to": 28501
},
{
"current": 28334,
"from": 28302,
"to": 28401
},
{
"current": 27691,
"from": 27602,
"to": 27701
},
{
"current": 27889,
"from": 27802,
"to": 27901
},
{
"current": 27990,
"from": 27902,
"to": 28001
},
{
"current": 28293,
"from": 28202,
"to": 28301
},
{
"current": 28092,
"from": 28002,
"to": 28101
},
{
"current": 29004,
"from": 29002,
"to": 29101
},
{
"current": 28708,
"from": 28702,
"to": 28801
},
{
"current": 28513,
"from": 28502,
"to": 28601
},
{
"current": 27500,
"from": 27402,
"to": 27501
},
{
"current": 28615,
"from": 28602,
"to": 28701
}
],
"concurrency": 16,
"catch_up_done": false,
"is_running": true
}
Loading

0 comments on commit 6aacc7b

Please sign in to comment.