2020-08-06 17:20:13 -07:00
|
|
|
package dkg_proposal_fsm
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/depools/dc4bc/fsm/fsm"
|
|
|
|
"log"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Pub keys
|
2020-08-07 06:08:37 -07:00
|
|
|
func (m *DKGProposalFSM) actionDKGPubKeysSent(event fsm.Event, args ...interface{}) (response interface{}, err error) {
|
2020-08-06 17:20:13 -07:00
|
|
|
log.Println("I'm actionDKGPubKeysSent")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2020-08-07 06:08:37 -07:00
|
|
|
func (m *DKGProposalFSM) actionDKGPubKeyConfirmationReceived(event fsm.Event, args ...interface{}) (response interface{}, err error) {
|
2020-08-06 17:20:13 -07:00
|
|
|
log.Println("I'm actionDKGPubKeyConfirmationReceived")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2020-08-07 06:08:37 -07:00
|
|
|
func (m *DKGProposalFSM) actionDKGPubKeyConfirmationError(event fsm.Event, args ...interface{}) (response interface{}, err error) {
|
2020-08-06 17:20:13 -07:00
|
|
|
log.Println("I'm actionDKGPubKeyConfirmationError")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// Commits
|
2020-08-07 06:08:37 -07:00
|
|
|
func (m *DKGProposalFSM) actionDKGCommitsSent(event fsm.Event, args ...interface{}) (response interface{}, err error) {
|
2020-08-06 17:20:13 -07:00
|
|
|
log.Println("I'm actionDKGCommitsSent")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2020-08-07 06:08:37 -07:00
|
|
|
func (m *DKGProposalFSM) actionDKGCommitConfirmationReceived(event fsm.Event, args ...interface{}) (response interface{}, err error) {
|
2020-08-06 17:20:13 -07:00
|
|
|
log.Println("I'm actionDKGCommitConfirmationReceived")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2020-08-07 06:08:37 -07:00
|
|
|
func (m *DKGProposalFSM) actionDKGCommitConfirmationError(event fsm.Event, args ...interface{}) (response interface{}, err error) {
|
2020-08-06 17:20:13 -07:00
|
|
|
log.Println("I'm actionDKGCommitConfirmationError")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deals
|
2020-08-07 06:08:37 -07:00
|
|
|
func (m *DKGProposalFSM) actionDKGDealsSent(event fsm.Event, args ...interface{}) (response interface{}, err error) {
|
2020-08-06 17:20:13 -07:00
|
|
|
log.Println("I'm actionDKGDealsSent")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2020-08-07 06:08:37 -07:00
|
|
|
func (m *DKGProposalFSM) actionDKGDealConfirmationReceived(event fsm.Event, args ...interface{}) (response interface{}, err error) {
|
2020-08-06 17:20:13 -07:00
|
|
|
log.Println("I'm actionDKGDealConfirmationReceived")
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2020-08-07 06:08:37 -07:00
|
|
|
func (m *DKGProposalFSM) actionDKGDealConfirmationError(event fsm.Event, args ...interface{}) (response interface{}, err error) {
|
2020-08-06 17:20:13 -07:00
|
|
|
log.Println("I'm actionDKGDealConfirmationError")
|
|
|
|
return
|
|
|
|
}
|