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 Jul 22, 2024
1 parent 8d282f8 commit acf9fe6
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ object_relationships:
remote_table:
name: evm_block
schema: public
- name: optimism_deposit
using:
manual_configuration:
column_mapping:
hash: l2_tx_hash
insertion_order: null
remote_table:
name: optimism_deposit
schema: public
array_relationships:
- name: erc20_activities
using:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
table:
name: optimism_withdrawal
schema: public
object_relationships:
- name: evm_transaction
using:
manual_configuration:
column_mapping:
evm_tx_id: id
insertion_order: null
remote_table:
name: evm_transaction
schema: public
select_permissions:
- role: internal_service
permission:
columns:
- id
- msg_nonce
- sender
- l2_tx_hash
- l2_block
- timestamp
- status
- evm_event_id
- l1_tx_hash
- withdrawal_hash
- evm_tx_id
filter: {}
limit: 100
allow_aggregations: true
2 changes: 2 additions & 0 deletions hasura/metadata/databases/ancient8/tables/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@
- '!include public_evm_signature_mapping.yaml'
- '!include public_evm_smart_contract.yaml'
- '!include public_evm_transaction.yaml'
- '!include public_optimism_deposit.yaml'
- '!include public_optimism_withdrawal.yaml'

0 comments on commit acf9fe6

Please sign in to comment.