diff --git a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_AdaPots.yaml b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_AdaPots.yaml index e278b481..0f3cc630 100644 --- a/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_AdaPots.yaml +++ b/packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_AdaPots.yaml @@ -5,7 +5,9 @@ select_permissions: - role: cardano-graphql permission: columns: - - deposits + - deposits_stake + - deposits_drep + - deposits_proposal - fees - reserves - rewards diff --git a/packages/api-cardano-db-hasura/hasura/project/migrations/default/1589369664961_init/up.sql b/packages/api-cardano-db-hasura/hasura/project/migrations/default/1589369664961_init/up.sql index b6e791d8..6d29a43b 100644 --- a/packages/api-cardano-db-hasura/hasura/project/migrations/default/1589369664961_init/up.sql +++ b/packages/api-cardano-db-hasura/hasura/project/migrations/default/1589369664961_init/up.sql @@ -1,8 +1,13 @@ +-- noinspection SqlNoDataSourceInspectionForFile + +-- noinspection SqlDialectInspectionForFile CREATE OR REPLACE VIEW "AdaPots" AS SELECT epoch_no AS "epochNo", - deposits, + deposits_stake, + deposits_drep, + deposits_proposal fees, reserves, rewards, diff --git a/packages/api-cardano-db-hasura/schema.graphql b/packages/api-cardano-db-hasura/schema.graphql index ec945d06..f2525613 100644 --- a/packages/api-cardano-db-hasura/schema.graphql +++ b/packages/api-cardano-db-hasura/schema.graphql @@ -304,7 +304,9 @@ type Ada { } type AdaPots { - deposits: Lovelace! + deposits_stake: Lovelace! + deposits_drep: Lovelace! + deposits_proposal: Lovelace! fees: Lovelace! reserves: Lovelace! rewards: Lovelace!