You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/schema.md
+30-13Lines changed: 30 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Schema Documentation for cardano-db-sync
2
2
3
-
Schema version: 13.2.0.0 (from branch **kderme/update-node-8-7** which may not accurately reflect the version number)
3
+
Schema version: 13.2.0.0 (from branch **kderme/sancho-3-0-0** which may not accurately reflect the version number)
4
4
**Note:** This file is auto-generated from the documentation in cardano-db/src/Cardano/Db/Schema.hs by the command `cabal run -- gen-schema-docs doc/schema.md`. This document should only be updated during the release process and updated on the release branch.
5
5
6
6
### `schema_version`
@@ -835,9 +835,9 @@ A table for every Anchor that appears on Governance Actions. These are pointers
835
835
|`data_hash`| blob | A hash of the contents of the metadata URL |
836
836
|`url`| varchar | A URL to a JSON payload of metadata |
837
837
838
-
### `governance_action`
838
+
### `gov_action_proposal`
839
839
840
-
A table for proposed GovernanceAction, aka ProposalProcedure, GovAction or GovProposal. At most one of the ratified/enacted/dropped/expired epoch field can be non-null, indicating the current state of the proposal. This table may be referenced by TreasuryWithdrawal or NewCommittee. New in 13.2-Conway.
840
+
A table for proposed GovActionProposal, aka ProposalProcedure, GovAction or GovProposal. At most one of the ratified/enacted/dropped/expired epoch field can be non-null, indicating the current state of the proposal. This table may be referenced by TreasuryWithdrawal or NewCommittee. New in 13.2-Conway.
841
841
842
842
* Primary Id: `id`
843
843
@@ -846,12 +846,13 @@ A table for proposed GovernanceAction, aka ProposalProcedure, GovAction or GovPr
846
846
|`id`| integer (64) ||
847
847
|`tx_id`| integer (64) | The Tx table index of the tx that includes this certificate. |
848
848
|`index`| integer (64) | The index of this proposal procedure within its transaction. |
849
+
|`prev_gov_action_proposal`| integer (64) | The previous related GovActionProposal. This is null for |
849
850
|`deposit`| lovelace | The deposit amount payed for this proposal. |
850
851
|`return_address`| integer (64) | The StakeAddress index of the reward address to receive the deposit when it is repaid. |
851
852
|`expiration`| word31type | Shows the epoch at which this governance action will expire. |
852
853
|`voting_anchor_id`| integer (64) | The Anchor table index related to this proposal. |
853
854
|`type`| govactiontype | Can be one of ParameterChange, HardForkInitiation, TreasuryWithdrawals, NoConfidence, NewCommittee, NewConstitution, InfoAction |
854
-
|`description`| string | A Text describing the content of this GovernanceAction in a readable way. |
855
+
|`description`| string | A Text describing the content of this GovActionProposal in a readable way. |
855
856
|`param_proposal`| integer (64) | If this is a param proposal action, this has the index of the param_proposal table. |
856
857
|`ratified_epoch`| word31type | If not null, then this proposal has been ratified at the specfied epoch. TODO: This is currently always null. |
857
858
|`enacted_epoch`| word31type | If not null, then this proposal has been enacted at the specfied epoch. |
@@ -860,31 +861,45 @@ A table for proposed GovernanceAction, aka ProposalProcedure, GovAction or GovPr
860
861
861
862
### `treasury_withdrawal`
862
863
863
-
A table for all treasury withdrawals proposed on a GovernanceAction. New in 13.2-Conway.
864
+
A table for all treasury withdrawals proposed on a GovActionProposal. New in 13.2-Conway.
864
865
865
866
* Primary Id: `id`
866
867
867
868
| Column name | Type | Description |
868
869
|-|-|-|
869
870
|`id`| integer (64) ||
870
-
|`governance_action_id`| integer (64) | The GovernanceAction table index for this withdrawal.Multiple TreasuryWithdrawal may reference the same GovernanceAction. |
871
+
|`gov_action_proposal_id`| integer (64) | The GovActionProposal table index for this withdrawal.Multiple TreasuryWithdrawal may reference the same GovActionProposal. |
871
872
|`stake_address_id`| integer (64) | The address that benefits from this withdrawal. |
872
873
|`amount`| lovelace | The amount for this withdrawl. |
873
874
874
875
### `new_committee`
875
876
876
-
A table for new committee proposed on a GovernanceAction. New in 13.2-Conway.
877
+
A table for new committee proposed on a GovActionProposal. New in 13.2-Conway.
877
878
878
879
* Primary Id: `id`
879
880
880
881
| Column name | Type | Description |
881
882
|-|-|-|
882
883
|`id`| integer (64) ||
883
-
|`governance_action_id`| integer (64) | The GovernanceAction table index for this new committee. |
884
-
|`quorum`| double | The proposed quorum. |
884
+
|`gov_action_proposal_id`| integer (64) | The GovActionProposal table index for this new committee. |
885
+
|`quorum_nominator`| integer (64) | The proposed quorum nominator. |
886
+
|`quorum_denominator`| integer (64) | The proposed quorum denominator. |
885
887
|`deleted_members`| string | The removed members of the committee. This is now given in a text as a description, but may change. TODO: Conway. |
886
888
|`added_members`| string | The new members of the committee. This is now given in a text as a description, but may change. TODO: Conway. |
887
889
890
+
### `constitution`
891
+
892
+
A table for constitutiona attached to a GovActionProposal. New in 13.2-Conway.
893
+
894
+
* Primary Id: `id`
895
+
896
+
| Column name | Type | Description |
897
+
|-|-|-|
898
+
|`id`| integer (64) ||
899
+
|`gov_action_proposal_id`| integer (64) | The GovActionProposal table index for this constitution. |
900
+
|`voting_anchor_id`| integer (64) | The ConstitutionVotingAnchor table index for this constitution. |
901
+
|`script_hash`| hash28type | The Script Hash. It's associated script may not be already inserted in the script table. |
902
+
888
903
### `voting_procedure`
889
904
890
905
A table for voting procedures, aka GovVote. A Vote can be Yes No or Abstain. New in 13.2-Conway.
@@ -896,7 +911,7 @@ A table for voting procedures, aka GovVote. A Vote can be Yes No or Abstain. New
896
911
|`id`| integer (64) ||
897
912
|`tx_id`| integer (64) | The Tx table index of the tx that includes this VotingProcedure. |
898
913
|`index`| integer (32) | The index of this VotingProcedure within this transaction. |
899
-
|`governance_action_id`| integer (64) | The index of the GovernanceAction that this vote targets. |
914
+
|`gov_action_proposal_id`| integer (64) | The index of the GovActionProposal that this vote targets. |
900
915
|`voter_role`| voterrole | The role of the voter. Can be one of ConstitutionalCommittee, DRep, SPO. |
901
916
|`committee_voter`| blob ||
902
917
|`drep_voter`| integer (64) ||
@@ -949,9 +964,9 @@ A table containing pool offchain data fetch errors.
949
964
|`fetch_error`| string | The text of the error. |
950
965
|`retry_count`| word31type | The number of retries. |
951
966
952
-
### `off_chain_voting_data`
967
+
### `off_chain_vote_data`
953
968
954
-
The table with the offchain metadata related to Vote Anchors. New in 13.2-Conway.
969
+
The table with the offchain metadata related to Vote Anchors. It accepts metadata in a more lenient way than what's decribed in CIP-100. New in 13.2-Conway.
955
970
956
971
* Primary Id: `id`
957
972
@@ -962,8 +977,9 @@ The table with the offchain metadata related to Vote Anchors. New in 13.2-Conway
962
977
|`hash`| blob | The hash of the offchain data. |
963
978
|`json`| jsonb | The payload as JSON. |
964
979
|`bytes`| bytea | The raw bytes of the payload. |
980
+
|`warning`| string | A warning that occured while validating the metadata. |
965
981
966
-
### `off_chain_voting_fetch_error`
982
+
### `off_chain_vote_fetch_error`
967
983
968
984
Errors while fetching or validating offchain Voting Anchor metadata. New in 13.2-Conway.
969
985
@@ -974,6 +990,7 @@ Errors while fetching or validating offchain Voting Anchor metadata. New in 13.2
974
990
|`id`| integer (64) ||
975
991
|`voting_anchor_id`| integer (64) | The VotingAnchor table index this offchain fetch error refers. |
976
992
|`fetch_error`| string | The text of the error. |
993
+
|`fetch_time`| timestamp ||
977
994
|`retry_count`| word31type | The number of retries. |
0 commit comments