@@ -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 ;
@@ -520,6 +521,38 @@ pub enum ActionKind {
520521 RpcTransactionPool ,
521522 RpcTransactionStatusGet ,
522523 RpcTransitionFrontierUserCommandsGet ,
524+ RpcEffectfulActionStatsGet ,
525+ RpcEffectfulBestChain ,
526+ RpcEffectfulBlockProducerStatsGet ,
527+ RpcEffectfulConsensusConstantsGet ,
528+ RpcEffectfulDiscoveryBoostrapStats ,
529+ RpcEffectfulDiscoveryRoutingTable ,
530+ RpcEffectfulGlobalStateGet ,
531+ RpcEffectfulHealthCheck ,
532+ RpcEffectfulLedgerAccountsGetSuccess ,
533+ RpcEffectfulMessageProgressGet ,
534+ RpcEffectfulP2pConnectionIncomingError ,
535+ RpcEffectfulP2pConnectionIncomingRespond ,
536+ RpcEffectfulP2pConnectionIncomingSuccess ,
537+ RpcEffectfulP2pConnectionOutgoingError ,
538+ RpcEffectfulP2pConnectionOutgoingSuccess ,
539+ RpcEffectfulPeersGet ,
540+ RpcEffectfulReadinessCheck ,
541+ RpcEffectfulScanStateSummaryGetSuccess ,
542+ RpcEffectfulSnarkPoolAvailableJobsGet ,
543+ RpcEffectfulSnarkPoolJobGet ,
544+ RpcEffectfulSnarkerConfigGet ,
545+ RpcEffectfulSnarkerJobCommit ,
546+ RpcEffectfulSnarkerJobSpec ,
547+ RpcEffectfulSnarkerWorkersGet ,
548+ RpcEffectfulStatusGet ,
549+ RpcEffectfulSyncStatsGet ,
550+ RpcEffectfulTransactionInjectFailure ,
551+ RpcEffectfulTransactionInjectRejected ,
552+ RpcEffectfulTransactionInjectSuccess ,
553+ RpcEffectfulTransactionPool ,
554+ RpcEffectfulTransactionStatusGet ,
555+ RpcEffectfulTransitionFrontierUserCommandsGet ,
523556 SnarkBlockVerifyError ,
524557 SnarkBlockVerifyFinish ,
525558 SnarkBlockVerifyInit ,
@@ -661,7 +694,7 @@ pub enum ActionKind {
661694}
662695
663696impl ActionKind {
664- pub const COUNT : u16 = 549 ;
697+ pub const COUNT : u16 = 581 ;
665698}
666699
667700impl std:: fmt:: Display for ActionKind {
@@ -689,6 +722,7 @@ impl ActionKindGet for Action {
689722 Self :: ExternalSnarkWorker ( a) => a. kind ( ) ,
690723 Self :: BlockProducer ( a) => a. kind ( ) ,
691724 Self :: Rpc ( a) => a. kind ( ) ,
725+ Self :: RpcEffectful ( a) => a. kind ( ) ,
692726 Self :: WatchedAccounts ( a) => a. kind ( ) ,
693727 }
694728 }
@@ -1003,6 +1037,69 @@ impl ActionKindGet for RpcAction {
10031037 }
10041038}
10051039
1040+ impl ActionKindGet for RpcEffectfulAction {
1041+ fn kind ( & self ) -> ActionKind {
1042+ match self {
1043+ Self :: GlobalStateGet { .. } => ActionKind :: RpcEffectfulGlobalStateGet ,
1044+ Self :: StatusGet { .. } => ActionKind :: RpcEffectfulStatusGet ,
1045+ Self :: ActionStatsGet { .. } => ActionKind :: RpcEffectfulActionStatsGet ,
1046+ Self :: SyncStatsGet { .. } => ActionKind :: RpcEffectfulSyncStatsGet ,
1047+ Self :: BlockProducerStatsGet { .. } => ActionKind :: RpcEffectfulBlockProducerStatsGet ,
1048+ Self :: MessageProgressGet { .. } => ActionKind :: RpcEffectfulMessageProgressGet ,
1049+ Self :: PeersGet { .. } => ActionKind :: RpcEffectfulPeersGet ,
1050+ Self :: P2pConnectionOutgoingError { .. } => {
1051+ ActionKind :: RpcEffectfulP2pConnectionOutgoingError
1052+ }
1053+ Self :: P2pConnectionOutgoingSuccess { .. } => {
1054+ ActionKind :: RpcEffectfulP2pConnectionOutgoingSuccess
1055+ }
1056+ Self :: P2pConnectionIncomingRespond { .. } => {
1057+ ActionKind :: RpcEffectfulP2pConnectionIncomingRespond
1058+ }
1059+ Self :: P2pConnectionIncomingError { .. } => {
1060+ ActionKind :: RpcEffectfulP2pConnectionIncomingError
1061+ }
1062+ Self :: P2pConnectionIncomingSuccess { .. } => {
1063+ ActionKind :: RpcEffectfulP2pConnectionIncomingSuccess
1064+ }
1065+ Self :: ScanStateSummaryGetSuccess { .. } => {
1066+ ActionKind :: RpcEffectfulScanStateSummaryGetSuccess
1067+ }
1068+ Self :: SnarkPoolAvailableJobsGet { .. } => {
1069+ ActionKind :: RpcEffectfulSnarkPoolAvailableJobsGet
1070+ }
1071+ Self :: SnarkPoolJobGet { .. } => ActionKind :: RpcEffectfulSnarkPoolJobGet ,
1072+ Self :: SnarkerConfigGet { .. } => ActionKind :: RpcEffectfulSnarkerConfigGet ,
1073+ Self :: SnarkerJobCommit { .. } => ActionKind :: RpcEffectfulSnarkerJobCommit ,
1074+ Self :: SnarkerJobSpec { .. } => ActionKind :: RpcEffectfulSnarkerJobSpec ,
1075+ Self :: SnarkerWorkersGet { .. } => ActionKind :: RpcEffectfulSnarkerWorkersGet ,
1076+ Self :: HealthCheck { .. } => ActionKind :: RpcEffectfulHealthCheck ,
1077+ Self :: ReadinessCheck { .. } => ActionKind :: RpcEffectfulReadinessCheck ,
1078+ Self :: DiscoveryRoutingTable { .. } => ActionKind :: RpcEffectfulDiscoveryRoutingTable ,
1079+ Self :: DiscoveryBoostrapStats { .. } => ActionKind :: RpcEffectfulDiscoveryBoostrapStats ,
1080+ Self :: TransactionPool { .. } => ActionKind :: RpcEffectfulTransactionPool ,
1081+ Self :: LedgerAccountsGetSuccess { .. } => {
1082+ ActionKind :: RpcEffectfulLedgerAccountsGetSuccess
1083+ }
1084+ Self :: TransactionInjectSuccess { .. } => {
1085+ ActionKind :: RpcEffectfulTransactionInjectSuccess
1086+ }
1087+ Self :: TransactionInjectRejected { .. } => {
1088+ ActionKind :: RpcEffectfulTransactionInjectRejected
1089+ }
1090+ Self :: TransactionInjectFailure { .. } => {
1091+ ActionKind :: RpcEffectfulTransactionInjectFailure
1092+ }
1093+ Self :: TransitionFrontierUserCommandsGet { .. } => {
1094+ ActionKind :: RpcEffectfulTransitionFrontierUserCommandsGet
1095+ }
1096+ Self :: BestChain { .. } => ActionKind :: RpcEffectfulBestChain ,
1097+ Self :: ConsensusConstantsGet { .. } => ActionKind :: RpcEffectfulConsensusConstantsGet ,
1098+ Self :: TransactionStatusGet { .. } => ActionKind :: RpcEffectfulTransactionStatusGet ,
1099+ }
1100+ }
1101+ }
1102+
10061103impl ActionKindGet for WatchedAccountsAction {
10071104 fn kind ( & self ) -> ActionKind {
10081105 match self {
0 commit comments