Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Commit 37f8ffe

Browse files
committed
Bringing docs to parity
1 parent 659b1b0 commit 37f8ffe

File tree

9 files changed

+108
-80
lines changed

9 files changed

+108
-80
lines changed

content/api/openapi.yaml

Lines changed: 40 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ info:
77
license:
88
name: GPL 3.0
99
url: http://www.gnu.org/licenses/
10-
version: 0.40.1-beta
10+
version: 0.41.0-beta
1111
description: >
1212
1313
A REST layer over the TrueBlocks application. With `chifra serve`, you can
@@ -597,14 +597,6 @@ paths:
597597
explode: true
598598
schema:
599599
type: boolean
600-
- name: collections
601-
description: display collections data
602-
required: false
603-
style: form
604-
in: query
605-
explode: true
606-
schema:
607-
type: boolean
608600
- name: tags
609601
description: export the list of tags and subtags only
610602
required: false
@@ -658,7 +650,7 @@ paths:
658650
"symbol": "LBA",
659651
"source": "On chain",
660652
"decimals": 18,
661-
"description": "Decentralized lending infrastructure facilitating open access to credit networks on Ethereum.",
653+
"petname": "actively-happy-mite",
662654
},
663655
]
664656
"400":
@@ -830,6 +822,19 @@ paths:
830822
explode: true
831823
schema:
832824
type: boolean
825+
- name: flow
826+
description: >
827+
for the uniq and apps options only, export only from or to (including trace from or to)
828+
required: false
829+
style: form
830+
in: query
831+
explode: true
832+
schema:
833+
type: string
834+
enum:
835+
- from
836+
- to
837+
- reward
833838
- name: logs
834839
description: display only the logs found in the block(s)
835840
required: false
@@ -958,6 +963,18 @@ paths:
958963
explode: true
959964
schema:
960965
type: boolean
966+
- name: flow
967+
description: >
968+
for the uniq option only, export only from or to (including trace from or to)
969+
required: false
970+
style: form
971+
in: query
972+
explode: true
973+
schema:
974+
type: string
975+
enum:
976+
- from
977+
- to
961978
- name: reconcile
962979
description: reconcile the transaction as per the provided address
963980
required: false
@@ -1310,7 +1327,7 @@ paths:
13101327
description: Retrieve token balance(s) for one or more addresses at given block(s).
13111328
operationId: chainstate-tokens
13121329
parameters:
1313-
- name: addrs2
1330+
- name: addrs
13141331
description: >
13151332
two or more addresses (0x...), the first is an ERC20 token, balances for the rest are reported
13161333
required: true
@@ -1420,7 +1437,6 @@ paths:
14201437
enum:
14211438
- index
14221439
- monitors
1423-
- collections
14241440
- names
14251441
- abis
14261442
- caches
@@ -2012,10 +2028,10 @@ components:
20122028
format: uint64
20132029
example: 18
20142030
description: "number of decimals retrieved from an ERC20 smart contract, defaults to 18"
2015-
description:
2031+
petname:
20162032
type: string
2017-
example: "any test"
2018-
description: "user supplied description for the address"
2033+
example: "ideally-known-locust"
2034+
description: "the petname such as described here http://www.erights.org/elib/capability/pnml.html"
20192035
deleted:
20202036
type: boolean
20212037
description: "`true` if deleted, `false` otherwise"
@@ -2240,6 +2256,10 @@ components:
22402256
format: blknum
22412257
example: 354
22422258
description: "the zero-indexed position of this log relative to the block"
2259+
transactionHash:
2260+
type: string
2261+
format: hash
2262+
description: "the hash of the transction"
22432263
timestamp:
22442264
type: number
22452265
format: timestamp
@@ -2282,6 +2302,10 @@ components:
22822302
format: blknum
22832303
example: 10021
22842304
description: "the number of the block"
2305+
timestamp:
2306+
type: number
2307+
format: timestamp
2308+
description: "the timestamp of the block"
22852309
transactionHash:
22862310
type: string
22872311
format: hash
@@ -2487,7 +2511,7 @@ components:
24872511
type: string
24882512
format: address
24892513
example: "0xa1e4...63b4"
2490-
description: "description: the address of the token contract being queried"
2514+
description: "the address of the token contract being queried"
24912515
name:
24922516
type: string
24932517
example: "The DAO Original"

