From ef98c290acb26b4a1325dd00b740adbeeef596a1 Mon Sep 17 00:00:00 2001 From: matthew-nguyen-20032023 <129312342+matthew-nguyen-20032023@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:41:49 +0700 Subject: [PATCH] Fix/coin transfer hasura (#496) * fix: fix coin transfer with tx_msg_index === 0 * fix: update hasura for coin_transfer * fix: fix coin transfer hasura --- .../auratestnet/tables/public_coin_transfer.yaml | 14 ++++++++------ .../euphoria/tables/public_coin_transfer.yaml | 14 ++++++++------ .../serenity/tables/public_coin_transfer.yaml | 14 ++++++++------ .../xstaxy/tables/public_coin_transfer.yaml | 14 ++++++++------ 4 files changed, 32 insertions(+), 24 deletions(-) diff --git a/hasura/metadata/databases/auratestnet/tables/public_coin_transfer.yaml b/hasura/metadata/databases/auratestnet/tables/public_coin_transfer.yaml index 21a861b56..80e9e7f22 100644 --- a/hasura/metadata/databases/auratestnet/tables/public_coin_transfer.yaml +++ b/hasura/metadata/databases/auratestnet/tables/public_coin_transfer.yaml @@ -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: diff --git a/hasura/metadata/databases/euphoria/tables/public_coin_transfer.yaml b/hasura/metadata/databases/euphoria/tables/public_coin_transfer.yaml index 21a861b56..80e9e7f22 100644 --- a/hasura/metadata/databases/euphoria/tables/public_coin_transfer.yaml +++ b/hasura/metadata/databases/euphoria/tables/public_coin_transfer.yaml @@ -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: diff --git a/hasura/metadata/databases/serenity/tables/public_coin_transfer.yaml b/hasura/metadata/databases/serenity/tables/public_coin_transfer.yaml index 21a861b56..80e9e7f22 100644 --- a/hasura/metadata/databases/serenity/tables/public_coin_transfer.yaml +++ b/hasura/metadata/databases/serenity/tables/public_coin_transfer.yaml @@ -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: diff --git a/hasura/metadata/databases/xstaxy/tables/public_coin_transfer.yaml b/hasura/metadata/databases/xstaxy/tables/public_coin_transfer.yaml index 21a861b56..80e9e7f22 100644 --- a/hasura/metadata/databases/xstaxy/tables/public_coin_transfer.yaml +++ b/hasura/metadata/databases/xstaxy/tables/public_coin_transfer.yaml @@ -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: