From 9d5d5d7a966688d29f8b5ca6cb382d872becf73d Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 16:07:50 -0500 Subject: [PATCH 01/31] Add workflow to calculate source data schema diff --- .../update_source_data_schema_changelog.yml | 43 ++++++++++++ changelog/source_data.md | 0 schemas/account_signers_schema.json | 5 ++ scripts/get_source_data_schema_changelog.py | 67 +++++++++++++++++++ 4 files changed, 115 insertions(+) create mode 100644 .github/workflows/update_source_data_schema_changelog.yml create mode 100644 changelog/source_data.md create mode 100644 scripts/get_source_data_schema_changelog.py diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml new file mode 100644 index 00000000..83cae905 --- /dev/null +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -0,0 +1,43 @@ +name: Update changelog for Source Data + +on: + push: + branches: + - patch/update-source-data-schema-changelog + +concurrency: + group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}-{{ github.event_name }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Run Bash Script + run: | + cd $GITHUB_WORKSPACE + cp -r schemas/ new_schemas/ + git checkout main + cp -r schemas/ old_schemas + output=$(python3 scripts/get_source_data_schema_changelog.py) + echo "$output" > changelog/source_data.md + + - name: Commit changes + id: commit_changes + run: | + git add changelog/source_data.md + if git commit -m "Update changelog for Source data"; then + echo "Changes committed." + echo "changes_committed=true" >> $GITHUB_OUTPUT + else + echo "No changes to commit." + echo "changes_committed=false" >> $GITHUB_OUTPUT + fi + + - name: Push branch + if: steps.commit_changes.outputs.changes_committed == 'true' + run: | + git push diff --git a/changelog/source_data.md b/changelog/source_data.md new file mode 100644 index 00000000..e69de29b diff --git a/schemas/account_signers_schema.json b/schemas/account_signers_schema.json index fd92d8a6..63f7796b 100644 --- a/schemas/account_signers_schema.json +++ b/schemas/account_signers_schema.json @@ -58,5 +58,10 @@ "mode": "NULLABLE", "name": "ledger_sequence", "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequences", + "type": "INTEGER" } ] diff --git a/scripts/get_source_data_schema_changelog.py b/scripts/get_source_data_schema_changelog.py new file mode 100644 index 00000000..df0d2092 --- /dev/null +++ b/scripts/get_source_data_schema_changelog.py @@ -0,0 +1,67 @@ +import os +import json + +# Directories containing old and new schemas +old_schemas_dir = "original_schemas" +new_schemas_dir = "new_schemas" + +# Check if the directories exist +if not os.path.exists(old_schemas_dir): + print(f"Directory {old_schemas_dir} does not exist.") + exit(1) + +if not os.path.exists(new_schemas_dir): + print(f"Directory {new_schemas_dir} does not exist.") + exit(1) + +def read_json_file(filepath): + with open(filepath, 'r') as f: + return json.load(f) + +new_schemas = [file.replace("_schema.json", "") for file in os.listdir(new_schemas_dir)] +old_schemas = [file.replace("_schema.json", "") for file in os.listdir(old_schemas_dir)] + +tables_added = [model for model in new_schemas if model not in old_schemas] +tables_removed = [model for model in old_schemas if model not in new_schemas] +common_tables = [model for model in new_schemas if model in old_schemas] + +if tables_added: + print("") + print("## Tables Added:") + print([table for table in tables_added]) + +if tables_removed: + print("") + print("## Tables Removed:") + print([table for table in tables_removed]) + +for schema in common_tables: + old_file_path = os.path.join(old_schemas_dir, schema + '_schema.json') + new_file_path = os.path.join(new_schemas_dir, schema + '_schema.json') + + new_data = read_json_file(new_file_path) + old_data = read_json_file(old_file_path) + + old_dict = {item['name']: item for item in old_data} + new_dict = {item['name']: item for item in new_data} + + added = [new_dict[name]['name'] for name in new_dict if name not in old_dict] + deleted = [old_dict[name]['name'] for name in old_dict if name not in new_dict] + type_changed = [ + (new_dict[name]['name'], new_dict[name]['type'], old_dict[name]['type']) for name in new_dict + if name in old_dict and new_dict[name]['type'] != old_dict[name]['type'] + ] + + if added or deleted or type_changed: + print("") + print(f"## {schema}") + + if added: + print(f'**Added columns:** {[field for field in added]}') + + if deleted: + print(f'**Deleted columns:** {[field for field in deleted]}') + + if type_changed: + for (field, new_type, old_type) in type_changed: + print(f'Type changed for column {field} from {old_type} to {new_type}') From ee6b61a1b84416c6c2513ba579af57d06a4deb2d Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 16:09:58 -0500 Subject: [PATCH 02/31] Fix branch name --- .github/workflows/update_source_data_schema_changelog.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index 83cae905..4daba374 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -16,11 +16,16 @@ jobs: - name: Checkout Repository uses: actions/checkout@v2 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: 3.8 + - name: Run Bash Script run: | cd $GITHUB_WORKSPACE cp -r schemas/ new_schemas/ - git checkout main + git checkout master cp -r schemas/ old_schemas output=$(python3 scripts/get_source_data_schema_changelog.py) echo "$output" > changelog/source_data.md From 79121d1b8f6d8f63df6690794bb77a911c04200a Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 16:14:47 -0500 Subject: [PATCH 03/31] Try cloning repo update update --- .github/workflows/update_source_data_schema_changelog.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index 4daba374..ad795991 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -23,16 +23,19 @@ jobs: - name: Run Bash Script run: | + set -x cd $GITHUB_WORKSPACE cp -r schemas/ new_schemas/ - git checkout master - cp -r schemas/ old_schemas + git clone --branch master https://github.com/stellar/stellar-etl-airflow.git repo_master_copy + cp -r repo_master_copy/schemas/ old_schemas/ output=$(python3 scripts/get_source_data_schema_changelog.py) echo "$output" > changelog/source_data.md - name: Commit changes id: commit_changes run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" git add changelog/source_data.md if git commit -m "Update changelog for Source data"; then echo "Changes committed." From b1d124b62e86c2803af17e1ca7009731e3c8376f Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 16:21:46 -0500 Subject: [PATCH 04/31] typo Check all edge cases of changelog test test test --- .../update_source_data_schema_changelog.yml | 5 +- changelog/source_data.md | 1 + schemas/dimAccounts_schema.json | 12 -- schemas/dimOffers_schema.json | 5 + schemas/history_assets_schema.json | 2 +- schemas/history_trades_schema.json | 5 - schemas/new_table_schema.json | 118 ++++++++++++++++++ schemas/offers_schema.json | 2 +- schemas/trust_lines_schema.json | 5 - 9 files changed, 129 insertions(+), 26 deletions(-) delete mode 100644 schemas/dimAccounts_schema.json create mode 100644 schemas/new_table_schema.json diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index ad795991..0478f412 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -27,9 +27,10 @@ jobs: cd $GITHUB_WORKSPACE cp -r schemas/ new_schemas/ git clone --branch master https://github.com/stellar/stellar-etl-airflow.git repo_master_copy - cp -r repo_master_copy/schemas/ old_schemas/ + cp -r repo_master_copy/schemas/ original_schemas/ output=$(python3 scripts/get_source_data_schema_changelog.py) - echo "$output" > changelog/source_data.md + if [[ -n "$output" ]]; then + echo "hello" - name: Commit changes id: commit_changes diff --git a/changelog/source_data.md b/changelog/source_data.md index e69de29b..d7b218ef 100644 --- a/changelog/source_data.md +++ b/changelog/source_data.md @@ -0,0 +1 @@ +## Junk data to check if append works diff --git a/schemas/dimAccounts_schema.json b/schemas/dimAccounts_schema.json deleted file mode 100644 index 67c848ff..00000000 --- a/schemas/dimAccounts_schema.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_id", - "type": "FLOAT" - } -] diff --git a/schemas/dimOffers_schema.json b/schemas/dimOffers_schema.json index 63b4e757..eb6b4f23 100644 --- a/schemas/dimOffers_schema.json +++ b/schemas/dimOffers_schema.json @@ -38,5 +38,10 @@ "mode": "NULLABLE", "name": "horizon_offer_id", "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "new_id", + "type": "INTEGER" } ] diff --git a/schemas/history_assets_schema.json b/schemas/history_assets_schema.json index c6576a96..a92dc485 100644 --- a/schemas/history_assets_schema.json +++ b/schemas/history_assets_schema.json @@ -7,7 +7,7 @@ { "mode": "NULLABLE", "name": "asset_code", - "type": "STRING" + "type": "INTEGER" }, { "mode": "NULLABLE", diff --git a/schemas/history_trades_schema.json b/schemas/history_trades_schema.json index 494d1893..e61d456a 100644 --- a/schemas/history_trades_schema.json +++ b/schemas/history_trades_schema.json @@ -29,11 +29,6 @@ "name": "selling_asset_issuer", "type": "STRING" }, - { - "mode": "NULLABLE", - "name": "selling_asset_type", - "type": "STRING" - }, { "mode": "NULLABLE", "name": "selling_asset_id", diff --git a/schemas/new_table_schema.json b/schemas/new_table_schema.json new file mode 100644 index 00000000..a0f621bf --- /dev/null +++ b/schemas/new_table_schema.json @@ -0,0 +1,118 @@ +[ + { + "mode": "NULLABLE", + "name": "liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "trustline_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "pool_share_count", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_a_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_a_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_a_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_a_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "asset_a_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_b_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_b_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_b_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_b_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "asset_b_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } + ] + \ No newline at end of file diff --git a/schemas/offers_schema.json b/schemas/offers_schema.json index e5104ca0..0a8a11e4 100644 --- a/schemas/offers_schema.json +++ b/schemas/offers_schema.json @@ -47,7 +47,7 @@ { "mode": "NULLABLE", "name": "buying_asset_id", - "type": "INTEGER" + "type": "STRING" }, { "mode": "NULLABLE", diff --git a/schemas/trust_lines_schema.json b/schemas/trust_lines_schema.json index 1502d701..c6370df8 100644 --- a/schemas/trust_lines_schema.json +++ b/schemas/trust_lines_schema.json @@ -9,11 +9,6 @@ "name": "account_id", "type": "STRING" }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, { "mode": "NULLABLE", "name": "asset_issuer", From c3c1ab81039487ea2ee36138833bc55d82b921a8 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 16:40:26 -0500 Subject: [PATCH 05/31] write regardless --- .github/workflows/update_source_data_schema_changelog.yml | 5 +++-- scripts/get_source_data_schema_changelog.py | 2 -- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index 0478f412..3b079a08 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -29,8 +29,9 @@ jobs: git clone --branch master https://github.com/stellar/stellar-etl-airflow.git repo_master_copy cp -r repo_master_copy/schemas/ original_schemas/ output=$(python3 scripts/get_source_data_schema_changelog.py) - if [[ -n "$output" ]]; then - echo "hello" + existing_changelog=$( changelog/source_data.md + echo "$existing_changelog"> changelog/source_data.md - name: Commit changes id: commit_changes diff --git a/scripts/get_source_data_schema_changelog.py b/scripts/get_source_data_schema_changelog.py index df0d2092..187a14f0 100644 --- a/scripts/get_source_data_schema_changelog.py +++ b/scripts/get_source_data_schema_changelog.py @@ -1,11 +1,9 @@ import os import json -# Directories containing old and new schemas old_schemas_dir = "original_schemas" new_schemas_dir = "new_schemas" -# Check if the directories exist if not os.path.exists(old_schemas_dir): print(f"Directory {old_schemas_dir} does not exist.") exit(1) From 002116052d93d2f9a69d7ea6c310389e5c059054 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 16:47:21 -0500 Subject: [PATCH 06/31] append --- .github/workflows/update_source_data_schema_changelog.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index 3b079a08..36144b25 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -31,7 +31,7 @@ jobs: output=$(python3 scripts/get_source_data_schema_changelog.py) existing_changelog=$( changelog/source_data.md - echo "$existing_changelog"> changelog/source_data.md + echo "$existing_changelog" >> changelog/source_data.md - name: Commit changes id: commit_changes From 60aeb0a39c1cbe6d015170a9934f25c190dc0d27 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 17:02:49 -0500 Subject: [PATCH 07/31] update script to also display date reformat --- scripts/get_source_data_schema_changelog.py | 63 +++++++++++++++------ 1 file changed, 46 insertions(+), 17 deletions(-) diff --git a/scripts/get_source_data_schema_changelog.py b/scripts/get_source_data_schema_changelog.py index 187a14f0..27f514b6 100644 --- a/scripts/get_source_data_schema_changelog.py +++ b/scripts/get_source_data_schema_changelog.py @@ -1,5 +1,6 @@ import os import json +from datetime import datetime old_schemas_dir = "original_schemas" new_schemas_dir = "new_schemas" @@ -23,15 +24,7 @@ def read_json_file(filepath): tables_removed = [model for model in old_schemas if model not in new_schemas] common_tables = [model for model in new_schemas if model in old_schemas] -if tables_added: - print("") - print("## Tables Added:") - print([table for table in tables_added]) - -if tables_removed: - print("") - print("## Tables Removed:") - print([table for table in tables_removed]) +schema_changes = {} for schema in common_tables: old_file_path = os.path.join(old_schemas_dir, schema + '_schema.json') @@ -50,16 +43,52 @@ def read_json_file(filepath): if name in old_dict and new_dict[name]['type'] != old_dict[name]['type'] ] - if added or deleted or type_changed: - print("") - print(f"## {schema}") - if added: - print(f'**Added columns:** {[field for field in added]}') + if schema not in schema_changes: + schema_changes[schema] = {} + schema_changes[schema]['added'] = added if deleted: - print(f'**Deleted columns:** {[field for field in deleted]}') + if schema not in schema_changes: + schema_changes[schema] = {} + schema_changes[schema]['deleted'] = deleted if type_changed: - for (field, new_type, old_type) in type_changed: - print(f'Type changed for column {field} from {old_type} to {new_type}') + if schema not in schema_changes: + schema_changes[schema] = {} + schema_changes[schema]['type_changed'] = type_changed + +if tables_added or tables_removed or schema_changes: + today = datetime.now() + formatted_date = today.strftime("%Y-%m-%d") + print(formatted_date) + +if tables_added: + print("") + print("## Tables Added:") + print([table for table in tables_added]) + +if tables_removed: + print("") + print("## Tables Removed:") + print([table for table in tables_removed]) + +if schema_changes: + print("") + print("## Schema Changes:") + +for schema in schema_changes: + print("") + print(schema) + for operation_type in schema_changes[schema]: + data = schema_changes[schema][operation_type] + if operation_type == 'added': + print("") + print(f'**Added columns:** {[field for field in data]}') + elif operation_type == 'deleted': + print("") + print(f'**Deleted columns:** {[field for field in data]}') + elif operation_type == 'type_changed': + for (field, new_type, old_type) in data: + print("") + print(f'**Type changed** for column {field} from {old_type} to {new_type}') From 66767d19aff8c17314cfaf98004be083c235bdf9 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 17:19:33 -0500 Subject: [PATCH 08/31] Reformat the md file --- changelog/source_data.md | 14 ++++++- scripts/get_source_data_schema_changelog.py | 41 +++++++++------------ 2 files changed, 31 insertions(+), 24 deletions(-) diff --git a/changelog/source_data.md b/changelog/source_data.md index d7b218ef..cae7c7a0 100644 --- a/changelog/source_data.md +++ b/changelog/source_data.md @@ -1 +1,13 @@ -## Junk data to check if append works +## 2024-01-01 + +## Tables Added: +['new_table'] + +### Tables Removed: +['old_table'] + +### Schema Changes: +| Table Name | Operation | Columns | +|---------------------------------|---------------|--------------------------| +| euro_ohlc | type_changed | high (TIMESTAMP -> FLOAT) | +| account_signers | column_added | ledger_sequences | diff --git a/scripts/get_source_data_schema_changelog.py b/scripts/get_source_data_schema_changelog.py index 27f514b6..32440f39 100644 --- a/scripts/get_source_data_schema_changelog.py +++ b/scripts/get_source_data_schema_changelog.py @@ -46,12 +46,12 @@ def read_json_file(filepath): if added: if schema not in schema_changes: schema_changes[schema] = {} - schema_changes[schema]['added'] = added + schema_changes[schema]['column_added'] = added if deleted: if schema not in schema_changes: schema_changes[schema] = {} - schema_changes[schema]['deleted'] = deleted + schema_changes[schema]['column_removed'] = deleted if type_changed: if schema not in schema_changes: @@ -59,9 +59,8 @@ def read_json_file(filepath): schema_changes[schema]['type_changed'] = type_changed if tables_added or tables_removed or schema_changes: - today = datetime.now() - formatted_date = today.strftime("%Y-%m-%d") - print(formatted_date) + current_date = datetime.now().strftime("%Y-%m-%d") + print(f"## {current_date}") if tables_added: print("") @@ -70,25 +69,21 @@ def read_json_file(filepath): if tables_removed: print("") - print("## Tables Removed:") + print("### Tables Removed:") print([table for table in tables_removed]) if schema_changes: print("") - print("## Schema Changes:") - -for schema in schema_changes: - print("") - print(schema) - for operation_type in schema_changes[schema]: - data = schema_changes[schema][operation_type] - if operation_type == 'added': - print("") - print(f'**Added columns:** {[field for field in data]}') - elif operation_type == 'deleted': - print("") - print(f'**Deleted columns:** {[field for field in data]}') - elif operation_type == 'type_changed': - for (field, new_type, old_type) in data: - print("") - print(f'**Type changed** for column {field} from {old_type} to {new_type}') + print("### Schema Changes:") + + markdown_table = "| Table Name | Operation | Columns |\n" + markdown_table += "|---------------------------------|---------------|--------------------------|\n" + + for table_name, operations in schema_changes.items(): + for operation, columns in operations.items(): + if operation in ['column_added', 'column_removed']: + columns_str = ", ".join(columns) + if operation in ['type_changed']: + columns_str = ", ".join([f"{column[0]} ({column[2]} -> {column[1]})" for column in columns]) + markdown_table += f"| {table_name:<33} | {operation:<13} | {columns_str:<24} |\n" + print(markdown_table) From 9053a285907cbb81c605a8dfac02e40ea24b1c17 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 17:28:44 -0500 Subject: [PATCH 09/31] More formatting and testng edge cases --- schemas/dimOffers_schema.json | 5 +++++ schemas/history_assets_schema.json | 2 +- schemas/history_trades_schema.json | 5 ----- scripts/get_source_data_schema_changelog.py | 12 +++++++++++- 4 files changed, 17 insertions(+), 7 deletions(-) diff --git a/schemas/dimOffers_schema.json b/schemas/dimOffers_schema.json index eb6b4f23..57356d74 100644 --- a/schemas/dimOffers_schema.json +++ b/schemas/dimOffers_schema.json @@ -43,5 +43,10 @@ "mode": "NULLABLE", "name": "new_id", "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "another_new_id", + "type": "INTEGER" } ] diff --git a/schemas/history_assets_schema.json b/schemas/history_assets_schema.json index a92dc485..f66971b7 100644 --- a/schemas/history_assets_schema.json +++ b/schemas/history_assets_schema.json @@ -12,7 +12,7 @@ { "mode": "NULLABLE", "name": "asset_issuer", - "type": "STRING" + "type": "INTEGER" }, { "mode": "NULLABLE", diff --git a/schemas/history_trades_schema.json b/schemas/history_trades_schema.json index e61d456a..09c14c0f 100644 --- a/schemas/history_trades_schema.json +++ b/schemas/history_trades_schema.json @@ -19,11 +19,6 @@ "name": "selling_account_address", "type": "STRING" }, - { - "mode": "NULLABLE", - "name": "selling_asset_code", - "type": "STRING" - }, { "mode": "NULLABLE", "name": "selling_asset_issuer", diff --git a/scripts/get_source_data_schema_changelog.py b/scripts/get_source_data_schema_changelog.py index 32440f39..d232cb68 100644 --- a/scripts/get_source_data_schema_changelog.py +++ b/scripts/get_source_data_schema_changelog.py @@ -72,14 +72,24 @@ def read_json_file(filepath): print("### Tables Removed:") print([table for table in tables_removed]) +def sort_schema_changes(changes): + sorted_data = {} + + for table_name in sorted(changes.keys()): + sorted_operations = {op_type: sorted(changes[table_name][op_type]) + for op_type in sorted(changes[table_name].keys())} + sorted_data[table_name] = sorted_operations + return sorted_data + if schema_changes: + sorted_schema_changes = sort_schema_changes(schema_changes) print("") print("### Schema Changes:") markdown_table = "| Table Name | Operation | Columns |\n" markdown_table += "|---------------------------------|---------------|--------------------------|\n" - for table_name, operations in schema_changes.items(): + for table_name, operations in sorted_schema_changes.items(): for operation, columns in operations.items(): if operation in ['column_added', 'column_removed']: columns_str = ", ".join(columns) From f0992299cff9987aa1fbd8bf98c2c730df345efd Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 17:33:17 -0500 Subject: [PATCH 10/31] update script --- scripts/get_source_data_schema_changelog.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/get_source_data_schema_changelog.py b/scripts/get_source_data_schema_changelog.py index d232cb68..20da4290 100644 --- a/scripts/get_source_data_schema_changelog.py +++ b/scripts/get_source_data_schema_changelog.py @@ -60,6 +60,7 @@ def read_json_file(filepath): if tables_added or tables_removed or schema_changes: current_date = datetime.now().strftime("%Y-%m-%d") + print("") print(f"## {current_date}") if tables_added: From 77a1e1c2b122e74b130f8c06fc497aae99057868 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 17:36:41 -0500 Subject: [PATCH 11/31] revert back all schema changes test test figured it out --- .../update_source_data_schema_changelog.yml | 8 +- schemas/account_signers_schema.json | 5 - schemas/dimAccounts_schema.json | 12 ++ schemas/dimOffers_schema.json | 10 -- schemas/history_assets_schema.json | 4 +- schemas/history_trades_schema.json | 10 ++ schemas/new_table_schema.json | 118 ------------------ schemas/offers_schema.json | 2 +- schemas/trust_lines_schema.json | 5 + 9 files changed, 35 insertions(+), 139 deletions(-) create mode 100644 schemas/dimAccounts_schema.json delete mode 100644 schemas/new_table_schema.json diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index 36144b25..df7f8c25 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -29,9 +29,11 @@ jobs: git clone --branch master https://github.com/stellar/stellar-etl-airflow.git repo_master_copy cp -r repo_master_copy/schemas/ original_schemas/ output=$(python3 scripts/get_source_data_schema_changelog.py) - existing_changelog=$( changelog/source_data.md - echo "$existing_changelog" >> changelog/source_data.md + if [[ -n "$output" ]]; then + existing_changelog=$( changelog/source_data.md + echo "$existing_changelog" >> changelog/source_data.md + fi - name: Commit changes id: commit_changes diff --git a/schemas/account_signers_schema.json b/schemas/account_signers_schema.json index 63f7796b..fd92d8a6 100644 --- a/schemas/account_signers_schema.json +++ b/schemas/account_signers_schema.json @@ -58,10 +58,5 @@ "mode": "NULLABLE", "name": "ledger_sequence", "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequences", - "type": "INTEGER" } ] diff --git a/schemas/dimAccounts_schema.json b/schemas/dimAccounts_schema.json new file mode 100644 index 00000000..67c848ff --- /dev/null +++ b/schemas/dimAccounts_schema.json @@ -0,0 +1,12 @@ +[ + { + "mode": "NULLABLE", + "name": "address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_id", + "type": "FLOAT" + } +] diff --git a/schemas/dimOffers_schema.json b/schemas/dimOffers_schema.json index 57356d74..63b4e757 100644 --- a/schemas/dimOffers_schema.json +++ b/schemas/dimOffers_schema.json @@ -38,15 +38,5 @@ "mode": "NULLABLE", "name": "horizon_offer_id", "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "new_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "another_new_id", - "type": "INTEGER" } ] diff --git a/schemas/history_assets_schema.json b/schemas/history_assets_schema.json index f66971b7..c6576a96 100644 --- a/schemas/history_assets_schema.json +++ b/schemas/history_assets_schema.json @@ -7,12 +7,12 @@ { "mode": "NULLABLE", "name": "asset_code", - "type": "INTEGER" + "type": "STRING" }, { "mode": "NULLABLE", "name": "asset_issuer", - "type": "INTEGER" + "type": "STRING" }, { "mode": "NULLABLE", diff --git a/schemas/history_trades_schema.json b/schemas/history_trades_schema.json index 09c14c0f..494d1893 100644 --- a/schemas/history_trades_schema.json +++ b/schemas/history_trades_schema.json @@ -19,11 +19,21 @@ "name": "selling_account_address", "type": "STRING" }, + { + "mode": "NULLABLE", + "name": "selling_asset_code", + "type": "STRING" + }, { "mode": "NULLABLE", "name": "selling_asset_issuer", "type": "STRING" }, + { + "mode": "NULLABLE", + "name": "selling_asset_type", + "type": "STRING" + }, { "mode": "NULLABLE", "name": "selling_asset_id", diff --git a/schemas/new_table_schema.json b/schemas/new_table_schema.json deleted file mode 100644 index a0f621bf..00000000 --- a/schemas/new_table_schema.json +++ /dev/null @@ -1,118 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "trustline_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "pool_share_count", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_a_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_a_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_a_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_a_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "asset_a_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_b_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_b_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_b_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_b_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "asset_b_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } - ] - \ No newline at end of file diff --git a/schemas/offers_schema.json b/schemas/offers_schema.json index 0a8a11e4..e5104ca0 100644 --- a/schemas/offers_schema.json +++ b/schemas/offers_schema.json @@ -47,7 +47,7 @@ { "mode": "NULLABLE", "name": "buying_asset_id", - "type": "STRING" + "type": "INTEGER" }, { "mode": "NULLABLE", diff --git a/schemas/trust_lines_schema.json b/schemas/trust_lines_schema.json index c6370df8..1502d701 100644 --- a/schemas/trust_lines_schema.json +++ b/schemas/trust_lines_schema.json @@ -9,6 +9,11 @@ "name": "account_id", "type": "STRING" }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, { "mode": "NULLABLE", "name": "asset_issuer", From 262c108b650acc7db6567937cd01892ea3878012 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 17:49:33 -0500 Subject: [PATCH 12/31] field addition and deletion --- schemas/claimable_balances_schema.json | 5 +++++ schemas/dimMarkets_schema.json | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/schemas/claimable_balances_schema.json b/schemas/claimable_balances_schema.json index 1ee7b54b..9a722720 100644 --- a/schemas/claimable_balances_schema.json +++ b/schemas/claimable_balances_schema.json @@ -4,6 +4,11 @@ "name": "balance_id", "type": "STRING" }, + { + "mode": "NULLABLE", + "name": "new_id", + "type": "STRING" + }, { "fields": [ { diff --git a/schemas/dimMarkets_schema.json b/schemas/dimMarkets_schema.json index b606bd40..aa621b3c 100644 --- a/schemas/dimMarkets_schema.json +++ b/schemas/dimMarkets_schema.json @@ -9,11 +9,6 @@ "name": "counter_code", "type": "STRING" }, - { - "mode": "NULLABLE", - "name": "base_issuer", - "type": "STRING" - }, { "mode": "NULLABLE", "name": "base_code", From a53552ffcb15037c6a406a13c1475519e8b796ab Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 18:04:36 -0500 Subject: [PATCH 13/31] lint another take at lint --- scripts/get_source_data_schema_changelog.py | 49 +++++++++++++-------- 1 file changed, 30 insertions(+), 19 deletions(-) diff --git a/scripts/get_source_data_schema_changelog.py b/scripts/get_source_data_schema_changelog.py index 20da4290..a2664753 100644 --- a/scripts/get_source_data_schema_changelog.py +++ b/scripts/get_source_data_schema_changelog.py @@ -1,5 +1,5 @@ -import os import json +import os from datetime import datetime old_schemas_dir = "original_schemas" @@ -13,10 +13,12 @@ print(f"Directory {new_schemas_dir} does not exist.") exit(1) + def read_json_file(filepath): - with open(filepath, 'r') as f: + with open(filepath, "r") as f: return json.load(f) + new_schemas = [file.replace("_schema.json", "") for file in os.listdir(new_schemas_dir)] old_schemas = [file.replace("_schema.json", "") for file in os.listdir(old_schemas_dir)] @@ -27,36 +29,37 @@ def read_json_file(filepath): schema_changes = {} for schema in common_tables: - old_file_path = os.path.join(old_schemas_dir, schema + '_schema.json') - new_file_path = os.path.join(new_schemas_dir, schema + '_schema.json') + old_file_path = os.path.join(old_schemas_dir, schema + "_schema.json") + new_file_path = os.path.join(new_schemas_dir, schema + "_schema.json") new_data = read_json_file(new_file_path) old_data = read_json_file(old_file_path) - old_dict = {item['name']: item for item in old_data} - new_dict = {item['name']: item for item in new_data} + old_dict = {item["name"]: item for item in old_data} + new_dict = {item["name"]: item for item in new_data} - added = [new_dict[name]['name'] for name in new_dict if name not in old_dict] - deleted = [old_dict[name]['name'] for name in old_dict if name not in new_dict] + added = [new_dict[name]["name"] for name in new_dict if name not in old_dict] + deleted = [old_dict[name]["name"] for name in old_dict if name not in new_dict] type_changed = [ - (new_dict[name]['name'], new_dict[name]['type'], old_dict[name]['type']) for name in new_dict - if name in old_dict and new_dict[name]['type'] != old_dict[name]['type'] + (new_dict[name]["name"], new_dict[name]["type"], old_dict[name]["type"]) + for name in new_dict + if name in old_dict and new_dict[name]["type"] != old_dict[name]["type"] ] if added: if schema not in schema_changes: schema_changes[schema] = {} - schema_changes[schema]['column_added'] = added + schema_changes[schema]["column_added"] = added if deleted: if schema not in schema_changes: schema_changes[schema] = {} - schema_changes[schema]['column_removed'] = deleted + schema_changes[schema]["column_removed"] = deleted if type_changed: if schema not in schema_changes: schema_changes[schema] = {} - schema_changes[schema]['type_changed'] = type_changed + schema_changes[schema]["type_changed"] = type_changed if tables_added or tables_removed or schema_changes: current_date = datetime.now().strftime("%Y-%m-%d") @@ -73,15 +76,19 @@ def read_json_file(filepath): print("### Tables Removed:") print([table for table in tables_removed]) + def sort_schema_changes(changes): sorted_data = {} for table_name in sorted(changes.keys()): - sorted_operations = {op_type: sorted(changes[table_name][op_type]) - for op_type in sorted(changes[table_name].keys())} + sorted_operations = { + op_type: sorted(changes[table_name][op_type]) + for op_type in sorted(changes[table_name].keys()) + } sorted_data[table_name] = sorted_operations return sorted_data + if schema_changes: sorted_schema_changes = sort_schema_changes(schema_changes) print("") @@ -92,9 +99,13 @@ def sort_schema_changes(changes): for table_name, operations in sorted_schema_changes.items(): for operation, columns in operations.items(): - if operation in ['column_added', 'column_removed']: + if operation in ["column_added", "column_removed"]: columns_str = ", ".join(columns) - if operation in ['type_changed']: - columns_str = ", ".join([f"{column[0]} ({column[2]} -> {column[1]})" for column in columns]) - markdown_table += f"| {table_name:<33} | {operation:<13} | {columns_str:<24} |\n" + if operation in ["type_changed"]: + columns_str = ", ".join( + [f"{column[0]} ({column[2]} -> {column[1]})" for column in columns] + ) + markdown_table += ( + f"| {table_name:<33} | {operation:<13} | {columns_str:<24} |\n" + ) print(markdown_table) From 21b7229e17adadf09a0283df910db14137a1e4c3 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 30 Oct 2024 18:15:47 -0500 Subject: [PATCH 14/31] cleanup --- .github/workflows/update_source_data_schema_changelog.yml | 4 ++-- schemas/claimable_balances_schema.json | 5 ----- schemas/dimMarkets_schema.json | 5 +++++ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index df7f8c25..f49d5dfe 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -1,9 +1,9 @@ name: Update changelog for Source Data on: - push: + pull_request: branches: - - patch/update-source-data-schema-changelog + - master concurrency: group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}-{{ github.event_name }} diff --git a/schemas/claimable_balances_schema.json b/schemas/claimable_balances_schema.json index 9a722720..1ee7b54b 100644 --- a/schemas/claimable_balances_schema.json +++ b/schemas/claimable_balances_schema.json @@ -4,11 +4,6 @@ "name": "balance_id", "type": "STRING" }, - { - "mode": "NULLABLE", - "name": "new_id", - "type": "STRING" - }, { "fields": [ { diff --git a/schemas/dimMarkets_schema.json b/schemas/dimMarkets_schema.json index aa621b3c..b606bd40 100644 --- a/schemas/dimMarkets_schema.json +++ b/schemas/dimMarkets_schema.json @@ -9,6 +9,11 @@ "name": "counter_code", "type": "STRING" }, + { + "mode": "NULLABLE", + "name": "base_issuer", + "type": "STRING" + }, { "mode": "NULLABLE", "name": "base_code", From 446e43ef39da037d5cccd6d1eccb16dc3278b087 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Mon, 4 Nov 2024 15:51:52 -0600 Subject: [PATCH 15/31] Modularize python script --- .../update_source_data_schema_changelog.yml | 26 +--- scripts/get_source_data_schema_changelog.py | 111 -------------- .../update_source_data_schema_changelog.py | 144 ++++++++++++++++++ 3 files changed, 151 insertions(+), 130 deletions(-) delete mode 100644 scripts/get_source_data_schema_changelog.py create mode 100644 scripts/update_source_data_schema_changelog.py diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index f49d5dfe..1418c41e 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -19,37 +19,25 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: 3.8 + python-version: 3.12 - name: Run Bash Script run: | set -x cd $GITHUB_WORKSPACE + OLD_SCHEMAS_DIR=original_schemas cp -r schemas/ new_schemas/ git clone --branch master https://github.com/stellar/stellar-etl-airflow.git repo_master_copy - cp -r repo_master_copy/schemas/ original_schemas/ - output=$(python3 scripts/get_source_data_schema_changelog.py) - if [[ -n "$output" ]]; then - existing_changelog=$( changelog/source_data.md - echo "$existing_changelog" >> changelog/source_data.md - fi + cp -r repo_master_copy/schemas/ OLD_SCHEMAS_DIR + export OLD_SCHEMAS_DIR + python3 scripts/update_source_data_schema_changelog.py - - name: Commit changes - id: commit_changes + - name: Commit and Push Changes run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add changelog/source_data.md if git commit -m "Update changelog for Source data"; then echo "Changes committed." - echo "changes_committed=true" >> $GITHUB_OUTPUT - else - echo "No changes to commit." - echo "changes_committed=false" >> $GITHUB_OUTPUT + git push fi - - - name: Push branch - if: steps.commit_changes.outputs.changes_committed == 'true' - run: | - git push diff --git a/scripts/get_source_data_schema_changelog.py b/scripts/get_source_data_schema_changelog.py deleted file mode 100644 index a2664753..00000000 --- a/scripts/get_source_data_schema_changelog.py +++ /dev/null @@ -1,111 +0,0 @@ -import json -import os -from datetime import datetime - -old_schemas_dir = "original_schemas" -new_schemas_dir = "new_schemas" - -if not os.path.exists(old_schemas_dir): - print(f"Directory {old_schemas_dir} does not exist.") - exit(1) - -if not os.path.exists(new_schemas_dir): - print(f"Directory {new_schemas_dir} does not exist.") - exit(1) - - -def read_json_file(filepath): - with open(filepath, "r") as f: - return json.load(f) - - -new_schemas = [file.replace("_schema.json", "") for file in os.listdir(new_schemas_dir)] -old_schemas = [file.replace("_schema.json", "") for file in os.listdir(old_schemas_dir)] - -tables_added = [model for model in new_schemas if model not in old_schemas] -tables_removed = [model for model in old_schemas if model not in new_schemas] -common_tables = [model for model in new_schemas if model in old_schemas] - -schema_changes = {} - -for schema in common_tables: - old_file_path = os.path.join(old_schemas_dir, schema + "_schema.json") - new_file_path = os.path.join(new_schemas_dir, schema + "_schema.json") - - new_data = read_json_file(new_file_path) - old_data = read_json_file(old_file_path) - - old_dict = {item["name"]: item for item in old_data} - new_dict = {item["name"]: item for item in new_data} - - added = [new_dict[name]["name"] for name in new_dict if name not in old_dict] - deleted = [old_dict[name]["name"] for name in old_dict if name not in new_dict] - type_changed = [ - (new_dict[name]["name"], new_dict[name]["type"], old_dict[name]["type"]) - for name in new_dict - if name in old_dict and new_dict[name]["type"] != old_dict[name]["type"] - ] - - if added: - if schema not in schema_changes: - schema_changes[schema] = {} - schema_changes[schema]["column_added"] = added - - if deleted: - if schema not in schema_changes: - schema_changes[schema] = {} - schema_changes[schema]["column_removed"] = deleted - - if type_changed: - if schema not in schema_changes: - schema_changes[schema] = {} - schema_changes[schema]["type_changed"] = type_changed - -if tables_added or tables_removed or schema_changes: - current_date = datetime.now().strftime("%Y-%m-%d") - print("") - print(f"## {current_date}") - -if tables_added: - print("") - print("## Tables Added:") - print([table for table in tables_added]) - -if tables_removed: - print("") - print("### Tables Removed:") - print([table for table in tables_removed]) - - -def sort_schema_changes(changes): - sorted_data = {} - - for table_name in sorted(changes.keys()): - sorted_operations = { - op_type: sorted(changes[table_name][op_type]) - for op_type in sorted(changes[table_name].keys()) - } - sorted_data[table_name] = sorted_operations - return sorted_data - - -if schema_changes: - sorted_schema_changes = sort_schema_changes(schema_changes) - print("") - print("### Schema Changes:") - - markdown_table = "| Table Name | Operation | Columns |\n" - markdown_table += "|---------------------------------|---------------|--------------------------|\n" - - for table_name, operations in sorted_schema_changes.items(): - for operation, columns in operations.items(): - if operation in ["column_added", "column_removed"]: - columns_str = ", ".join(columns) - if operation in ["type_changed"]: - columns_str = ", ".join( - [f"{column[0]} ({column[2]} -> {column[1]})" for column in columns] - ) - markdown_table += ( - f"| {table_name:<33} | {operation:<13} | {columns_str:<24} |\n" - ) - print(markdown_table) diff --git a/scripts/update_source_data_schema_changelog.py b/scripts/update_source_data_schema_changelog.py new file mode 100644 index 00000000..af28ced2 --- /dev/null +++ b/scripts/update_source_data_schema_changelog.py @@ -0,0 +1,144 @@ +import os +import sys +import json +from datetime import datetime + +OLD_SCHEMAS_DIR = os.environ.get(OLD_SCHEMAS_DIR) +NEW_SCHEMAS_DIR = "schemas" +CHANGELOG_FILEPATH = "changelog/source_data.md" + +def read_json_file(filepath: str) -> {}: + with open(filepath, "r") as rfp: + try: + return json.load(rfp) + except: + sys.exit(f"Not a valid JSON at filepath {filepath}.") + +def read_file(filepath: str) -> str: + with open(filepath, "r") as rfp: + return rfp.read() + +def write_file(filepath: str, content: str, mode="a") -> None: + with open(filepath, mode) as wfp: + wfp.write(content) + +def sort_schema_changes(schema_changes: {}) -> {}: + sorted_data = {} + + for table_name in sorted(schema_changes.keys()): + sorted_operations = { + op_type: sorted(schema_changes[table_name][op_type]) + for op_type in sorted(schema_changes[table_name].keys()) + } + sorted_data[table_name] = sorted_operations + return sorted_data + + +def get_filepaths(directory: str) -> []: + if not os.path.exists(directory): + sys.exit(f"Directory {directory} does not exist.") + return os.listdir(directory) + +def compare_lists(old_list=[], new_list=[]): + old_set = set(old_list) + new_set = set(new_list) + + common = old_set & new_set + added = new_set - old_set + deleted = old_set - new_set + + return list(common), list(added), list(deleted) + +def get_mapped_schema_json(directory: str, schema_name: str) -> {}: + schema_json = read_json_file(os.path.join(directory, schema_name)) + schema_json_by_col_name = {column["name"]: column for column in schema_json} + return schema_json_by_col_name + +def compare_schemas(schemas=[]) -> {}: + schema_changes = {} + + for schema in schemas: + old_schema_json_by_col_name = get_mapped_schema_json(directory=OLD_SCHEMAS_DIR, schema_name=schema) + new_schema_json_by_col_name = get_mapped_schema_json(directory=NEW_SCHEMAS_DIR, schema_name=schema) + + common, added, deleted = compare_lists(old_list=old_schema_json_by_col_name.keys(), new_list=new_schema_json_by_col_name.keys()) + + type_changed = [ + (col, old_schema_json_by_col_name[col]["type"], new_schema_json_by_col_name[col]["type"]) for col in common if old_schema_json_by_col_name[col]["type"] != new_schema_json_by_col_name[col]["type"] + ] + + if added or deleted or type_changed: + schema_changes[schema] = { + "column_added": added, + "column_removed": deleted, + "type_changed": type_changed, + } + + return schema_changes + +def print_label(label: str) -> str: + return f"\n## {label}:\n" + +def print_schemas(label="", schemas=[]) -> str: + print_string = "" + if not len(schemas): + return print_string + + print_string += print_label(label) + for schema in schemas: + print_string += f"- {schema}" + return print_string + +def print_schema_changes(label="", schema_changes={}) -> str: + print_string = "" + if not schema_changes: + return print_string + + print_string += print_label(label) + + markdown_table = "| Table Name | Operation | Columns |\n" + markdown_table += "|---------------------------------|---------------|--------------------------|\n" + + for table_name, operations in schema_changes.items(): + for operation, columns in operations.items(): + if len(columns): + if operation in ["column_added", "column_removed"]: + columns_str = ", ".join(columns) + if operation in ["type_changed"]: + columns_str = ", ".join( + [f"{column[0]} ({column[1]} -> {column[2]})" for column in columns] + ) + markdown_table += ( + f"| {table_name:<33} | {operation:<15} | {columns_str:<50} |\n" + ) + print_string += markdown_table + return print_string + +def generate_changelog(schemas_added=[], schemas_deleted=[], schemas_changes={}) -> str: + new_changelog = "" + if schemas_added or schemas_deleted or schemas_changes: + current_date = datetime.now().strftime("%Y-%m-%d") + new_changelog += print_label(current_date) + + new_changelog += print_schemas(label="Tables Added", schemas=schemas_added) + new_changelog += print_schemas(label="Tables Deleted", schemas=schemas_deleted) + + sorted_schema_changes = sort_schema_changes(schemas_changes) + new_changelog += print_schema_changes(label="Schema Changes", schema_changes=sorted_schema_changes) + return new_changelog + +def main(): + existing_changelog = read_file(filepath=CHANGELOG_FILEPATH) + old_schema_filepaths = get_filepaths(directory=OLD_SCHEMAS_DIR) + new_schema_filepaths = get_filepaths(directory=NEW_SCHEMAS_DIR) + + common, added, deleted = compare_lists(old_list=old_schema_filepaths, new_list=new_schema_filepaths) + schema_changes = compare_schemas(common) + new_changelog = generate_changelog(schemas_changes=schema_changes, schemas_added=added, schemas_deleted=deleted) + + if len(new_changelog): + write_file(filepath=CHANGELOG_FILEPATH, mode="w", content=new_changelog + '\n\n') + write_file(filepath=CHANGELOG_FILEPATH, mode="a", content=existing_changelog) + +if __name__ == "__main__": + main() From 89aaf0835c97750ea93ca9b708c9fe840641d615 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Mon, 4 Nov 2024 15:55:35 -0600 Subject: [PATCH 16/31] update script with black --- .../update_source_data_schema_changelog.py | 60 +++++++++++++++---- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/scripts/update_source_data_schema_changelog.py b/scripts/update_source_data_schema_changelog.py index af28ced2..db4dd83a 100644 --- a/scripts/update_source_data_schema_changelog.py +++ b/scripts/update_source_data_schema_changelog.py @@ -7,6 +7,7 @@ NEW_SCHEMAS_DIR = "schemas" CHANGELOG_FILEPATH = "changelog/source_data.md" + def read_json_file(filepath: str) -> {}: with open(filepath, "r") as rfp: try: @@ -14,14 +15,17 @@ def read_json_file(filepath: str) -> {}: except: sys.exit(f"Not a valid JSON at filepath {filepath}.") + def read_file(filepath: str) -> str: with open(filepath, "r") as rfp: return rfp.read() + def write_file(filepath: str, content: str, mode="a") -> None: with open(filepath, mode) as wfp: wfp.write(content) + def sort_schema_changes(schema_changes: {}) -> {}: sorted_data = {} @@ -39,6 +43,7 @@ def get_filepaths(directory: str) -> []: sys.exit(f"Directory {directory} does not exist.") return os.listdir(directory) + def compare_lists(old_list=[], new_list=[]): old_set = set(old_list) new_set = set(new_list) @@ -49,22 +54,38 @@ def compare_lists(old_list=[], new_list=[]): return list(common), list(added), list(deleted) + def get_mapped_schema_json(directory: str, schema_name: str) -> {}: schema_json = read_json_file(os.path.join(directory, schema_name)) schema_json_by_col_name = {column["name"]: column for column in schema_json} return schema_json_by_col_name + def compare_schemas(schemas=[]) -> {}: schema_changes = {} for schema in schemas: - old_schema_json_by_col_name = get_mapped_schema_json(directory=OLD_SCHEMAS_DIR, schema_name=schema) - new_schema_json_by_col_name = get_mapped_schema_json(directory=NEW_SCHEMAS_DIR, schema_name=schema) - - common, added, deleted = compare_lists(old_list=old_schema_json_by_col_name.keys(), new_list=new_schema_json_by_col_name.keys()) + old_schema_json_by_col_name = get_mapped_schema_json( + directory=OLD_SCHEMAS_DIR, schema_name=schema + ) + new_schema_json_by_col_name = get_mapped_schema_json( + directory=NEW_SCHEMAS_DIR, schema_name=schema + ) + + common, added, deleted = compare_lists( + old_list=old_schema_json_by_col_name.keys(), + new_list=new_schema_json_by_col_name.keys(), + ) type_changed = [ - (col, old_schema_json_by_col_name[col]["type"], new_schema_json_by_col_name[col]["type"]) for col in common if old_schema_json_by_col_name[col]["type"] != new_schema_json_by_col_name[col]["type"] + ( + col, + old_schema_json_by_col_name[col]["type"], + new_schema_json_by_col_name[col]["type"], + ) + for col in common + if old_schema_json_by_col_name[col]["type"] + != new_schema_json_by_col_name[col]["type"] ] if added or deleted or type_changed: @@ -76,9 +97,11 @@ def compare_schemas(schemas=[]) -> {}: return schema_changes + def print_label(label: str) -> str: return f"\n## {label}:\n" + def print_schemas(label="", schemas=[]) -> str: print_string = "" if not len(schemas): @@ -89,6 +112,7 @@ def print_schemas(label="", schemas=[]) -> str: print_string += f"- {schema}" return print_string + def print_schema_changes(label="", schema_changes={}) -> str: print_string = "" if not schema_changes: @@ -106,7 +130,10 @@ def print_schema_changes(label="", schema_changes={}) -> str: columns_str = ", ".join(columns) if operation in ["type_changed"]: columns_str = ", ".join( - [f"{column[0]} ({column[1]} -> {column[2]})" for column in columns] + [ + f"{column[0]} ({column[1]} -> {column[2]})" + for column in columns + ] ) markdown_table += ( f"| {table_name:<33} | {operation:<15} | {columns_str:<50} |\n" @@ -114,31 +141,42 @@ def print_schema_changes(label="", schema_changes={}) -> str: print_string += markdown_table return print_string + def generate_changelog(schemas_added=[], schemas_deleted=[], schemas_changes={}) -> str: new_changelog = "" if schemas_added or schemas_deleted or schemas_changes: current_date = datetime.now().strftime("%Y-%m-%d") - new_changelog += print_label(current_date) + new_changelog += print_label(current_date) new_changelog += print_schemas(label="Tables Added", schemas=schemas_added) new_changelog += print_schemas(label="Tables Deleted", schemas=schemas_deleted) sorted_schema_changes = sort_schema_changes(schemas_changes) - new_changelog += print_schema_changes(label="Schema Changes", schema_changes=sorted_schema_changes) + new_changelog += print_schema_changes( + label="Schema Changes", schema_changes=sorted_schema_changes + ) return new_changelog + def main(): existing_changelog = read_file(filepath=CHANGELOG_FILEPATH) old_schema_filepaths = get_filepaths(directory=OLD_SCHEMAS_DIR) new_schema_filepaths = get_filepaths(directory=NEW_SCHEMAS_DIR) - common, added, deleted = compare_lists(old_list=old_schema_filepaths, new_list=new_schema_filepaths) + common, added, deleted = compare_lists( + old_list=old_schema_filepaths, new_list=new_schema_filepaths + ) schema_changes = compare_schemas(common) - new_changelog = generate_changelog(schemas_changes=schema_changes, schemas_added=added, schemas_deleted=deleted) + new_changelog = generate_changelog( + schemas_changes=schema_changes, schemas_added=added, schemas_deleted=deleted + ) if len(new_changelog): - write_file(filepath=CHANGELOG_FILEPATH, mode="w", content=new_changelog + '\n\n') + write_file( + filepath=CHANGELOG_FILEPATH, mode="w", content=new_changelog + "\n\n" + ) write_file(filepath=CHANGELOG_FILEPATH, mode="a", content=existing_changelog) + if __name__ == "__main__": main() From 5236dbf16f6133056f48244e0cde7056602617a9 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Mon, 4 Nov 2024 16:00:01 -0600 Subject: [PATCH 17/31] lint create make directory make directory cleanup --- .github/workflows/update_source_data_schema_changelog.yml | 6 ++++-- scripts/update_source_data_schema_changelog.py | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index 1418c41e..d7e505fc 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -26,11 +26,13 @@ jobs: set -x cd $GITHUB_WORKSPACE OLD_SCHEMAS_DIR=original_schemas - cp -r schemas/ new_schemas/ git clone --branch master https://github.com/stellar/stellar-etl-airflow.git repo_master_copy - cp -r repo_master_copy/schemas/ OLD_SCHEMAS_DIR + mkdir OLD_SCHEMAS_DIR + cp -r repo_master_copy/schemas/ $OLD_SCHEMAS_DIR/ export OLD_SCHEMAS_DIR python3 scripts/update_source_data_schema_changelog.py + rm -rf $OLD_SCHEMAS_DIR + rm -rf repo_master_copy - name: Commit and Push Changes run: | diff --git a/scripts/update_source_data_schema_changelog.py b/scripts/update_source_data_schema_changelog.py index db4dd83a..41d31f93 100644 --- a/scripts/update_source_data_schema_changelog.py +++ b/scripts/update_source_data_schema_changelog.py @@ -1,9 +1,9 @@ +import json import os import sys -import json from datetime import datetime -OLD_SCHEMAS_DIR = os.environ.get(OLD_SCHEMAS_DIR) +OLD_SCHEMAS_DIR = os.environ.get("OLD_SCHEMAS_DIR") NEW_SCHEMAS_DIR = "schemas" CHANGELOG_FILEPATH = "changelog/source_data.md" From 67d1d620fb0de75f9509d4bb711aba13519669f6 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Mon, 4 Nov 2024 16:13:04 -0600 Subject: [PATCH 18/31] test changelog build --- schemas/dimMarkets_schema.json | 2 +- schemas/euro_ohlc_schema.json | 2 +- schemas/history_contract_events_schema.json | 5 - schemas/history_trades_schema.json | 137 -------------------- schemas/new_schema.json | 63 +++++++++ 5 files changed, 65 insertions(+), 144 deletions(-) delete mode 100644 schemas/history_trades_schema.json create mode 100644 schemas/new_schema.json diff --git a/schemas/dimMarkets_schema.json b/schemas/dimMarkets_schema.json index b606bd40..273c28be 100644 --- a/schemas/dimMarkets_schema.json +++ b/schemas/dimMarkets_schema.json @@ -1,7 +1,7 @@ [ { "mode": "NULLABLE", - "name": "counter_issuer", + "name": "counter_issuers", "type": "STRING" }, { diff --git a/schemas/euro_ohlc_schema.json b/schemas/euro_ohlc_schema.json index 2a4adf00..7b54fba2 100644 --- a/schemas/euro_ohlc_schema.json +++ b/schemas/euro_ohlc_schema.json @@ -7,7 +7,7 @@ { "mode": "NULLABLE", "name": "open", - "type": "FLOAT" + "type": "INTEGER" }, { "mode": "NULLABLE", diff --git a/schemas/history_contract_events_schema.json b/schemas/history_contract_events_schema.json index 77e2eb4f..1b80b78c 100644 --- a/schemas/history_contract_events_schema.json +++ b/schemas/history_contract_events_schema.json @@ -9,11 +9,6 @@ "name": "transaction_id", "type": "INTEGER" }, - { - "mode": "NULLABLE", - "name": "successful", - "type": "BOOLEAN" - }, { "mode": "NULLABLE", "name": "in_successful_contract_call", diff --git a/schemas/history_trades_schema.json b/schemas/history_trades_schema.json deleted file mode 100644 index 494d1893..00000000 --- a/schemas/history_trades_schema.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "history_operation_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "order", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "selling_account_address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "buying_account_address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "buying_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "price_n", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "price_d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_offer_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "buying_offer_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "selling_liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "liquidity_pool_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "trade_type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "rounding_slippage", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "seller_is_exact", - "type": "BOOLEAN" - } -] diff --git a/schemas/new_schema.json b/schemas/new_schema.json new file mode 100644 index 00000000..5f9c864f --- /dev/null +++ b/schemas/new_schema.json @@ -0,0 +1,63 @@ +[ + { + "mode": "NULLABLE", + "name": "account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "weight", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } + ] + \ No newline at end of file From 100f039ff4eec375916be1990dcb83feced297d6 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Mon, 4 Nov 2024 16:15:39 -0600 Subject: [PATCH 19/31] push to branch push to branch push to branch push to branch --- .github/workflows/update_source_data_schema_changelog.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index d7e505fc..dff6761e 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -21,6 +21,10 @@ jobs: with: python-version: 3.12 + - name: Check Current Branch + run: | + git checkout ${{ github.head_ref }} + - name: Run Bash Script run: | set -x @@ -41,5 +45,5 @@ jobs: git add changelog/source_data.md if git commit -m "Update changelog for Source data"; then echo "Changes committed." - git push + git push origin ${{ github.head_ref }} fi From d4fbe5672771aa79af04d505271d7b38604e076d Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Mon, 4 Nov 2024 16:27:37 -0600 Subject: [PATCH 20/31] push to branch push to branch push to branch push to branch push to branch push to branch push to branch --- .../update_dbt_marts_schema_changelog.yml | 1 + .../update_source_data_schema_changelog.yml | 17 ++++++++--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/update_dbt_marts_schema_changelog.yml b/.github/workflows/update_dbt_marts_schema_changelog.yml index 80166586..27168b38 100644 --- a/.github/workflows/update_dbt_marts_schema_changelog.yml +++ b/.github/workflows/update_dbt_marts_schema_changelog.yml @@ -39,6 +39,7 @@ jobs: - name: Run Bash Script run: | + set -x cd $GITHUB_WORKSPACE PROJECT=hubble-261722 export PROJECT diff --git a/.github/workflows/update_source_data_schema_changelog.yml b/.github/workflows/update_source_data_schema_changelog.yml index dff6761e..209f6396 100644 --- a/.github/workflows/update_source_data_schema_changelog.yml +++ b/.github/workflows/update_source_data_schema_changelog.yml @@ -1,9 +1,10 @@ name: Update changelog for Source Data on: - pull_request: - branches: - - master + push: + +permissions: + contents: write concurrency: group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}-{{ github.event_name }} @@ -14,17 +15,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Python uses: actions/setup-python@v4 with: python-version: 3.12 - - name: Check Current Branch - run: | - git checkout ${{ github.head_ref }} - - name: Run Bash Script run: | set -x @@ -45,5 +42,7 @@ jobs: git add changelog/source_data.md if git commit -m "Update changelog for Source data"; then echo "Changes committed." - git push origin ${{ github.head_ref }} + git push + else + echo "No changes to commit." fi From 6e959603909729d960a823610206ca174dfc2307 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Mon, 4 Nov 2024 22:48:02 +0000 Subject: [PATCH 21/31] Update changelog for Source data --- changelog/source_data.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/changelog/source_data.md b/changelog/source_data.md index cae7c7a0..62cc65bb 100644 --- a/changelog/source_data.md +++ b/changelog/source_data.md @@ -1,3 +1,19 @@ + +## 2024-11-04: + +## Tables Added: +- new_schema.json +## Tables Deleted: +- history_trades_schema.json +## Schema Changes: +| Table Name | Operation | Columns | +|---------------------------------|---------------|--------------------------| +| dimMarkets_schema.json | column_added | counter_issuers | +| dimMarkets_schema.json | column_removed | counter_issuer | +| euro_ohlc_schema.json | type_changed | open (FLOAT -> INTEGER) | +| history_contract_events_schema.json | column_removed | successful | + + ## 2024-01-01 ## Tables Added: From a96ae3cf5c044a31f2256aa82d0d362cfdfdd7c3 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Mon, 4 Nov 2024 16:51:46 -0600 Subject: [PATCH 22/31] revert schema changes --- schemas/dimMarkets_schema.json | 2 +- schemas/euro_ohlc_schema.json | 2 +- schemas/history_contract_events_schema.json | 5 + schemas/history_trades_schema.json | 137 ++ schemas/new_schema.json | 63 - schemas/schemas/account_signers_schema.json | 62 + schemas/schemas/accounts_schema.json | 132 ++ .../schemas/claimable_balances_schema.json | 499 ++++++ schemas/schemas/config_settings_schema.json | 291 ++++ schemas/schemas/contract_code_schema.json | 107 ++ schemas/schemas/contract_data_schema.json | 112 ++ schemas/schemas/dimAccounts_schema.json | 12 + schemas/schemas/dimMarkets_schema.json | 27 + schemas/schemas/dimOffers_schema.json | 42 + .../enriched_history_operations_schema.json | 1354 +++++++++++++++++ ..._meaningful_history_operations_schema.json | 794 ++++++++++ schemas/schemas/euro_ohlc_schema.json | 27 + schemas/schemas/factEvents_schema.json | 12 + schemas/schemas/history_assets_schema.json | 47 + .../history_contract_events_schema.json | 87 ++ schemas/schemas/history_effects_schema.json | 878 +++++++++++ schemas/schemas/history_ledgers_schema.json | 122 ++ .../schemas/history_operations_schema.json | 1185 +++++++++++++++ schemas/schemas/history_trades_schema.json | 137 ++ .../schemas/history_transactions_schema.json | 217 +++ schemas/schemas/liquidity_pools_schema.json | 117 ++ .../account_signers_schema.json | 62 + .../master_schemas/accounts_schema.json | 132 ++ .../claimable_balances_schema.json | 499 ++++++ .../config_settings_schema.json | 291 ++++ .../master_schemas/contract_code_schema.json | 107 ++ .../master_schemas/contract_data_schema.json | 112 ++ .../master_schemas/dimAccounts_schema.json | 12 + .../master_schemas/dimMarkets_schema.json | 27 + .../master_schemas/dimOffers_schema.json | 42 + .../enriched_history_operations_schema.json | 1354 +++++++++++++++++ ..._meaningful_history_operations_schema.json | 794 ++++++++++ .../master_schemas/euro_ohlc_schema.json | 27 + .../master_schemas/factEvents_schema.json | 12 + .../master_schemas/history_assets_schema.json | 47 + .../history_contract_events_schema.json | 87 ++ .../history_effects_schema.json | 878 +++++++++++ .../history_ledgers_schema.json | 122 ++ .../history_operations_schema.json | 1185 +++++++++++++++ .../master_schemas/history_trades_schema.json | 137 ++ .../history_transactions_schema.json | 217 +++ .../liquidity_pools_schema.json | 117 ++ .../schemas/master_schemas/offers_schema.json | 122 ++ .../raw_mgi_stellar_transactions_schema.json | 202 +++ .../master_schemas/trust_lines_schema.json | 107 ++ .../schemas/master_schemas/ttl_schema.json | 52 + schemas/schemas/offers_schema.json | 122 ++ .../raw_mgi_stellar_transactions_schema.json | 202 +++ schemas/schemas/trust_lines_schema.json | 107 ++ schemas/schemas/ttl_schema.json | 52 + 55 files changed, 13632 insertions(+), 65 deletions(-) create mode 100644 schemas/history_trades_schema.json delete mode 100644 schemas/new_schema.json create mode 100644 schemas/schemas/account_signers_schema.json create mode 100644 schemas/schemas/accounts_schema.json create mode 100644 schemas/schemas/claimable_balances_schema.json create mode 100644 schemas/schemas/config_settings_schema.json create mode 100644 schemas/schemas/contract_code_schema.json create mode 100644 schemas/schemas/contract_data_schema.json create mode 100644 schemas/schemas/dimAccounts_schema.json create mode 100644 schemas/schemas/dimMarkets_schema.json create mode 100644 schemas/schemas/dimOffers_schema.json create mode 100644 schemas/schemas/enriched_history_operations_schema.json create mode 100644 schemas/schemas/enriched_meaningful_history_operations_schema.json create mode 100644 schemas/schemas/euro_ohlc_schema.json create mode 100644 schemas/schemas/factEvents_schema.json create mode 100644 schemas/schemas/history_assets_schema.json create mode 100644 schemas/schemas/history_contract_events_schema.json create mode 100644 schemas/schemas/history_effects_schema.json create mode 100644 schemas/schemas/history_ledgers_schema.json create mode 100644 schemas/schemas/history_operations_schema.json create mode 100644 schemas/schemas/history_trades_schema.json create mode 100644 schemas/schemas/history_transactions_schema.json create mode 100644 schemas/schemas/liquidity_pools_schema.json create mode 100644 schemas/schemas/master_schemas/account_signers_schema.json create mode 100644 schemas/schemas/master_schemas/accounts_schema.json create mode 100644 schemas/schemas/master_schemas/claimable_balances_schema.json create mode 100644 schemas/schemas/master_schemas/config_settings_schema.json create mode 100644 schemas/schemas/master_schemas/contract_code_schema.json create mode 100644 schemas/schemas/master_schemas/contract_data_schema.json create mode 100644 schemas/schemas/master_schemas/dimAccounts_schema.json create mode 100644 schemas/schemas/master_schemas/dimMarkets_schema.json create mode 100644 schemas/schemas/master_schemas/dimOffers_schema.json create mode 100644 schemas/schemas/master_schemas/enriched_history_operations_schema.json create mode 100644 schemas/schemas/master_schemas/enriched_meaningful_history_operations_schema.json create mode 100644 schemas/schemas/master_schemas/euro_ohlc_schema.json create mode 100644 schemas/schemas/master_schemas/factEvents_schema.json create mode 100644 schemas/schemas/master_schemas/history_assets_schema.json create mode 100644 schemas/schemas/master_schemas/history_contract_events_schema.json create mode 100644 schemas/schemas/master_schemas/history_effects_schema.json create mode 100644 schemas/schemas/master_schemas/history_ledgers_schema.json create mode 100644 schemas/schemas/master_schemas/history_operations_schema.json create mode 100644 schemas/schemas/master_schemas/history_trades_schema.json create mode 100644 schemas/schemas/master_schemas/history_transactions_schema.json create mode 100644 schemas/schemas/master_schemas/liquidity_pools_schema.json create mode 100644 schemas/schemas/master_schemas/offers_schema.json create mode 100644 schemas/schemas/master_schemas/raw_mgi_stellar_transactions_schema.json create mode 100644 schemas/schemas/master_schemas/trust_lines_schema.json create mode 100644 schemas/schemas/master_schemas/ttl_schema.json create mode 100644 schemas/schemas/offers_schema.json create mode 100644 schemas/schemas/raw_mgi_stellar_transactions_schema.json create mode 100644 schemas/schemas/trust_lines_schema.json create mode 100644 schemas/schemas/ttl_schema.json diff --git a/schemas/dimMarkets_schema.json b/schemas/dimMarkets_schema.json index 273c28be..b606bd40 100644 --- a/schemas/dimMarkets_schema.json +++ b/schemas/dimMarkets_schema.json @@ -1,7 +1,7 @@ [ { "mode": "NULLABLE", - "name": "counter_issuers", + "name": "counter_issuer", "type": "STRING" }, { diff --git a/schemas/euro_ohlc_schema.json b/schemas/euro_ohlc_schema.json index 7b54fba2..2a4adf00 100644 --- a/schemas/euro_ohlc_schema.json +++ b/schemas/euro_ohlc_schema.json @@ -7,7 +7,7 @@ { "mode": "NULLABLE", "name": "open", - "type": "INTEGER" + "type": "FLOAT" }, { "mode": "NULLABLE", diff --git a/schemas/history_contract_events_schema.json b/schemas/history_contract_events_schema.json index 1b80b78c..77e2eb4f 100644 --- a/schemas/history_contract_events_schema.json +++ b/schemas/history_contract_events_schema.json @@ -9,6 +9,11 @@ "name": "transaction_id", "type": "INTEGER" }, + { + "mode": "NULLABLE", + "name": "successful", + "type": "BOOLEAN" + }, { "mode": "NULLABLE", "name": "in_successful_contract_call", diff --git a/schemas/history_trades_schema.json b/schemas/history_trades_schema.json new file mode 100644 index 00000000..494d1893 --- /dev/null +++ b/schemas/history_trades_schema.json @@ -0,0 +1,137 @@ +[ + { + "mode": "NULLABLE", + "name": "history_operation_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "order", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "selling_account_address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "buying_account_address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "buying_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "price_n", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "price_d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_offer_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "buying_offer_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "selling_liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "liquidity_pool_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "trade_type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "rounding_slippage", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "seller_is_exact", + "type": "BOOLEAN" + } +] diff --git a/schemas/new_schema.json b/schemas/new_schema.json deleted file mode 100644 index 5f9c864f..00000000 --- a/schemas/new_schema.json +++ /dev/null @@ -1,63 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "weight", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } - ] - \ No newline at end of file diff --git a/schemas/schemas/account_signers_schema.json b/schemas/schemas/account_signers_schema.json new file mode 100644 index 00000000..fd92d8a6 --- /dev/null +++ b/schemas/schemas/account_signers_schema.json @@ -0,0 +1,62 @@ +[ + { + "mode": "NULLABLE", + "name": "account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "weight", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/accounts_schema.json b/schemas/schemas/accounts_schema.json new file mode 100644 index 00000000..cbcb7c43 --- /dev/null +++ b/schemas/schemas/accounts_schema.json @@ -0,0 +1,132 @@ +[ + { + "mode": "NULLABLE", + "name": "account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "balance", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "buying_liabilities", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "selling_liabilities", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "sequence_number", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "num_subentries", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "inflation_destination", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "flags", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "home_domain", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "master_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "threshold_low", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "threshold_medium", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "threshold_high", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "num_sponsored", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "num_sponsoring", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "sequence_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "sequence_time", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/claimable_balances_schema.json b/schemas/schemas/claimable_balances_schema.json new file mode 100644 index 00000000..1ee7b54b --- /dev/null +++ b/schemas/schemas/claimable_balances_schema.json @@ -0,0 +1,499 @@ +[ + { + "mode": "NULLABLE", + "name": "balance_id", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "destination", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "predicate", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "claimants", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "asset_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "flags", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/config_settings_schema.json b/schemas/schemas/config_settings_schema.json new file mode 100644 index 00000000..0fcf24b6 --- /dev/null +++ b/schemas/schemas/config_settings_schema.json @@ -0,0 +1,291 @@ +[ + { + "mode": "NULLABLE", + "name": "config_setting_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "contract_max_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_instructions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_instructions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_rate_per_instructions_increment", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_memory_limit", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_read_ledger_entries", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_read_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_write_ledger_entries", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_write_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_read_ledger_entries", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_read_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_write_ledger_entries", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_write_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_read_ledger_entry", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_write_ledger_entry", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_read_1kb", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "bucket_list_target_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "write_fee_1kb_bucket_list_low", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "write_fee_1kb_bucket_list_high", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "bucket_list_write_fee_growth_factor", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_historical_1kb", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_contract_events_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_contract_events_1kb", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_txs_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_tx_size_1kb", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "ExtV", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ConstTerm", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "LinearTerm", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "contract_cost_params_cpu_insns", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "ExtV", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ConstTerm", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "LinearTerm", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "contract_cost_params_mem_bytes", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "contract_data_key_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "contract_data_entry_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_entry_ttl", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_temporary_ttl", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_persistent_ttl", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "auto_bump_ledgers", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "persistent_rent_rate_denominator", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "temp_rent_rate_denominator", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_entries_to_archive", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "bucket_list_size_window_sample_size", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "eviction_scan_size", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "starting_eviction_scan_level", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_tx_count", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "bucket_list_size_window", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/contract_code_schema.json b/schemas/schemas/contract_code_schema.json new file mode 100644 index 00000000..9536a8b8 --- /dev/null +++ b/schemas/schemas/contract_code_schema.json @@ -0,0 +1,107 @@ +[ + { + "mode": "NULLABLE", + "name": "contract_code_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_code_ext_v", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_key_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "n_instructions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_functions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_globals", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_table_entries", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_types", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_data_segments", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_elem_segments", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_imports", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_exports", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_data_segment_bytes", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/contract_data_schema.json b/schemas/schemas/contract_data_schema.json new file mode 100644 index 00000000..9b0c0d39 --- /dev/null +++ b/schemas/schemas/contract_data_schema.json @@ -0,0 +1,112 @@ +[ + { + "mode": "NULLABLE", + "name": "contract_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_key_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_durability", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "balance_holder", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "balance", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_key_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "key", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "key_decoded", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "val", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "val_decoded", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "contract_data_xdr", + "type": "STRING" + } +] diff --git a/schemas/schemas/dimAccounts_schema.json b/schemas/schemas/dimAccounts_schema.json new file mode 100644 index 00000000..67c848ff --- /dev/null +++ b/schemas/schemas/dimAccounts_schema.json @@ -0,0 +1,12 @@ +[ + { + "mode": "NULLABLE", + "name": "address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_id", + "type": "FLOAT" + } +] diff --git a/schemas/schemas/dimMarkets_schema.json b/schemas/schemas/dimMarkets_schema.json new file mode 100644 index 00000000..b606bd40 --- /dev/null +++ b/schemas/schemas/dimMarkets_schema.json @@ -0,0 +1,27 @@ +[ + { + "mode": "NULLABLE", + "name": "counter_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "counter_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "base_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "base_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "market_id", + "type": "FLOAT" + } +] diff --git a/schemas/schemas/dimOffers_schema.json b/schemas/schemas/dimOffers_schema.json new file mode 100644 index 00000000..63b4e757 --- /dev/null +++ b/schemas/schemas/dimOffers_schema.json @@ -0,0 +1,42 @@ +[ + { + "mode": "NULLABLE", + "name": "price", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "action", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "counter_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "maker_id", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "base_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "dim_offer_id", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "market_id", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "horizon_offer_id", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/enriched_history_operations_schema.json b/schemas/schemas/enriched_history_operations_schema.json new file mode 100644 index 00000000..ccdae4da --- /dev/null +++ b/schemas/schemas/enriched_history_operations_schema.json @@ -0,0 +1,1354 @@ +[ + { + "mode": "NULLABLE", + "name": "account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "op_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "op_account_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "op_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "authorize", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "balance_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "claimant", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "claimant_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "claimant_muxed_id", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "destination", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "predicate", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "claimants", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "data_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "data_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "high_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "home_domain", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "inflation_dest", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "limit", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "low_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "master_key_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "med_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "offer_id", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "path", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "price", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_id", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "set_flags", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "set_flags_s", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_key", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "source_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_max", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "starting_balance", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustline_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustline_asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "clear_flags", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "clear_flags_s", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "destination_min", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "bump_to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sponsored_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "authorize_to_maintain_liabilities", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "clawback_enabled", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_max_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_deposit_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_max_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_deposit_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "min_price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "min_price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "max_price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "max_price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "shares_received", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_min_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_min_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "shares", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_withdraw_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_withdraw_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "op_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "op_source_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "op_source_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type_string", + "type": "string" + }, + { + "mode": "NULLABLE", + "name": "transaction_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "txn_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "txn_operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "txn_created_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "memo_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "memo", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "time_bounds", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "successful", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "new_max_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "fee_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "previous_ledger_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "total_coins", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_pool", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "base_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "base_reserve", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_tx_set_size", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "protocol_version", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "successful_transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "failed_transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_bounds", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence_age", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence_ledger_gap", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "extra_signers", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_envelope", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_result", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_meta", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_fee_meta", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "asset_balance_changes", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "parameters", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "parameters_decoded", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "function", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "soroban_operation_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "extend_to", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "contract_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_code_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "resource_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_instructions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_read_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_write_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "transaction_result_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "inclusion_fee_bid", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "inclusion_fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "resource_fee_refund", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "operation_result_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "operation_trace_code", + "type": "STRING" + } +] diff --git a/schemas/schemas/enriched_meaningful_history_operations_schema.json b/schemas/schemas/enriched_meaningful_history_operations_schema.json new file mode 100644 index 00000000..ce92f39a --- /dev/null +++ b/schemas/schemas/enriched_meaningful_history_operations_schema.json @@ -0,0 +1,794 @@ +[ + { + "mode": "NULLABLE", + "name": "account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "authorize", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "balance_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "from", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "high_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "home_domain", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "inflation_dest", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "limit", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "low_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "master_key_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "med_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "offer_id", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "path", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "price", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_id", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "set_flags", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "set_flags_s", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_key", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "source_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_max", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "starting_balance", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustline_asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "clear_flags", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "clear_flags_s", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "destination_min", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "bump_to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sponsored_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "authorize_to_maintain_liabilities", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "clawback_enabled", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_max_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_deposit_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_max_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_deposit_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "min_price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "min_price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "max_price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "max_price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "shares_received", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_min_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_min_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "shares", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_withdraw_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_withdraw_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "op_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "op_source_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "op_source_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "transaction_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "txn_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "txn_operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "txn_created_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "memo_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "memo", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "time_bounds", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "successful", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "new_max_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "fee_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "previous_ledger_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "total_coins", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_pool", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "base_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "base_reserve", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_tx_set_size", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "protocol_version", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "successful_transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "failed_transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_bounds", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence_age", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence_ledger_gap", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "extra_signers", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "asset_balance_changes", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "parameters", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "parameters_decoded", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "function", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "soroban_operation_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "extend_to", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "contract_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_code_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "resource_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_instructions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_read_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_write_bytes", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/euro_ohlc_schema.json b/schemas/schemas/euro_ohlc_schema.json new file mode 100644 index 00000000..2a4adf00 --- /dev/null +++ b/schemas/schemas/euro_ohlc_schema.json @@ -0,0 +1,27 @@ +[ + { + "mode": "NULLABLE", + "name": "time", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "open", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "high", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "low", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "close", + "type": "FLOAT" + } +] diff --git a/schemas/schemas/factEvents_schema.json b/schemas/schemas/factEvents_schema.json new file mode 100644 index 00000000..81b90afe --- /dev/null +++ b/schemas/schemas/factEvents_schema.json @@ -0,0 +1,12 @@ +[ + { + "mode": "NULLABLE", + "name": "offer_instance_id", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "ledger_id", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/history_assets_schema.json b/schemas/schemas/history_assets_schema.json new file mode 100644 index 00000000..c6576a96 --- /dev/null +++ b/schemas/schemas/history_assets_schema.json @@ -0,0 +1,47 @@ +[ + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + } +] diff --git a/schemas/schemas/history_contract_events_schema.json b/schemas/schemas/history_contract_events_schema.json new file mode 100644 index 00000000..77e2eb4f --- /dev/null +++ b/schemas/schemas/history_contract_events_schema.json @@ -0,0 +1,87 @@ +[ + { + "mode": "NULLABLE", + "name": "transaction_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "successful", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "in_successful_contract_call", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "contract_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type_string", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "topics", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "topics_decoded", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "data", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "data_decoded", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "contract_event_xdr", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/history_effects_schema.json b/schemas/schemas/history_effects_schema.json new file mode 100644 index 00000000..0cb0d195 --- /dev/null +++ b/schemas/schemas/history_effects_schema.json @@ -0,0 +1,878 @@ +[ + { + "mode": "NULLABLE", + "name": "address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "address_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "operation_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type_string", + "type": "STRING" + }, + { + "fields": [ + { + "fields": [ + { + "mode": "NULLABLE", + "name": "fee_bp", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "total_shares", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "total_trustlines", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + } + ], + "mode": "REPEATED", + "name": "reserves", + "type": "RECORD" + } + ], + "mode": "NULLABLE", + "name": "liquidity_pool", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + } + ], + "mode": "REPEATED", + "name": "reserves_received", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + } + ], + "mode": "REPEATED", + "name": "reserves_deposited", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "claimable_balance_id", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "reserves_revoked", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + } + ], + "mode": "REPEATED", + "name": "bought", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + } + ], + "mode": "REPEATED", + "name": "sold", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "shares_revoked", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "shares_received", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "shares_redeemed", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "balance_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "new_seq", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "limit", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "inflation_destination", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "authorized_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "auth_immutable_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "authorized_to_maintain_liabilites", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "auth_revocable_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "auth_required_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "auth_clawback_enabled_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "claimable_balance_clawback_enabled_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "clawback_enabled_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "high_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "med_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "low_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "home_domain", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "new_sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "former_sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "public_key", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "starting_balance", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "seller", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "seller_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "seller_muxed_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "offer_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "sold_amount", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "sold_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sold_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sold_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "bought_amount", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "bought_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "bought_asset_code", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "predicate", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "data_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "bought_asset_issuer", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "entries", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "extend_to", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "contract", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_event_type", + "type": "STRING" + } + ], + "mode": "NULLABLE", + "name": "details", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "index", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "id", + "type": "STRING" + } +] diff --git a/schemas/schemas/history_ledgers_schema.json b/schemas/schemas/history_ledgers_schema.json new file mode 100644 index 00000000..1bc7cf9b --- /dev/null +++ b/schemas/schemas/history_ledgers_schema.json @@ -0,0 +1,122 @@ +[ + { + "mode": "NULLABLE", + "name": "sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "previous_ledger_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "total_coins", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_pool", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "base_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "base_reserve", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_tx_set_size", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "protocol_version", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_header", + "type": "BYTES" + }, + { + "mode": "NULLABLE", + "name": "successful_transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "failed_transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_set_operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "soroban_fee_write_1kb", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "node_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signature", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "total_byte_size_of_bucket_list", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/history_operations_schema.json b/schemas/schemas/history_operations_schema.json new file mode 100644 index 00000000..09ff1ee6 --- /dev/null +++ b/schemas/schemas/history_operations_schema.json @@ -0,0 +1,1185 @@ +[ + { + "fields": [ + { + "mode": "NULLABLE", + "name": "account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "authorize", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "balance_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "claimable_balance_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "claimant", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "claimant_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "claimant_muxed_id", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "destination", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "predicate", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "claimants", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "data_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "data_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "high_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "home_domain", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "inflation_dest", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "limit", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "low_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "master_key_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "med_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "offer_id", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "path", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "NULLABLE", + "name": "price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_type", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "set_flags", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "set_flags_s", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_key", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "source_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_max", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "starting_balance", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustline_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustline_asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "clear_flags", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "clear_flags_s", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "destination_min", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "bump_to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "authorize_to_maintain_liabilities", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "clawback_enabled", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sponsored_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_max_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_deposit_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_max_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_deposit_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "min_price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "min_price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "max_price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "max_price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "shares_received", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_min_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_withdraw_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_min_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_withdraw_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "shares", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "asset_balance_changes", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "parameters", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "parameters_decoded", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "function", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "extend_to", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "contract_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_code_hash", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "ledger_key_hash", + "type": "STRING" + } + ], + "mode": "NULLABLE", + "name": "details", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type_string", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "operation_result_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "operation_trace_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "details_json", + "type": "JSON" + } +] diff --git a/schemas/schemas/history_trades_schema.json b/schemas/schemas/history_trades_schema.json new file mode 100644 index 00000000..494d1893 --- /dev/null +++ b/schemas/schemas/history_trades_schema.json @@ -0,0 +1,137 @@ +[ + { + "mode": "NULLABLE", + "name": "history_operation_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "order", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "selling_account_address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "buying_account_address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "buying_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "price_n", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "price_d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_offer_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "buying_offer_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "selling_liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "liquidity_pool_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "trade_type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "rounding_slippage", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "seller_is_exact", + "type": "BOOLEAN" + } +] diff --git a/schemas/schemas/history_transactions_schema.json b/schemas/schemas/history_transactions_schema.json new file mode 100644 index 00000000..809523f2 --- /dev/null +++ b/schemas/schemas/history_transactions_schema.json @@ -0,0 +1,217 @@ +[ + { + "mode": "NULLABLE", + "name": "id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "transaction_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "created_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "memo_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "memo", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "time_bounds", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "successful", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "inner_transaction_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "fee_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "new_max_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "fee_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_bounds", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence_age", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence_ledger_gap", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_envelope", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_result", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_meta", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_fee_meta", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "extra_signers", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "resource_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_instructions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_read_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_write_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "transaction_result_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "inclusion_fee_bid", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "inclusion_fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "resource_fee_refund", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "non_refundable_resource_fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "refundable_resource_fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "rent_fee_charged", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "tx_signers", + "type": "STRING" + } +] diff --git a/schemas/schemas/liquidity_pools_schema.json b/schemas/schemas/liquidity_pools_schema.json new file mode 100644 index 00000000..6861eccb --- /dev/null +++ b/schemas/schemas/liquidity_pools_schema.json @@ -0,0 +1,117 @@ +[ + { + "mode": "NULLABLE", + "name": "liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "trustline_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "pool_share_count", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_a_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_a_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_a_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_a_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "asset_a_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_b_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_b_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_b_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_b_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "asset_b_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/account_signers_schema.json b/schemas/schemas/master_schemas/account_signers_schema.json new file mode 100644 index 00000000..fd92d8a6 --- /dev/null +++ b/schemas/schemas/master_schemas/account_signers_schema.json @@ -0,0 +1,62 @@ +[ + { + "mode": "NULLABLE", + "name": "account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "weight", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/accounts_schema.json b/schemas/schemas/master_schemas/accounts_schema.json new file mode 100644 index 00000000..cbcb7c43 --- /dev/null +++ b/schemas/schemas/master_schemas/accounts_schema.json @@ -0,0 +1,132 @@ +[ + { + "mode": "NULLABLE", + "name": "account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "balance", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "buying_liabilities", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "selling_liabilities", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "sequence_number", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "num_subentries", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "inflation_destination", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "flags", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "home_domain", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "master_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "threshold_low", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "threshold_medium", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "threshold_high", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "num_sponsored", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "num_sponsoring", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "sequence_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "sequence_time", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/claimable_balances_schema.json b/schemas/schemas/master_schemas/claimable_balances_schema.json new file mode 100644 index 00000000..1ee7b54b --- /dev/null +++ b/schemas/schemas/master_schemas/claimable_balances_schema.json @@ -0,0 +1,499 @@ +[ + { + "mode": "NULLABLE", + "name": "balance_id", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "destination", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "predicate", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "claimants", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "asset_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "flags", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/config_settings_schema.json b/schemas/schemas/master_schemas/config_settings_schema.json new file mode 100644 index 00000000..0fcf24b6 --- /dev/null +++ b/schemas/schemas/master_schemas/config_settings_schema.json @@ -0,0 +1,291 @@ +[ + { + "mode": "NULLABLE", + "name": "config_setting_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "contract_max_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_instructions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_instructions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_rate_per_instructions_increment", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_memory_limit", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_read_ledger_entries", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_read_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_write_ledger_entries", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_write_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_read_ledger_entries", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_read_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_write_ledger_entries", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_write_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_read_ledger_entry", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_write_ledger_entry", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_read_1kb", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "bucket_list_target_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "write_fee_1kb_bucket_list_low", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "write_fee_1kb_bucket_list_high", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "bucket_list_write_fee_growth_factor", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_historical_1kb", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_contract_events_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_contract_events_1kb", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_txs_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_max_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_tx_size_1kb", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "ExtV", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ConstTerm", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "LinearTerm", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "contract_cost_params_cpu_insns", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "ExtV", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ConstTerm", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "LinearTerm", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "contract_cost_params_mem_bytes", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "contract_data_key_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "contract_data_entry_size_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_entry_ttl", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_temporary_ttl", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_persistent_ttl", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "auto_bump_ledgers", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "persistent_rent_rate_denominator", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "temp_rent_rate_denominator", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_entries_to_archive", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "bucket_list_size_window_sample_size", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "eviction_scan_size", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "starting_eviction_scan_level", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_max_tx_count", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "bucket_list_size_window", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/contract_code_schema.json b/schemas/schemas/master_schemas/contract_code_schema.json new file mode 100644 index 00000000..9536a8b8 --- /dev/null +++ b/schemas/schemas/master_schemas/contract_code_schema.json @@ -0,0 +1,107 @@ +[ + { + "mode": "NULLABLE", + "name": "contract_code_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_code_ext_v", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_key_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "n_instructions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_functions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_globals", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_table_entries", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_types", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_data_segments", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_elem_segments", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_imports", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_exports", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n_data_segment_bytes", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/contract_data_schema.json b/schemas/schemas/master_schemas/contract_data_schema.json new file mode 100644 index 00000000..9b0c0d39 --- /dev/null +++ b/schemas/schemas/master_schemas/contract_data_schema.json @@ -0,0 +1,112 @@ +[ + { + "mode": "NULLABLE", + "name": "contract_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_key_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_durability", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "balance_holder", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "balance", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_key_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "key", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "key_decoded", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "val", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "val_decoded", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "contract_data_xdr", + "type": "STRING" + } +] diff --git a/schemas/schemas/master_schemas/dimAccounts_schema.json b/schemas/schemas/master_schemas/dimAccounts_schema.json new file mode 100644 index 00000000..67c848ff --- /dev/null +++ b/schemas/schemas/master_schemas/dimAccounts_schema.json @@ -0,0 +1,12 @@ +[ + { + "mode": "NULLABLE", + "name": "address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_id", + "type": "FLOAT" + } +] diff --git a/schemas/schemas/master_schemas/dimMarkets_schema.json b/schemas/schemas/master_schemas/dimMarkets_schema.json new file mode 100644 index 00000000..b606bd40 --- /dev/null +++ b/schemas/schemas/master_schemas/dimMarkets_schema.json @@ -0,0 +1,27 @@ +[ + { + "mode": "NULLABLE", + "name": "counter_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "counter_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "base_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "base_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "market_id", + "type": "FLOAT" + } +] diff --git a/schemas/schemas/master_schemas/dimOffers_schema.json b/schemas/schemas/master_schemas/dimOffers_schema.json new file mode 100644 index 00000000..63b4e757 --- /dev/null +++ b/schemas/schemas/master_schemas/dimOffers_schema.json @@ -0,0 +1,42 @@ +[ + { + "mode": "NULLABLE", + "name": "price", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "action", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "counter_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "maker_id", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "base_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "dim_offer_id", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "market_id", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "horizon_offer_id", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/enriched_history_operations_schema.json b/schemas/schemas/master_schemas/enriched_history_operations_schema.json new file mode 100644 index 00000000..ccdae4da --- /dev/null +++ b/schemas/schemas/master_schemas/enriched_history_operations_schema.json @@ -0,0 +1,1354 @@ +[ + { + "mode": "NULLABLE", + "name": "account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "op_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "op_account_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "op_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "authorize", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "balance_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "claimant", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "claimant_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "claimant_muxed_id", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "destination", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "predicate", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "claimants", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "data_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "data_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "high_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "home_domain", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "inflation_dest", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "limit", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "low_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "master_key_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "med_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "offer_id", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "path", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "price", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_id", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "set_flags", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "set_flags_s", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_key", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "source_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_max", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "starting_balance", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustline_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustline_asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "clear_flags", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "clear_flags_s", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "destination_min", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "bump_to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sponsored_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "authorize_to_maintain_liabilities", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "clawback_enabled", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_max_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_deposit_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_max_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_deposit_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "min_price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "min_price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "max_price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "max_price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "shares_received", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_min_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_min_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "shares", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_withdraw_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_withdraw_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "op_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "op_source_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "op_source_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type_string", + "type": "string" + }, + { + "mode": "NULLABLE", + "name": "transaction_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "txn_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "txn_operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "txn_created_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "memo_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "memo", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "time_bounds", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "successful", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "new_max_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "fee_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "previous_ledger_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "total_coins", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_pool", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "base_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "base_reserve", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_tx_set_size", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "protocol_version", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "successful_transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "failed_transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_bounds", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence_age", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence_ledger_gap", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "extra_signers", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_envelope", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_result", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_meta", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_fee_meta", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "asset_balance_changes", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "parameters", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "parameters_decoded", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "function", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "soroban_operation_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "extend_to", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "contract_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_code_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "resource_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_instructions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_read_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_write_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "transaction_result_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "inclusion_fee_bid", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "inclusion_fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "resource_fee_refund", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "operation_result_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "operation_trace_code", + "type": "STRING" + } +] diff --git a/schemas/schemas/master_schemas/enriched_meaningful_history_operations_schema.json b/schemas/schemas/master_schemas/enriched_meaningful_history_operations_schema.json new file mode 100644 index 00000000..ce92f39a --- /dev/null +++ b/schemas/schemas/master_schemas/enriched_meaningful_history_operations_schema.json @@ -0,0 +1,794 @@ +[ + { + "mode": "NULLABLE", + "name": "account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "authorize", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "balance_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "from", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "high_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "home_domain", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "inflation_dest", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "limit", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "low_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "master_key_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "med_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "offer_id", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "path", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "price", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_id", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "set_flags", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "set_flags_s", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_key", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "source_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_max", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "starting_balance", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustline_asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "clear_flags", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "clear_flags_s", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "destination_min", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "bump_to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sponsored_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "authorize_to_maintain_liabilities", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "clawback_enabled", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_max_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_deposit_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_max_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_deposit_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "min_price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "min_price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "max_price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "max_price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "shares_received", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_min_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_min_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "shares", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_withdraw_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_withdraw_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "op_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "op_source_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "op_source_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "transaction_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "txn_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "txn_operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "txn_created_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "memo_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "memo", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "time_bounds", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "successful", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "new_max_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "fee_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "previous_ledger_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "total_coins", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_pool", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "base_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "base_reserve", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_tx_set_size", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "protocol_version", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "successful_transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "failed_transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_bounds", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence_age", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence_ledger_gap", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "extra_signers", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "asset_balance_changes", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "parameters", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "parameters_decoded", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "function", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "soroban_operation_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "extend_to", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "contract_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_code_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "resource_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_instructions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_read_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_write_bytes", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/euro_ohlc_schema.json b/schemas/schemas/master_schemas/euro_ohlc_schema.json new file mode 100644 index 00000000..2a4adf00 --- /dev/null +++ b/schemas/schemas/master_schemas/euro_ohlc_schema.json @@ -0,0 +1,27 @@ +[ + { + "mode": "NULLABLE", + "name": "time", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "open", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "high", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "low", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "close", + "type": "FLOAT" + } +] diff --git a/schemas/schemas/master_schemas/factEvents_schema.json b/schemas/schemas/master_schemas/factEvents_schema.json new file mode 100644 index 00000000..81b90afe --- /dev/null +++ b/schemas/schemas/master_schemas/factEvents_schema.json @@ -0,0 +1,12 @@ +[ + { + "mode": "NULLABLE", + "name": "offer_instance_id", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "ledger_id", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/history_assets_schema.json b/schemas/schemas/master_schemas/history_assets_schema.json new file mode 100644 index 00000000..c6576a96 --- /dev/null +++ b/schemas/schemas/master_schemas/history_assets_schema.json @@ -0,0 +1,47 @@ +[ + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + } +] diff --git a/schemas/schemas/master_schemas/history_contract_events_schema.json b/schemas/schemas/master_schemas/history_contract_events_schema.json new file mode 100644 index 00000000..77e2eb4f --- /dev/null +++ b/schemas/schemas/master_schemas/history_contract_events_schema.json @@ -0,0 +1,87 @@ +[ + { + "mode": "NULLABLE", + "name": "transaction_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "successful", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "in_successful_contract_call", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "contract_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type_string", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "topics", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "topics_decoded", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "data", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "data_decoded", + "type": "JSON" + }, + { + "mode": "NULLABLE", + "name": "contract_event_xdr", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/history_effects_schema.json b/schemas/schemas/master_schemas/history_effects_schema.json new file mode 100644 index 00000000..0cb0d195 --- /dev/null +++ b/schemas/schemas/master_schemas/history_effects_schema.json @@ -0,0 +1,878 @@ +[ + { + "mode": "NULLABLE", + "name": "address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "address_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "operation_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type_string", + "type": "STRING" + }, + { + "fields": [ + { + "fields": [ + { + "mode": "NULLABLE", + "name": "fee_bp", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "total_shares", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "total_trustlines", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + } + ], + "mode": "REPEATED", + "name": "reserves", + "type": "RECORD" + } + ], + "mode": "NULLABLE", + "name": "liquidity_pool", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + } + ], + "mode": "REPEATED", + "name": "reserves_received", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + } + ], + "mode": "REPEATED", + "name": "reserves_deposited", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "claimable_balance_id", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "reserves_revoked", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + } + ], + "mode": "REPEATED", + "name": "bought", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + } + ], + "mode": "REPEATED", + "name": "sold", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "shares_revoked", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "shares_received", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "shares_redeemed", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "balance_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "new_seq", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "limit", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "inflation_destination", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "authorized_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "auth_immutable_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "authorized_to_maintain_liabilites", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "auth_revocable_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "auth_required_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "auth_clawback_enabled_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "claimable_balance_clawback_enabled_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "clawback_enabled_flag", + "type": "BOOL" + }, + { + "mode": "NULLABLE", + "name": "high_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "med_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "low_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "home_domain", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "new_sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "former_sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "public_key", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "starting_balance", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "seller", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "seller_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "seller_muxed_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "offer_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "sold_amount", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "sold_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sold_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sold_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "bought_amount", + "type": "NUMERIC" + }, + { + "mode": "NULLABLE", + "name": "bought_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "bought_asset_code", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "predicate", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "data_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "bought_asset_issuer", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "entries", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "extend_to", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "contract", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_event_type", + "type": "STRING" + } + ], + "mode": "NULLABLE", + "name": "details", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "index", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "id", + "type": "STRING" + } +] diff --git a/schemas/schemas/master_schemas/history_ledgers_schema.json b/schemas/schemas/master_schemas/history_ledgers_schema.json new file mode 100644 index 00000000..1bc7cf9b --- /dev/null +++ b/schemas/schemas/master_schemas/history_ledgers_schema.json @@ -0,0 +1,122 @@ +[ + { + "mode": "NULLABLE", + "name": "sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "previous_ledger_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "total_coins", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "fee_pool", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "base_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "base_reserve", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_tx_set_size", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "protocol_version", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_header", + "type": "BYTES" + }, + { + "mode": "NULLABLE", + "name": "successful_transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "failed_transaction_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_set_operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "soroban_fee_write_1kb", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "node_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signature", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "total_byte_size_of_bucket_list", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/history_operations_schema.json b/schemas/schemas/master_schemas/history_operations_schema.json new file mode 100644 index 00000000..09ff1ee6 --- /dev/null +++ b/schemas/schemas/master_schemas/history_operations_schema.json @@ -0,0 +1,1185 @@ +[ + { + "fields": [ + { + "mode": "NULLABLE", + "name": "account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "authorize", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "balance_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "claimable_balance_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "claimant", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "claimant_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "claimant_muxed_id", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "destination", + "type": "STRING" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "abs_before", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rel_before", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "unconditional", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "abs_before_epoch", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "not", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "and", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "or", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "predicate", + "type": "RECORD" + } + ], + "mode": "REPEATED", + "name": "claimants", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "data_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "data_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "funder_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "high_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "home_domain", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "inflation_dest", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "into_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "limit", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "low_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "master_key_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "med_threshold", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "offer_id", + "type": "INTEGER" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "path", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "NULLABLE", + "name": "price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_type", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "set_flags", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "set_flags_s", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_key", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "signer_weight", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "source_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_max", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "starting_balance", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustee_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustline_account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustline_asset", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "trustor_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "clear_flags", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "clear_flags_s", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "destination_min", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "bump_to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "authorize_to_maintain_liabilities", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "clawback_enabled", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "sponsored_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "begin_sponsor_muxed_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_max_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_deposit_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_max_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_deposit_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "min_price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "min_price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "max_price", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "n", + "type": "INTEGER" + } + ], + "mode": "REPEATED", + "name": "max_price_r", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "shares_received", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_min_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_a_withdraw_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_min_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "reserve_b_withdraw_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "shares", + "type": "FLOAT" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "from", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "to", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "asset_balance_changes", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "parameters", + "type": "RECORD" + }, + { + "fields": [ + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "value", + "type": "STRING" + } + ], + "mode": "REPEATED", + "name": "parameters_decoded", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "function", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "extend_to", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "contract_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "contract_code_hash", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "ledger_key_hash", + "type": "STRING" + } + ], + "mode": "NULLABLE", + "name": "details", + "type": "RECORD" + }, + { + "mode": "NULLABLE", + "name": "id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "source_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "source_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "transaction_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "type_string", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "operation_result_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "operation_trace_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "details_json", + "type": "JSON" + } +] diff --git a/schemas/schemas/master_schemas/history_trades_schema.json b/schemas/schemas/master_schemas/history_trades_schema.json new file mode 100644 index 00000000..494d1893 --- /dev/null +++ b/schemas/schemas/master_schemas/history_trades_schema.json @@ -0,0 +1,137 @@ +[ + { + "mode": "NULLABLE", + "name": "history_operation_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "order", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "selling_account_address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "buying_account_address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "buying_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "price_n", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "price_d", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_offer_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "buying_offer_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "selling_liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "liquidity_pool_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "trade_type", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "rounding_slippage", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "seller_is_exact", + "type": "BOOLEAN" + } +] diff --git a/schemas/schemas/master_schemas/history_transactions_schema.json b/schemas/schemas/master_schemas/history_transactions_schema.json new file mode 100644 index 00000000..809523f2 --- /dev/null +++ b/schemas/schemas/master_schemas/history_transactions_schema.json @@ -0,0 +1,217 @@ +[ + { + "mode": "NULLABLE", + "name": "id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "transaction_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "max_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "operation_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "created_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "memo_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "memo", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "time_bounds", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "successful", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "inner_transaction_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "fee_account", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "new_max_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "fee_account_muxed", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_bounds", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence_age", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "min_account_sequence_ledger_gap", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "tx_envelope", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_result", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_meta", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tx_fee_meta", + "type": "STRING" + }, + { + "mode": "REPEATED", + "name": "extra_signers", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "resource_fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_instructions", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_read_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "soroban_resources_write_bytes", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "transaction_result_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "inclusion_fee_bid", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "inclusion_fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "resource_fee_refund", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "non_refundable_resource_fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "refundable_resource_fee_charged", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "rent_fee_charged", + "type": "INTEGER" + }, + { + "mode": "REPEATED", + "name": "tx_signers", + "type": "STRING" + } +] diff --git a/schemas/schemas/master_schemas/liquidity_pools_schema.json b/schemas/schemas/master_schemas/liquidity_pools_schema.json new file mode 100644 index 00000000..6861eccb --- /dev/null +++ b/schemas/schemas/master_schemas/liquidity_pools_schema.json @@ -0,0 +1,117 @@ +[ + { + "mode": "NULLABLE", + "name": "liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "fee", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "trustline_count", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "pool_share_count", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_a_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_a_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_a_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_a_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "asset_a_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "asset_b_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_b_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_b_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_b_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "asset_b_amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/offers_schema.json b/schemas/schemas/master_schemas/offers_schema.json new file mode 100644 index 00000000..e5104ca0 --- /dev/null +++ b/schemas/schemas/master_schemas/offers_schema.json @@ -0,0 +1,122 @@ +[ + { + "mode": "NULLABLE", + "name": "seller_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "offer_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "pricen", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "priced", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "price", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "flags", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/raw_mgi_stellar_transactions_schema.json b/schemas/schemas/master_schemas/raw_mgi_stellar_transactions_schema.json new file mode 100644 index 00000000..c06ed31a --- /dev/null +++ b/schemas/schemas/master_schemas/raw_mgi_stellar_transactions_schema.json @@ -0,0 +1,202 @@ +[ + { + "mode": "NULLABLE", + "name": "src_tran_ref_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "created_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "updated_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "transaction_status", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "send_cntry_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rec_cntry_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "send_crncy_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rec_crncy_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "send_face_USD_amt", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "send_face_tran_crncy_amt", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "send_fee_tran_amt", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "rec_face_tran_crncy_amt", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "send_partner_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "receive_partner_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tran_resource_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tran_hash_text", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "dgt_aset_tran_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "wallet_address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "promo_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_phys_line1_addr", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_phys_line2_addr", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_phys_city_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_phys_state_prov_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_phys_postal_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_cntry_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_phys_line1_addr", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_phys_line2_addr", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_phys_city_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_phys_state_prov_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_phys_postal_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_cntry_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_hq_pty_nbr", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_hq_pty_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_pty_nbr", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_displ_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_hq_pty_nbr", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_hq_pty_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_pty_nbr", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_displ_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "cancellation_reas", + "type": "STRING" + } +] diff --git a/schemas/schemas/master_schemas/trust_lines_schema.json b/schemas/schemas/master_schemas/trust_lines_schema.json new file mode 100644 index 00000000..1502d701 --- /dev/null +++ b/schemas/schemas/master_schemas/trust_lines_schema.json @@ -0,0 +1,107 @@ +[ + { + "mode": "NULLABLE", + "name": "ledger_key", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "balance", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "trust_line_limit", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "buying_liabilities", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "selling_liabilities", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "flags", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/master_schemas/ttl_schema.json b/schemas/schemas/master_schemas/ttl_schema.json new file mode 100644 index 00000000..f129bb90 --- /dev/null +++ b/schemas/schemas/master_schemas/ttl_schema.json @@ -0,0 +1,52 @@ +[ + { + "mode": "NULLABLE", + "name": "key_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "live_until_ledger_seq", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/offers_schema.json b/schemas/schemas/offers_schema.json new file mode 100644 index 00000000..e5104ca0 --- /dev/null +++ b/schemas/schemas/offers_schema.json @@ -0,0 +1,122 @@ +[ + { + "mode": "NULLABLE", + "name": "seller_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "offer_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "selling_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "buying_asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "amount", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "pricen", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "priced", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "price", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "flags", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/raw_mgi_stellar_transactions_schema.json b/schemas/schemas/raw_mgi_stellar_transactions_schema.json new file mode 100644 index 00000000..c06ed31a --- /dev/null +++ b/schemas/schemas/raw_mgi_stellar_transactions_schema.json @@ -0,0 +1,202 @@ +[ + { + "mode": "NULLABLE", + "name": "src_tran_ref_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "created_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "updated_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "transaction_status", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "send_cntry_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rec_cntry_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "send_crncy_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "rec_crncy_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "send_face_USD_amt", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "send_face_tran_crncy_amt", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "send_fee_tran_amt", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "rec_face_tran_crncy_amt", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "send_partner_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "receive_partner_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tran_resource_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "tran_hash_text", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "dgt_aset_tran_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "wallet_address", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "promo_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_phys_line1_addr", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_phys_line2_addr", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_phys_city_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_phys_state_prov_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_phys_postal_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_cntry_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_phys_line1_addr", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_phys_line2_addr", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_phys_city_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_phys_state_prov_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_phys_postal_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_cntry_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_hq_pty_nbr", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_hq_pty_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_pty_nbr", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "partnr_sen_displ_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_hq_pty_nbr", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_hq_pty_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_pty_nbr", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "partnr_rec_displ_name", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "cancellation_reas", + "type": "STRING" + } +] diff --git a/schemas/schemas/trust_lines_schema.json b/schemas/schemas/trust_lines_schema.json new file mode 100644 index 00000000..1502d701 --- /dev/null +++ b/schemas/schemas/trust_lines_schema.json @@ -0,0 +1,107 @@ +[ + { + "mode": "NULLABLE", + "name": "ledger_key", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "account_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_type", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_issuer", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_code", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "asset_id", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "liquidity_pool_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "balance", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "trust_line_limit", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "buying_liabilities", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "selling_liabilities", + "type": "FLOAT" + }, + { + "mode": "NULLABLE", + "name": "flags", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "sponsor", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] diff --git a/schemas/schemas/ttl_schema.json b/schemas/schemas/ttl_schema.json new file mode 100644 index 00000000..f129bb90 --- /dev/null +++ b/schemas/schemas/ttl_schema.json @@ -0,0 +1,52 @@ +[ + { + "mode": "NULLABLE", + "name": "key_hash", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "live_until_ledger_seq", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "last_modified_ledger", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "ledger_entry_change", + "type": "INTEGER" + }, + { + "mode": "NULLABLE", + "name": "deleted", + "type": "BOOLEAN" + }, + { + "mode": "NULLABLE", + "name": "batch_id", + "type": "STRING" + }, + { + "mode": "NULLABLE", + "name": "batch_run_date", + "type": "DATETIME" + }, + { + "mode": "NULLABLE", + "name": "batch_insert_ts", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "closed_at", + "type": "TIMESTAMP" + }, + { + "mode": "NULLABLE", + "name": "ledger_sequence", + "type": "INTEGER" + } +] From ca0961d766c4cbf43ef353f9ed5b44cb2f03c3d3 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Mon, 4 Nov 2024 16:52:29 -0600 Subject: [PATCH 23/31] revert schema changes --- schemas/schemas/account_signers_schema.json | 62 - schemas/schemas/accounts_schema.json | 132 -- .../schemas/claimable_balances_schema.json | 499 ------ schemas/schemas/config_settings_schema.json | 291 ---- schemas/schemas/contract_code_schema.json | 107 -- schemas/schemas/contract_data_schema.json | 112 -- schemas/schemas/dimAccounts_schema.json | 12 - schemas/schemas/dimMarkets_schema.json | 27 - schemas/schemas/dimOffers_schema.json | 42 - .../enriched_history_operations_schema.json | 1354 ----------------- ..._meaningful_history_operations_schema.json | 794 ---------- schemas/schemas/euro_ohlc_schema.json | 27 - schemas/schemas/factEvents_schema.json | 12 - schemas/schemas/history_assets_schema.json | 47 - .../history_contract_events_schema.json | 87 -- schemas/schemas/history_effects_schema.json | 878 ----------- schemas/schemas/history_ledgers_schema.json | 122 -- .../schemas/history_operations_schema.json | 1185 --------------- schemas/schemas/history_trades_schema.json | 137 -- .../schemas/history_transactions_schema.json | 217 --- schemas/schemas/liquidity_pools_schema.json | 117 -- .../account_signers_schema.json | 62 - .../master_schemas/accounts_schema.json | 132 -- .../claimable_balances_schema.json | 499 ------ .../config_settings_schema.json | 291 ---- .../master_schemas/contract_code_schema.json | 107 -- .../master_schemas/contract_data_schema.json | 112 -- .../master_schemas/dimAccounts_schema.json | 12 - .../master_schemas/dimMarkets_schema.json | 27 - .../master_schemas/dimOffers_schema.json | 42 - .../enriched_history_operations_schema.json | 1354 ----------------- ..._meaningful_history_operations_schema.json | 794 ---------- .../master_schemas/euro_ohlc_schema.json | 27 - .../master_schemas/factEvents_schema.json | 12 - .../master_schemas/history_assets_schema.json | 47 - .../history_contract_events_schema.json | 87 -- .../history_effects_schema.json | 878 ----------- .../history_ledgers_schema.json | 122 -- .../history_operations_schema.json | 1185 --------------- .../master_schemas/history_trades_schema.json | 137 -- .../history_transactions_schema.json | 217 --- .../liquidity_pools_schema.json | 117 -- .../schemas/master_schemas/offers_schema.json | 122 -- .../raw_mgi_stellar_transactions_schema.json | 202 --- .../master_schemas/trust_lines_schema.json | 107 -- .../schemas/master_schemas/ttl_schema.json | 52 - schemas/schemas/offers_schema.json | 122 -- .../raw_mgi_stellar_transactions_schema.json | 202 --- schemas/schemas/trust_lines_schema.json | 107 -- schemas/schemas/ttl_schema.json | 52 - 50 files changed, 13488 deletions(-) delete mode 100644 schemas/schemas/account_signers_schema.json delete mode 100644 schemas/schemas/accounts_schema.json delete mode 100644 schemas/schemas/claimable_balances_schema.json delete mode 100644 schemas/schemas/config_settings_schema.json delete mode 100644 schemas/schemas/contract_code_schema.json delete mode 100644 schemas/schemas/contract_data_schema.json delete mode 100644 schemas/schemas/dimAccounts_schema.json delete mode 100644 schemas/schemas/dimMarkets_schema.json delete mode 100644 schemas/schemas/dimOffers_schema.json delete mode 100644 schemas/schemas/enriched_history_operations_schema.json delete mode 100644 schemas/schemas/enriched_meaningful_history_operations_schema.json delete mode 100644 schemas/schemas/euro_ohlc_schema.json delete mode 100644 schemas/schemas/factEvents_schema.json delete mode 100644 schemas/schemas/history_assets_schema.json delete mode 100644 schemas/schemas/history_contract_events_schema.json delete mode 100644 schemas/schemas/history_effects_schema.json delete mode 100644 schemas/schemas/history_ledgers_schema.json delete mode 100644 schemas/schemas/history_operations_schema.json delete mode 100644 schemas/schemas/history_trades_schema.json delete mode 100644 schemas/schemas/history_transactions_schema.json delete mode 100644 schemas/schemas/liquidity_pools_schema.json delete mode 100644 schemas/schemas/master_schemas/account_signers_schema.json delete mode 100644 schemas/schemas/master_schemas/accounts_schema.json delete mode 100644 schemas/schemas/master_schemas/claimable_balances_schema.json delete mode 100644 schemas/schemas/master_schemas/config_settings_schema.json delete mode 100644 schemas/schemas/master_schemas/contract_code_schema.json delete mode 100644 schemas/schemas/master_schemas/contract_data_schema.json delete mode 100644 schemas/schemas/master_schemas/dimAccounts_schema.json delete mode 100644 schemas/schemas/master_schemas/dimMarkets_schema.json delete mode 100644 schemas/schemas/master_schemas/dimOffers_schema.json delete mode 100644 schemas/schemas/master_schemas/enriched_history_operations_schema.json delete mode 100644 schemas/schemas/master_schemas/enriched_meaningful_history_operations_schema.json delete mode 100644 schemas/schemas/master_schemas/euro_ohlc_schema.json delete mode 100644 schemas/schemas/master_schemas/factEvents_schema.json delete mode 100644 schemas/schemas/master_schemas/history_assets_schema.json delete mode 100644 schemas/schemas/master_schemas/history_contract_events_schema.json delete mode 100644 schemas/schemas/master_schemas/history_effects_schema.json delete mode 100644 schemas/schemas/master_schemas/history_ledgers_schema.json delete mode 100644 schemas/schemas/master_schemas/history_operations_schema.json delete mode 100644 schemas/schemas/master_schemas/history_trades_schema.json delete mode 100644 schemas/schemas/master_schemas/history_transactions_schema.json delete mode 100644 schemas/schemas/master_schemas/liquidity_pools_schema.json delete mode 100644 schemas/schemas/master_schemas/offers_schema.json delete mode 100644 schemas/schemas/master_schemas/raw_mgi_stellar_transactions_schema.json delete mode 100644 schemas/schemas/master_schemas/trust_lines_schema.json delete mode 100644 schemas/schemas/master_schemas/ttl_schema.json delete mode 100644 schemas/schemas/offers_schema.json delete mode 100644 schemas/schemas/raw_mgi_stellar_transactions_schema.json delete mode 100644 schemas/schemas/trust_lines_schema.json delete mode 100644 schemas/schemas/ttl_schema.json diff --git a/schemas/schemas/account_signers_schema.json b/schemas/schemas/account_signers_schema.json deleted file mode 100644 index fd92d8a6..00000000 --- a/schemas/schemas/account_signers_schema.json +++ /dev/null @@ -1,62 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "weight", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/accounts_schema.json b/schemas/schemas/accounts_schema.json deleted file mode 100644 index cbcb7c43..00000000 --- a/schemas/schemas/accounts_schema.json +++ /dev/null @@ -1,132 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "balance", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "buying_liabilities", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "selling_liabilities", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "sequence_number", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "num_subentries", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "inflation_destination", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "flags", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "home_domain", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "master_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "threshold_low", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "threshold_medium", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "threshold_high", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "num_sponsored", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "num_sponsoring", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "sequence_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "sequence_time", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/claimable_balances_schema.json b/schemas/schemas/claimable_balances_schema.json deleted file mode 100644 index 1ee7b54b..00000000 --- a/schemas/schemas/claimable_balances_schema.json +++ /dev/null @@ -1,499 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "balance_id", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "destination", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "predicate", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "claimants", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "asset_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "flags", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/config_settings_schema.json b/schemas/schemas/config_settings_schema.json deleted file mode 100644 index 0fcf24b6..00000000 --- a/schemas/schemas/config_settings_schema.json +++ /dev/null @@ -1,291 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "config_setting_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "contract_max_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_instructions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_instructions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_rate_per_instructions_increment", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_memory_limit", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_read_ledger_entries", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_read_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_write_ledger_entries", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_write_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_read_ledger_entries", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_read_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_write_ledger_entries", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_write_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_read_ledger_entry", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_write_ledger_entry", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_read_1kb", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "bucket_list_target_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "write_fee_1kb_bucket_list_low", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "write_fee_1kb_bucket_list_high", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "bucket_list_write_fee_growth_factor", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_historical_1kb", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_contract_events_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_contract_events_1kb", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_txs_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_tx_size_1kb", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "ExtV", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ConstTerm", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "LinearTerm", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "contract_cost_params_cpu_insns", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "ExtV", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ConstTerm", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "LinearTerm", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "contract_cost_params_mem_bytes", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "contract_data_key_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "contract_data_entry_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_entry_ttl", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_temporary_ttl", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_persistent_ttl", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "auto_bump_ledgers", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "persistent_rent_rate_denominator", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "temp_rent_rate_denominator", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_entries_to_archive", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "bucket_list_size_window_sample_size", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "eviction_scan_size", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "starting_eviction_scan_level", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_tx_count", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "bucket_list_size_window", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/contract_code_schema.json b/schemas/schemas/contract_code_schema.json deleted file mode 100644 index 9536a8b8..00000000 --- a/schemas/schemas/contract_code_schema.json +++ /dev/null @@ -1,107 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "contract_code_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_code_ext_v", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_key_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "n_instructions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_functions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_globals", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_table_entries", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_types", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_data_segments", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_elem_segments", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_imports", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_exports", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_data_segment_bytes", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/contract_data_schema.json b/schemas/schemas/contract_data_schema.json deleted file mode 100644 index 9b0c0d39..00000000 --- a/schemas/schemas/contract_data_schema.json +++ /dev/null @@ -1,112 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "contract_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_key_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_durability", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "balance_holder", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "balance", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_key_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "key", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "key_decoded", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "val", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "val_decoded", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "contract_data_xdr", - "type": "STRING" - } -] diff --git a/schemas/schemas/dimAccounts_schema.json b/schemas/schemas/dimAccounts_schema.json deleted file mode 100644 index 67c848ff..00000000 --- a/schemas/schemas/dimAccounts_schema.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_id", - "type": "FLOAT" - } -] diff --git a/schemas/schemas/dimMarkets_schema.json b/schemas/schemas/dimMarkets_schema.json deleted file mode 100644 index b606bd40..00000000 --- a/schemas/schemas/dimMarkets_schema.json +++ /dev/null @@ -1,27 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "counter_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "counter_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "base_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "base_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "market_id", - "type": "FLOAT" - } -] diff --git a/schemas/schemas/dimOffers_schema.json b/schemas/schemas/dimOffers_schema.json deleted file mode 100644 index 63b4e757..00000000 --- a/schemas/schemas/dimOffers_schema.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "price", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "action", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "counter_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "maker_id", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "base_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "dim_offer_id", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "market_id", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "horizon_offer_id", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/enriched_history_operations_schema.json b/schemas/schemas/enriched_history_operations_schema.json deleted file mode 100644 index ccdae4da..00000000 --- a/schemas/schemas/enriched_history_operations_schema.json +++ /dev/null @@ -1,1354 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "op_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "op_account_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "op_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "authorize", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "balance_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "claimant", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "claimant_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "claimant_muxed_id", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "destination", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "predicate", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "claimants", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "data_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "data_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "high_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "home_domain", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "inflation_dest", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "limit", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "low_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "master_key_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "med_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "offer_id", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "path", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "price", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_id", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "set_flags", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "set_flags_s", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_key", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "source_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_max", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "starting_balance", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustline_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustline_asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "clear_flags", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "clear_flags_s", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "destination_min", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "bump_to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sponsored_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "authorize_to_maintain_liabilities", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "clawback_enabled", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_max_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_deposit_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_max_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_deposit_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "min_price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "min_price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "max_price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "max_price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "shares_received", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_min_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_min_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "shares", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_withdraw_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_withdraw_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "op_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "op_source_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "op_source_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type_string", - "type": "string" - }, - { - "mode": "NULLABLE", - "name": "transaction_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "txn_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "txn_operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "txn_created_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "memo_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "memo", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "time_bounds", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "successful", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "new_max_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "fee_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "previous_ledger_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "total_coins", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_pool", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "base_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "base_reserve", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_tx_set_size", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "protocol_version", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "successful_transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "failed_transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_bounds", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence_age", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence_ledger_gap", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "extra_signers", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_envelope", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_result", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_meta", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_fee_meta", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "asset_balance_changes", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "parameters", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "parameters_decoded", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "function", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "soroban_operation_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "extend_to", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "contract_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_code_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "resource_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_instructions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_read_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_write_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "transaction_result_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "inclusion_fee_bid", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "inclusion_fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "resource_fee_refund", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "operation_result_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "operation_trace_code", - "type": "STRING" - } -] diff --git a/schemas/schemas/enriched_meaningful_history_operations_schema.json b/schemas/schemas/enriched_meaningful_history_operations_schema.json deleted file mode 100644 index ce92f39a..00000000 --- a/schemas/schemas/enriched_meaningful_history_operations_schema.json +++ /dev/null @@ -1,794 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "authorize", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "balance_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "from", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "high_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "home_domain", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "inflation_dest", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "limit", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "low_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "master_key_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "med_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "offer_id", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "path", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "price", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_id", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "set_flags", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "set_flags_s", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_key", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "source_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_max", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "starting_balance", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustline_asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "clear_flags", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "clear_flags_s", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "destination_min", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "bump_to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sponsored_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "authorize_to_maintain_liabilities", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "clawback_enabled", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_max_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_deposit_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_max_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_deposit_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "min_price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "min_price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "max_price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "max_price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "shares_received", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_min_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_min_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "shares", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_withdraw_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_withdraw_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "op_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "op_source_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "op_source_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "transaction_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "txn_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "txn_operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "txn_created_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "memo_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "memo", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "time_bounds", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "successful", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "new_max_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "fee_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "previous_ledger_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "total_coins", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_pool", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "base_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "base_reserve", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_tx_set_size", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "protocol_version", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "successful_transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "failed_transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_bounds", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence_age", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence_ledger_gap", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "extra_signers", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "asset_balance_changes", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "parameters", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "parameters_decoded", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "function", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "soroban_operation_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "extend_to", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "contract_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_code_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "resource_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_instructions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_read_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_write_bytes", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/euro_ohlc_schema.json b/schemas/schemas/euro_ohlc_schema.json deleted file mode 100644 index 2a4adf00..00000000 --- a/schemas/schemas/euro_ohlc_schema.json +++ /dev/null @@ -1,27 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "time", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "open", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "high", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "low", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "close", - "type": "FLOAT" - } -] diff --git a/schemas/schemas/factEvents_schema.json b/schemas/schemas/factEvents_schema.json deleted file mode 100644 index 81b90afe..00000000 --- a/schemas/schemas/factEvents_schema.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "offer_instance_id", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "ledger_id", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/history_assets_schema.json b/schemas/schemas/history_assets_schema.json deleted file mode 100644 index c6576a96..00000000 --- a/schemas/schemas/history_assets_schema.json +++ /dev/null @@ -1,47 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - } -] diff --git a/schemas/schemas/history_contract_events_schema.json b/schemas/schemas/history_contract_events_schema.json deleted file mode 100644 index 77e2eb4f..00000000 --- a/schemas/schemas/history_contract_events_schema.json +++ /dev/null @@ -1,87 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "transaction_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "successful", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "in_successful_contract_call", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "contract_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type_string", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "topics", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "topics_decoded", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "data", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "data_decoded", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "contract_event_xdr", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/history_effects_schema.json b/schemas/schemas/history_effects_schema.json deleted file mode 100644 index 0cb0d195..00000000 --- a/schemas/schemas/history_effects_schema.json +++ /dev/null @@ -1,878 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "address_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "operation_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type_string", - "type": "STRING" - }, - { - "fields": [ - { - "fields": [ - { - "mode": "NULLABLE", - "name": "fee_bp", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "total_shares", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "total_trustlines", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - } - ], - "mode": "REPEATED", - "name": "reserves", - "type": "RECORD" - } - ], - "mode": "NULLABLE", - "name": "liquidity_pool", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - } - ], - "mode": "REPEATED", - "name": "reserves_received", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - } - ], - "mode": "REPEATED", - "name": "reserves_deposited", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "claimable_balance_id", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "reserves_revoked", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - } - ], - "mode": "REPEATED", - "name": "bought", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - } - ], - "mode": "REPEATED", - "name": "sold", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "shares_revoked", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "shares_received", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "shares_redeemed", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "balance_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "new_seq", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "limit", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "inflation_destination", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "authorized_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "auth_immutable_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "authorized_to_maintain_liabilites", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "auth_revocable_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "auth_required_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "auth_clawback_enabled_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "claimable_balance_clawback_enabled_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "clawback_enabled_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "high_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "med_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "low_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "home_domain", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "new_sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "former_sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "public_key", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "starting_balance", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "seller", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "seller_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "seller_muxed_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "offer_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "sold_amount", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "sold_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sold_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sold_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "bought_amount", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "bought_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "bought_asset_code", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "predicate", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "data_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "bought_asset_issuer", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "entries", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "extend_to", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "contract", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_event_type", - "type": "STRING" - } - ], - "mode": "NULLABLE", - "name": "details", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "index", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "id", - "type": "STRING" - } -] diff --git a/schemas/schemas/history_ledgers_schema.json b/schemas/schemas/history_ledgers_schema.json deleted file mode 100644 index 1bc7cf9b..00000000 --- a/schemas/schemas/history_ledgers_schema.json +++ /dev/null @@ -1,122 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "previous_ledger_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "total_coins", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_pool", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "base_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "base_reserve", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_tx_set_size", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "protocol_version", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_header", - "type": "BYTES" - }, - { - "mode": "NULLABLE", - "name": "successful_transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "failed_transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_set_operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "soroban_fee_write_1kb", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "node_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signature", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "total_byte_size_of_bucket_list", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/history_operations_schema.json b/schemas/schemas/history_operations_schema.json deleted file mode 100644 index 09ff1ee6..00000000 --- a/schemas/schemas/history_operations_schema.json +++ /dev/null @@ -1,1185 +0,0 @@ -[ - { - "fields": [ - { - "mode": "NULLABLE", - "name": "account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "authorize", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "balance_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "claimable_balance_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "claimant", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "claimant_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "claimant_muxed_id", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "destination", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "predicate", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "claimants", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "data_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "data_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "high_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "home_domain", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "inflation_dest", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "limit", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "low_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "master_key_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "med_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "offer_id", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "path", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "NULLABLE", - "name": "price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_type", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "set_flags", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "set_flags_s", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_key", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "source_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_max", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "starting_balance", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustline_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustline_asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "clear_flags", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "clear_flags_s", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "destination_min", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "bump_to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "authorize_to_maintain_liabilities", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "clawback_enabled", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sponsored_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_max_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_deposit_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_max_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_deposit_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "min_price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "min_price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "max_price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "max_price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "shares_received", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_min_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_withdraw_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_min_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_withdraw_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "shares", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "asset_balance_changes", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "parameters", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "parameters_decoded", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "function", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "extend_to", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "contract_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_code_hash", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "ledger_key_hash", - "type": "STRING" - } - ], - "mode": "NULLABLE", - "name": "details", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type_string", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "operation_result_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "operation_trace_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "details_json", - "type": "JSON" - } -] diff --git a/schemas/schemas/history_trades_schema.json b/schemas/schemas/history_trades_schema.json deleted file mode 100644 index 494d1893..00000000 --- a/schemas/schemas/history_trades_schema.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "history_operation_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "order", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "selling_account_address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "buying_account_address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "buying_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "price_n", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "price_d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_offer_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "buying_offer_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "selling_liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "liquidity_pool_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "trade_type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "rounding_slippage", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "seller_is_exact", - "type": "BOOLEAN" - } -] diff --git a/schemas/schemas/history_transactions_schema.json b/schemas/schemas/history_transactions_schema.json deleted file mode 100644 index 809523f2..00000000 --- a/schemas/schemas/history_transactions_schema.json +++ /dev/null @@ -1,217 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "transaction_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "created_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "memo_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "memo", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "time_bounds", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "successful", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "inner_transaction_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "fee_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "new_max_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "fee_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_bounds", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence_age", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence_ledger_gap", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_envelope", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_result", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_meta", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_fee_meta", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "extra_signers", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "resource_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_instructions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_read_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_write_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "transaction_result_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "inclusion_fee_bid", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "inclusion_fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "resource_fee_refund", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "non_refundable_resource_fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "refundable_resource_fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "rent_fee_charged", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "tx_signers", - "type": "STRING" - } -] diff --git a/schemas/schemas/liquidity_pools_schema.json b/schemas/schemas/liquidity_pools_schema.json deleted file mode 100644 index 6861eccb..00000000 --- a/schemas/schemas/liquidity_pools_schema.json +++ /dev/null @@ -1,117 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "trustline_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "pool_share_count", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_a_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_a_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_a_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_a_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "asset_a_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_b_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_b_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_b_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_b_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "asset_b_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/account_signers_schema.json b/schemas/schemas/master_schemas/account_signers_schema.json deleted file mode 100644 index fd92d8a6..00000000 --- a/schemas/schemas/master_schemas/account_signers_schema.json +++ /dev/null @@ -1,62 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "weight", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/accounts_schema.json b/schemas/schemas/master_schemas/accounts_schema.json deleted file mode 100644 index cbcb7c43..00000000 --- a/schemas/schemas/master_schemas/accounts_schema.json +++ /dev/null @@ -1,132 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "balance", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "buying_liabilities", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "selling_liabilities", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "sequence_number", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "num_subentries", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "inflation_destination", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "flags", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "home_domain", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "master_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "threshold_low", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "threshold_medium", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "threshold_high", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "num_sponsored", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "num_sponsoring", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "sequence_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "sequence_time", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/claimable_balances_schema.json b/schemas/schemas/master_schemas/claimable_balances_schema.json deleted file mode 100644 index 1ee7b54b..00000000 --- a/schemas/schemas/master_schemas/claimable_balances_schema.json +++ /dev/null @@ -1,499 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "balance_id", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "destination", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "predicate", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "claimants", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "asset_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "flags", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/config_settings_schema.json b/schemas/schemas/master_schemas/config_settings_schema.json deleted file mode 100644 index 0fcf24b6..00000000 --- a/schemas/schemas/master_schemas/config_settings_schema.json +++ /dev/null @@ -1,291 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "config_setting_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "contract_max_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_instructions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_instructions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_rate_per_instructions_increment", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_memory_limit", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_read_ledger_entries", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_read_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_write_ledger_entries", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_write_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_read_ledger_entries", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_read_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_write_ledger_entries", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_write_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_read_ledger_entry", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_write_ledger_entry", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_read_1kb", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "bucket_list_target_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "write_fee_1kb_bucket_list_low", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "write_fee_1kb_bucket_list_high", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "bucket_list_write_fee_growth_factor", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_historical_1kb", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_contract_events_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_contract_events_1kb", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_txs_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_max_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_tx_size_1kb", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "ExtV", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ConstTerm", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "LinearTerm", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "contract_cost_params_cpu_insns", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "ExtV", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ConstTerm", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "LinearTerm", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "contract_cost_params_mem_bytes", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "contract_data_key_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "contract_data_entry_size_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_entry_ttl", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_temporary_ttl", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_persistent_ttl", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "auto_bump_ledgers", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "persistent_rent_rate_denominator", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "temp_rent_rate_denominator", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_entries_to_archive", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "bucket_list_size_window_sample_size", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "eviction_scan_size", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "starting_eviction_scan_level", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_max_tx_count", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "bucket_list_size_window", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/contract_code_schema.json b/schemas/schemas/master_schemas/contract_code_schema.json deleted file mode 100644 index 9536a8b8..00000000 --- a/schemas/schemas/master_schemas/contract_code_schema.json +++ /dev/null @@ -1,107 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "contract_code_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_code_ext_v", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_key_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "n_instructions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_functions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_globals", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_table_entries", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_types", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_data_segments", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_elem_segments", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_imports", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_exports", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n_data_segment_bytes", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/contract_data_schema.json b/schemas/schemas/master_schemas/contract_data_schema.json deleted file mode 100644 index 9b0c0d39..00000000 --- a/schemas/schemas/master_schemas/contract_data_schema.json +++ /dev/null @@ -1,112 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "contract_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_key_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_durability", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "balance_holder", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "balance", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_key_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "key", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "key_decoded", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "val", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "val_decoded", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "contract_data_xdr", - "type": "STRING" - } -] diff --git a/schemas/schemas/master_schemas/dimAccounts_schema.json b/schemas/schemas/master_schemas/dimAccounts_schema.json deleted file mode 100644 index 67c848ff..00000000 --- a/schemas/schemas/master_schemas/dimAccounts_schema.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_id", - "type": "FLOAT" - } -] diff --git a/schemas/schemas/master_schemas/dimMarkets_schema.json b/schemas/schemas/master_schemas/dimMarkets_schema.json deleted file mode 100644 index b606bd40..00000000 --- a/schemas/schemas/master_schemas/dimMarkets_schema.json +++ /dev/null @@ -1,27 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "counter_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "counter_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "base_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "base_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "market_id", - "type": "FLOAT" - } -] diff --git a/schemas/schemas/master_schemas/dimOffers_schema.json b/schemas/schemas/master_schemas/dimOffers_schema.json deleted file mode 100644 index 63b4e757..00000000 --- a/schemas/schemas/master_schemas/dimOffers_schema.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "price", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "action", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "counter_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "maker_id", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "base_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "dim_offer_id", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "market_id", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "horizon_offer_id", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/enriched_history_operations_schema.json b/schemas/schemas/master_schemas/enriched_history_operations_schema.json deleted file mode 100644 index ccdae4da..00000000 --- a/schemas/schemas/master_schemas/enriched_history_operations_schema.json +++ /dev/null @@ -1,1354 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "op_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "op_account_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "op_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "authorize", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "balance_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "claimant", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "claimant_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "claimant_muxed_id", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "destination", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "predicate", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "claimants", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "data_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "data_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "high_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "home_domain", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "inflation_dest", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "limit", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "low_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "master_key_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "med_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "offer_id", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "path", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "price", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_id", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "set_flags", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "set_flags_s", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_key", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "source_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_max", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "starting_balance", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustline_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustline_asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "clear_flags", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "clear_flags_s", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "destination_min", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "bump_to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sponsored_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "authorize_to_maintain_liabilities", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "clawback_enabled", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_max_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_deposit_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_max_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_deposit_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "min_price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "min_price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "max_price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "max_price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "shares_received", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_min_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_min_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "shares", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_withdraw_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_withdraw_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "op_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "op_source_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "op_source_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type_string", - "type": "string" - }, - { - "mode": "NULLABLE", - "name": "transaction_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "txn_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "txn_operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "txn_created_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "memo_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "memo", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "time_bounds", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "successful", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "new_max_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "fee_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "previous_ledger_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "total_coins", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_pool", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "base_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "base_reserve", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_tx_set_size", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "protocol_version", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "successful_transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "failed_transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_bounds", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence_age", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence_ledger_gap", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "extra_signers", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_envelope", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_result", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_meta", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_fee_meta", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "asset_balance_changes", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "parameters", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "parameters_decoded", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "function", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "soroban_operation_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "extend_to", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "contract_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_code_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "resource_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_instructions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_read_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_write_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "transaction_result_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "inclusion_fee_bid", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "inclusion_fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "resource_fee_refund", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "operation_result_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "operation_trace_code", - "type": "STRING" - } -] diff --git a/schemas/schemas/master_schemas/enriched_meaningful_history_operations_schema.json b/schemas/schemas/master_schemas/enriched_meaningful_history_operations_schema.json deleted file mode 100644 index ce92f39a..00000000 --- a/schemas/schemas/master_schemas/enriched_meaningful_history_operations_schema.json +++ /dev/null @@ -1,794 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "authorize", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "balance_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "from", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "high_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "home_domain", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "inflation_dest", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "limit", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "low_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "master_key_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "med_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "offer_id", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "path", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "price", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_id", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "set_flags", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "set_flags_s", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_key", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "source_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_max", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "starting_balance", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustline_asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "clear_flags", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "clear_flags_s", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "destination_min", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "bump_to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sponsored_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "authorize_to_maintain_liabilities", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "clawback_enabled", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_max_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_deposit_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_max_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_deposit_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "min_price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "min_price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "max_price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "max_price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "shares_received", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_min_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_min_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "shares", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_withdraw_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_withdraw_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "op_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "op_source_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "op_source_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "transaction_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "txn_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "txn_operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "txn_created_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "memo_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "memo", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "time_bounds", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "successful", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "new_max_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "fee_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "previous_ledger_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "total_coins", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_pool", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "base_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "base_reserve", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_tx_set_size", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "protocol_version", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "successful_transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "failed_transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_bounds", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence_age", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence_ledger_gap", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "extra_signers", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "asset_balance_changes", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "parameters", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "parameters_decoded", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "function", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "soroban_operation_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "extend_to", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "contract_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_code_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "resource_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_instructions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_read_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_write_bytes", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/euro_ohlc_schema.json b/schemas/schemas/master_schemas/euro_ohlc_schema.json deleted file mode 100644 index 2a4adf00..00000000 --- a/schemas/schemas/master_schemas/euro_ohlc_schema.json +++ /dev/null @@ -1,27 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "time", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "open", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "high", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "low", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "close", - "type": "FLOAT" - } -] diff --git a/schemas/schemas/master_schemas/factEvents_schema.json b/schemas/schemas/master_schemas/factEvents_schema.json deleted file mode 100644 index 81b90afe..00000000 --- a/schemas/schemas/master_schemas/factEvents_schema.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "offer_instance_id", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "ledger_id", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/history_assets_schema.json b/schemas/schemas/master_schemas/history_assets_schema.json deleted file mode 100644 index c6576a96..00000000 --- a/schemas/schemas/master_schemas/history_assets_schema.json +++ /dev/null @@ -1,47 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - } -] diff --git a/schemas/schemas/master_schemas/history_contract_events_schema.json b/schemas/schemas/master_schemas/history_contract_events_schema.json deleted file mode 100644 index 77e2eb4f..00000000 --- a/schemas/schemas/master_schemas/history_contract_events_schema.json +++ /dev/null @@ -1,87 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "transaction_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "successful", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "in_successful_contract_call", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "contract_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type_string", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "topics", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "topics_decoded", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "data", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "data_decoded", - "type": "JSON" - }, - { - "mode": "NULLABLE", - "name": "contract_event_xdr", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/history_effects_schema.json b/schemas/schemas/master_schemas/history_effects_schema.json deleted file mode 100644 index 0cb0d195..00000000 --- a/schemas/schemas/master_schemas/history_effects_schema.json +++ /dev/null @@ -1,878 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "address_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "operation_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type_string", - "type": "STRING" - }, - { - "fields": [ - { - "fields": [ - { - "mode": "NULLABLE", - "name": "fee_bp", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "total_shares", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "total_trustlines", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - } - ], - "mode": "REPEATED", - "name": "reserves", - "type": "RECORD" - } - ], - "mode": "NULLABLE", - "name": "liquidity_pool", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - } - ], - "mode": "REPEATED", - "name": "reserves_received", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - } - ], - "mode": "REPEATED", - "name": "reserves_deposited", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "claimable_balance_id", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "reserves_revoked", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - } - ], - "mode": "REPEATED", - "name": "bought", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - } - ], - "mode": "REPEATED", - "name": "sold", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "shares_revoked", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "shares_received", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "shares_redeemed", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "balance_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "new_seq", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "limit", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "inflation_destination", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "authorized_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "auth_immutable_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "authorized_to_maintain_liabilites", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "auth_revocable_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "auth_required_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "auth_clawback_enabled_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "claimable_balance_clawback_enabled_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "clawback_enabled_flag", - "type": "BOOL" - }, - { - "mode": "NULLABLE", - "name": "high_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "med_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "low_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "home_domain", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "new_sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "former_sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "public_key", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "starting_balance", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "seller", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "seller_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "seller_muxed_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "offer_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "sold_amount", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "sold_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sold_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sold_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "bought_amount", - "type": "NUMERIC" - }, - { - "mode": "NULLABLE", - "name": "bought_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "bought_asset_code", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "predicate", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "data_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "bought_asset_issuer", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "entries", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "extend_to", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "contract", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_event_type", - "type": "STRING" - } - ], - "mode": "NULLABLE", - "name": "details", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "index", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "id", - "type": "STRING" - } -] diff --git a/schemas/schemas/master_schemas/history_ledgers_schema.json b/schemas/schemas/master_schemas/history_ledgers_schema.json deleted file mode 100644 index 1bc7cf9b..00000000 --- a/schemas/schemas/master_schemas/history_ledgers_schema.json +++ /dev/null @@ -1,122 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "previous_ledger_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "total_coins", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "fee_pool", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "base_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "base_reserve", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_tx_set_size", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "protocol_version", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_header", - "type": "BYTES" - }, - { - "mode": "NULLABLE", - "name": "successful_transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "failed_transaction_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_set_operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "soroban_fee_write_1kb", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "node_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signature", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "total_byte_size_of_bucket_list", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/history_operations_schema.json b/schemas/schemas/master_schemas/history_operations_schema.json deleted file mode 100644 index 09ff1ee6..00000000 --- a/schemas/schemas/master_schemas/history_operations_schema.json +++ /dev/null @@ -1,1185 +0,0 @@ -[ - { - "fields": [ - { - "mode": "NULLABLE", - "name": "account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "authorize", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "balance_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "claimable_balance_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "claimant", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "claimant_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "claimant_muxed_id", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "destination", - "type": "STRING" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "abs_before", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rel_before", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "unconditional", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "abs_before_epoch", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "not", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "and", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "or", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "predicate", - "type": "RECORD" - } - ], - "mode": "REPEATED", - "name": "claimants", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "data_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "data_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "funder_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "high_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "home_domain", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "inflation_dest", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "into_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "limit", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "low_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "master_key_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "med_threshold", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "offer_id", - "type": "INTEGER" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "path", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "NULLABLE", - "name": "price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_type", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "set_flags", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "set_flags_s", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_key", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "signer_weight", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "source_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_max", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "starting_balance", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustee_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustline_account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustline_asset", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "trustor_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "clear_flags", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "clear_flags_s", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "destination_min", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "bump_to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "authorize_to_maintain_liabilities", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "clawback_enabled", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "sponsored_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "begin_sponsor_muxed_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_max_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_deposit_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_max_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_deposit_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "min_price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "min_price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "max_price", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "n", - "type": "INTEGER" - } - ], - "mode": "REPEATED", - "name": "max_price_r", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "shares_received", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_min_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_a_withdraw_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_min_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "reserve_b_withdraw_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "shares", - "type": "FLOAT" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "from", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "to", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "asset_balance_changes", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "parameters", - "type": "RECORD" - }, - { - "fields": [ - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "value", - "type": "STRING" - } - ], - "mode": "REPEATED", - "name": "parameters_decoded", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "function", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "extend_to", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "contract_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "contract_code_hash", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "ledger_key_hash", - "type": "STRING" - } - ], - "mode": "NULLABLE", - "name": "details", - "type": "RECORD" - }, - { - "mode": "NULLABLE", - "name": "id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "source_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "source_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "transaction_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "type_string", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "operation_result_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "operation_trace_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "details_json", - "type": "JSON" - } -] diff --git a/schemas/schemas/master_schemas/history_trades_schema.json b/schemas/schemas/master_schemas/history_trades_schema.json deleted file mode 100644 index 494d1893..00000000 --- a/schemas/schemas/master_schemas/history_trades_schema.json +++ /dev/null @@ -1,137 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "history_operation_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "order", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "selling_account_address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "buying_account_address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "buying_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "price_n", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "price_d", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_offer_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "buying_offer_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "selling_liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "liquidity_pool_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "trade_type", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "rounding_slippage", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "seller_is_exact", - "type": "BOOLEAN" - } -] diff --git a/schemas/schemas/master_schemas/history_transactions_schema.json b/schemas/schemas/master_schemas/history_transactions_schema.json deleted file mode 100644 index 809523f2..00000000 --- a/schemas/schemas/master_schemas/history_transactions_schema.json +++ /dev/null @@ -1,217 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "transaction_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "max_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "operation_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "created_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "memo_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "memo", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "time_bounds", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "successful", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "inner_transaction_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "fee_account", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "new_max_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "fee_account_muxed", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_bounds", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence_age", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "min_account_sequence_ledger_gap", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "tx_envelope", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_result", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_meta", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tx_fee_meta", - "type": "STRING" - }, - { - "mode": "REPEATED", - "name": "extra_signers", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "resource_fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_instructions", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_read_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "soroban_resources_write_bytes", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "transaction_result_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "inclusion_fee_bid", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "inclusion_fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "resource_fee_refund", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "non_refundable_resource_fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "refundable_resource_fee_charged", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "rent_fee_charged", - "type": "INTEGER" - }, - { - "mode": "REPEATED", - "name": "tx_signers", - "type": "STRING" - } -] diff --git a/schemas/schemas/master_schemas/liquidity_pools_schema.json b/schemas/schemas/master_schemas/liquidity_pools_schema.json deleted file mode 100644 index 6861eccb..00000000 --- a/schemas/schemas/master_schemas/liquidity_pools_schema.json +++ /dev/null @@ -1,117 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "fee", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "trustline_count", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "pool_share_count", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_a_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_a_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_a_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_a_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "asset_a_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "asset_b_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_b_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_b_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_b_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "asset_b_amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/offers_schema.json b/schemas/schemas/master_schemas/offers_schema.json deleted file mode 100644 index e5104ca0..00000000 --- a/schemas/schemas/master_schemas/offers_schema.json +++ /dev/null @@ -1,122 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "seller_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "offer_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "pricen", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "priced", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "price", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "flags", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/raw_mgi_stellar_transactions_schema.json b/schemas/schemas/master_schemas/raw_mgi_stellar_transactions_schema.json deleted file mode 100644 index c06ed31a..00000000 --- a/schemas/schemas/master_schemas/raw_mgi_stellar_transactions_schema.json +++ /dev/null @@ -1,202 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "src_tran_ref_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "created_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "updated_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "transaction_status", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "send_cntry_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rec_cntry_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "send_crncy_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rec_crncy_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "send_face_USD_amt", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "send_face_tran_crncy_amt", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "send_fee_tran_amt", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "rec_face_tran_crncy_amt", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "send_partner_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "receive_partner_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tran_resource_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tran_hash_text", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "dgt_aset_tran_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "wallet_address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "promo_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_phys_line1_addr", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_phys_line2_addr", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_phys_city_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_phys_state_prov_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_phys_postal_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_cntry_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_phys_line1_addr", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_phys_line2_addr", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_phys_city_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_phys_state_prov_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_phys_postal_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_cntry_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_hq_pty_nbr", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_hq_pty_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_pty_nbr", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_displ_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_hq_pty_nbr", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_hq_pty_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_pty_nbr", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_displ_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "cancellation_reas", - "type": "STRING" - } -] diff --git a/schemas/schemas/master_schemas/trust_lines_schema.json b/schemas/schemas/master_schemas/trust_lines_schema.json deleted file mode 100644 index 1502d701..00000000 --- a/schemas/schemas/master_schemas/trust_lines_schema.json +++ /dev/null @@ -1,107 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "ledger_key", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "balance", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "trust_line_limit", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "buying_liabilities", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "selling_liabilities", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "flags", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/master_schemas/ttl_schema.json b/schemas/schemas/master_schemas/ttl_schema.json deleted file mode 100644 index f129bb90..00000000 --- a/schemas/schemas/master_schemas/ttl_schema.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "key_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "live_until_ledger_seq", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/offers_schema.json b/schemas/schemas/offers_schema.json deleted file mode 100644 index e5104ca0..00000000 --- a/schemas/schemas/offers_schema.json +++ /dev/null @@ -1,122 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "seller_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "offer_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "selling_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "buying_asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "amount", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "pricen", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "priced", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "price", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "flags", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/raw_mgi_stellar_transactions_schema.json b/schemas/schemas/raw_mgi_stellar_transactions_schema.json deleted file mode 100644 index c06ed31a..00000000 --- a/schemas/schemas/raw_mgi_stellar_transactions_schema.json +++ /dev/null @@ -1,202 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "src_tran_ref_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "created_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "updated_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "transaction_status", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "send_cntry_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rec_cntry_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "send_crncy_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "rec_crncy_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "send_face_USD_amt", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "send_face_tran_crncy_amt", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "send_fee_tran_amt", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "rec_face_tran_crncy_amt", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "send_partner_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "receive_partner_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tran_resource_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "tran_hash_text", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "dgt_aset_tran_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "wallet_address", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "promo_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_phys_line1_addr", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_phys_line2_addr", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_phys_city_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_phys_state_prov_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_phys_postal_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_cntry_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_phys_line1_addr", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_phys_line2_addr", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_phys_city_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_phys_state_prov_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_phys_postal_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_cntry_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_hq_pty_nbr", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_hq_pty_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_pty_nbr", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "partnr_sen_displ_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_hq_pty_nbr", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_hq_pty_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_pty_nbr", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "partnr_rec_displ_name", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "cancellation_reas", - "type": "STRING" - } -] diff --git a/schemas/schemas/trust_lines_schema.json b/schemas/schemas/trust_lines_schema.json deleted file mode 100644 index 1502d701..00000000 --- a/schemas/schemas/trust_lines_schema.json +++ /dev/null @@ -1,107 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "ledger_key", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "account_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_type", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_issuer", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_code", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "asset_id", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "liquidity_pool_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "balance", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "trust_line_limit", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "buying_liabilities", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "selling_liabilities", - "type": "FLOAT" - }, - { - "mode": "NULLABLE", - "name": "flags", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "sponsor", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] diff --git a/schemas/schemas/ttl_schema.json b/schemas/schemas/ttl_schema.json deleted file mode 100644 index f129bb90..00000000 --- a/schemas/schemas/ttl_schema.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "mode": "NULLABLE", - "name": "key_hash", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "live_until_ledger_seq", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "last_modified_ledger", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "ledger_entry_change", - "type": "INTEGER" - }, - { - "mode": "NULLABLE", - "name": "deleted", - "type": "BOOLEAN" - }, - { - "mode": "NULLABLE", - "name": "batch_id", - "type": "STRING" - }, - { - "mode": "NULLABLE", - "name": "batch_run_date", - "type": "DATETIME" - }, - { - "mode": "NULLABLE", - "name": "batch_insert_ts", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "closed_at", - "type": "TIMESTAMP" - }, - { - "mode": "NULLABLE", - "name": "ledger_sequence", - "type": "INTEGER" - } -] From 23ac7edd5843090a9e833971677d3efcde3e8816 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Mon, 4 Nov 2024 16:54:38 -0600 Subject: [PATCH 24/31] Update .github/workflows/update_dbt_marts_schema_changelog.yml --- .github/workflows/update_dbt_marts_schema_changelog.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/update_dbt_marts_schema_changelog.yml b/.github/workflows/update_dbt_marts_schema_changelog.yml index 27168b38..80166586 100644 --- a/.github/workflows/update_dbt_marts_schema_changelog.yml +++ b/.github/workflows/update_dbt_marts_schema_changelog.yml @@ -39,7 +39,6 @@ jobs: - name: Run Bash Script run: | - set -x cd $GITHUB_WORKSPACE PROJECT=hubble-261722 export PROJECT From c0027f6f8c514f73035ef8b8942b062dfbc05d35 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Mon, 4 Nov 2024 17:09:44 -0600 Subject: [PATCH 25/31] Add docstring --- changelog/source_data.md | 26 ++++---- .../update_source_data_schema_changelog.py | 60 ++++++++++++------- 2 files changed, 48 insertions(+), 38 deletions(-) diff --git a/changelog/source_data.md b/changelog/source_data.md index 62cc65bb..9ad7b9ac 100644 --- a/changelog/source_data.md +++ b/changelog/source_data.md @@ -1,29 +1,23 @@ - ## 2024-11-04: ## Tables Added: -- new_schema.json +- account_signers ## Tables Deleted: -- history_trades_schema.json +- account_signers_schema1.json ## Schema Changes: | Table Name | Operation | Columns | |---------------------------------|---------------|--------------------------| -| dimMarkets_schema.json | column_added | counter_issuers | -| dimMarkets_schema.json | column_removed | counter_issuer | -| euro_ohlc_schema.json | type_changed | open (FLOAT -> INTEGER) | -| history_contract_events_schema.json | column_removed | successful | - +| - dimOffers | column_added | horizon_offer_id | -## 2024-01-01 -## Tables Added: -['new_table'] -### Tables Removed: -['old_table'] +## 2024-11-04: -### Schema Changes: +## Tables Added: +- account_signers +## Tables Deleted: +- account_signers_schema1.json +## Schema Changes: | Table Name | Operation | Columns | |---------------------------------|---------------|--------------------------| -| euro_ohlc | type_changed | high (TIMESTAMP -> FLOAT) | -| account_signers | column_added | ledger_sequences | +| - dimOffers | column_added | horizon_offer_id | diff --git a/scripts/update_source_data_schema_changelog.py b/scripts/update_source_data_schema_changelog.py index 41d31f93..0d5dcb97 100644 --- a/scripts/update_source_data_schema_changelog.py +++ b/scripts/update_source_data_schema_changelog.py @@ -29,16 +29,16 @@ def write_file(filepath: str, content: str, mode="a") -> None: def sort_schema_changes(schema_changes: {}) -> {}: sorted_data = {} - for table_name in sorted(schema_changes.keys()): + for schema_name in sorted(schema_changes.keys()): sorted_operations = { - op_type: sorted(schema_changes[table_name][op_type]) - for op_type in sorted(schema_changes[table_name].keys()) + op_type: sorted(schema_changes[schema_name][op_type]) + for op_type in sorted(schema_changes[schema_name].keys()) } - sorted_data[table_name] = sorted_operations + sorted_data[schema_name] = sorted_operations return sorted_data -def get_filepaths(directory: str) -> []: +def list_files_in_dir(directory: str) -> []: if not os.path.exists(directory): sys.exit(f"Directory {directory} does not exist.") return os.listdir(directory) @@ -56,6 +56,20 @@ def compare_lists(old_list=[], new_list=[]): def get_mapped_schema_json(directory: str, schema_name: str) -> {}: + """ + Returns schema object indexed by field name. + Example: + { + "field_name_1": { + "name": field_name_1, + "type": STRING + }, + "field_name_2": { + "name": field_name_2, + "type": STRING + }, + } + """ schema_json = read_json_file(os.path.join(directory, schema_name)) schema_json_by_col_name = {column["name"]: column for column in schema_json} return schema_json_by_col_name @@ -98,32 +112,32 @@ def compare_schemas(schemas=[]) -> {}: return schema_changes -def print_label(label: str) -> str: - return f"\n## {label}:\n" +def get_print_label_string(label: str) -> str: + return f"\n## {label}:\n" if label else label -def print_schemas(label="", schemas=[]) -> str: +def get_print_schemas_string(label="", schemas=[]) -> str: print_string = "" if not len(schemas): return print_string - print_string += print_label(label) + print_string += get_print_label_string(label) for schema in schemas: - print_string += f"- {schema}" + print_string += f"- {schema.replace('_schema.json', '')}" return print_string -def print_schema_changes(label="", schema_changes={}) -> str: +def get_print_schema_changes_string(label="", schema_changes={}) -> str: print_string = "" if not schema_changes: return print_string - print_string += print_label(label) + print_string += get_print_label_string(label) markdown_table = "| Table Name | Operation | Columns |\n" markdown_table += "|---------------------------------|---------------|--------------------------|\n" - for table_name, operations in schema_changes.items(): + for schema_name, operations in schema_changes.items(): for operation, columns in operations.items(): if len(columns): if operation in ["column_added", "column_removed"]: @@ -135,9 +149,7 @@ def print_schema_changes(label="", schema_changes={}) -> str: for column in columns ] ) - markdown_table += ( - f"| {table_name:<33} | {operation:<15} | {columns_str:<50} |\n" - ) + markdown_table += f"| {get_print_schemas_string(schemas=[schema_name]):<33} | {operation:<15} | {columns_str:<50} |\n" print_string += markdown_table return print_string @@ -146,13 +158,17 @@ def generate_changelog(schemas_added=[], schemas_deleted=[], schemas_changes={}) new_changelog = "" if schemas_added or schemas_deleted or schemas_changes: current_date = datetime.now().strftime("%Y-%m-%d") - new_changelog += print_label(current_date) + new_changelog += get_print_label_string(current_date) - new_changelog += print_schemas(label="Tables Added", schemas=schemas_added) - new_changelog += print_schemas(label="Tables Deleted", schemas=schemas_deleted) + new_changelog += get_print_schemas_string( + label="Tables Added", schemas=schemas_added + ) + new_changelog += get_print_schemas_string( + label="Tables Deleted", schemas=schemas_deleted + ) sorted_schema_changes = sort_schema_changes(schemas_changes) - new_changelog += print_schema_changes( + new_changelog += get_print_schema_changes_string( label="Schema Changes", schema_changes=sorted_schema_changes ) return new_changelog @@ -160,8 +176,8 @@ def generate_changelog(schemas_added=[], schemas_deleted=[], schemas_changes={}) def main(): existing_changelog = read_file(filepath=CHANGELOG_FILEPATH) - old_schema_filepaths = get_filepaths(directory=OLD_SCHEMAS_DIR) - new_schema_filepaths = get_filepaths(directory=NEW_SCHEMAS_DIR) + old_schema_filepaths = list_files_in_dir(directory=OLD_SCHEMAS_DIR) + new_schema_filepaths = list_files_in_dir(directory=NEW_SCHEMAS_DIR) common, added, deleted = compare_lists( old_list=old_schema_filepaths, new_list=new_schema_filepaths From 1b2b332bd4b3d6f2f7aac718d87e656380bbff21 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Mon, 4 Nov 2024 17:25:15 -0600 Subject: [PATCH 26/31] Minor refactor --- scripts/update_source_data_schema_changelog.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/update_source_data_schema_changelog.py b/scripts/update_source_data_schema_changelog.py index 0d5dcb97..a80815d2 100644 --- a/scripts/update_source_data_schema_changelog.py +++ b/scripts/update_source_data_schema_changelog.py @@ -29,12 +29,11 @@ def write_file(filepath: str, content: str, mode="a") -> None: def sort_schema_changes(schema_changes: {}) -> {}: sorted_data = {} - for schema_name in sorted(schema_changes.keys()): + for table_name, op_types in sorted(schema_changes.items()): sorted_operations = { - op_type: sorted(schema_changes[schema_name][op_type]) - for op_type in sorted(schema_changes[schema_name].keys()) + op_type: sorted(columns) for op_type, columns in sorted(op_types.items()) } - sorted_data[schema_name] = sorted_operations + sorted_data[table_name] = sorted_operations return sorted_data @@ -188,6 +187,7 @@ def main(): ) if len(new_changelog): + # TODO: Append to same date if multiple changelog commited in same day write_file( filepath=CHANGELOG_FILEPATH, mode="w", content=new_changelog + "\n\n" ) From 4ae7e61d74b1265f8a8ef894b75d0b5a199c5916 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 6 Nov 2024 09:43:04 -0600 Subject: [PATCH 27/31] Update scripts/update_source_data_schema_changelog.py Co-authored-by: chowbao --- scripts/update_source_data_schema_changelog.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/update_source_data_schema_changelog.py b/scripts/update_source_data_schema_changelog.py index a80815d2..6d6c231e 100644 --- a/scripts/update_source_data_schema_changelog.py +++ b/scripts/update_source_data_schema_changelog.py @@ -30,10 +30,9 @@ def sort_schema_changes(schema_changes: {}) -> {}: sorted_data = {} for table_name, op_types in sorted(schema_changes.items()): - sorted_operations = { + sorted_data[table_name] = { op_type: sorted(columns) for op_type, columns in sorted(op_types.items()) } - sorted_data[table_name] = sorted_operations return sorted_data From 443de32eac11f84ca3dd7b68abe82a189e059e59 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 6 Nov 2024 09:43:21 -0600 Subject: [PATCH 28/31] Update scripts/update_source_data_schema_changelog.py Co-authored-by: chowbao --- scripts/update_source_data_schema_changelog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/update_source_data_schema_changelog.py b/scripts/update_source_data_schema_changelog.py index 6d6c231e..40241a47 100644 --- a/scripts/update_source_data_schema_changelog.py +++ b/scripts/update_source_data_schema_changelog.py @@ -132,8 +132,8 @@ def get_print_schema_changes_string(label="", schema_changes={}) -> str: print_string += get_print_label_string(label) - markdown_table = "| Table Name | Operation | Columns |\n" - markdown_table += "|---------------------------------|---------------|--------------------------|\n" + markdown_table = "| Table Name | Operation | Columns |\n" + markdown_table += "|---------------------------------|---------------|----------------------------------------------------|\n" for schema_name, operations in schema_changes.items(): for operation, columns in operations.items(): From e2b1f53d3242df8a86bbce598e7cbe0d69361c41 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 6 Nov 2024 09:44:02 -0600 Subject: [PATCH 29/31] Update scripts/update_source_data_schema_changelog.py Co-authored-by: chowbao --- scripts/update_source_data_schema_changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_source_data_schema_changelog.py b/scripts/update_source_data_schema_changelog.py index 40241a47..740a9cb2 100644 --- a/scripts/update_source_data_schema_changelog.py +++ b/scripts/update_source_data_schema_changelog.py @@ -147,7 +147,7 @@ def get_print_schema_changes_string(label="", schema_changes={}) -> str: for column in columns ] ) - markdown_table += f"| {get_print_schemas_string(schemas=[schema_name]):<33} | {operation:<15} | {columns_str:<50} |\n" + markdown_table += f"| {get_print_schemas_string(schemas=[schema_name]):<31} | {operation:<13} | {columns_str:<48} |\n" print_string += markdown_table return print_string From d891230a6573547b0a6d9a6f1957f3fe534ea1a5 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 6 Nov 2024 09:44:27 -0600 Subject: [PATCH 30/31] Update scripts/update_source_data_schema_changelog.py Co-authored-by: chowbao --- scripts/update_source_data_schema_changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_source_data_schema_changelog.py b/scripts/update_source_data_schema_changelog.py index 740a9cb2..805cf77e 100644 --- a/scripts/update_source_data_schema_changelog.py +++ b/scripts/update_source_data_schema_changelog.py @@ -182,7 +182,7 @@ def main(): ) schema_changes = compare_schemas(common) new_changelog = generate_changelog( - schemas_changes=schema_changes, schemas_added=added, schemas_deleted=deleted + schemas_added=added, schemas_deleted=deleted, schemas_changes=schema_changes ) if len(new_changelog): From 0d59fd5a11cd7d9893ef402722f84ed9ac70fcd6 Mon Sep 17 00:00:00 2001 From: Amisha Singla Date: Wed, 6 Nov 2024 09:47:09 -0600 Subject: [PATCH 31/31] clear contents of changelog --- changelog/source_data.md | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/changelog/source_data.md b/changelog/source_data.md index 9ad7b9ac..e69de29b 100644 --- a/changelog/source_data.md +++ b/changelog/source_data.md @@ -1,23 +0,0 @@ -## 2024-11-04: - -## Tables Added: -- account_signers -## Tables Deleted: -- account_signers_schema1.json -## Schema Changes: -| Table Name | Operation | Columns | -|---------------------------------|---------------|--------------------------| -| - dimOffers | column_added | horizon_offer_id | - - - -## 2024-11-04: - -## Tables Added: -- account_signers -## Tables Deleted: -- account_signers_schema1.json -## Schema Changes: -| Table Name | Operation | Columns | -|---------------------------------|---------------|--------------------------| -| - dimOffers | column_added | horizon_offer_id |