Skip to content

Commit

Permalink
feat: update hasura metadata for ibc and smart contract
Browse files Browse the repository at this point in the history
  • Loading branch information
fibonacci998 committed Nov 21, 2023
1 parent 675b2e7 commit 956c968
Show file tree
Hide file tree
Showing 16 changed files with 140 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ object_relationships:
- name: ibc_connection
using:
foreign_key_constraint_on: ibc_connection_id
array_relationships:
- name: ibc_ics20s
using:
manual_configuration:
column_mapping:
channel_id: channel_id
insertion_order: null
remote_table:
name: ibc_ics20
schema: public
select_permissions:
- role: internal_service
permission:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ table:
name: ibc_ics20
schema: public
object_relationships:
- name: ibc_channel
using:
manual_configuration:
column_mapping:
channel_id: channel_id
insertion_order: null
remote_table:
name: ibc_channel
schema: public
- name: ibc_message
using:
foreign_key_constraint_on: ibc_message_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ table:
name: ibc_message
schema: public
object_relationships:
- name: ibc_ics20
using:
foreign_key_constraint_on:
column: ibc_message_id
table:
name: ibc_ics20
schema: public
- name: transaction_message
using:
foreign_key_constraint_on: transaction_message_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ object_relationships:
- name: code
using:
foreign_key_constraint_on: code_id
- name: code_id_verification
using:
manual_configuration:
column_mapping:
code_id: code_id
insertion_order: null
remote_table:
name: code_id_verification
schema: public
- name: cw20_contract
using:
foreign_key_constraint_on:
Expand Down
10 changes: 10 additions & 0 deletions hasura/metadata/databases/euphoria/tables/public_ibc_channel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ object_relationships:
- name: ibc_connection
using:
foreign_key_constraint_on: ibc_connection_id
array_relationships:
- name: ibc_ics20s
using:
manual_configuration:
column_mapping:
channel_id: channel_id
insertion_order: null
remote_table:
name: ibc_ics20
schema: public
select_permissions:
- role: internal_service
permission:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ table:
name: ibc_ics20
schema: public
object_relationships:
- name: ibc_channel
using:
manual_configuration:
column_mapping:
channel_id: channel_id
insertion_order: null
remote_table:
name: ibc_channel
schema: public
- name: ibc_message
using:
foreign_key_constraint_on: ibc_message_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ table:
name: ibc_message
schema: public
object_relationships:
- name: ibc_ics20
using:
foreign_key_constraint_on:
column: ibc_message_id
table:
name: ibc_ics20
schema: public
- name: transaction_message
using:
foreign_key_constraint_on: transaction_message_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ object_relationships:
- name: code
using:
foreign_key_constraint_on: code_id
- name: code_id_verification
using:
manual_configuration:
column_mapping:
code_id: code_id
insertion_order: null
remote_table:
name: code_id_verification
schema: public
- name: cw20_contract
using:
foreign_key_constraint_on:
Expand Down
10 changes: 10 additions & 0 deletions hasura/metadata/databases/serenity/tables/public_ibc_channel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ object_relationships:
- name: ibc_connection
using:
foreign_key_constraint_on: ibc_connection_id
array_relationships:
- name: ibc_ics20s
using:
manual_configuration:
column_mapping:
channel_id: channel_id
insertion_order: null
remote_table:
name: ibc_ics20
schema: public
select_permissions:
- role: internal_service
permission:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ table:
name: ibc_ics20
schema: public
object_relationships:
- name: ibc_channel
using:
manual_configuration:
column_mapping:
channel_id: channel_id
insertion_order: null
remote_table:
name: ibc_channel
schema: public
- name: ibc_message
using:
foreign_key_constraint_on: ibc_message_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ table:
name: ibc_message
schema: public
object_relationships:
- name: ibc_ics20
using:
foreign_key_constraint_on:
column: ibc_message_id
table:
name: ibc_ics20
schema: public
- name: transaction_message
using:
foreign_key_constraint_on: transaction_message_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ object_relationships:
- name: code
using:
foreign_key_constraint_on: code_id
- name: code_id_verification
using:
manual_configuration:
column_mapping:
code_id: code_id
insertion_order: null
remote_table:
name: code_id_verification
schema: public
- name: cw20_contract
using:
foreign_key_constraint_on:
Expand Down
10 changes: 10 additions & 0 deletions hasura/metadata/databases/xstaxy/tables/public_ibc_channel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ object_relationships:
- name: ibc_connection
using:
foreign_key_constraint_on: ibc_connection_id
array_relationships:
- name: ibc_ics20s
using:
manual_configuration:
column_mapping:
channel_id: channel_id
insertion_order: null
remote_table:
name: ibc_ics20
schema: public
select_permissions:
- role: internal_service
permission:
Expand Down
9 changes: 9 additions & 0 deletions hasura/metadata/databases/xstaxy/tables/public_ibc_ics20.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ table:
name: ibc_ics20
schema: public
object_relationships:
- name: ibc_channel
using:
manual_configuration:
column_mapping:
channel_id: channel_id
insertion_order: null
remote_table:
name: ibc_channel
schema: public
- name: ibc_message
using:
foreign_key_constraint_on: ibc_message_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ table:
name: ibc_message
schema: public
object_relationships:
- name: ibc_ics20
using:
foreign_key_constraint_on:
column: ibc_message_id
table:
name: ibc_ics20
schema: public
- name: transaction_message
using:
foreign_key_constraint_on: transaction_message_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ object_relationships:
- name: code
using:
foreign_key_constraint_on: code_id
- name: code_id_verification
using:
manual_configuration:
column_mapping:
code_id: code_id
insertion_order: null
remote_table:
name: code_id_verification
schema: public
- name: cw20_contract
using:
foreign_key_constraint_on:
Expand Down

0 comments on commit 956c968

Please sign in to comment.