Skip to content

Price Oracle - Description of the FSMs

For reference, we provide a high-level description of the FSMs that constitute the Price Oracle demo using a simplified syntax. The syntax should be easy to understand for a reader familiar with conventional automata textbook notation.

The aim of this syntax is to be used as a starting point in the design and reasoning of an FSM App without delving into the internals of the Open Autonomy framework itself. Hence, the usage of objects is minimized, and only strings are used as identifiers. It can be used as a description language to translate a specification into code, e.g., for agent development, or for conducting some formal analysis using a model checker like SPIN.

Each FSM object is defined by a collection of seven input parameters:

  • label (optional),
  • states,
  • default start state,
  • allowed start states (e.g., when re-routing a transition from another FSM),
  • final states,
  • input alphabet (i.e., received events),
  • transition function, expressed as a function that maps tuples of the form (S, E) to the resulting state S'. That is, upon receiving event E being at state S, the FSM will transit to state S'.

The summary of the constituent FSMs is as follows:

FSM States Start states Final states Events Non-trivial transitions (*)
AgentRegistration 4 2 2 3 3
SafeDeployment 5 1 1 8 14
OracleDeployment 5 1 1 8 14
PriceAggregation 9 1 1 4 9
TransactionSubmission 10 1 2 9 26
ResetPauseAbciApp 3 1 2 3 3
OracleAbciApp 21 2 0 12 66

(*) Transitions to a different state, i.e., not self-transitions.

AgentRegistrationAbciApp FSM

alphabet_in:
- DONE
- FAST_FORWARD
- NO_MAJORITY
default_start_state: RegistrationStartupRound
final_states:
- FinishedRegistrationFFWRound
- FinishedRegistrationRound
label: AgentRegistrationAbciApp
start_states:
- RegistrationRound
- RegistrationStartupRound
states:
- FinishedRegistrationFFWRound
- FinishedRegistrationRound
- RegistrationRound
- RegistrationStartupRound
transition_func:
    (RegistrationRound, DONE): FinishedRegistrationFFWRound
    (RegistrationRound, NO_MAJORITY): RegistrationRound
    (RegistrationStartupRound, DONE): FinishedRegistrationRound
    (RegistrationStartupRound, FAST_FORWARD): FinishedRegistrationFFWRound
stateDiagram-v2 RegistrationRound --> FinishedRegistrationFFWRound:
DONE
RegistrationStartupRound --> FinishedRegistrationRound:
DONE
RegistrationStartupRound --> FinishedRegistrationFFWRound:
FAST_FORWARD
AgentRegistrationAbciApp FSM

SafeDeploymentAbciApp FSM

alphabet_in:
- DEPLOY_TIMEOUT
- DONE
- FAILED
- NEGATIVE
- NONE
- NO_MAJORITY
- ROUND_TIMEOUT
- VALIDATE_TIMEOUT
default_start_state: RandomnessSafeRound
final_states:
- FinishedSafeRound
label: SafeDeploymentAbciApp
start_states:
- RandomnessSafeRound
states:
- DeploySafeRound
- FinishedSafeRound
- RandomnessSafeRound
- SelectKeeperSafeRound
- ValidateSafeRound
transition_func:
    (DeploySafeRound, DEPLOY_TIMEOUT): SelectKeeperSafeRound
    (DeploySafeRound, DONE): ValidateSafeRound
    (DeploySafeRound, FAILED): SelectKeeperSafeRound
    (RandomnessSafeRound, DONE): SelectKeeperSafeRound
    (RandomnessSafeRound, NO_MAJORITY): RandomnessSafeRound
    (RandomnessSafeRound, ROUND_TIMEOUT): RandomnessSafeRound
    (SelectKeeperSafeRound, DONE): DeploySafeRound
    (SelectKeeperSafeRound, NO_MAJORITY): RandomnessSafeRound
    (SelectKeeperSafeRound, ROUND_TIMEOUT): RandomnessSafeRound
    (ValidateSafeRound, DONE): FinishedSafeRound
    (ValidateSafeRound, NEGATIVE): RandomnessSafeRound
    (ValidateSafeRound, NONE): RandomnessSafeRound
    (ValidateSafeRound, NO_MAJORITY): RandomnessSafeRound
    (ValidateSafeRound, VALIDATE_TIMEOUT): RandomnessSafeRound
stateDiagram-v2 RandomnessSafeRound --> SelectKeeperSafeRound:
DONE
RandomnessSafeRound --> RandomnessSafeRound:
NO_MAJORITY
ROUND_TIMEOUT
DeploySafeRound --> SelectKeeperSafeRound:
FAILED
DEPLOY_TIMEOUT
DeploySafeRound --> ValidateSafeRound:
DONE
SelectKeeperSafeRound --> DeploySafeRound:
DONE
SelectKeeperSafeRound --> RandomnessSafeRound:
NO_MAJORITY
ROUND_TIMEOUT
ValidateSafeRound --> FinishedSafeRound:
DONE
ValidateSafeRound --> RandomnessSafeRound:
NO_MAJORITY
NONE
NEGATIVE
VALIDATE_TIMEOUT
SafeDeploymentAbciApp FSM

