Skip to content

Commit

Permalink
Feat/add conway tables (#896)
Browse files Browse the repository at this point in the history
* feat: adding new conway tables

* feat: adding new conway tables

* feat: adding committee tables

* feat: adding off_chain tables
  • Loading branch information
Kammerlo authored Sep 18, 2024
1 parent e8ff5ea commit 16ed6d7
Show file tree
Hide file tree
Showing 26 changed files with 469 additions and 31 deletions.
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
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
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ select_permissions:
- size
- totalOutput
- validContract
- treasuryDonation
filter: {}
limit: 2500
allow_aggregations: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
table:
name: committee
schema: public
object_relationships:
- name: committeeMembers
using:
manual_configuration:
column_mapping:
id: committee_id
insertion_order: null
remote_table:
name: committee_member
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
table:
name: committee_de_registration
schema: public
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: committee_hash
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
table:
name: committee_member
schema: public
object_relationships:
- name: committee
using:
manual_configuration:
column_mapping:
committee_id: id
insertion_order: null
remote_table:
name: committee
schema: public
- name: committeeHash
using:
manual_configuration:
column_mapping:
committee_hash_id: id
remote_table:
name: committee_hash
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
table:
name: committee_registration
schema: public
object_relationships:
- name: transaction
using:
manual_configuration:
column_mapping:
tx_id: id
insertion_order: null
remote_table:
name: Transaction
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
table:
name: drep_distr
schema: public
object_relationships:
- name: DrepHash
using:
manual_configuration:
column_mapping:
hash_id: id
remote_table:
name: drep_hash
schema: public
- name: Epoch
using:
manual_configuration:
column_mapping:
epoch_no: number
remote_table:
name: Epoch
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: drep_hash
schema: public
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
table:
name: off_chain_vote_author
schema: public
object_relationships:
- name: OffChainVoteData
using:
manual_configuration:
column_mapping:
off_chain_vote_data_id: id
remote_table:
name: off_chain_vote_data
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
table:
name: off_chain_vote_data
schema: public
object_relationships:
- 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
using:
manual_configuration:
column_mapping:
id: off_chain_vote_data_id
remote_table:
name: off_chain_vote_drep_data
schema: public
- name: OffChainVoteAuthor
using:
manual_configuration:
column_mapping:
id: off_chain_vote_data_id
remote_table:
name: off_chain_vote_author
schema: public
- name: OffChainVoteReference
using:
manual_configuration:
column_mapping:
id: off_chain_vote_data_id
remote_table:
name: off_chain_vote_reference
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
table:
name: off_chain_vote_drep_data
schema: public
object_relationships:
- name: OffChainVoteData
using:
manual_configuration:
column_mapping:
off_chain_vote_data_id: id
remote_table:
name: off_chain_vote_data
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
table:
name: off_chain_vote_gov_action_data
schema: public
object_relationships:
- name: OffChainVoteData
using:
manual_configuration:
column_mapping:
off_chain_vote_data_id: id
remote_table:
name: off_chain_vote_data
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
table:
name: off_chain_vote_reference
schema: public
object_relationships:
- name: OffChainVoteData
using:
manual_configuration:
column_mapping:
off_chain_vote_data_id: id
remote_table:
name: off_chain_vote_data
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: pool_hash
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: pool_stat
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: stake_address
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
table:
name: treasury_withdrawal
schema: public
object_relationships:
- name: GovActionProposal
using:
manual_configuration:
column_mapping:
gov_action_proposal_id: id
remote_table:
name: gov_action_proposal
schema: public
- name: StakeAddress
using:
manual_configuration:
column_mapping:
stake_address_id: id
remote_table:
name: stake_address
schema: public
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
table:
name: tx
schema: public
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
Loading

0 comments on commit 16ed6d7

Please sign in to comment.