diff --git a/hasura/metadata/databases/bdjuno/tables/public_validator.yaml b/hasura/metadata/databases/bdjuno/tables/public_validator.yaml index b4eac1c63..eaebf1328 100644 --- a/hasura/metadata/databases/bdjuno/tables/public_validator.yaml +++ b/hasura/metadata/databases/bdjuno/tables/public_validator.yaml @@ -93,6 +93,13 @@ array_relationships: table: name: proposal_validator_status_snapshot schema: public +- name: validator_denom + using: + foreign_key_constraint_on: + column: val_addr + table: + name: validator_denom + schema: public select_permissions: - permission: allow_aggregations: false diff --git a/hasura/metadata/databases/bdjuno/tables/public_validator_denom.yaml b/hasura/metadata/databases/bdjuno/tables/public_validator_denom.yaml new file mode 100644 index 000000000..d0c1f5df9 --- /dev/null +++ b/hasura/metadata/databases/bdjuno/tables/public_validator_denom.yaml @@ -0,0 +1,16 @@ +table: + name: validator_denom + schema: public +object_relationships: +- name: validator + using: + foreign_key_constraint_on: consensus_address +select_permissions: +- permission: + allow_aggregations: false + columns: + - val_addr + - denom + filter: {} + limit: 100 + role: anonymous diff --git a/hasura/metadata/databases/bdjuno/tables/tables.yaml b/hasura/metadata/databases/bdjuno/tables/tables.yaml index 920a84a31..afbb4e000 100644 --- a/hasura/metadata/databases/bdjuno/tables/tables.yaml +++ b/hasura/metadata/databases/bdjuno/tables/tables.yaml @@ -39,5 +39,6 @@ - "!include public_validator_signing_info.yaml" - "!include public_validator_status.yaml" - "!include public_validator_voting_power.yaml" +- "!include public_validator_denom.yaml" - "!include public_vesting_account.yaml" - "!include public_vesting_period.yaml"