OracleDeploymentAbciApp FSM

alphabet_in:
- DEPLOY_TIMEOUT
- DONE
- FAILED
- NEGATIVE
- NONE
- NO_MAJORITY
- ROUND_TIMEOUT
- VALIDATE_TIMEOUT
default_start_state: RandomnessOracleRound
final_states:
- FinishedOracleRound
label: packages.valory.skills.oracle_deployment_abci.rounds.OracleDeploymentAbciApp
start_states:
- RandomnessOracleRound
states:
- DeployOracleRound
- FinishedOracleRound
- RandomnessOracleRound
- SelectKeeperOracleRound
- ValidateOracleRound
transition_func:
    (DeployOracleRound, DEPLOY_TIMEOUT): SelectKeeperOracleRound
    (DeployOracleRound, DONE): ValidateOracleRound
    (DeployOracleRound, FAILED): SelectKeeperOracleRound
    (RandomnessOracleRound, DONE): SelectKeeperOracleRound
    (RandomnessOracleRound, NO_MAJORITY): RandomnessOracleRound
    (RandomnessOracleRound, ROUND_TIMEOUT): RandomnessOracleRound
    (SelectKeeperOracleRound, DONE): DeployOracleRound
    (SelectKeeperOracleRound, NO_MAJORITY): RandomnessOracleRound
    (SelectKeeperOracleRound, ROUND_TIMEOUT): RandomnessOracleRound
    (ValidateOracleRound, DONE): FinishedOracleRound
    (ValidateOracleRound, NEGATIVE): RandomnessOracleRound
    (ValidateOracleRound, NONE): RandomnessOracleRound
    (ValidateOracleRound, NO_MAJORITY): RandomnessOracleRound
    (ValidateOracleRound, VALIDATE_TIMEOUT): RandomnessOracleRound
stateDiagram-v2 RandomnessOracleRound --> SelectKeeperOracleRound:
DONE
RandomnessOracleRound --> RandomnessOracleRound:
NO_MAJORITY
ROUND_TIMEOUT
DeployOracleRound --> SelectKeeperOracleRound:
FAILED
DEPLOY_TIMEOUT
DeployOracleRound --> ValidateOracleRound:
DONE
SelectKeeperOracleRound --> DeployOracleRound:
DONE
SelectKeeperOracleRound --> RandomnessOracleRound:
NO_MAJORITY
ROUND_TIMEOUT
ValidateOracleRound --> FinishedOracleRound:
DONE
ValidateOracleRound --> RandomnessOracleRound:
NO_MAJORITY
NONE
NEGATIVE
VALIDATE_TIMEOUT
OracleDeploymentAbciApp FSM

PriceAggregationAbciApp FSM

alphabet_in:
- DONE
- NONE
- NO_MAJORITY
- ROUND_TIMEOUT
default_start_state: CollectObservationRound
final_states:
- FinishedPriceAggregationRound
label: packages.valory.skills.price_estimation_abci.rounds.PriceAggregationAbciApp
start_states:
- CollectObservationRound
states:
- CollectObservationRound
- EstimateConsensusRound
- FinishedPriceAggregationRound
- TxHashRound
transition_func:
    (CollectObservationRound, DONE): EstimateConsensusRound
    (CollectObservationRound, NO_MAJORITY): CollectObservationRound
    (CollectObservationRound, ROUND_TIMEOUT): CollectObservationRound
    (EstimateConsensusRound, DONE): TxHashRound
    (EstimateConsensusRound, NONE): CollectObservationRound
    (EstimateConsensusRound, NO_MAJORITY): CollectObservationRound
    (EstimateConsensusRound, ROUND_TIMEOUT): CollectObservationRound
    (TxHashRound, DONE): FinishedPriceAggregationRound
    (TxHashRound, NONE): CollectObservationRound
    (TxHashRound, NO_MAJORITY): CollectObservationRound
    (TxHashRound, ROUND_TIMEOUT): CollectObservationRound
stateDiagram-v2 CollectObservationRound --> EstimateConsensusRound:
DONE
CollectObservationRound --> CollectObservationRound:
ROUND_TIMEOUT
NO_MAJORITY
EstimateConsensusRound --> TxHashRound:
DONE
EstimateConsensusRound --> CollectObservationRound:
ROUND_TIMEOUT
NO_MAJORITY
TxHashRound --> FinishedPriceAggregationRound:
DONE
TxHashRound --> CollectObservationRound:
ROUND_TIMEOUT
NONE
NO_MAJORITY
PriceAggregationAbciApp FSM

TransactionSubmissionAbciApp FSM

