Skip to content

Commit

Permalink
feat: add hasura metadata for nois
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 committed Dec 1, 2023
1 parent 8ff3719 commit 94eca5a
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
39 changes: 39 additions & 0 deletions hasura/metadata/databases/nois/tables/public_coin_transfer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
table:
name: coin_transfer
schema: public
object_relationships:
- name: message
using:
manual_configuration:
column_mapping:
tx_msg_id: id
insertion_order: null
remote_table:
name: transaction_message
schema: public
- name: transaction
using:
manual_configuration:
column_mapping:
tx_id: id
insertion_order: null
remote_table:
name: transaction
schema: public
select_permissions:
- role: internal_service
permission:
columns:
- id
- block_height
- tx_id
- tx_msg_id
- from
- to
- amount
- denom
- timestamp
- created_at
filter: {}
limit: 100
allow_aggregations: true
9 changes: 9 additions & 0 deletions hasura/metadata/databases/nois/tables/public_transaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ object_relationships:
using:
foreign_key_constraint_on: height
array_relationships:
- name: coin_transfers
using:
manual_configuration:
column_mapping:
id: tx_id
insertion_order: null
remote_table:
name: coin_transfer
schema: public
- name: event_attribute_index
using:
manual_configuration:
Expand Down
1 change: 1 addition & 0 deletions hasura/metadata/databases/nois/tables/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- '!include public_checkpoint.yaml'
- '!include public_code.yaml'
- '!include public_code_id_verification.yaml'
- '!include public_coin_transfer.yaml'
- '!include public_cw20_activity.yaml'
- '!include public_cw20_contract.yaml'
- '!include public_cw20_holder.yaml'
Expand Down

0 comments on commit 94eca5a

Please sign in to comment.