Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: updated Hasura metadata #377

Merged
merged 3 commits into from
Apr 6, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions hasura/metadata/databases/bdjuno/tables/public_account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ array_relationships:
table:
name: validator_info
schema: public
- name: vesting_accounts
using:
foreign_key_constraint_on:
column: address
table:
name: vesting_account
schema: public
select_permissions:
- permission:
allow_aggregations: true
Expand Down
18 changes: 18 additions & 0 deletions hasura/metadata/databases/bdjuno/tables/public_block.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@ array_relationships:
remote_table:
name: validator_voting_power
schema: public
- name: proposal_deposits
using:
manual_configuration:
column_mapping:
height: height
insertion_order: null
remote_table:
name: proposal_deposit
schema: public
- name: proposal_votes
using:
manual_configuration:
column_mapping:
height: height
insertion_order: null
remote_table:
name: proposal_vote
schema: public
select_permissions:
- permission:
allow_aggregations: true
Expand Down
10 changes: 10 additions & 0 deletions hasura/metadata/databases/bdjuno/tables/public_message.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ object_relationships:
insertion_order:
column_mapping:
transaction_hash: hash
- name: transactionByPartitionIdTransactionHash
using:
manual_configuration:
remote_table:
schema: public
name: transaction
insertion_order:
column_mapping:
transaction_hash: hash
partition_id: partition_id
select_permissions:
- permission:
allow_aggregations: true
Expand Down
18 changes: 0 additions & 18 deletions hasura/metadata/databases/bdjuno/tables/public_message_old.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ object_relationships:
- name: account
using:
foreign_key_constraint_on: voter_address
- name: block
using:
foreign_key_constraint_on: height
- name: proposal
using:
foreign_key_constraint_on: proposal_id
Expand Down
11 changes: 6 additions & 5 deletions hasura/metadata/databases/bdjuno/tables/public_transaction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ object_relationships:
using:
foreign_key_constraint_on: height
array_relationships:
- name: messagesByTransactionHash
- name: messagesByTransactionHashPartitionId
using:
manual_configuration:
column_mapping:
hash: transaction_hash
partition_id: partition_id
insertion_order: null
remote_table:
schema: public
name: message
insertion_order:
column_mapping:
transaction_hash: hash
schema: public
select_permissions:
- permission:
allow_aggregations: true
Expand Down

This file was deleted.

7 changes: 7 additions & 0 deletions hasura/metadata/databases/bdjuno/tables/public_validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ array_relationships:
table:
name: validator_voting_power
schema: public
- name: proposal_validator_status_snapshots
using:
foreign_key_constraint_on:
column: validator_address
table:
name: proposal_validator_status_snapshot
schema: public
select_permissions:
- permission:
allow_aggregations: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ table:
name: validator_voting_power
schema: public
object_relationships:
- name: block
using:
foreign_key_constraint_on: height
- name: validator
using:
foreign_key_constraint_on: validator_address
Expand Down
2 changes: 0 additions & 2 deletions hasura/metadata/databases/bdjuno/tables/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
- "!include public_gov_params.yaml"
- "!include public_inflation.yaml"
- "!include public_message.yaml"
- "!include public_message_old.yaml"
- "!include public_mint_params.yaml"
- "!include public_modules.yaml"
- "!include public_pre_commit.yaml"
Expand All @@ -31,7 +30,6 @@
- "!include public_token_price_history.yaml"
- "!include public_token_unit.yaml"
- "!include public_transaction.yaml"
- "!include public_transaction_old.yaml"
- "!include public_validator.yaml"
- "!include public_validator_commission.yaml"
- "!include public_validator_description.yaml"
Expand Down