Skip to content

Commit 5fa8e09

Browse files
Merge branch 'main' into unit
2 parents 9dc31ee + 16bff09 commit 5fa8e09

17 files changed

+881
-712
lines changed

docs/data/hubble/data-catalog/data-dictionary/accounts.mdx

+44-26
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,46 @@
11
---
22
title: Claimable Balances
33
sidebar_position: 20
4+
description: ""
45
---
56

6-
| Name | Description | Data Type | Domain Values | Primary Key? | Natural Key? | Partition or Cluster Field? | Required? | Notes |
7-
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
8-
| balance_id | A unique identifier for this claimable balance. The Balance id is a compilation of \`Balance Type\` + \`SHA-256 hash history_operation_id\` | string | | | Yes | | Yes | The Balance Type is fixed at V0, \`00000000\`. If there is a protocol change that materially impacts the mechanics of claimable balances, the balance type would update to V1. |
9-
| claimants | The list of entries which are eligible to claim the balance and preconditions that must be fulfilled to claim | array[record] | | | | | Yes | Multiple accounts can be specified in the claimants record, including the account of the balance creator. |
10-
| claimants.destination | The account id who can claim the balance | string | | | | | Yes | |
11-
| claimants.predicate | The condition which must be satisfied so the destination can claim the balance. The predicate can include logical rules using AND, OR and NOT logic. | array[record] | | | | | Yes | |
12-
| claimants.predicate.unconditional | If true it means this clause of the condition is always satisfied | boolean | | | | | No | When the predicate is only unconditional = true, it means that the balance can be claimed under any conditions |
13-
| claimants.predicate.abs_before | Deadline for when the balance must be claimed. If a balance is claimed before the date then the clause of the condition is satisfied. | string | | | | | No | |
14-
| claimants.predicate.rel_before | A relative deadline for when the claimable balance can be claimed. The value represents the number of seconds since the close time of the ledger which created the claimable balance | integer | | | | | No | This condition is useful when creating a timebounds based on creation conditions. If the creator wanted a balance only claimable one week after creation, this condition would satisfy that rule. |
15-
| claimants.predicate.abs_before_epoch | A UNIX epoch value in seconds representing the same deadline date as abs_before. | integer | | | | | No | |
16-
| asset_type | The identifier for type of asset code, can be a alphanumeric with 4 characters, 12 characters or the native asset to the network, XLM. | string | credit_alphanum4 credit_alphanum12 native | | | | Yes | |
17-
| asset_code | The 4 or 12 character code representation of the asset on the network | string | | | | | No | |
18-
| asset_issuer | The address of the account that created the asset | string | | | | | No | |
19-
| asset_amount | The amount of the asset that can be claimed | float | | | | | Yes | |
20-
| sponsor | The account address of the sponsor who is paying the reserves for this claimable balance | string | | | | | No | Sponsors of claimable balances are the creators of the balance. |
21-
| flags | Denotes the enabling and disabling of certain balance issuer privileges | integer | 0 - None, Default 1 - Auth Clawback Enabled | | | | Yes | Flags are set by the claimable balance accounts for an asset. When user accounts claim a balance, the flags applied to the asset originate from this account |
22-
| last_modified_ledger | The ledger sequence number when the ledger entry (this unique signer for the account) was modified. Deletions do not count as a modification and will report the prior modification sequence number | integer | | | Yes | cluster | Yes | |
23-
| ledger_entry_change | Code that describes the ledger entry change type that was applied to the ledger entry. | integer | 0 - Ledger Entry Created 1 - Ledger Entry Updated 2 - Ledger Entry Deleted 3 - Ledger Entry State (value of the entry) | | Yes | | Yes | Valid entry change types are 0, and 2 for ledger entries of type \`claimable_balances\`. Once created, a balance cannot be updated. |
24-
| deleted | Indicates whether the ledger entry (balance id) has been deleted or not. Once an entry is deleted, it cannot be recovered. | boolean | | | | | Yes | |
25-
| batch_id | String representation of the run id for a given DAG in Airflow. Takes the form of "scheduled\_\_\<batch_end_date>-\<dag_alias>". Batch ids are unique to the batch and help with monitoring and rerun capabilities | string | | | | | Yes | |
26-
| batch_run_date | The start date for the batch interval. When taken with the date in the batch_id, the date represents the interval of ledgers processed. The batch run date can be seen as a proxy of closed_at for a ledger. | datetime | | | | MONTH partition | Yes | The table is partitioned on batch_run_date. It is recommended to always include the batch_run_date in the filter if possible to help reduce query cost. |
27-
| batch_insert_ts | The timestamp in UTC when a batch of records was inserted into the database. This field can help identify if a batch executed in real time or as part of a backfill | timestamp | | | | | Yes | |
28-
| asset_id | Unique identifier for asset_code, asset_issuer | integer | | | | cluster | No | |
7+
<div className="scoped-data-dictionary-table">
8+
9+
## Table Metadata
10+
11+
| Property | Configuration |
12+
| --- | --- |
13+
| Natural Key(s) | balance_id, closed_at |
14+
| Partition Field(s) | batch_run_date (MONTH partition) |
15+
| Clustered Field(s) | asset_id, last_modified_ledger |
16+
| Documentation | [dbt docs](http://www.stellar-dbt-docs.com/#!/source/source.stellar_dbt_public.crypto_stellar.claimable_balances) |
17+
18+
## Column Details
19+
20+
| Name | Description | Data Type | Domain Values | Required? | Notes |
21+
| --- | --- | --- | --- | --- | --- |
22+
| balance_id | A unique identifier for this claimable balance. The Balance id is a compilation of `Balance Type` + `SHA-256 hash history_operation_id` | string | | Yes | The Balance Type is fixed at V0, `00000000`. If there is a protocol change that materially impacts the mechanics of claimable balances, the balance type would update to V1. |
23+
| claimants | The list of entries which are eligible to claim the balance and preconditions that must be fulfilled to claim | array[record] | | Yes | Multiple accounts can be specified in the claimants record, including the account of the balance creator. |
24+
| claimants.destination | The account id who can claim the balance | string | | Yes | |
25+
| claimants.predicate | The condition which must be satisfied so the destination can claim the balance. The predicate can include logical rules using AND, OR and NOT logic. | array[record] | | Yes | |
26+
| claimants.predicate.unconditional | If true it means this clause of the condition is always satisfied | boolean | | No | When the predicate is only unconditional = true, it means that the balance can be claimed under any conditions |
27+
| claimants.predicate.abs_before | Deadline for when the balance must be claimed. If a balance is claimed before the date then the clause of the condition is satisfied. | string | | No | |
28+
| claimants.predicate.rel_before | A relative deadline for when the claimable balance can be claimed. The value represents the number of seconds since the close time of the ledger which created the claimable balance | integer | | No | This condition is useful when creating a timebounds based on creation conditions. If the creator wanted a balance only claimable one week after creation, this condition would satisfy that rule. |
29+
| claimants.predicate.abs_before_epoch | A UNIX epoch value in seconds representing the same deadline date as abs_before. | integer | | No | |
30+
| asset_type | The identifier for type of asset code, can be an alphanumeric with 4 characters, 12 characters or the native asset to the network, XLM. | string | <ul><li>credit_alphanum4</li><li>credit_alphanum12</li><li>native</li></ul> | Yes | |
31+
| asset_code | The 4 or 12 character code representation of the asset on the network | string | | No | |
32+
| asset_issuer | The address of the account that created the asset | string | | No | |
33+
| asset_amount | The amount of the asset that can be claimed | float | | Yes | |
34+
| sponsor | The account address of the sponsor who is paying the reserves for this claimable balance | string | | No | Sponsors of claimable balances are the creators of the balance. |
35+
| flags | Denotes the enabling and disabling of certain balance issuer privileges | integer | <ul><li>0 - None, Default</li><li>1 - Auth Clawback Enabled</li></ul> | Yes | Flags are set by the claimable balance accounts for an asset. When user accounts claim a balance, the flags applied to the asset originate from this account |
36+
| last_modified_ledger | The ledger sequence number when the ledger entry (this unique signer for the account) was modified. Deletions do not count as a modification and will report the prior modification sequence number | integer | | Yes | |
37+
| ledger_entry_change | Code that describes the ledger entry change type that was applied to the ledger entry. | integer | <ul><li>0 - Ledger Entry Created</li><li>1 - Ledger Entry Updated</li><li>2 - Ledger Entry Deleted</li><li>3 - Ledger Entry State (value of the entry)</li></ul> | Yes | Valid entry change types are 0, and 2 for ledger entries of type `claimable_balances`. Once created, a balance cannot be updated. |
38+
| deleted | Indicates whether the ledger entry (balance id) has been deleted or not. Once an entry is deleted, it cannot be recovered. | boolean | | Yes | |
39+
| closed_at | Timestamp in UTC when this ledger closed and committed to the network. Ledgers are expected to close ~every 5 seconds | timestamp | | Yes | |
40+
| ledger_sequence | The sequence number of this ledger. It represents the order of the ledger within the Stellar blockchain. Each ledger has a unique sequence number that increments with every new ledger, ensuring that ledgers are processed in the correct order. | integer | | Yes | |
41+
| batch_id | String representation of the run id for a given DAG in Airflow. Takes the form of "scheduled\_\_\<batch_end_date>-\<dag_alias>". Batch ids are unique to the batch and help with monitoring and rerun capabilities | string | | Yes | |
42+
| batch_run_date | The start date for the batch interval. When taken with the date in the batch_id, the date represents the interval of ledgers processed. The batch run date can be seen as a proxy of closed_at for a ledger. | datetime | | Yes | The table is partitioned on batch_run_date. It is recommended to always include the batch_run_date in the filter if possible to help reduce query cost. |
43+
| batch_insert_ts | The timestamp in UTC when a batch of records was inserted into the database. This field can help identify if a batch executed in real time or as part of a backfill | timestamp | | Yes | |
44+
| asset_id | Unique identifier for asset_code, asset_issuer | integer | | No | |
45+
46+
</div>
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,44 @@
11
---
22
title: Contract Code
33
sidebar_position: 30
4+
description: ""
45
---
56

6-
| Name | Description | Data Type | Domain Values | Primary Key? | Natural Key? | Partition or Cluster Field? | Required? | Notes |
7-
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
8-
| contract_code_hash | Soroban contract code hash | string | | | Yes | Cluster | Yes | |
9-
| contract_code_ext_v | Contract code extention version | integer | | | | | | |
10-
| last_modified_ledger | The ledger sequence number when the ledger entry (this unique signer for the account) was modified. Deletions do not count as a modification and will report the prior modification sequence number | integer | | | | Cluster | Yes | |
11-
| ledger_entry_change | Code that describes the ledger entry change type that was applied to the ledger entry. | integer | | | | | Yes | |
12-
| deleted | Indicates whether the ledger entry (balance id) has been deleted or not. Once an entry is deleted, it cannot be recovered. | boolean | | | | | Yes | |
13-
| batch_id | String representation of the run id for a given DAG in Airflow. Takes the form of "scheduled\_\_\<batch_end_date>-\<dag_alias>". Batch ids are unique to the batch and help with monitoring and rerun capabilities | string | | | | | Yes | |
14-
| batch_run_date | The start date for the batch interval. When taken with the date in the batch_id, the date represents the interval of ledgers processed. The batch run date can be seen as a proxy of closed_at for a ledger. | datetime | | | | | Yes | |
15-
| batch_insert_ts | The timestamp in UTC when a batch of records was inserted into the database. This field can help identify if a batch executed in real time or as part of a backfill | timestamp | | | | | Yes | |
16-
| closed_at | The UNIX timestamp of the sequence number's age | timestamp | | | | Partition | Yes | |
17-
| ledger_sequence | The unsigned 32-bit ledger number of the sequence number's age | integer | | | | | Yes | |
18-
| ledger_key_hash | Ledger key hash used to identify expiring contract data or contract code ledger entries | string | | | | | Yes | |
19-
| n_instructions | Number of instrcutions in contract code | integer | | | | | | |
20-
| n_functions | Number of functions in contract code | integer | | | | | | |
21-
| n_globals | Number of global variables in contract code | integer | | | | | | |
22-
| n_table_entries | Number of table entries in contract code | integer | | | | | | |
23-
| n_types | Number of types in contract code | integer | | | | | | |
24-
| n_data_segments | Number of data segments in contract code | integer | | | | | | |
25-
| n_elem_segments | Number of element segments in contract code | integer | | | | | | |
26-
| n_imports | Number of imports in contract code | integer | | | | | | |
27-
| n_exports | Number of exports in contract code | integer | | | | | | |
28-
| n_data_segment_bytes | Number of data segment bytes in contract code | integer | | | | | | |
7+
<div className="scoped-data-dictionary-table">
8+
9+
## Table Metadata
10+
11+
| Property | Configuration |
12+
| --- | --- |
13+
| Natural Key(s) | contract_code_hash, closed_at |
14+
| Partition Field(s) | closed_at (MONTH partition) |
15+
| Clustered Field(s) | last_modified_ledger, contract_code_hash |
16+
| Documentation | [dbt docs](http://www.stellar-dbt-docs.com/#!/source/source.stellar_dbt_public.crypto_stellar.contract_code) |
17+
18+
## Column Details
19+
20+
| Name | Description | Data Type | Domain Values | Required? | Notes |
21+
| --- | --- | --- | --- | --- | --- |
22+
| contract_code_hash | Soroban contract code hash | string | | Yes | |
23+
| contract_code_ext_v | Contract code extension version | integer | | | |
24+
| last_modified_ledger | The ledger sequence number when the ledger entry (this unique signer for the account) was modified. Deletions do not count as a modification and will report the prior modification sequence number | integer | | Yes | |
25+
| ledger_entry_change | Code that describes the ledger entry change type that was applied to the ledger entry. | integer | | Yes | |
26+
| deleted | Indicates whether the ledger entry (balance id) has been deleted or not. Once an entry is deleted, it cannot be recovered. | boolean | | Yes | |
27+
| batch_id | String representation of the run id for a given DAG in Airflow. Takes the form of "scheduled\_\_\<batch_end_date>-\<dag_alias>". Batch ids are unique to the batch and help with monitoring and rerun capabilities | string | | Yes | |
28+
| batch_run_date | The start date for the batch interval. When taken with the date in the batch_id, the date represents the interval of ledgers processed. The batch run date can be seen as a proxy of closed_at for a ledger. | datetime | | Yes | |
29+
| batch_insert_ts | The timestamp in UTC when a batch of records was inserted into the database. This field can help identify if a batch executed in real time or as part of a backfill | timestamp | | Yes | |
30+
| closed_at | Timestamp in UTC when this ledger closed and committed to the network. Ledgers are expected to close ~every 5 seconds | timestamp | | Yes | |
31+
| ledger_sequence | The sequence number of this ledger. It represents the order of the ledger within the Stellar blockchain. Each ledger has a unique sequence number that increments with every new ledger, ensuring that ledgers are processed in the correct order. | integer | | Yes | |
32+
| ledger_key_hash | Ledger key hash used to identify expiring contract data or contract code ledger entries | string | | Yes | |
33+
| n_instructions | Number of instructions in contract code | integer | | | |
34+
| n_functions | Number of functions in contract code | integer | | | |
35+
| n_globals | Number of global variables in contract code | integer | | | |
36+
| n_table_entries | Number of table entries in contract code | integer | | | |
37+
| n_types | Number of types in contract code | integer | | | |
38+
| n_data_segments | Number of data segments in contract code | integer | | | |
39+
| n_elem_segments | Number of element segments in contract code | integer | | | |
40+
| n_imports | Number of imports in contract code | integer | | | |
41+
| n_exports | Number of exports in contract code | integer | | | |
42+
| n_data_segment_bytes | Number of data segment bytes in contract code | integer | | | |
43+
44+
</div>

0 commit comments

Comments
 (0)