Skip to content

Commit

Permalink
Fix/coin transfer hasura (#494)
Browse files Browse the repository at this point in the history
* fix: fix coin transfer with tx_msg_index === 0

* fix: update hasura for coin_transfer
  • Loading branch information
matthew-nguyen-20032023 authored Nov 23, 2023
1 parent 181b330 commit ca3ead8
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
table:
name: coin_transfer
schema: public
object_relationships:
- name: block
using:
foreign_key_constraint_on: block_height
- name: message
using:
manual_configuration:
column_mapping:
tx_id: tx_id
tx_msg_index: index
insertion_order: null
remote_table:
name: transaction_message
schema: public
- name: transaction
using:
foreign_key_constraint_on: tx_id
select_permissions:
- role: internal_service
permission:
Expand Down
1 change: 1 addition & 0 deletions hasura/metadata/databases/auratestnet/tables/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@
- '!include public_view_count_holder_cw721.yaml'
- '!include public_view_event_attribute_value_index.yaml'
- '!include public_vote.yaml'
- '!include public_coin_transfer.yaml'
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
table:
name: coin_transfer
schema: public
object_relationships:
- name: block
using:
foreign_key_constraint_on: block_height
- name: message
using:
manual_configuration:
column_mapping:
tx_id: tx_id
tx_msg_index: index
insertion_order: null
remote_table:
name: transaction_message
schema: public
- name: transaction
using:
foreign_key_constraint_on: tx_id
select_permissions:
- role: internal_service
permission:
Expand Down
2 changes: 2 additions & 0 deletions hasura/metadata/databases/euphoria/tables/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@
- '!include public_view_count_holder_cw721.yaml'
- '!include public_view_event_attribute_value_index.yaml'
- '!include public_vote.yaml'
- '!include public_coin_transfer.yaml'

Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
table:
name: coin_transfer
schema: public
object_relationships:
- name: block
using:
foreign_key_constraint_on: block_height
- name: message
using:
manual_configuration:
column_mapping:
tx_id: tx_id
tx_msg_index: index
insertion_order: null
remote_table:
name: transaction_message
schema: public
- name: transaction
using:
foreign_key_constraint_on: tx_id
select_permissions:
- role: internal_service
permission:
Expand Down
2 changes: 2 additions & 0 deletions hasura/metadata/databases/serenity/tables/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@
- '!include public_view_count_holder_cw721.yaml'
- '!include public_view_event_attribute_value_index.yaml'
- '!include public_vote.yaml'
- '!include public_coin_transfer.yaml'

17 changes: 17 additions & 0 deletions hasura/metadata/databases/xstaxy/tables/public_coin_transfer.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
table:
name: coin_transfer
schema: public
object_relationships:
- name: block
using:
foreign_key_constraint_on: block_height
- name: message
using:
manual_configuration:
column_mapping:
tx_id: tx_id
tx_msg_index: index
insertion_order: null
remote_table:
name: transaction_message
schema: public
- name: transaction
using:
foreign_key_constraint_on: tx_id
select_permissions:
- role: internal_service
permission:
Expand Down
1 change: 1 addition & 0 deletions hasura/metadata/databases/xstaxy/tables/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@
- '!include public_view_count_holder_cw721.yaml'
- '!include public_view_event_attribute_value_index.yaml'
- '!include public_vote.yaml'
- '!include public_coin_transfer.yaml'

0 comments on commit ca3ead8

Please sign in to comment.