content/data-model/accounts.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Accounts"
33
description: ""
44
lead: ""
5-
date: 2022-05-02T07:09:41
5+
date: 2022-10-16T07:34:11
66
lastmod:
77
- :git
88
- lastmod
@@ -156,21 +156,21 @@ The following commands produce and manage names:
156156

157157
Name data is made of the following data fields:
158158

159-
| Field | Description | Type |
160-
| ----------- | ----------------------------------------------------------------------------------- | ------- |
161-
| tags | colon separated list of tags | string |
162-
| address | the address associated with this name | address |
163-
| name | the name associated with this address (retrieved from on-chain data if available) | string |
164-
| symbol | the symbol for this address (retrieved from on-chain data if available) | string |
165-
| source | user supplied source of where this name was found (or on-chain if name is on-chain) | string |
166-
| decimals | number of decimals retrieved from an ERC20 smart contract, defaults to 18 | uint64 |
167-
| description | user supplied description for the address | string |
168-
| deleted | `true` if deleted, `false` otherwise | bool |
169-
| isCustom | `true` if the address is a custom address, `false` otherwise | bool |
170-
| isPrefund | `true` if the address was one of the prefund addresses, `false` otherwise | bool |
171-
| isContract | `true` if the address is a smart contract, `false` otherwise | bool |
172-
| isErc20 | `true` if the address is an ERC20, `false` otherwise | bool |
173-
| isErc721 | `true` if the address is an ERC720, `false` otherwise | bool |
159+
| Field | Description | Type |
160+
| ---------- | ----------------------------------------------------------------------------------- | ------- |
161+
| tags | colon separated list of tags | string |
162+
| address | the address associated with this name | address |
163+
| name | the name associated with this address (retrieved from on-chain data if available) | string |
164+
| symbol | the symbol for this address (retrieved from on-chain data if available) | string |
165+
| source | user supplied source of where this name was found (or on-chain if name is on-chain) | string |
166+
| decimals | number of decimals retrieved from an ERC20 smart contract, defaults to 18 | uint64 |
167+
| petname | the petname such as described here http://www.erights.org/elib/capability/pnml.html | string |
168+
| deleted | `true` if deleted, `false` otherwise | bool |
169+
| isCustom | `true` if the address is a custom address, `false` otherwise | bool |
170+
| isPrefund | `true` if the address was one of the prefund addresses, `false` otherwise | bool |
171+
| isContract | `true` if the address is a smart contract, `false` otherwise | bool |
172+
| isErc20 | `true` if the address is an ERC20, `false` otherwise | bool |
173+
| isErc721 | `true` if the address is an ERC720, `false` otherwise | bool |
174174

175175

176176
## ListStats

content/data-model/chaindata.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Chain data"
33
description: ""
44
lead: ""
5-
date: 2022-05-02T07:09:41
5+
date: 2022-10-12T06:16:36
66
lastmod:
77
- :git
88
- lastmod
@@ -130,6 +130,7 @@ Log data is made of the following data fields:
130130
| blockNumber | the number of the block | blknum |
131131
| transactionIndex | the zero-indexed position of the transaction in the block | blknum |
132132
| logIndex | the zero-indexed position of this log relative to the block | blknum |
133+
| transactionHash | the hash of the transction | hash |
133134
| timestamp | the timestamp of the block this log appears in | timestamp |
134135
| address | the smart contract that emitted this log | address |
135136
| topics | The first topic hashes event signature of the log, up to 3 additional index parameters may appear | CTopicArray |
@@ -156,6 +157,7 @@ Trace data is made of the following data fields:
156157
| ---------------- | --------------------------------------------------------- | ------------ |
157158
| blockHash | The hash of the block containing this trace | hash |
158159
| blockNumber | the number of the block | blknum |
160+
| timestamp | the timestamp of the block | timestamp |
159161
| transactionHash | the transaction's hash containing this trace | hash |
160162
| transactionIndex | the zero-indexed position of the transaction in the block | blknum |
161163
| traceAddress | a particular trace's address in the trace tree | CStringArray |

