Skip to content

Commit

Permalink
Changes the order of pages in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Sep 27, 2023
1 parent 4653bd0 commit 2cc1d4b
Show file tree
Hide file tree
Showing 17 changed files with 146 additions and 146 deletions.
96 changes: 48 additions & 48 deletions docs/content/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1109,16 +1109,16 @@ paths:
schema:
properties:
data:
description: Produces <a href="/data-model/accounts/#appearance">Appearance</a>, <a href="/data-model/chaindata/#block">Block</a>, <a href="/data-model/chaindata/#withdrawal">Withdrawal</a>, <a href="/data-model/chaindata/#log">Log</a>, <a href="/data-model/chaindata/#logfilter">Logfilter</a>, <a href="/data-model/chaindata/#trace">Trace</a>, <a href="/data-model/chaindata/#traceaction">Traceaction</a>, <a href="/data-model/chaindata/#traceresult">Traceresult</a>, and/or <a href="/data-model/chaindata/#blockcount">Blockcount</a> data. Corresponds to the <a href="/chifra/chaindata/#chifra-blocks">chifra blocks</a> command line.
description: Produces <a href="/data-model/accounts/#appearance">Appearance</a>, <a href="/data-model/chaindata/#block">Block</a>, <a href="/data-model/chaindata/#withdrawal">Withdrawal</a>, <a href="/data-model/chaindata/#log">Log</a>, <a href="/data-model/chaindata/#trace">Trace</a>, <a href="/data-model/chaindata/#logfilter">Logfilter</a>, <a href="/data-model/chaindata/#traceaction">Traceaction</a>, <a href="/data-model/chaindata/#traceresult">Traceresult</a>, and/or <a href="/data-model/chaindata/#blockcount">Blockcount</a> data. Corresponds to the <a href="/chifra/chaindata/#chifra-blocks">chifra blocks</a> command line.
type: array
items:
oneOf:
- $ref: "#/components/schemas/appearance"
- $ref: "#/components/schemas/block"
- $ref: "#/components/schemas/withdrawal"
- $ref: "#/components/schemas/log"
- $ref: "#/components/schemas/logFilter"
- $ref: "#/components/schemas/trace"
- $ref: "#/components/schemas/logFilter"
- $ref: "#/components/schemas/traceAction"
- $ref: "#/components/schemas/traceResult"
- $ref: "#/components/schemas/blockCount"
Expand Down Expand Up @@ -2952,6 +2952,26 @@ components:
encoding:
type: string
description: "the four-byte encoding of the transaction's function call"
withdrawal:
description: "withdrawal record for post-Shanghai withdrawals from the consensus layer"
type: object
properties:
address:
type: string
format: address
description: "the recipient for the withdrawn ether"
amount:
type: string
format: wei
description: "a nonzero amount of ether given in gwei (1e9 wei)"
index:
type: number
format: uint64
description: "a monotonically increasing zero-based index that increments by 1 per withdrawal to uniquely identify each withdrawal"
validatorIndex:
type: number
format: uint64
description: "the validator_index of the validator on the consensus layer the withdrawal corresponds to"
receipt:
description: "receipt data as returned from the RPC (with slight enhancements)"
type: object
Expand Down Expand Up @@ -2987,26 +3007,6 @@ components:
transactionIndex:
type: number
format: blknum
withdrawal:
description: "withdrawal record for post-Shanghai withdrawals from the consensus layer"
type: object
properties:
address:
type: string
format: address
description: "the recipient for the withdrawn ether"
amount:
type: string
format: wei
description: "a nonzero amount of ether given in gwei (1e9 wei)"
index:
type: number
format: uint64
description: "a monotonically increasing zero-based index that increments by 1 per withdrawal to uniquely identify each withdrawal"
validatorIndex:
type: number
format: uint64
description: "the validator_index of the validator on the consensus layer the withdrawal corresponds to"
log:
description: "log data as returned from the RPC (with slight enhancements)"
type: object
Expand Down Expand Up @@ -3066,32 +3066,6 @@ components:
type: string
example: "Transfer(0xcfa...9f54..."
description: "a truncated, more readable version of the articulation"
logFilter:
description: "used by the fast path log queries for various commands"
type: object
properties:
fromBlock:
type: number
format: blknum
description: "the first block in the block range to query with eth_getLogs"
toBlock:
type: number
format: blknum
description: "the last block in the range to query with eth_getLogs"
blockHash:
type: string
format: hash
description: "an alternative to blocks specification, the hash of the block to query"
emitters:
type: array
items:
$ref: "#/components/schemas/address"
description: "one or more emitting addresses from which logs were emitted"
topics:
type: array
items:
$ref: "#/components/schemas/topic"
description: "one or more topics which logs represent"
trace:
description: "trace data as returned from the RPC (with slight enhancements)"
type: object
Expand Down Expand Up @@ -3153,6 +3127,32 @@ components:
compressedTrace:
type: string
description: "a compressed string version of the articulated trace"
logFilter:
description: "used by the fast path log queries for various commands"
type: object
properties:
fromBlock:
type: number
format: blknum
description: "the first block in the block range to query with eth_getLogs"
toBlock:
type: number
format: blknum
description: "the last block in the range to query with eth_getLogs"
blockHash:
type: string
format: hash
description: "an alternative to blocks specification, the hash of the block to query"
emitters:
type: array
items:
$ref: "#/components/schemas/address"
description: "one or more emitting addresses from which logs were emitted"
topics:
type: array
items:
$ref: "#/components/schemas/topic"
description: "one or more topics which logs represent"
traceAction:
description: "trace action data as returned from the RPC (with slight enhancements)"
type: object
Expand Down
2 changes: 1 addition & 1 deletion docs/content/chifra/chaindata.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ Data models produced by this tool:
- [block](/data-model/chaindata/#block)
- [withdrawal](/data-model/chaindata/#withdrawal)
- [log](/data-model/chaindata/#log)
- [logfilter](/data-model/chaindata/#logfilter)
- [trace](/data-model/chaindata/#trace)
- [logfilter](/data-model/chaindata/#logfilter)
- [traceaction](/data-model/chaindata/#traceaction)
- [traceresult](/data-model/chaindata/#traceresult)
- [blockcount](/data-model/chaindata/#blockcount)
Expand Down
76 changes: 38 additions & 38 deletions docs/content/data-model/chaindata.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,24 @@ Transfers consist of the following fields:
| priceSource | the on-chain source from which the spot price was taken | string |
| encoding | the four-byte encoding of the transaction's function call | string |

## Withdrawal

<!-- markdownlint-disable MD033 MD036 MD041 -->
`withdrawals` is an array present in post-Shanghai blocks representing Consensys layer staking reward withdrawals. Note that the amount present is in Gwei. The `withdrawals` array is not present in pre-Shanghai blocks.

The following commands produce and manage Withdrawals:

- [chifra blocks](/chifra/chaindata/#chifra-blocks)

Withdrawals consist of the following fields:

| Field | Description | Type |
| -------------- | -------------------------------------------------------------------------------------------------------------------- | ------- |
| address | the recipient for the withdrawn ether | address |
| amount | a nonzero amount of ether given in gwei (1e9 wei) | wei |
| index | a monotonically increasing zero-based index that increments by 1 per withdrawal to uniquely identify each withdrawal | uint64 |
| validatorIndex | the validator_index of the validator on the consensus layer the withdrawal corresponds to | uint64 |

## Receipt

<!-- markdownlint-disable MD033 MD036 MD041 -->
Expand Down Expand Up @@ -151,24 +169,6 @@ Receipts consist of the following fields:
| transactionHash | | hash |
| transactionIndex | | blknum |

## Withdrawal

<!-- markdownlint-disable MD033 MD036 MD041 -->
`withdrawals` is an array present in post-Shanghai blocks representing Consensys layer staking reward withdrawals. Note that the amount present is in Gwei. The `withdrawals` array is not present in pre-Shanghai blocks.

The following commands produce and manage Withdrawals:

- [chifra blocks](/chifra/chaindata/#chifra-blocks)

Withdrawals consist of the following fields:

| Field | Description | Type |
| -------------- | -------------------------------------------------------------------------------------------------------------------- | ------- |
| address | the recipient for the withdrawn ether | address |
| amount | a nonzero amount of ether given in gwei (1e9 wei) | wei |
| index | a monotonically increasing zero-based index that increments by 1 per withdrawal to uniquely identify each withdrawal | uint64 |
| validatorIndex | the validator_index of the validator on the consensus layer the withdrawal corresponds to | uint64 |

## Log

<!-- markdownlint-disable MD033 MD036 MD041 -->
Expand Down Expand Up @@ -200,26 +200,6 @@ Logs consist of the following fields:
| articulatedLog | a human-readable version of the topic and data fields | [Function](/data-model/other/#function) |
| compressedLog | a truncated, more readable version of the articulation | string |

## LogFilter

<!-- markdownlint-disable MD033 MD036 MD041 -->
Log filters are used to speed up querying of the node when searching for logs.

The following commands produce and manage LogFilters:

- [chifra blocks](/chifra/chaindata/#chifra-blocks)
- [chifra logs](/chifra/chaindata/#chifra-logs)

LogFilters consist of the following fields:

| Field | Description | Type |
| --------- | ---------------------------------------------------------------------- | ------------- |
| fromBlock | the first block in the block range to query with eth_getLogs | blknum |
| toBlock | the last block in the range to query with eth_getLogs | blknum |
| blockHash | an alternative to blocks specification, the hash of the block to query | hash |
| emitters | one or more emitting addresses from which logs were emitted | Address |
| topics | one or more topics which logs represent | topic[] |

## Trace

<!-- markdownlint-disable MD033 MD036 MD041 -->
Expand Down Expand Up @@ -272,6 +252,26 @@ Fields that change during self-destruct transaction:
| | Action.RefundAddress | |
| | Action.Balance | |

## LogFilter

<!-- markdownlint-disable MD033 MD036 MD041 -->
Log filters are used to speed up querying of the node when searching for logs.

The following commands produce and manage LogFilters:

- [chifra blocks](/chifra/chaindata/#chifra-blocks)
- [chifra logs](/chifra/chaindata/#chifra-logs)

LogFilters consist of the following fields:

| Field | Description | Type |
| --------- | ---------------------------------------------------------------------- | ------------- |
| fromBlock | the first block in the block range to query with eth_getLogs | blknum |
| toBlock | the last block in the range to query with eth_getLogs | blknum |
| blockHash | an alternative to blocks specification, the hash of the block to query | hash |
| emitters | one or more emitting addresses from which logs were emitted | Address |
| topics | one or more topics which logs represent | topic[] |

## TraceAction

<!-- markdownlint-disable MD033 MD036 MD041 -->
Expand Down
2 changes: 1 addition & 1 deletion docs/readmes/chaindata-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ Data models produced by this tool:
- [block](/data-model/chaindata/#block)
- [withdrawal](/data-model/chaindata/#withdrawal)
- [log](/data-model/chaindata/#log)
- [logfilter](/data-model/chaindata/#logfilter)
- [trace](/data-model/chaindata/#trace)
- [logfilter](/data-model/chaindata/#logfilter)
- [traceaction](/data-model/chaindata/#traceaction)
- [traceresult](/data-model/chaindata/#traceresult)
- [blockcount](/data-model/chaindata/#blockcount)
Expand Down
92 changes: 46 additions & 46 deletions docs/templates/api/components.txt
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,26 @@ components:
encoding:
type: string
description: "the four-byte encoding of the transaction's function call"
withdrawal:
description: "withdrawal record for post-Shanghai withdrawals from the consensus layer"
type: object
properties:
address:
type: string
format: address
description: "the recipient for the withdrawn ether"
amount:
type: string
format: wei
description: "a nonzero amount of ether given in gwei (1e9 wei)"
index:
type: number
format: uint64
description: "a monotonically increasing zero-based index that increments by 1 per withdrawal to uniquely identify each withdrawal"
validatorIndex:
type: number
format: uint64
description: "the validator_index of the validator on the consensus layer the withdrawal corresponds to"
receipt:
description: "receipt data as returned from the RPC (with slight enhancements)"
type: object
Expand Down Expand Up @@ -615,26 +635,6 @@ components:
transactionIndex:
type: number
format: blknum
withdrawal:
description: "withdrawal record for post-Shanghai withdrawals from the consensus layer"
type: object
properties:
address:
type: string
format: address
description: "the recipient for the withdrawn ether"
amount:
type: string
format: wei
description: "a nonzero amount of ether given in gwei (1e9 wei)"
index:
type: number
format: uint64
description: "a monotonically increasing zero-based index that increments by 1 per withdrawal to uniquely identify each withdrawal"
validatorIndex:
type: number
format: uint64
description: "the validator_index of the validator on the consensus layer the withdrawal corresponds to"
log:
description: "log data as returned from the RPC (with slight enhancements)"
type: object
Expand Down Expand Up @@ -694,32 +694,6 @@ components:
type: string
example: "Transfer(0xcfa...9f54..."
description: "a truncated, more readable version of the articulation"
logFilter:
description: "used by the fast path log queries for various commands"
type: object
properties:
fromBlock:
type: number
format: blknum
description: "the first block in the block range to query with eth_getLogs"
toBlock:
type: number
format: blknum
description: "the last block in the range to query with eth_getLogs"
blockHash:
type: string
format: hash
description: "an alternative to blocks specification, the hash of the block to query"
emitters:
type: array
items:
$ref: "#/components/schemas/address"
description: "one or more emitting addresses from which logs were emitted"
topics:
type: array
items:
$ref: "#/components/schemas/topic"
description: "one or more topics which logs represent"
trace:
description: "trace data as returned from the RPC (with slight enhancements)"
type: object
Expand Down Expand Up @@ -781,6 +755,32 @@ components:
compressedTrace:
type: string
description: "a compressed string version of the articulated trace"
logFilter:
description: "used by the fast path log queries for various commands"
type: object
properties:
fromBlock:
type: number
format: blknum
description: "the first block in the block range to query with eth_getLogs"
toBlock:
type: number
format: blknum
description: "the last block in the range to query with eth_getLogs"
blockHash:
type: string
format: hash
description: "an alternative to blocks specification, the hash of the block to query"
emitters:
type: array
items:
$ref: "#/components/schemas/address"
description: "one or more emitting addresses from which logs were emitted"
topics:
type: array
items:
$ref: "#/components/schemas/topic"
description: "one or more topics which logs represent"
traceAction:
description: "trace action data as returned from the RPC (with slight enhancements)"
type: object
Expand Down
2 changes: 1 addition & 1 deletion src/apps/chifra/internal/blocks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ Data models produced by this tool:
- [block](/data-model/chaindata/#block)
- [withdrawal](/data-model/chaindata/#withdrawal)
- [log](/data-model/chaindata/#log)
- [logfilter](/data-model/chaindata/#logfilter)
- [trace](/data-model/chaindata/#trace)
- [logfilter](/data-model/chaindata/#logfilter)
- [traceaction](/data-model/chaindata/#traceaction)
- [traceresult](/data-model/chaindata/#traceresult)
- [blockcount](/data-model/chaindata/#blockcount)
Expand Down
Loading

0 comments on commit 2cc1d4b

Please sign in to comment.