chunks yml

This commit is contained in:
forgash_ 2023-01-04 15:43:52 -07:00
parent 6cf2e1fa0b
commit feca2e279a
9 changed files with 99 additions and 1 deletions

View File

@ -0,0 +1,5 @@
{% docs author %}
The author of the block, chunk or shard.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs chunk %}
A single chunk from the shard. Chunk is an aggregation of transactions and receipts which are executed within a particular shard.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs chunk_hash %}
The identifier for the chunk.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs chunk_transactions %}
The transactions object from the chunks.
{% enddocs %}

View File

@ -1,5 +1,5 @@
{% docs header %}
A json column containing the blocks header information.
A json column containing header information from the object: block or chunk.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs height_created %}
The block height at which the chunk was created, may not be the same as the height for when the chunk is included depending on processing time.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs height_included %}
The block height at which the chunk is finalized and included, formally appending the outcome to the chain.
{% enddocs %}

View File

@ -0,0 +1,5 @@
{% docs receipts %}
An array of receipts included in the chunk or exection outcome.
{% enddocs %}

View File

@ -0,0 +1,63 @@
version: 2
models:
- name: silver__streamline_chunks
description: |-
Parses extracted chunk data from the shards.
columns:
- name: BLOCK_ID
description: "{{ doc('block_id')}}"
tests:
- not_null
- name: SHARD_ID
description: "{{ doc('shard_id')}}"
tests:
- not_null
- name: _LOAD_TIMESTAMP
description: "{{ doc('_load_timestamp')}}"
tests:
- not_null
- name: CHUNK
description: "{{ doc('chunk')}}"
tests:
- not_null
- unique
- name: HEIGHT_CREATED
description: "{{ doc('height_created')}}"
tests:
- not_null
- name: HEIGHT_INCLUDED
description: "{{ doc('height_included')}}"
tests:
- not_null
- name: AUTHOR
description: "{{ doc('author')}}"
tests:
- not_null
- name: CHUNK_HASH
description: "{{ doc('chunk_hash')}}"
tests:
- not_null
- name: HEADER
description: "{{ doc('header')}}"
tests:
- not_null
- name: RECEIPTS
description: "{{ doc('receipts')}}"
tests:
- not_null
- name: CHUNK_TRANSACTIONS
description: "{{ doc('chunk_transactions')}}"
tests:
- not_null