alphabet_in:
- CHECK_HISTORY
- CHECK_LATE_ARRIVING_MESSAGE
- CHECK_TIMEOUT
- DONE
- FINALIZATION_FAILED
- FINALIZE_TIMEOUT
- INCORRECT_SERIALIZATION
- INSUFFICIENT_FUNDS
- MISSED_AND_LATE_MESSAGES_MISMATCH
- NEGATIVE
- NONE
- NO_MAJORITY
- RESET_TIMEOUT
- ROUND_TIMEOUT
- VALIDATE_TIMEOUT
default_start_state: RandomnessTransactionSubmissionRound
final_states:
- FailedRound
- FinishedTransactionSubmissionRound
label: TransactionSubmissionAbciApp
start_states:
- RandomnessTransactionSubmissionRound
states:
- CheckLateTxHashesRound
- CheckTransactionHistoryRound
- CollectSignatureRound
- FailedRound
- FinalizationRound
- FinishedTransactionSubmissionRound
- RandomnessTransactionSubmissionRound
- ResetRound
- SelectKeeperTransactionSubmissionRoundA
- SelectKeeperTransactionSubmissionRoundB
- SelectKeeperTransactionSubmissionRoundBAfterTimeout
- SynchronizeLateMessagesRound
- ValidateTransactionRound
transition_func:
    (CheckLateTxHashesRound, CHECK_LATE_ARRIVING_MESSAGE): SynchronizeLateMessagesRound
    (CheckLateTxHashesRound, CHECK_TIMEOUT): CheckLateTxHashesRound
    (CheckLateTxHashesRound, DONE): FinishedTransactionSubmissionRound
    (CheckLateTxHashesRound, NEGATIVE): FailedRound
    (CheckLateTxHashesRound, NONE): FailedRound
    (CheckLateTxHashesRound, NO_MAJORITY): FailedRound
    (CheckTransactionHistoryRound, CHECK_LATE_ARRIVING_MESSAGE): SynchronizeLateMessagesRound
    (CheckTransactionHistoryRound, CHECK_TIMEOUT): CheckTransactionHistoryRound
    (CheckTransactionHistoryRound, DONE): FinishedTransactionSubmissionRound
    (CheckTransactionHistoryRound, NEGATIVE): SelectKeeperTransactionSubmissionRoundB
    (CheckTransactionHistoryRound, NONE): FailedRound
    (CheckTransactionHistoryRound, NO_MAJORITY): CheckTransactionHistoryRound
    (CollectSignatureRound, DONE): FinalizationRound
    (CollectSignatureRound, NO_MAJORITY): ResetRound
    (CollectSignatureRound, ROUND_TIMEOUT): CollectSignatureRound
    (FinalizationRound, CHECK_HISTORY): CheckTransactionHistoryRound
    (FinalizationRound, CHECK_LATE_ARRIVING_MESSAGE): SynchronizeLateMessagesRound
    (FinalizationRound, DONE): ValidateTransactionRound
    (FinalizationRound, FINALIZATION_FAILED): SelectKeeperTransactionSubmissionRoundB
    (FinalizationRound, FINALIZE_TIMEOUT): SelectKeeperTransactionSubmissionRoundBAfterTimeout
    (FinalizationRound, INSUFFICIENT_FUNDS): SelectKeeperTransactionSubmissionRoundB
    (RandomnessTransactionSubmissionRound, DONE): SelectKeeperTransactionSubmissionRoundA
    (RandomnessTransactionSubmissionRound, NO_MAJORITY): RandomnessTransactionSubmissionRound
    (RandomnessTransactionSubmissionRound, ROUND_TIMEOUT): RandomnessTransactionSubmissionRound
    (ResetRound, DONE): RandomnessTransactionSubmissionRound
    (ResetRound, NO_MAJORITY): FailedRound
    (ResetRound, RESET_TIMEOUT): FailedRound
    (SelectKeeperTransactionSubmissionRoundA, DONE): CollectSignatureRound
    (SelectKeeperTransactionSubmissionRoundA, INCORRECT_SERIALIZATION): FailedRound
    (SelectKeeperTransactionSubmissionRoundA, NO_MAJORITY): ResetRound
    (SelectKeeperTransactionSubmissionRoundA, ROUND_TIMEOUT): SelectKeeperTransactionSubmissionRoundA
    (SelectKeeperTransactionSubmissionRoundB, DONE): FinalizationRound
    (SelectKeeperTransactionSubmissionRoundB, INCORRECT_SERIALIZATION): FailedRound
    (SelectKeeperTransactionSubmissionRoundB, NO_MAJORITY): ResetRound
    (SelectKeeperTransactionSubmissionRoundB, ROUND_TIMEOUT): SelectKeeperTransactionSubmissionRoundB
    (SelectKeeperTransactionSubmissionRoundBAfterTimeout, CHECK_HISTORY): CheckTransactionHistoryRound
    (SelectKeeperTransactionSubmissionRoundBAfterTimeout, CHECK_LATE_ARRIVING_MESSAGE): SynchronizeLateMessagesRound
    (SelectKeeperTransactionSubmissionRoundBAfterTimeout, DONE): FinalizationRound
    (SelectKeeperTransactionSubmissionRoundBAfterTimeout, INCORRECT_SERIALIZATION): FailedRound
    (SelectKeeperTransactionSubmissionRoundBAfterTimeout, NO_MAJORITY): ResetRound
    (SelectKeeperTransactionSubmissionRoundBAfterTimeout, ROUND_TIMEOUT): SelectKeeperTransactionSubmissionRoundBAfterTimeout
    (SynchronizeLateMessagesRound, DONE): CheckLateTxHashesRound
    (SynchronizeLateMessagesRound, MISSED_AND_LATE_MESSAGES_MISMATCH): FailedRound
    (SynchronizeLateMessagesRound, NONE): SelectKeeperTransactionSubmissionRoundB
    (SynchronizeLateMessagesRound, NO_MAJORITY): SynchronizeLateMessagesRound
    (SynchronizeLateMessagesRound, ROUND_TIMEOUT): SynchronizeLateMessagesRound
    (ValidateTransactionRound, DONE): FinishedTransactionSubmissionRound
    (ValidateTransactionRound, NEGATIVE): CheckTransactionHistoryRound
    (ValidateTransactionRound, NONE): SelectKeeperTransactionSubmissionRoundB
    (ValidateTransactionRound, NO_MAJORITY): ValidateTransactionRound
    (ValidateTransactionRound, VALIDATE_TIMEOUT): SelectKeeperTransactionSubmissionRoundB
