Skip to content

Commit 16ed6d7

Browse files
authored
Feat/add conway tables (#896)
* feat: adding new conway tables * feat: adding new conway tables * feat: adding committee tables * feat: adding off_chain tables
1 parent e8ff5ea commit 16ed6d7

26 files changed

+469
-31
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
table:
2+
name: DelegationVote
3+
schema: public
4+
configuration:
5+
column_config: {}
6+
custom_column_names: {}
7+
custom_root_fields:
8+
select: delegationvotes
9+
select_aggregate: delegationvotes_aggregate
10+
object_relationships:
11+
- name: redeemer
12+
using:
13+
manual_configuration:
14+
column_mapping:
15+
redeemerId: id
16+
insertion_order: null
17+
remote_table:
18+
name: Redeemer
19+
schema: public
20+
- name: drep
21+
using:
22+
manual_configuration:
23+
column_mapping:
24+
drep_hash_id: id
25+
insertion_order: null
26+
remote_table:
27+
name: drep_hash
28+
schema: public
29+
- name: transaction
30+
using:
31+
manual_configuration:
32+
column_mapping:
33+
tx_id: id
34+
insertion_order: null
35+
remote_table:
36+
name: Transaction
37+
schema: public
38+
select_permissions:
39+
- role: cardano-graphql
40+
permission:
41+
columns:
42+
- address
43+
filter: {}
44+
limit: 2500
45+
allow_aggregations: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
table:
2+
name: DrepRegistration
3+
schema: public
4+
configuration:
5+
column_config: {}
6+
custom_column_names: {}
7+
custom_root_fields:
8+
select: drepRegistrations
9+
select_aggregate: drepRegistrations_aggregate
10+
object_relationships:
11+
- name: transaction
12+
using:
13+
manual_configuration:
14+
column_mapping:
15+
tx_id: id
16+
insertion_order: null
17+
remote_table:
18+
name: Transaction
19+
schema: public
20+
- name: votingAnchor
21+
using:
22+
manual_configuration:
23+
column_mapping:
24+
voting_anchor_id: id
25+
insertion_order: null
26+
remote_table:
27+
name: voting_anchor
28+
schema: public

packages/api-cardano-db-hasura/hasura/project/metadata/databases/default/tables/public_Transaction.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ select_permissions:
124124
- size
125125
- totalOutput
126126
- validContract
127+
- treasuryDonation
127128
filter: {}
128129
limit: 2500
129130
allow_aggregations: true
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
table:
2+
name: committee
3+
schema: public
4+
object_relationships:
5+
- name: committeeMembers
6+
using:
7+
manual_configuration:
8+
column_mapping:
9+
id: committee_id
10+
insertion_order: null
11+
remote_table:
12+
name: committee_member
13+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
table:
2+
name: committee_de_registration
3+
schema: public
4+
object_relationships:
5+
- name: transaction
6+
using:
7+
manual_configuration:
8+
column_mapping:
9+
tx_id: id
10+
insertion_order: null
11+
remote_table:
12+
name: Transaction
13+
schema: public
14+
- name: VotingAnchor
15+
using:
16+
manual_configuration:
17+
column_mapping:
18+
voting_anchor_id: id
19+
remote_table:
20+
name: voting_anchor
21+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
table:
2+
name: committee_hash
3+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
table:
2+
name: committee_member
3+
schema: public
4+
object_relationships:
5+
- name: committee
6+
using:
7+
manual_configuration:
8+
column_mapping:
9+
committee_id: id
10+
insertion_order: null
11+
remote_table:
12+
name: committee
13+
schema: public
14+
- name: committeeHash
15+
using:
16+
manual_configuration:
17+
column_mapping:
18+
committee_hash_id: id
19+
remote_table:
20+
name: committee_hash
21+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
table:
2+
name: committee_registration
3+
schema: public
4+
object_relationships:
5+
- name: transaction
6+
using:
7+
manual_configuration:
8+
column_mapping:
9+
tx_id: id
10+
insertion_order: null
11+
remote_table:
12+
name: Transaction
13+
schema: public
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
table:
2+
name: drep_distr
3+
schema: public
4+
object_relationships:
5+
- name: DrepHash
6+
using:
7+
manual_configuration:
8+
column_mapping:
9+
hash_id: id
10+
remote_table:
11+
name: drep_hash
12+
schema: public
13+
- name: Epoch
14+
using:
15+
manual_configuration:
16+
column_mapping:
17+
epoch_no: number
18+
remote_table:
19+
name: Epoch
20+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
table:
2+
name: drep_hash
3+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
table:
2+
name: gov_action_proposal
3+
schema: public
4+
configuration:
5+
column_config: {}
6+
custom_column_names: {}
7+
custom_root_fields:
8+
select: gov_action_proposal
9+
select_aggregate: gov_action_proposal_aggregate
10+
object_relationships:
11+
- name: transaction
12+
using:
13+
manual_configuration:
14+
column_mapping:
15+
tx_id: id
16+
insertion_order: null
17+
remote_table:
18+
name: tx
19+
schema: public
20+
- name: PreviousGovAction
21+
using:
22+
manual_configuration:
23+
column_mapping:
24+
prev_gov_action_proposal: id
25+
remote_table:
26+
name: gov_action_proposal
27+
schema: public
28+
- name: VotingAnchor
29+
using:
30+
manual_configuration:
31+
column_mapping:
32+
voting_anchor_id: id
33+
remote_table:
34+
name: voting_anchor
35+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
table:
2+
name: off_chain_vote_author
3+
schema: public
4+
object_relationships:
5+
- name: OffChainVoteData
6+
using:
7+
manual_configuration:
8+
column_mapping:
9+
off_chain_vote_data_id: id
10+
remote_table:
11+
name: off_chain_vote_data
12+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
table:
2+
name: off_chain_vote_data
3+
schema: public
4+
object_relationships:
5+
- name: OffChainVoteGovActionData
6+
using:
7+
manual_configuration:
8+
column_mapping:
9+
id: off_chain_vote_data_id
10+
remote_table:
11+
name: off_chain_vote_gov_action_data
12+
schema: public
13+
- name: OffChainDrepData
14+
using:
15+
manual_configuration:
16+
column_mapping:
17+
id: off_chain_vote_data_id
18+
remote_table:
19+
name: off_chain_vote_drep_data
20+
schema: public
21+
- name: OffChainVoteAuthor
22+
using:
23+
manual_configuration:
24+
column_mapping:
25+
id: off_chain_vote_data_id
26+
remote_table:
27+
name: off_chain_vote_author
28+
schema: public
29+
- name: OffChainVoteReference
30+
using:
31+
manual_configuration:
32+
column_mapping:
33+
id: off_chain_vote_data_id
34+
remote_table:
35+
name: off_chain_vote_reference
36+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
table:
2+
name: off_chain_vote_drep_data
3+
schema: public
4+
object_relationships:
5+
- name: OffChainVoteData
6+
using:
7+
manual_configuration:
8+
column_mapping:
9+
off_chain_vote_data_id: id
10+
remote_table:
11+
name: off_chain_vote_data
12+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
table:
2+
name: off_chain_vote_gov_action_data
3+
schema: public
4+
object_relationships:
5+
- name: OffChainVoteData
6+
using:
7+
manual_configuration:
8+
column_mapping:
9+
off_chain_vote_data_id: id
10+
remote_table:
11+
name: off_chain_vote_data
12+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
table:
2+
name: off_chain_vote_reference
3+
schema: public
4+
object_relationships:
5+
- name: OffChainVoteData
6+
using:
7+
manual_configuration:
8+
column_mapping:
9+
off_chain_vote_data_id: id
10+
remote_table:
11+
name: off_chain_vote_data
12+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
table:
2+
name: pool_hash
3+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
table:
2+
name: pool_stat
3+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
table:
2+
name: stake_address
3+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
table:
2+
name: treasury_withdrawal
3+
schema: public
4+
object_relationships:
5+
- name: GovActionProposal
6+
using:
7+
manual_configuration:
8+
column_mapping:
9+
gov_action_proposal_id: id
10+
remote_table:
11+
name: gov_action_proposal
12+
schema: public
13+
- name: StakeAddress
14+
using:
15+
manual_configuration:
16+
column_mapping:
17+
stake_address_id: id
18+
remote_table:
19+
name: stake_address
20+
schema: public
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
table:
2+
name: tx
3+
schema: public
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
table:
2+
name: voting_anchor
3+
schema: public
4+
object_relationships:
5+
- name: OffChainData
6+
using:
7+
manual_configuration:
8+
column_mapping:
9+
id: voting_anchor_id
10+
insertion_order: null
11+
remote_table:
12+
name: off_chain_vote_data
13+
schema: public

0 commit comments

Comments
 (0)