Skip to content

Commit

Permalink
feat: update hasura metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 committed Sep 13, 2024
1 parent 042f02a commit 223f06a
Show file tree
Hide file tree
Showing 29 changed files with 24 additions and 14 deletions.
20 changes: 10 additions & 10 deletions hasura/metadata/databases/databases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,36 +91,36 @@
type_names:
prefix: serenity_
tables: '!include serenity/tables/tables.yaml'
- name: storytestnet
- name: sourcify
kind: postgres
configuration:
connection_info:
database_url:
from_env: DATABASE_URL_STORY_TESTNET
from_env: DATABASE_URL_SOURCIFY
isolation_level: read-committed
use_prepared_statements: false
customization:
naming_convention: hasura-default
root_fields:
namespace: storytestnet
namespace: sourcify
type_names:
prefix: storytestnet_
tables: '!include story_testnet/tables/tables.yaml'
- name: sourcify
prefix: sourcify_
tables: '!include sourcify/tables/tables.yaml'
- name: storytestnet
kind: postgres
configuration:
connection_info:
database_url:
from_env: DATABASE_URL_SOURCIFY
from_env: DATABASE_URL_STORY_TESTNET
isolation_level: read-committed
use_prepared_statements: false
customization:
naming_convention: hasura-default
root_fields:
namespace: sourcify
namespace: storytestnet
type_names:
prefix: sourcify_
tables: '!include sourcify/tables/tables.yaml'
prefix: storytestnet_
tables: '!include storytestnet/tables/tables.yaml'
- name: xstaxy
kind: postgres
configuration:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
table:
name: evm_block
schema: public
object_relationships:
- name: validator
using:
manual_configuration:
column_mapping:
miner: evm_address
insertion_order: null
remote_table:
name: validator
schema: public
array_relationships:
- name: evm_transactions
using:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- '!include public_asset.yaml'
- '!include public_block_checkpoint.yaml'
- '!include public_daily_statistics.yaml'
- '!include public_delegator.yaml'
- '!include public_erc20_activity.yaml'
- '!include public_erc20_contract.yaml'
- '!include public_erc721_activity.yaml'
Expand All @@ -18,10 +19,9 @@
- '!include public_evm_signature_mapping.yaml'
- '!include public_evm_smart_contract.yaml'
- '!include public_evm_transaction.yaml'
- '!include public_m_view_erc721_holder_statistic.yaml'
- '!include public_optimism_deposit.yaml'
- '!include public_optimism_withdrawal.yaml'
- '!include public_view_count_holder_erc721.yaml'
- '!include public_validator.yaml'
- '!include public_delegator.yaml'
- '!include public_power_event.yaml'
- '!include public_m_view_erc721_holder_statistic.yaml'
- '!include public_validator.yaml'
- '!include public_view_count_holder_erc721.yaml'

0 comments on commit 223f06a

Please sign in to comment.