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
+57-14Lines changed: 57 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -276,7 +276,7 @@ An on-chain pool update.
276
276
|`meta_id`| integer (64) | The PoolMetadataRef table index this pool update refers to. |
277
277
|`margin`| double | The margin (as a percentage) this pool charges. |
278
278
|`fixed_cost`| lovelace | The fixed per epoch fee (in ADA) this pool charges. |
279
-
|`deposit`| lovelace ||
279
+
|`deposit`| lovelace |The deposit payed for this pool update. Null for reregistrations.|
280
280
|`registered_tx_id`| integer (64) | The Tx table index of the transaction in which provided this pool update. |
281
281
282
282
### `pool_owner`
@@ -865,14 +865,14 @@ A table for every Anchor that appears on Governance Actions. These are pointers
865
865
| Column name | Type | Description |
866
866
|-|-|-|
867
867
|`id`| integer (64) ||
868
-
|`tx_id`| integer (64) | The Tx table index of the tx that includes this anchor. This only exists to facilitate rollbacks |
868
+
|`block_id`| integer (64) | The Block table index of the tx that includes this anchor. This only exists to facilitate rollbacks |
869
869
|`data_hash`| blob | A hash of the contents of the metadata URL |
870
870
|`url`| varchar | A URL to a JSON payload of metadata |
871
871
|`type`| anchorType ||
872
872
873
873
### `gov_action_proposal`
874
874
875
-
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.
875
+
A table for proposed GovActionProposal, aka ProposalProcedure, GovAction or GovProposal. This table may be referenced by TreasuryWithdrawal or NewCommittee. New in 13.2-Conway.
876
876
877
877
* Primary Id: `id`
878
878
@@ -907,7 +907,7 @@ A table for all treasury withdrawals proposed on a GovActionProposal. New in 13.
907
907
|`stake_address_id`| integer (64) | The address that benefits from this withdrawal. |
908
908
|`amount`| lovelace | The amount for this withdrawl. |
909
909
910
-
### `new_committee_info`
910
+
### `committee`
911
911
912
912
A table for new committee proposed on a GovActionProposal. New in 13.2-Conway.
913
913
@@ -916,20 +916,22 @@ A table for new committee proposed on a GovActionProposal. New in 13.2-Conway.
916
916
| Column name | Type | Description |
917
917
|-|-|-|
918
918
|`id`| integer (64) ||
919
-
|`gov_action_proposal_id`| integer (64) | The GovActionProposal table index for this new committee. |
919
+
|`gov_action_proposal_id`| integer (64) | The GovActionProposal table index for this new committee. This can be null for genesis committees. |
920
920
|`quorum_numerator`| integer (64) | The proposed quorum nominator. |
921
921
|`quorum_denominator`| integer (64) | The proposed quorum denominator. |
922
922
923
-
### `new_committee_member`
923
+
### `committee_member`
924
+
925
+
A table for members of the committee. A committee can have multiple members. New in 13.3-Conway.
924
926
925
927
* Primary Id: `id`
926
928
927
929
| Column name | Type | Description |
928
930
|-|-|-|
929
931
|`id`| integer (64) ||
930
-
|`gov_action_proposal_id`| integer (64) ||
931
-
|`committee_hash_id`| integer (64) ||
932
-
|`expiration_epoch`| word31type ||
932
+
|`committee_id`| integer (64) |The reference to the committee|
933
+
|`committee_hash_id`| integer (64) |The reference to the committee hash|
934
+
|`expiration_epoch`| word31type |The epoch this member expires|
933
935
934
936
### `constitution`
935
937
@@ -977,6 +979,18 @@ The table for the distribution of voting power per DRep per. Currently this has
977
979
|`epoch_no`| word31type | The epoch no this distribution is about. |
978
980
|`active_until`| word31type | The epoch until which this drep is active. TODO: This currently remains null always. |
979
981
982
+
### `epoch_state`
983
+
984
+
* Primary Id: `id`
985
+
986
+
| Column name | Type | Description |
987
+
|-|-|-|
988
+
|`id`| integer (64) ||
989
+
|`committee_id`| integer (64) ||
990
+
|`no_confidence_id`| integer (64) ||
991
+
|`constitution_id`| integer (64) ||
992
+
|`epoch_no`| word31type ||
993
+
980
994
### `off_chain_pool_data`
981
995
982
996
The pool offchain (ie not on chain) for a stake pool.
@@ -1020,16 +1034,45 @@ The table with the offchain metadata related to Vote Anchors. It accepts metadat
1020
1034
|`voting_anchor_id`| integer (64) | The VotingAnchor table index this offchain data refers. |
1021
1035
|`hash`| blob | The hash of the offchain data. |
1022
1036
|`language`| string | The langauge described in the context of the metadata. Described in CIP-100. New in 13.3-Conway. |
1023
-
|`comment`| string | The title of the metadata. Described in CIP-108. New in 13.3-Conway. |
1024
-
|`title`| string ||
1025
-
|`abstract`| string | The abstract of the metadata. Described in CIP-108. New in 13.3-Conway. |
1026
-
|`motivation`| string | The motivation of the metadata. Described in CIP-108. New in 13.3-Conway. |
1027
-
|`rationale`| string | The rationale of the metadata. Described in CIP-108. New in 13.3-Conway. |
1037
+
|`comment`| string ||
1028
1038
|`json`| jsonb | The payload as JSON. |
1029
1039
|`bytes`| bytea | The raw bytes of the payload. |
1030
1040
|`warning`| string | A warning that occured while validating the metadata. |
1031
1041
|`is_valid`| boolean | False if the data is found invalid. db-sync leaves this field null since it normally populates off_chain_vote_fetch_error for invalid data. It can be used manually to mark some metadata invalid by clients. |
1032
1042
1043
+
### `off_chain_vote_gov_action_data`
1044
+
1045
+
The table with offchain metadata for Governance Actions. Implementes CIP-108. New in 13.3-Conway.
1046
+
1047
+
* Primary Id: `id`
1048
+
1049
+
| Column name | Type | Description |
1050
+
|-|-|-|
1051
+
|`id`| integer (64) ||
1052
+
|`off_chain_vote_data_id`| integer (64) | The vote metadata table index this offchain data belongs to. |
1053
+
|`title`| string | The title |
1054
+
|`abstract`| string | The abstract |
1055
+
|`motivation`| string | The motivation |
1056
+
|`rationale`| string | The rationale |
1057
+
1058
+
### `off_chain_vote_drep_data`
1059
+
1060
+
The table with offchain metadata for Drep Registrations. Implementes CIP-119. New in 13.3-Conway.
1061
+
1062
+
* Primary Id: `id`
1063
+
1064
+
| Column name | Type | Description |
1065
+
|-|-|-|
1066
+
|`id`| integer (64) ||
1067
+
|`off_chain_vote_data_id`| integer (64) | The vote metadata table index this offchain data belongs to. |
1068
+
|`payment_address`| string | The payment address |
1069
+
|`given_name`| string | The name. This is the only mandatory field |
1070
+
|`objectives`| string | The objectives |
1071
+
|`motivations`| string | The motivations |
1072
+
|`qualifications`| string | The qualifications |
1073
+
|`image_url`| string ||
1074
+
|`image_hash`| string ||
1075
+
1033
1076
### `off_chain_vote_author`
1034
1077
1035
1078
The table with offchain metadata authors, as decribed in CIP-100. New in 13.3-Conway.
0 commit comments