Skip to content

Commit

Permalink
Fix/coin transfer hasura (#496)
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

* fix: fix coin transfer hasura
  • Loading branch information
matthew-nguyen-20032023 authored Nov 23, 2023
1 parent ca3ead8 commit ef98c29
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@ 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
tx_msg_id: id
insertion_order: null
remote_table:
name: transaction_message
schema: public
- name: transaction
using:
foreign_key_constraint_on: tx_id
manual_configuration:
column_mapping:
tx_id: id
insertion_order: null
remote_table:
name: transaction
schema: public
select_permissions:
- role: internal_service
permission:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@ 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
tx_msg_id: id
insertion_order: null
remote_table:
name: transaction_message
schema: public
- name: transaction
using:
foreign_key_constraint_on: tx_id
manual_configuration:
column_mapping:
tx_id: id
insertion_order: null
remote_table:
name: transaction
schema: public
select_permissions:
- role: internal_service
permission:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@ 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
tx_msg_id: id
insertion_order: null
remote_table:
name: transaction_message
schema: public
- name: transaction
using:
foreign_key_constraint_on: tx_id
manual_configuration:
column_mapping:
tx_id: id
insertion_order: null
remote_table:
name: transaction
schema: public
select_permissions:
- role: internal_service
permission:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@ 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
tx_msg_id: id
insertion_order: null
remote_table:
name: transaction_message
schema: public
- name: transaction
using:
foreign_key_constraint_on: tx_id
manual_configuration:
column_mapping:
tx_id: id
insertion_order: null
remote_table:
name: transaction
schema: public
select_permissions:
- role: internal_service
permission:
Expand Down

0 comments on commit ef98c29

Please sign in to comment.