content/data-model/chainstate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Chain state"
33
description: ""
44
lead: ""
5-
date: 2022-02-10T20:02:12
5+
date: 2022-10-16T07:55:33
66
lastmod:
77
- :git
88
- lastmod
@@ -77,7 +77,7 @@ Token data is made of the following data fields:
7777
| ---------- | ------------------------------------------------------------ | ------- |
7878
| holder | the address for which we are reporting the token balance | address |
7979
| balance | the balance at the address at the given block height | wei |
80-
| address | description: the address of the token contract being queried | address |
80+
| address | the address of the token contract being queried | address |
8181
| name | the name of the token contract, if available | string |
8282
| symbol | the symbol for this token contract | string |
8383
| decimals | the number of decimals for the token contract | uint64 |

content/docs/chifra/accounts.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Accounts"
33
description: ""
44
lead: ""
5-
date: 2022-08-31T06:48:48
5+
date: 2022-10-08T19:54:08
66
lastmod:
77
- :git
88
- lastmod
@@ -40,7 +40,7 @@ Arguments:
4040
4141
Flags:
4242
-U, --count display only the count of records for each monitor
43-
-x, --fmt string export format, one of [none|json*|txt|csv|api]
43+
-x, --fmt string export format, one of [none|json*|txt|csv]
4444
-v, --verbose enable verbose (increase detail with --log_level)
4545
-h, --help display this help screen
4646
@@ -90,13 +90,13 @@ Flags:
9090
--emitter strings for log export only, export only logs if emitted by one of these address(es)
9191
--topic strings for log export only, export only logs with this topic(s)
9292
--asset strings for the statements option only, export only reconciliations for this asset
93-
--flow string for the statements option only, export only statements with incoming value or outgoing value
93+
-f, --flow string for the statements option only, export only statements with incoming value or outgoing value
9494
One of [ in | out | zero ]
9595
-y, --factory scan for contract creations from the given address(es) and report address of those contracts
9696
-u, --unripe export transactions labeled upripe (i.e. less than 28 blocks old)
9797
-F, --first_block uint first block to process (inclusive)
9898
-L, --last_block uint last block to process (inclusive)
99-
-x, --fmt string export format, one of [none|json*|txt|csv|api]
99+
-x, --fmt string export format, one of [none|json*|txt|csv]
100100
-v, --verbose enable verbose (increase detail with --log_level)
101101
-h, --help display this help screen
102102
@@ -137,7 +137,7 @@ Flags:
137137
--remove remove a previously deleted monitor
138138
--watch continually scan for new blocks and extract data for monitored addresses
139139
-s, --sleep float seconds to sleep between monitor passes (default 14)
140-
-x, --fmt string export format, one of [none|json*|txt|csv|api]
140+
-x, --fmt string export format, one of [none|json*|txt|csv]
141141
-v, --verbose enable verbose (increase detail with --log_level)
142142
-h, --help display this help screen
143143
@@ -154,7 +154,7 @@ Notes:
154154

155155
Like `chifra abis`, this tool is useful from the command line but is primarily used in support of other tools, especially `chifra export` where naming addresses becomes the single best way to turn unintelligible blockchain data into understandable information.
156156

157-
The various options allow you to search and filter the results. The `collections` and `tags` options are used primarily by the TrueBlocks explorer.
157+
The various options allow you to search and filter the results. The `tags` option is used primarily by the TrueBlocks explorer.
158158

159159
You may use the TrueBlocks explorer to manage (add, edit, delete) address-name associations.
160160

