Skip to main content

Contract

The FlowEpoch contract is the state machine that manages Epoch phases and emits service events. The FlowClusterQC and FlowDKG contracts manage the processes that happen during the Epoch Setup phase.

These contracts are all deployed to the same account as the FlowIDTableStaking contract.

Sources:

NetworkContract Address
Emulator0xf8d6e0586b0a20c7
Cadence Testing Framework0x0000000000000001
Testnet0x9eca2b38b18b5dfe
Mainnet0x8624b52f9ddcd04a

Transactions

Getting Epoch Info​

These scripts are read-only and get info about the current state of the epoch contract.

IDNameSource
EP.01Get Epoch Metadataepoch/get_epoch_metadata.cdc
EP.02Get Configurable Metadataepoch/get_config_metadata.cdc
EP.03Get Epoch Counterepoch/get_epoch_counter.cdc
EP.04Get Epoch Phaseepoch/get_epoch_phase.cdc

Quorum Certificate Transactions and Scripts​

IDNameSource
QC.01Create QC VoterquorumCertificate/get_epoch_metadata.cdc
QC.02Submit QC VotequorumCertificate/get_config_metadata.cdc
QC.03Get Collector ClusterquorumCertificate/scripts/get_cluster.cdc
QC.04Get QC EnabledquorumCertificate/scripts/get_qc_enabled.cdc
QC.05Get Node Has VotedquorumCertificate/scripts/get_node_has_voted.cdc
QC.06Get QC Voting CompletequorumCertificate/scripts/get_voting_completed.cdc

DKG Transactions and Scripts​

IDNameSource
DKG.01Create DKG Participantdkg/create_participant.cdc
DKG.02Get Configurable Metadatadkg/send_whiteboard_message.cdc
DKG.03Send Final Submissiondkg/send_final_submission.cdc
DKG.04Get DKG Enableddkg/scripts/get_dkg_enabled.cdc
DKG.05Get DKG Completeddkg/scripts/get_dkg_completed.cdc
DKG.06Get Whiteboard Messagesdkg/scripts/get_whiteboard_messages.cdc
DKG.07Get Final Submissionsdkg/scripts/get_final_submissions.cdc
DKG.08Get Node Has Submitteddkg/scripts/get_node_has_submitted.cdc

Events

See the epoch documentation for a list and documentation for important FlowEpoch events.