Skip to content

Commit

Permalink
feat: adding new conway tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Kammerlo committed Sep 11, 2024
1 parent e8ff5ea commit b982639
Show file tree
Hide file tree
Showing 14 changed files with 240 additions and 28 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,3 @@
table:
name: committee_hash
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,3 @@
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: 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
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
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,14 @@
- "!include public_pool_relay.yaml"
- "!include public_reserve.yaml"
- "!include public_tx_metadata.yaml"
- "!include public_tx.yaml"
- "!include public_pool_stat.yaml"
- "!include public_DelegationVote.yaml"
- "!include public_DrepRegistration.yaml"
- "!include public_drep_hash.yaml"
- "!include public_voting_anchor.yaml"
- "!include public_voting_procedure.yaml"
- "!include public_gov_action_proposal.yaml"
- "!include public_committee_hash.yaml"
- "!include public_pool_hash.yaml"
- "!include public_off_chain_vote_data.yaml"
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;

0 comments on commit b982639

Please sign in to comment.