@@ -73,6 +73,7 @@ use crate::p2p::network::{P2pNetworkAction, P2pNetworkEffectfulAction};
7373use crate :: p2p:: peer:: P2pPeerAction ;
7474use crate :: p2p:: { P2pAction , P2pEffectfulAction , P2pInitializeAction } ;
7575use crate :: rpc:: RpcAction ;
76+ use crate :: rpc_effectful:: RpcEffectfulAction ;
7677use crate :: snark:: block_verify:: SnarkBlockVerifyAction ;
7778use crate :: snark:: block_verify_effectful:: SnarkBlockVerifyEffectfulAction ;
7879use crate :: snark:: user_command_verify:: SnarkUserCommandVerifyAction ;
@@ -519,6 +520,38 @@ pub enum ActionKind {
519520 RpcTransactionPool ,
520521 RpcTransactionStatusGet ,
521522 RpcTransitionFrontierUserCommandsGet ,
523+ RpcEffectfulActionStatsGet ,
524+ RpcEffectfulBestChain ,
525+ RpcEffectfulBlockProducerStatsGet ,
526+ RpcEffectfulConsensusConstantsGet ,
527+ RpcEffectfulDiscoveryBoostrapStats ,
528+ RpcEffectfulDiscoveryRoutingTable ,
529+ RpcEffectfulGlobalStateGet ,
530+ RpcEffectfulHealthCheck ,
531+ RpcEffectfulLedgerAccountsGetSuccess ,
532+ RpcEffectfulMessageProgressGet ,
533+ RpcEffectfulP2pConnectionIncomingError ,
534+ RpcEffectfulP2pConnectionIncomingRespond ,
535+ RpcEffectfulP2pConnectionIncomingSuccess ,
536+ RpcEffectfulP2pConnectionOutgoingError ,
537+ RpcEffectfulP2pConnectionOutgoingSuccess ,
538+ RpcEffectfulPeersGet ,
539+ RpcEffectfulReadinessCheck ,
540+ RpcEffectfulScanStateSummaryGetSuccess ,
541+ RpcEffectfulSnarkPoolAvailableJobsGet ,
542+ RpcEffectfulSnarkPoolJobGet ,
543+ RpcEffectfulSnarkerConfigGet ,
544+ RpcEffectfulSnarkerJobCommit ,
545+ RpcEffectfulSnarkerJobSpec ,
546+ RpcEffectfulSnarkerWorkersGet ,
547+ RpcEffectfulStatusGet ,
548+ RpcEffectfulSyncStatsGet ,
549+ RpcEffectfulTransactionInjectFailure ,
550+ RpcEffectfulTransactionInjectRejected ,
551+ RpcEffectfulTransactionInjectSuccess ,
552+ RpcEffectfulTransactionPool ,
553+ RpcEffectfulTransactionStatusGet ,
554+ RpcEffectfulTransitionFrontierUserCommandsGet ,
522555 SnarkBlockVerifyError ,
523556 SnarkBlockVerifyFinish ,
524557 SnarkBlockVerifyInit ,
@@ -660,7 +693,7 @@ pub enum ActionKind {
660693}
661694
662695impl ActionKind {
663- pub const COUNT : u16 = 548 ;
696+ pub const COUNT : u16 = 580 ;
664697}
665698
666699impl std:: fmt:: Display for ActionKind {
@@ -688,6 +721,7 @@ impl ActionKindGet for Action {
688721 Self :: ExternalSnarkWorker ( a) => a. kind ( ) ,
689722 Self :: BlockProducer ( a) => a. kind ( ) ,
690723 Self :: Rpc ( a) => a. kind ( ) ,
724+ Self :: RpcEffectful ( a) => a. kind ( ) ,
691725 Self :: WatchedAccounts ( a) => a. kind ( ) ,
692726 }
693727 }
@@ -999,6 +1033,69 @@ impl ActionKindGet for RpcAction {
9991033 }
10001034}
10011035
1036+ impl ActionKindGet for RpcEffectfulAction {
1037+ fn kind ( & self ) -> ActionKind {
1038+ match self {
1039+ Self :: GlobalStateGet { .. } => ActionKind :: RpcEffectfulGlobalStateGet ,
1040+ Self :: StatusGet { .. } => ActionKind :: RpcEffectfulStatusGet ,
1041+ Self :: ActionStatsGet { .. } => ActionKind :: RpcEffectfulActionStatsGet ,
1042+ Self :: SyncStatsGet { .. } => ActionKind :: RpcEffectfulSyncStatsGet ,
1043+ Self :: BlockProducerStatsGet { .. } => ActionKind :: RpcEffectfulBlockProducerStatsGet ,
1044+ Self :: MessageProgressGet { .. } => ActionKind :: RpcEffectfulMessageProgressGet ,
1045+ Self :: PeersGet { .. } => ActionKind :: RpcEffectfulPeersGet ,
1046+ Self :: P2pConnectionOutgoingError { .. } => {
1047+ ActionKind :: RpcEffectfulP2pConnectionOutgoingError
1048+ }
1049+ Self :: P2pConnectionOutgoingSuccess { .. } => {
1050+ ActionKind :: RpcEffectfulP2pConnectionOutgoingSuccess
1051+ }
1052+ Self :: P2pConnectionIncomingRespond { .. } => {
1053+ ActionKind :: RpcEffectfulP2pConnectionIncomingRespond
1054+ }
1055+ Self :: P2pConnectionIncomingError { .. } => {
1056+ ActionKind :: RpcEffectfulP2pConnectionIncomingError
1057+ }
1058+ Self :: P2pConnectionIncomingSuccess { .. } => {
1059+ ActionKind :: RpcEffectfulP2pConnectionIncomingSuccess
1060+ }
1061+ Self :: ScanStateSummaryGetSuccess { .. } => {
1062+ ActionKind :: RpcEffectfulScanStateSummaryGetSuccess
1063+ }
1064+ Self :: SnarkPoolAvailableJobsGet { .. } => {
1065+ ActionKind :: RpcEffectfulSnarkPoolAvailableJobsGet
1066+ }
1067+ Self :: SnarkPoolJobGet { .. } => ActionKind :: RpcEffectfulSnarkPoolJobGet ,
1068+ Self :: SnarkerConfigGet { .. } => ActionKind :: RpcEffectfulSnarkerConfigGet ,
1069+ Self :: SnarkerJobCommit { .. } => ActionKind :: RpcEffectfulSnarkerJobCommit ,
1070+ Self :: SnarkerJobSpec { .. } => ActionKind :: RpcEffectfulSnarkerJobSpec ,
1071+ Self :: SnarkerWorkersGet { .. } => ActionKind :: RpcEffectfulSnarkerWorkersGet ,
1072+ Self :: HealthCheck { .. } => ActionKind :: RpcEffectfulHealthCheck ,
1073+ Self :: ReadinessCheck { .. } => ActionKind :: RpcEffectfulReadinessCheck ,
1074+ Self :: DiscoveryRoutingTable { .. } => ActionKind :: RpcEffectfulDiscoveryRoutingTable ,
1075+ Self :: DiscoveryBoostrapStats { .. } => ActionKind :: RpcEffectfulDiscoveryBoostrapStats ,
1076+ Self :: TransactionPool { .. } => ActionKind :: RpcEffectfulTransactionPool ,
1077+ Self :: LedgerAccountsGetSuccess { .. } => {
1078+ ActionKind :: RpcEffectfulLedgerAccountsGetSuccess
1079+ }
1080+ Self :: TransactionInjectSuccess { .. } => {
1081+ ActionKind :: RpcEffectfulTransactionInjectSuccess
1082+ }
1083+ Self :: TransactionInjectRejected { .. } => {
1084+ ActionKind :: RpcEffectfulTransactionInjectRejected
1085+ }
1086+ Self :: TransactionInjectFailure { .. } => {
1087+ ActionKind :: RpcEffectfulTransactionInjectFailure
1088+ }
1089+ Self :: TransitionFrontierUserCommandsGet { .. } => {
1090+ ActionKind :: RpcEffectfulTransitionFrontierUserCommandsGet
1091+ }
1092+ Self :: BestChain { .. } => ActionKind :: RpcEffectfulBestChain ,
1093+ Self :: ConsensusConstantsGet { .. } => ActionKind :: RpcEffectfulConsensusConstantsGet ,
1094+ Self :: TransactionStatusGet { .. } => ActionKind :: RpcEffectfulTransactionStatusGet ,
1095+ }
1096+ }
1097+ }
1098+
10021099impl ActionKindGet for WatchedAccountsAction {
10031100 fn kind ( & self ) -> ActionKind {
10041101 match self {
0 commit comments