stateDiagram-v2 RandomnessTransactionSubmissionRound --> SelectKeeperTransactionSubmissionRoundA:
DONE
RandomnessTransactionSubmissionRound --> RandomnessTransactionSubmissionRound:
NO_MAJORITY
RandomnessTransactionSubmissionRound --> ResetRound:
ROUND_TIMEOUT
CheckLateTxHashesRound --> FinishedTransactionSubmissionRound:
DONE
CheckLateTxHashesRound --> FailedRound:
NONE
NEGATIVE
NO_MAJORITY
CheckLateTxHashesRound --> CheckLateTxHashesRound:
ROUND_TIMEOUT
CheckTransactionHistoryRound --> SynchronizeLateMessagesRound:
CHECK_LATE_ARRIVING_MESSAGE
CheckTransactionHistoryRound --> FinishedTransactionSubmissionRound:
DONE
CheckTransactionHistoryRound --> FailedRound:
NONE
NEGATIVE
NO_MAJORITY
CheckTransactionHistoryRound --> CheckTransactionHistoryRound:
ROUND_TIMEOUT
CollectSignatureRound --> FinalizationRound:
DONE
CollectSignatureRound --> ResetRound:
ROUND_TIMEOUT
NO_MAJORITY
FinalizationRound --> CheckTransactionHistoryRound:
CHECK_HISTORY
FinalizationRound --> SynchronizeLateMessagesRound:
CHECK_LATE_ARRIVING_MESSAGE
FinalizationRound --> ValidateTransactionRound:
DONE
FinalizationRound --> SelectKeeperTransactionSubmissionRoundB:
FINALIZATION_FAILED
FinalizationRound --> SelectKeeperTransactionSubmissionRoundBAfterTimeout:
ROUND_TIMEOUT
ResetRound --> RandomnessTransactionSubmissionRound:
DONE
ResetRound --> FailedRound:
NO_MAJORITY
RESET_TIMEOUT
SelectKeeperTransactionSubmissionRoundA --> CollectSignatureRound:
DONE
SelectKeeperTransactionSubmissionRoundA --> ResetRound:
ROUND_TIMEOUT
NO_MAJORITY
SelectKeeperTransactionSubmissionRoundB --> FinalizationRound:
DONE
SelectKeeperTransactionSubmissionRoundB --> ResetRound:
ROUND_TIMEOUT
NO_MAJORITY
SelectKeeperTransactionSubmissionRoundBAfterTimeout --> CheckTransactionHistoryRound:
CHECK_HISTORY
SelectKeeperTransactionSubmissionRoundBAfterTimeout --> FinalizationRound:
DONE
SelectKeeperTransactionSubmissionRoundBAfterTimeout --> ResetRound:
ROUND_TIMEOUT
NO_MAJORITY
SynchronizeLateMessagesRound --> CheckLateTxHashesRound:
DONE
SynchronizeLateMessagesRound --> FailedRound:
NONE
MISSED_AND_LATE_MESSAGES_MISMATCH
SynchronizeLateMessagesRound --> SynchronizeLateMessagesRound:
ROUND_TIMEOUT
NO_MAJORITY
ValidateTransactionRound --> FinishedTransactionSubmissionRound:
DONE
ValidateTransactionRound --> CheckTransactionHistoryRound:
NEGATIVE
ValidateTransactionRound --> FinalizationRound:
VALIDATE_TIMEOUT
NONE
ValidateTransactionRound --> ValidateTransactionRound:
NO_MAJORITY
TransactionSubmissionAbciApp FSM

