Skip to content

Commit

Permalink
Fixed Apollo API (#908)
Browse files Browse the repository at this point in the history
* fix: added delegation votes to schema

* fix: upgraded docker version in docker-compose.yml

* fix: correct casing of delegationvotes

* fix: added missing types

* fix: updated graphql schema

* chore: cleaned up schema.graphql - Issue still not fixed yet

* stashing

* stashing

* fix: updating tables and setting right permissions

* fix: updating schema.graphql not done yet

* fixed schema

* fix: schema.graphql

* chore: reverted dev changes
  • Loading branch information
Kammerlo authored Dec 12, 2024
1 parent c6aa33c commit 396974f
Show file tree
Hide file tree
Showing 30 changed files with 2,364 additions and 1,471 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ lerna-debug.log
result*
*yarn-error.log
bin
state
state
packages-cache/**
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ configuration:
column_config: {}
custom_column_names: {}
custom_root_fields:
select: delegationvotes
select_aggregate: delegationvotes_aggregate
select: delegationVotes
select_aggregate: delegationVotes_aggregate
object_relationships:
- name: redeemer
using:
Expand Down Expand Up @@ -40,6 +40,9 @@ select_permissions:
permission:
columns:
- address
- drep_hash_id
- tx_id
- redeemerId
filter: {}
limit: 2500
allow_aggregations: true
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,15 @@ object_relationships:
insertion_order: null
remote_table:
name: voting_anchor
schema: public
schema: public
select_permissions:
- role: cardano-graphql
permission:
columns:
- DRepId
- deposit
- tx_id
- voting_anchor_id
filter: {}
limit: 2500
allow_aggregations: true
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,24 @@ object_relationships:
insertion_order: null
remote_table:
name: committee_member
schema: public
schema: public
- name: govActionProposal
using:
manual_configuration:
column_mapping:
gov_action_proposal_id: id
insertion_order: null
remote_table:
name: gov_action_proposal
schema: public
select_permissions:
- role: cardano-graphql
permission:
columns:
- gov_action_proposal_id
- quorum_denominator
- quorum_numerator
- id
filter: {}
limit: 2500
allow_aggregations: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
table:
name: committee_de_registration
schema: public
configuration:
column_config: {}
custom_column_names: {}
custom_root_fields:
select: committeeDeRegistration
select_aggregate: committeeDeRegistration_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
remote_table:
name: voting_anchor
schema: public
select_permissions:
- role: cardano-graphql
permission:
columns:
- cert_index
- cold_key_id
- tx_id
- voting_anchor_id
filter: {}
limit: 2500
allow_aggregations: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
table:
name: committee_hash
schema: public
configuration:
column_config: {}
custom_column_names: {}
custom_root_fields:
select: committeeHash
select_aggregate: committeeHash_aggregate
select_permissions:
- role: cardano-graphql
permission:
columns:
- has_script
- raw
filter: {}
limit: 2500
allow_aggregations: true
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
table:
name: committee_member
schema: public
configuration:
column_config: {}
custom_column_names: {}
custom_root_fields:
select: committeeMember
select_aggregate: committeeMember_aggregate
object_relationships:
- name: committee
using:
Expand All @@ -18,4 +24,15 @@ object_relationships:
committee_hash_id: id
remote_table:
name: committee_hash
schema: public
schema: public
select_permissions:
- role: cardano-graphql
permission:
columns:
- committee_hash_id
- committee_id
- expiration_epoch
- id
filter: {}
limit: 2500
allow_aggregations: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
table:
name: committee_registration
schema: public
configuration:
column_config: {}
custom_column_names: {}
custom_root_fields:
select: committeeRegistration
select_aggregate: committeeRegistration_aggregate
object_relationships:
- 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:
- cert_index
- cold_key_id
- hot_key_id
- tx_id
filter: {}
limit: 2500
allow_aggregations: true

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
table:
name: drep_hash
schema: public
configuration:
column_config: {}
custom_column_names: {}
custom_root_fields:
select: drepHash
select_aggregate: drepHash_aggregate
select_permissions:
- role: cardano-graphql
permission:
columns:
- view
- has_script
- raw
filter: { }
allow_aggregations: true

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ configuration:
column_config: {}
custom_column_names: {}
custom_root_fields:
select: gov_action_proposal
select_aggregate: gov_action_proposal_aggregate
select: govActionProposal
select_aggregate: govActionProposal_aggregate
object_relationships:
- name: transaction
using:
Expand All @@ -32,4 +32,20 @@ object_relationships:
voting_anchor_id: id
remote_table:
name: voting_anchor
schema: public
schema: public
select_permissions:
- role: cardano-graphql
permission:
columns:
- tx_id
- index
- prev_gov_action_proposal
- deposit
- return_address
- expiration
- voting_anchor_id
- type
- description
filter: {}
limit: 2500
allow_aggregations: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
table:
name: off_chain_vote_author
schema: public
configuration:
column_config: {}
custom_column_names: {}
custom_root_fields:
select: offChainVoteAuthor
select_aggregate: offChainVoteAuthor_aggregate
object_relationships:
- name: offChainVoteData
using:
manual_configuration:
column_mapping:
off_chain_vote_data_id: id
remote_table:
name: off_chain_vote_data
schema: public
select_permissions:
- role: cardano-graphql
permission:
columns:
- name
- off_chain_vote_data_id
- public_key
- signature
- warning
- witness_algorithm
filter: {}
limit: 2500
allow_aggregations: true
Original file line number Diff line number Diff line change
@@ -1,36 +1,56 @@
table:
name: off_chain_vote_data
schema: public
configuration:
column_config: {}
custom_column_names: {}
custom_root_fields:
select: offChainVoteData
select_aggregate: offChainVoteData_aggregate
object_relationships:
- name: OffChainVoteGovActionData
- name: offChainVoteGovActionData
using:
manual_configuration:
column_mapping:
id: off_chain_vote_data_id
remote_table:
name: off_chain_vote_gov_action_data
schema: public
- name: OffChainDrepData
- name: offChainVoteDrepData
using:
manual_configuration:
column_mapping:
id: off_chain_vote_data_id
remote_table:
name: off_chain_vote_drep_data
schema: public
- name: OffChainVoteAuthor
- name: offChainVoteAuthor
using:
manual_configuration:
column_mapping:
id: off_chain_vote_data_id
remote_table:
name: off_chain_vote_author
schema: public
- name: OffChainVoteReference
- name: ofChainVoteReference
using:
manual_configuration:
column_mapping:
id: off_chain_vote_data_id
remote_table:
name: off_chain_vote_reference
schema: public
schema: public
select_permissions:
- role: cardano-graphql
permission:
columns:
- bytes
- comment
- hash
- is_valid
- json
- voting_anchor_id
- warning
filter: {}
limit: 2500
allow_aggregations: true
Loading

0 comments on commit 396974f

Please sign in to comment.