Skip to content

Commit

Permalink
fix: updating tables and setting right permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kammerlo committed Dec 11, 2024
1 parent 1658a61 commit 81756ff
Show file tree
Hide file tree
Showing 12 changed files with 180 additions and 60 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
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
using:
Expand Down Expand Up @@ -33,4 +39,18 @@ object_relationships:
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
table:
name: off_chain_vote_drep_data
schema: public
configuration:
column_config: {}
custom_column_names: {}
custom_root_fields:
select: offChainVoteDrepData
select_aggregate: offChainVoteDrepData_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:
- given_name
- image_hash
- image_url
- motivations
- objectives
- off_chain_vote_data_id
- payment_address
- qualifications
filter: {}
limit: 2500
allow_aggregations: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
table:
name: off_chain_vote_gov_action_data
schema: public
configuration:
column_config: {}
custom_column_names: {}
custom_root_fields:
select: offChainVoteGovActionData
select_aggregate: offChainVoteGovActionData_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:
- abstract
- motivation
- off_chain_vote_data_id
- rationale
- title
filter: {}
limit: 2500
allow_aggregations: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
table:
name: off_chain_vote_reference
schema: public
configuration:
column_config: {}
custom_column_names: {}
custom_root_fields:
select: offChainVoteReference
select_aggregate: offChainVoteReference_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:
- hash_algorithm
- hash_digest
- label
- off_chain_vote_data_id
- uri
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,39 @@
table:
name: voting_anchor
schema: public
configuration:
column_config: {}
custom_column_names: {}
custom_root_fields:
select: votingAnchor
select_aggregate: votingAnchor_aggregate
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
- name: Block
using:
manual_configuration:
column_mapping:
block_id: id
insertion_order: null
remote_table:
name: block
schema: public
select_permissions:
- role: cardano-graphql
permission:
columns:
- block_id
- data_hash
- type
- url
filter: {}
limit: 2500
allow_aggregations: true
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: vote_procedure
select_aggregate: vote_procedure_aggregate
select: voteProcedure
select_aggregate: voteProcedure_aggregate
object_relationships:
- name: transaction
using:
Expand Down Expand Up @@ -56,4 +56,21 @@ object_relationships:
committee_voter: id
remote_table:
name: committee_hash
schema: public
schema: public
select_permissions:
- role: cardano-graphql
permission:
columns:
- committee_voter
- drep_voter
- gov_action_proposal_id
- index
- invalid
- pool_voter
- tx_id
- vote
- voter_role
- voting_anchor_id
filter: {}
limit: 2500
allow_aggregations: true

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@
- "!include public_DelegationVote.yaml"
- "!include public_DrepRegistration.yaml"
- "!include public_drepHash.yaml"
- "!include public_voting_anchor.yaml"
- "!include public_voting_procedure.yaml"
- "!include public_votingAnchor.yaml"
- "!include public_votingProcedure.yaml"
- "!include public_govActionProposal.yaml"
- "!include public_committeeHash.yaml"
- "!include public_pool_hash.yaml"
- "!include public_off_chain_vote_data.yaml"
- "!include public_offChainVoteData.yaml"
- "!include public_committee.yaml"
- "!include public_committeeDeRegistration.yaml"
- "!include public_committeeMember.yaml"
- "!include public_committeeRegistration.yaml"
- "!include public_drep_distr.yaml"
- "!include public_off_chain_vote_author.yaml"
- "!include public_off_chain_vote_drep_data.yaml"
- "!include public_off_chain_vote_gov_action_data.yaml"
- "!include public_off_chain_vote_reference.yaml"
- "!include public_offChainVoteAuthor.yaml"
- "!include public_offChainVoteDrepData.yaml"
- "!include public_offChainVoteGovActionData.yaml"
- "!include public_offChainVoteReference.yaml"
- "!include public_stake_address.yaml"
- "!include public_treasury_withdrawal.yaml"

0 comments on commit 81756ff

Please sign in to comment.