Skip to main content
Schema: canton.gov Table: fact_votes Type: Incremental

Description

Tracks individual vote casting events (DsoRules_CastVote) in response to vote requests. Captures who voted, what they voted for, and timing of votes.

Key Use Cases

  • Analyzing voting patterns and participation
  • Tracking individual super validator votes
  • Understanding vote timing relative to requests
  • Monitoring governance engagement

Important Relationships

  • Child events to gov__fact_vote_requests
  • Links to vote requests via vote_request_cid
  • Aggregated in gov__fact_vote_results

Commonly-used Fields

  • voter: Party casting the vote
  • vote_accept: Boolean indicating accept/reject vote
  • vote_request_cid: Reference to the vote request
  • effective_at: When vote was cast

Columns

Column NameData TypeDescription
UPDATE_IDTEXTUnique identifier for the Canton update/transaction. An update contains one or more events and represents an atomic change to the blockchain state.
MIGRATION_IDTEXTCanton migration identifier. Used to track different phases or migrations in the Canton network’s evolution.
RECORD_TIMETEXTTimestamp when the update was recorded in the system.
EFFECTIVE_ATTEXTTimestamp when the event or update became effective on the blockchain. This is the canonical time for ordering and analyzing blockchain events.
EVENT_IDTEXTUnique identifier for the event within the Canton blockchain.
EVENT_INDEXTEXTOrdering index of events within an update. Events within the same update are sequentially numbered starting from 0.
CHOICETEXTThe choice/action/method being executed on a contract. Examples include ‘DsoRules_RequestVote’, ‘AmuletRules_Transfer’, ‘LockedAmulet_Unlock’, etc.
ACTING_PARTIESTEXTArray of party identifiers who are executing this action/choice.
IS_ROOT_EVENTTEXTBoolean indicating whether this is a top-level event in the update (as opposed to a child event triggered by a parent event).
REQUEST_CIDTEXTContract ID for the request being voted on
TRACKING_CIDTEXTTracking contract ID for the vote request
SVTEXTSuper validator party ID casting the vote
ACCEPTTEXTBoolean indicating whether vote is to accept (TRUE) or reject (FALSE)
OPT_CAST_ATTEXTOptional timestamp when vote was cast
REASONTEXTReason provided for the vote
VOTE_REQUEST_CIDTEXTContract ID for a vote request.
CONTRACT_IDTEXTUnique identifier for the contract being created or exercised in this event.
FACT_VOTE_IDTEXTSurrogate key generated from event_id
INSERTED_TIMESTAMPTEXTTimestamp when the record was inserted into this table (Snowflake SYSDATE).
MODIFIED_TIMESTAMPTEXTTimestamp when the record was last modified in this table (Snowflake SYSDATE).