Epoch Contracts

[Previous << Staking Table](https://qiita.com/flowcadence/items/1d432b038762c7bf8063)
[Next >> Non-Fungible Token](https://qiita.com/flowcadence/items/152a2fb0c9acb1a6769c)

https://qiita.com/flowcadence/items/3073d69c6e9895e68b5a#flow-developers

<h1>Contract</h1>

`FlowEpoch`コントラクトは、エポックフェーズを管理し、サービスイベントを発行するステートマシンです。`FlowClusterQC`コントラクトと`FlowDKG`コントラクトは、Epoch Setupフェーズ中に発生するプロセスを管理します。

これらのスマートコントラクトはすべて、`FlowIDTableStaking`コントラクトと同じアカウントにデプロイされます。

Source:
* [FlowEpoch.cdc](https://github.com/onflow/flow-core-contracts/blob/master/contracts/epochs/FlowEpoch.cdc)
* [FlowClusterQC.cdc](https://github.com/onflow/flow-core-contracts/blob/master/contracts/epochs/FlowClusterQC.cdc)
* [FlowDKG.cdc](https://github.com/onflow/flow-core-contracts/blob/master/contracts/epochs/FlowDKG.cdc)

| Network | Contract Address |
|:-:|:-:|
| Emulator | `0xf8d6e0586b0a20c7` |
| Cadence Testing Framework | `0x0000000000000001` |
| Testnet | `0x9eca2b38b18b5dfe` |
| Mainnet | `0x8624b52f9ddcd04a` |

<h1>Transactions</h1>
<h3>Getting Epoch Info</h3>

これらのスクリプトは読み取り専用であり、エポックコントラクトの現在の状態(state)に関する情報を取得します。

| ID | Name | Source |
|:-:|:-:|:-:|
| `EP.01` | Get Epoch Metadata | [epoch/get_epoch_metadata.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/epoch/scripts/get_epoch_metadata.cdc) |
| `EP.02` | Get Configurable Metadata | [epoch/get_config_metadata.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/epoch/scripts/get_config_metadata.cdc) |
| `EP.03` | Get Epoch Counter | [epoch/get_epoch_counter.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/epoch/scripts/get_epoch_counter.cdc) |
| `EP.04` | Get Epoch Phase | [epoch/get_epoch_phase.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/epoch/scripts/get_epoch_phase.cdc) |


<h3>Quorum Certificate Transactions and Scripts</h3>


| ID | Name | Source |
|:-:|:-:|:-:|
| `QC.01` | Create QC Voter | [quorumCertificate/create_voter.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/quorumCertificate/create_voter.cdc) |
| `QC.02` | Submit QC Vote | [quorumCertificate/submit_vote.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/quorumCertificate/submit_vote.cdc) |
| `QC.03` | Get Collector Cluster | [ quorumCertificate/scripts/get_cluster.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/quorumCertificate/scripts/get_cluster.cdc) |
| `QC.04` | Get QC Enabled | [quorumCertificate/scripts/get_qc_enabled.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/quorumCertificate/scripts/get_qc_enabled.cdc) |
| `QC.05` | Get Node Has Voted | [	quorumCertificate/scripts/get_node_has_voted.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/quorumCertificate/scripts/get_node_has_voted.cdc) |
| `QC.06` | Get QC Voting Complete | [ quorumCertificate/scripts/get_voting_completed.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/quorumCertificate/scripts/get_voting_completed.cdc) |


<h3>DKG Transactions and Scripts</h3>


| ID | Name | Source |
|:-:|:-:|:-:|
| `DKG.01` | Create DKG Participant | [dkg/create_participant.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/dkg/create_participant.cdc) |
| `DKG.02` | Get Configurable Metadata | [dkg/send_whiteboard_message.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/dkg/send_whiteboard_message.cdc) |
| `DKG.03` | Send Final Submission | [dkg/send_final_submission.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/dkg/send_final_submission.cdc) |
| `DKG.04` | Get DKG Enabled | [dkg/scripts/get_dkg_enabled.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/dkg/scripts/get_dkg_enabled.cdc) |
| `DKG.05` | Get DKG Completed | [dkg/scripts/get_dkg_completed.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/dkg/scripts/get_dkg_completed.cdc) |
| `DKG.06` | Get Whiteboard Messages | [dkg/scripts/get_whiteboard_messages.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/dkg/scripts/get_whiteboard_messages.cdc) |
| `DKG.07` | Get Final Submissions | [dkg/scripts/get_final_submissions.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/dkg/scripts/get_final_submissions.cdc) |
| `DKG.08` | Get Node Has Submitted | [dkg/scripts/get_node_has_submitted.cdc](https://github.com/onflow/flow-core-contracts/blob/master/transactions/dkg/scripts/get_node_has_submitted.cdc) |

<h1>Events</h1>

`FlowEpoch`の重要なイベントの一覧と説明については、[エポックのドキュメント](https://developers.flow.com/networks/staking/epoch-scripts-events)を参照してください。

*Last updated on **Dec 17, 2024** by **j pimmel***

翻訳元

https://developers.flow.com/build/core-contracts/epoch-contract-reference

***

<b>[Previous << Staking Table](https://qiita.com/flowcadence/items/1d432b038762c7bf8063)
</b>

[Flow blockchain / Cadence version1.0ドキュメント](https://qiita.com/flowcadence/items/3073d69c6e9895e68b5a) (Epoch Contracts)

<b>[Next >> Non-Fungible Token](https://qiita.com/flowcadence/items/152a2fb0c9acb1a6769c)</b>