ResetPauseAbciApp FSM

alphabet_in:
- DONE
- NO_MAJORITY
- RESET_AND_PAUSE_TIMEOUT
default_start_state: ResetAndPauseRound
final_states:
- FinishedResetAndPauseErrorRound
- FinishedResetAndPauseRound
label: ResetPauseAbciApp
start_states:
- ResetAndPauseRound
states:
- FinishedResetAndPauseErrorRound
- FinishedResetAndPauseRound
- ResetAndPauseRound
transition_func:
    (ResetAndPauseRound, DONE): FinishedResetAndPauseRound
    (ResetAndPauseRound, NO_MAJORITY): FinishedResetAndPauseErrorRound
    (ResetAndPauseRound, RESET_AND_PAUSE_TIMEOUT): FinishedResetAndPauseErrorRound
stateDiagram-v2 ResetAndPauseRound --> FinishedResetAndPauseRound:
DONE
ResetAndPauseRound --> FinishedResetAndPauseErrorRound:
NO_MAJORITY
RESET_AND_PAUSE_TIMEOUT
ResetPauseAbciApp FSM

OracleAbciApp FSM

As described above, the OracleAbciApp FSM is the composition of the FSMs defined above using an FSM transition mapping that establishes the relationship between the final states of a certain FSM with the start states of another FSM, that is,

OracleAbciApp = chain(
    (
        AgentRegistrationAbciApp,
        SafeDeploymentAbciApp,
        OracleDeploymentAbciApp,
        PriceAggregationAbciApp,
        TransactionSubmissionAbciApp,
        ResetPauseAbciApp,
    ),
    abci_app_transition_mapping,
)
The transition mapping for this FSM is defined as

abci_app_transition_mapping: AbciAppTransitionMapping = {
    FinishedRegistrationRound: RandomnessSafeRound,
    FinishedSafeRound: RandomnessOracleRound,
    FinishedOracleRound: CollectObservationRound,
    FinishedRegistrationFFWRound: CollectObservationRound,
    FinishedPriceAggregationRound: RandomnessTransactionSubmissionRound,
    FailedRound: ResetAndPauseRound,
    FinishedTransactionSubmissionRound: ResetAndPauseRound,
    FinishedResetAndPauseRound: CollectObservationRound,
    FinishedResetAndPauseErrorRound: RegistrationRound,
}

The complete specification of the composed FSM is therefore:

