-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
240 additions
and
28 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...ano-db-hasura/hasura/project/metadata/databases/default/tables/public_DelegationVote.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
table: | ||
name: DelegationVote | ||
schema: public | ||
configuration: | ||
column_config: {} | ||
custom_column_names: {} | ||
custom_root_fields: | ||
select: delegationvotes | ||
select_aggregate: delegationvotes_aggregate | ||
object_relationships: | ||
- name: redeemer | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
redeemerId: id | ||
insertion_order: null | ||
remote_table: | ||
name: Redeemer | ||
schema: public | ||
- name: drep | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
drep_hash_id: id | ||
insertion_order: null | ||
remote_table: | ||
name: drep_hash | ||
schema: public | ||
- name: transaction | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
tx_id: id | ||
insertion_order: null | ||
remote_table: | ||
name: Transaction | ||
schema: public | ||
select_permissions: | ||
- role: cardano-graphql | ||
permission: | ||
columns: | ||
- address | ||
filter: {} | ||
limit: 2500 | ||
allow_aggregations: true |
28 changes: 28 additions & 0 deletions
28
...o-db-hasura/hasura/project/metadata/databases/default/tables/public_DrepRegistration.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
table: | ||
name: DrepRegistration | ||
schema: public | ||
configuration: | ||
column_config: {} | ||
custom_column_names: {} | ||
custom_root_fields: | ||
select: drepRegistrations | ||
select_aggregate: drepRegistrations_aggregate | ||
object_relationships: | ||
- name: transaction | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
tx_id: id | ||
insertion_order: null | ||
remote_table: | ||
name: Transaction | ||
schema: public | ||
- name: votingAnchor | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
voting_anchor_id: id | ||
insertion_order: null | ||
remote_table: | ||
name: voting_anchor | ||
schema: public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...ano-db-hasura/hasura/project/metadata/databases/default/tables/public_committee_hash.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
table: | ||
name: committee_hash | ||
schema: public |
3 changes: 3 additions & 0 deletions
3
...-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_drep_hash.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
table: | ||
name: drep_hash | ||
schema: public |
35 changes: 35 additions & 0 deletions
35
...b-hasura/hasura/project/metadata/databases/default/tables/public_gov_action_proposal.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
table: | ||
name: gov_action_proposal | ||
schema: public | ||
configuration: | ||
column_config: {} | ||
custom_column_names: {} | ||
custom_root_fields: | ||
select: gov_action_proposal | ||
select_aggregate: gov_action_proposal_aggregate | ||
object_relationships: | ||
- name: transaction | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
tx_id: id | ||
insertion_order: null | ||
remote_table: | ||
name: tx | ||
schema: public | ||
- name: PreviousGovAction | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
prev_gov_action_proposal: id | ||
remote_table: | ||
name: gov_action_proposal | ||
schema: public | ||
- name: VotingAnchor | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
voting_anchor_id: id | ||
remote_table: | ||
name: voting_anchor | ||
schema: public |
3 changes: 3 additions & 0 deletions
3
...b-hasura/hasura/project/metadata/databases/default/tables/public_off_chain_vote_data.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
table: | ||
name: off_chain_vote_data | ||
schema: public |
3 changes: 3 additions & 0 deletions
3
...-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_pool_hash.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
table: | ||
name: pool_hash | ||
schema: public |
3 changes: 3 additions & 0 deletions
3
...-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_pool_stat.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
table: | ||
name: pool_stat | ||
schema: public |
3 changes: 3 additions & 0 deletions
3
...ges/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_tx.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
table: | ||
name: tx | ||
schema: public |
13 changes: 13 additions & 0 deletions
13
...dano-db-hasura/hasura/project/metadata/databases/default/tables/public_voting_anchor.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
table: | ||
name: voting_anchor | ||
schema: public | ||
object_relationships: | ||
- name: OffChainData | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
id: voting_anchor_id | ||
insertion_order: null | ||
remote_table: | ||
name: off_chain_vote_data | ||
schema: public |
59 changes: 59 additions & 0 deletions
59
...o-db-hasura/hasura/project/metadata/databases/default/tables/public_voting_procedure.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
table: | ||
name: voting_procedure | ||
schema: public | ||
configuration: | ||
column_config: {} | ||
custom_column_names: {} | ||
custom_root_fields: | ||
select: vote_procedure | ||
select_aggregate: vote_procedure_aggregate | ||
object_relationships: | ||
- name: transaction | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
tx_id: id | ||
insertion_order: null | ||
remote_table: | ||
name: tx | ||
schema: public | ||
- name: GovActionProposal | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
gov_action_proposal_id: id | ||
remote_table: | ||
name: gov_action_proposal | ||
schema: public | ||
- name: DrepVoter | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
drep_voter: id | ||
remote_table: | ||
name: drep_hash | ||
schema: public | ||
- name: PoolVoter | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
pool_voter: id | ||
remote_table: | ||
name: pool_hash | ||
schema: public | ||
- name: VotingAnchor | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
voting_anchor_id: id | ||
remote_table: | ||
name: voting_anchor | ||
schema: public | ||
- name: CommitteeVoter | ||
using: | ||
manual_configuration: | ||
column_mapping: | ||
committee_voter: id | ||
remote_table: | ||
name: committee_hash | ||
schema: public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 30 additions & 28 deletions
58
packages/api-cardano-db-hasura/hasura/project/migrations/default/1589369664961_init/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
DROP VIEW IF EXISTS | ||
"AdaPots", | ||
"ActiveStake", | ||
"Block", | ||
"Cardano", | ||
"CollateralInput", | ||
"CollateralOutput", | ||
"Datum", | ||
"Delegation", | ||
"Epoch", | ||
"ProtocolParams", | ||
"Redeemer", | ||
"RedeemerDatum", | ||
"ReferenceInput", | ||
"Reward", | ||
"Script", | ||
"SlotLeader", | ||
"StakeDeregistration", | ||
"StakePool", | ||
"StakePoolOwner", | ||
"StakeRegistration", | ||
"StakePoolRetirement", | ||
"TokenMint", | ||
"TokenInOutput", | ||
"Transaction", | ||
"TransactionInput", | ||
"TransactionOutput", | ||
"Utxo", | ||
"Withdrawal" CASCADE; | ||
"AdaPots", | ||
"ActiveStake", | ||
"Block", | ||
"Cardano", | ||
"CollateralInput", | ||
"CollateralOutput", | ||
"Datum", | ||
"Delegation", | ||
"Epoch", | ||
"ProtocolParams", | ||
"Redeemer", | ||
"RedeemerDatum", | ||
"ReferenceInput", | ||
"Reward", | ||
"Script", | ||
"SlotLeader", | ||
"StakeDeregistration", | ||
"StakePool", | ||
"StakePoolOwner", | ||
"StakeRegistration", | ||
"StakePoolRetirement", | ||
"TokenMint", | ||
"TokenInOutput", | ||
"Transaction", | ||
"TransactionInput", | ||
"TransactionOutput", | ||
"Utxo", | ||
"Withdrawal", | ||
"DelegationVote", | ||
"DrepRegistration" CASCADE; |