@@ -169,18 +169,17 @@ Arguments:
169169
terms - a space separated list of one or more search terms (required)
170170
171171
Flags:
172-
-e, --expand expand search to include all fields (search name, address, and symbol otherwise)
173-
-m, --match_case do case-sensitive search
174-
-l, --all include all accounts in the search
175-
-c, --custom include your custom named accounts
176-
-p, --prefund include prefund accounts
177-
-n, --named include well know token and airdrop addresses in the search
178-
-a, --addr display only addresses in the results (useful for scripting)
179-
-s, --collections display collections data
180-
-g, --tags export the list of tags and subtags only
181-
-x, --fmt string export format, one of [none|json*|txt|csv|api]
182-
-v, --verbose enable verbose (increase detail with --log_level)
183-
-h, --help display this help screen
172+
-e, --expand expand search to include all fields (search name, address, and symbol otherwise)
173+
-m, --match_case do case-sensitive search
174+
-l, --all include all accounts in the search
175+
-c, --custom include your custom named accounts
176+
-p, --prefund include prefund accounts
177+
-n, --named include well know token and airdrop addresses in the search
178+
-a, --addr display only addresses in the results (useful for scripting)
179+
-g, --tags export the list of tags and subtags only
180+
-x, --fmt string export format, one of [none|json*|txt|csv]
181+
-v, --verbose enable verbose (increase detail with --log_level)
182+
-h, --help display this help screen
184183
185184
Notes:
186185
- The tool will accept up to three terms, each of which must match against any field in the database.
@@ -216,7 +215,7 @@ Flags:
216215
-s, --sol extract the abi definition from the provided .sol file(s)
217216
-f, --find strings search for function or event declarations given a four- or 32-byte code(s)
218217
-n, --hint strings for the --find option only, provide hints to speed up the search
219-
-x, --fmt string export format, one of [none|json*|txt|csv|api]
218+
-x, --fmt string export format, one of [none|json*|txt|csv]
220219
-v, --verbose enable verbose (increase detail with --log_level)
221220
-h, --help display this help screen
222221

content/docs/chifra/admin.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Admin"
33
description: ""
44
lead: ""
5-
date: 2022-09-03T10:11:05
5+
date: 2022-10-08T19:54:08
66
lastmod:
77
- :git
88
- lastmod
@@ -40,7 +40,7 @@ Usage:
4040
4141
Flags:
4242
-p, --port string specify the server's port (default ":8080")
43-
-x, --fmt string export format, one of [none|json*|txt|csv|api]
43+
-x, --fmt string export format, one of [none|json*|txt|csv]
4444
-v, --verbose enable verbose (increase detail with --log_level)
4545
-h, --help display this help screen
4646
@@ -71,7 +71,7 @@ Flags:
7171
-i, --pin pin new chunks (requires locally-running IPFS daemon or --remote)
7272
-m, --remote pin new chunks to the gateway (requires pinning service keys)
7373
-s, --sleep float seconds to sleep between scraper passes (default 14)
74-
-x, --fmt string export format, one of [none|json*|txt|csv|api]
74+
-x, --fmt string export format, one of [none|json*|txt|csv]
7575
-v, --verbose enable verbose (increase detail with --log_level)
7676
-h, --help display this help screen
7777
```
@@ -90,7 +90,7 @@ Each of the following additional configurable command line options are available
9090
| first_snap | uint64 | 0 | the first block at which snap_to_grid is enabled |
9191
| unripe_dist | uint64 | 28 | the distance (in blocks) from the front of the chain under which (inclusive) a block is considered unripe |
9292
| channel_count | uint64 | 20 | number of concurrent processing channels |
93-
| allow_missing | bool | false | do not report errors for blockchains that contain blocks with zero addresses |
93+
| allow_missing | bool | true | do not report errors for blockchains that contain blocks with zero addresses |
9494

9595

9696
These items may be set in three ways, each overridding the preceeding method:
@@ -146,7 +146,7 @@ Flags:
146146
-m, --remote prior to processing, retreive the manifest from the Unchained Index smart contract
147147
-b, --belongs strings in index mode only, checks the address(es) for inclusion in the given index chunk
148148
-s, --sleep float for --remote pinning only, seconds to sleep between API calls
149-
-x, --fmt string export format, one of [none|json*|txt|csv|api]
149+
-x, --fmt string export format, one of [none|json*|txt|csv]
150150
-v, --verbose enable verbose (increase detail with --log_level)
151151
-h, --help display this help screen
152152
@@ -188,7 +188,7 @@ Usage:
188188
Flags:
189189
-a, --all in addition to Bloom filters, download full index chunks
190190
-s, --sleep float seconds to sleep between downloads
191-
-x, --fmt string export format, one of [none|json*|txt|csv|api]
191+
-x, --fmt string export format, one of [none|json*|txt|csv]
192192
-v, --verbose enable verbose (increase detail with --log_level)
193193
-h, --help display this help screen
194194

0 commit comments

Comments
 (0)