alphabet_in:
- CHECK_HISTORY
- CHECK_LATE_ARRIVING_MESSAGE
- CHECK_TIMEOUT
- DEPLOY_TIMEOUT
- DONE
- FAILED
- FAST_FORWARD
- FINALIZATION_FAILED
- FINALIZE_TIMEOUT
- INCORRECT_SERIALIZATION
- INSUFFICIENT_FUNDS
- MISSED_AND_LATE_MESSAGES_MISMATCH
- NEGATIVE
- NONE
- NO_MAJORITY
- RESET_AND_PAUSE_TIMEOUT
- RESET_TIMEOUT
- ROUND_TIMEOUT
- VALIDATE_TIMEOUT
default_start_state: RegistrationStartupRound
final_states: []
label: packages.valory.skills.oracle_abci.composition.OracleAbciApp
start_states:
- RegistrationStartupRound
states:
- CheckLateTxHashesRound
- CheckTransactionHistoryRound
- CollectObservationRound
- CollectSignatureRound
- DeployOracleRound
- DeploySafeRound
- EstimateConsensusRound
- FinalizationRound
- RandomnessOracleRound
- RandomnessSafeRound
- RandomnessTransactionSubmissionRound
- RegistrationRound
- RegistrationStartupRound
- ResetAndPauseRound
- ResetRound
- SelectKeeperOracleRound
- SelectKeeperSafeRound
- SelectKeeperTransactionSubmissionRoundA
- SelectKeeperTransactionSubmissionRoundB
- SelectKeeperTransactionSubmissionRoundBAfterTimeout
- SynchronizeLateMessagesRound
- TxHashRound
- ValidateOracleRound
- ValidateSafeRound
- ValidateTransactionRound
transition_func:
    (CheckLateTxHashesRound, CHECK_LATE_ARRIVING_MESSAGE): SynchronizeLateMessagesRound
    (CheckLateTxHashesRound, CHECK_TIMEOUT): CheckLateTxHashesRound
    (CheckLateTxHashesRound, DONE): ResetAndPauseRound
    (CheckLateTxHashesRound, NEGATIVE): ResetAndPauseRound
    (CheckLateTxHashesRound, NONE): ResetAndPauseRound
    (CheckLateTxHashesRound, NO_MAJORITY): ResetAndPauseRound
    (CheckTransactionHistoryRound, CHECK_LATE_ARRIVING_MESSAGE): SynchronizeLateMessagesRound
    (CheckTransactionHistoryRound, CHECK_TIMEOUT): CheckTransactionHistoryRound
    (CheckTransactionHistoryRound, DONE): ResetAndPauseRound
    (CheckTransactionHistoryRound, NEGATIVE): SelectKeeperTransactionSubmissionRoundB
    (CheckTransactionHistoryRound, NONE): ResetAndPauseRound
    (CheckTransactionHistoryRound, NO_MAJORITY): CheckTransactionHistoryRound
    (CollectObservationRound, DONE): EstimateConsensusRound
    (CollectObservationRound, NO_MAJORITY): CollectObservationRound
    (CollectObservationRound, ROUND_TIMEOUT): CollectObservationRound
    (CollectSignatureRound, DONE): FinalizationRound
    (CollectSignatureRound, NO_MAJORITY): ResetRound
    (CollectSignatureRound, ROUND_TIMEOUT): CollectSignatureRound
    (DeployOracleRound, DEPLOY_TIMEOUT): SelectKeeperOracleRound
    (DeployOracleRound, DONE): ValidateOracleRound
    (DeployOracleRound, FAILED): SelectKeeperOracleRound
    (DeploySafeRound, DEPLOY_TIMEOUT): SelectKeeperSafeRound
    (DeploySafeRound, DONE): ValidateSafeRound
    (DeploySafeRound, FAILED): SelectKeeperSafeRound
    (EstimateConsensusRound, DONE): TxHashRound
    (EstimateConsensusRound, NONE): CollectObservationRound
    (EstimateConsensusRound, NO_MAJORITY): CollectObservationRound
    (EstimateConsensusRound, ROUND_TIMEOUT): CollectObservationRound
    (FinalizationRound, CHECK_HISTORY): CheckTransactionHistoryRound
    (FinalizationRound, CHECK_LATE_ARRIVING_MESSAGE): SynchronizeLateMessagesRound
    (FinalizationRound, DONE): ValidateTransactionRound
    (FinalizationRound, FINALIZATION_FAILED): SelectKeeperTransactionSubmissionRoundB
    (FinalizationRound, FINALIZE_TIMEOUT): SelectKeeperTransactionSubmissionRoundBAfterTimeout
    (FinalizationRound, INSUFFICIENT_FUNDS): SelectKeeperTransactionSubmissionRoundB
    (RandomnessOracleRound, DONE): SelectKeeperOracleRound
    (RandomnessOracleRound, NO_MAJORITY): RandomnessOracleRound
    (RandomnessOracleRound, ROUND_TIMEOUT): RandomnessOracleRound
    (RandomnessSafeRound, DONE): SelectKeeperSafeRound
    (RandomnessSafeRound, NO_MAJORITY): RandomnessSafeRound
    (RandomnessSafeRound, ROUND_TIMEOUT): RandomnessSafeRound
    (RandomnessTransactionSubmissionRound, DONE): SelectKeeperTransactionSubmissionRoundA
    (RandomnessTransactionSubmissionRound, NO_MAJORITY): RandomnessTransactionSubmissionRound
    (RandomnessTransactionSubmissionRound, ROUND_TIMEOUT): RandomnessTransactionSubmissionRound
    (RegistrationRound, DONE): CollectObservationRound
    (RegistrationRound, NO_MAJORITY): RegistrationRound
    (RegistrationStartupRound, DONE): RandomnessSafeRound
    (RegistrationStartupRound, FAST_FORWARD): CollectObservationRound
    (ResetAndPauseRound, DONE): CollectObservationRound
    (ResetAndPauseRound, NO_MAJORITY): RegistrationRound
    (ResetAndPauseRound, RESET_AND_PAUSE_TIMEOUT): RegistrationRound
    (ResetRound, DONE): RandomnessTransactionSubmissionRound
    (ResetRound, NO_MAJORITY): ResetAndPauseRound
    (ResetRound, RESET_TIMEOUT): ResetAndPauseRound
    (SelectKeeperOracleRound, DONE): DeployOracleRound
    (SelectKeeperOracleRound, NO_MAJORITY): RandomnessOracleRound
    (SelectKeeperOracleRound, ROUND_TIMEOUT): RandomnessOracleRound
    (SelectKeeperSafeRound, DONE): DeploySafeRound
    (SelectKeeperSafeRound, NO_MAJORITY): RandomnessSafeRound
    (SelectKeeperSafeRound, ROUND_TIMEOUT): RandomnessSafeRound
    (SelectKeeperTransactionSubmissionRoundA, DONE): CollectSignatureRound
    (SelectKeeperTransactionSubmissionRoundA, INCORRECT_SERIALIZATION): ResetAndPauseRound
    (SelectKeeperTransactionSubmissionRoundA, NO_MAJORITY): ResetRound
    (SelectKeeperTransactionSubmissionRoundA, ROUND_TIMEOUT): SelectKeeperTransactionSubmissionRoundA
    (SelectKeeperTransactionSubmissionRoundB, DONE): FinalizationRound
    (SelectKeeperTransactionSubmissionRoundB, INCORRECT_SERIALIZATION): ResetAndPauseRound
    (SelectKeeperTransactionSubmissionRoundB, NO_MAJORITY): ResetRound
    (SelectKeeperTransactionSubmissionRoundB, ROUND_TIMEOUT): SelectKeeperTransactionSubmissionRoundB
    (SelectKeeperTransactionSubmissionRoundBAfterTimeout, CHECK_HISTORY): CheckTransactionHistoryRound
    (SelectKeeperTransactionSubmissionRoundBAfterTimeout, CHECK_LATE_ARRIVING_MESSAGE): SynchronizeLateMessagesRound
    (SelectKeeperTransactionSubmissionRoundBAfterTimeout, DONE): FinalizationRound
    (SelectKeeperTransactionSubmissionRoundBAfterTimeout, INCORRECT_SERIALIZATION): ResetAndPauseRound
    (SelectKeeperTransactionSubmissionRoundBAfterTimeout, NO_MAJORITY): ResetRound
    (SelectKeeperTransactionSubmissionRoundBAfterTimeout, ROUND_TIMEOUT): SelectKeeperTransactionSubmissionRoundBAfterTimeout
    (SynchronizeLateMessagesRound, DONE): CheckLateTxHashesRound
    (SynchronizeLateMessagesRound, MISSED_AND_LATE_MESSAGES_MISMATCH): ResetAndPauseRound
    (SynchronizeLateMessagesRound, NONE): SelectKeeperTransactionSubmissionRoundB
    (SynchronizeLateMessagesRound, NO_MAJORITY): SynchronizeLateMessagesRound
    (SynchronizeLateMessagesRound, ROUND_TIMEOUT): SynchronizeLateMessagesRound
    (TxHashRound, DONE): RandomnessTransactionSubmissionRound
    (TxHashRound, NONE): CollectObservationRound
    (TxHashRound, NO_MAJORITY): CollectObservationRound
    (TxHashRound, ROUND_TIMEOUT): CollectObservationRound
    (ValidateOracleRound, DONE): CollectObservationRound
    (ValidateOracleRound, NEGATIVE): RandomnessOracleRound
    (ValidateOracleRound, NONE): RandomnessOracleRound
    (ValidateOracleRound, NO_MAJORITY): RandomnessOracleRound
    (ValidateOracleRound, VALIDATE_TIMEOUT): RandomnessOracleRound
    (ValidateSafeRound, DONE): RandomnessOracleRound
    (ValidateSafeRound, NEGATIVE): RandomnessSafeRound
    (ValidateSafeRound, NONE): RandomnessSafeRound
    (ValidateSafeRound, NO_MAJORITY): RandomnessSafeRound
    (ValidateSafeRound, VALIDATE_TIMEOUT): RandomnessSafeRound
    (ValidateTransactionRound, DONE): ResetAndPauseRound
    (ValidateTransactionRound, NEGATIVE): CheckTransactionHistoryRound
    (ValidateTransactionRound, NONE): SelectKeeperTransactionSubmissionRoundB
    (ValidateTransactionRound, NO_MAJORITY): ValidateTransactionRound
    (ValidateTransactionRound, VALIDATE_TIMEOUT): SelectKeeperTransactionSubmissionRoundB
stateDiagram-v2 RegistrationStartupRound --> RandomnessSafeRound:
DONE
RegistrationStartupRound --> CollectObservationRound:
FAST_FORWARD
CheckLateTxHashesRound --> ResetAndPauseRound:
DONE
CheckLateTxHashesRound --> RegistrationRound:
NEGATIVE
NONE
NO_MAJORITY
CheckLateTxHashesRound --> CheckLateTxHashesRound:
ROUND_TIMEOUT
CheckTransactionHistoryRound --> SynchronizeLateMessagesRound:
CHECK_LATE_ARRIVING_MESSAGE
CheckTransactionHistoryRound --> ResetAndPauseRound:
DONE
CheckTransactionHistoryRound --> RegistrationRound:
NEGATIVE
NONE
NO_MAJORITY
CheckTransactionHistoryRound --> CheckTransactionHistoryRound:
ROUND_TIMEOUT
CollectObservationRound --> EstimateConsensusRound:
DONE
CollectObservationRound --> CollectObservationRound:
ROUND_TIMEOUT
NO_MAJORITY
CollectSignatureRound --> FinalizationRound:
DONE
CollectSignatureRound --> ResetRound:
ROUND_TIMEOUT
NO_MAJORITY
DeployOracleRound --> SelectKeeperOracleRound:
DEPLOY_TIMEOUT
FAILED
DeployOracleRound --> ValidateOracleRound:
DONE
DeploySafeRound --> SelectKeeperSafeRound:
DEPLOY_TIMEOUT
FAILED
DeploySafeRound --> ValidateSafeRound:
DONE
EstimateConsensusRound --> TxHashRound:
DONE
EstimateConsensusRound --> CollectObservationRound:
ROUND_TIMEOUT
NO_MAJORITY
FinalizationRound --> CheckTransactionHistoryRound:
CHECK_HISTORY
FinalizationRound --> SynchronizeLateMessagesRound:
CHECK_LATE_ARRIVING_MESSAGE
FinalizationRound --> ValidateTransactionRound:
DONE
FinalizationRound --> SelectKeeperTransactionSubmissionRoundB:
FINALIZATION_FAILED
FinalizationRound --> SelectKeeperTransactionSubmissionRoundBAfterTimeout:
ROUND_TIMEOUT
RandomnessOracleRound --> SelectKeeperOracleRound:
DONE
RandomnessOracleRound --> RandomnessOracleRound:
ROUND_TIMEOUT
NO_MAJORITY
RandomnessSafeRound --> SelectKeeperSafeRound:
DONE
RandomnessSafeRound --> RandomnessSafeRound:
ROUND_TIMEOUT
NO_MAJORITY
RandomnessTransactionSubmissionRound --> SelectKeeperTransactionSubmissionRoundA:
DONE
RandomnessTransactionSubmissionRound --> RandomnessTransactionSubmissionRound:
NO_MAJORITY
RandomnessTransactionSubmissionRound --> ResetRound:
ROUND_TIMEOUT
RegistrationRound --> CollectObservationRound:
DONE
ResetAndPauseRound --> CollectObservationRound:
DONE
ResetAndPauseRound --> RegistrationRound:
RESET_AND_PAUSE_TIMEOUT
NO_MAJORITY
ResetRound --> RandomnessTransactionSubmissionRound:
DONE
ResetRound --> RegistrationRound:
RESET_TIMEOUT
NO_MAJORITY
SelectKeeperOracleRound --> DeployOracleRound:
DONE
SelectKeeperOracleRound --> RandomnessOracleRound:
ROUND_TIMEOUT
NO_MAJORITY
SelectKeeperSafeRound --> DeploySafeRound:
DONE
SelectKeeperSafeRound --> RandomnessSafeRound:
ROUND_TIMEOUT
NO_MAJORITY
SelectKeeperTransactionSubmissionRoundA --> CollectSignatureRound:
DONE
SelectKeeperTransactionSubmissionRoundA --> ResetRound:
ROUND_TIMEOUT
NO_MAJORITY
SelectKeeperTransactionSubmissionRoundB --> FinalizationRound:
DONE
SelectKeeperTransactionSubmissionRoundB --> ResetRound:
ROUND_TIMEOUT
NO_MAJORITY
SelectKeeperTransactionSubmissionRoundBAfterTimeout --> CheckTransactionHistoryRound:
CHECK_HISTORY
SelectKeeperTransactionSubmissionRoundBAfterTimeout --> FinalizationRound:
DONE
SelectKeeperTransactionSubmissionRoundBAfterTimeout --> ResetRound:
ROUND_TIMEOUT
NO_MAJORITY
SynchronizeLateMessagesRound --> CheckLateTxHashesRound:
DONE
SynchronizeLateMessagesRound --> RegistrationRound:
NONE
MISSED_AND_LATE_MESSAGES_MISMATCH
SynchronizeLateMessagesRound --> SynchronizeLateMessagesRound:
ROUND_TIMEOUT
NO_MAJORITY
TxHashRound --> RandomnessTransactionSubmissionRound:
DONE
TxHashRound --> CollectObservationRound:
ROUND_TIMEOUT
NONE
NO_MAJORITY
ValidateOracleRound --> CollectObservationRound:
DONE
ValidateOracleRound --> RandomnessOracleRound:
NEGATIVE
NONE
VALIDATE_TIMEOUT
NO_MAJORITY
ValidateSafeRound --> RandomnessOracleRound:
DONE
ValidateSafeRound --> RandomnessSafeRound:
NEGATIVE
NONE
VALIDATE_TIMEOUT
NO_MAJORITY
ValidateTransactionRound --> ResetAndPauseRound:
DONE
ValidateTransactionRound --> CheckTransactionHistoryRound:
NEGATIVE
ValidateTransactionRound --> FinalizationRound:
NONE
VALIDATE_TIMEOUT
ValidateTransactionRound --> ValidateTransactionRound:
NO_MAJORITY
OracleAbciApp FSM
Back to top