status-go/signal/events_wallet.go

19 lines
758 B
Go
Raw Permalink Normal View History

package signal
type SignalType string
const (
Wallet = SignalType("wallet")
SignTransactions = SignalType("wallet.sign.transactions")
RouterSendingTransactionsStarted = SignalType("wallet.router.sending-transactions-started")
SignRouterTransactions = SignalType("wallet.router.sign-transactions")
RouterTransactionsSent = SignalType("wallet.router.transactions-sent")
TransactionStatusChanged = SignalType("wallet.transaction.status-changed")
SuggestedRoutes = SignalType("wallet.suggested.routes")
)
// SendWalletEvent sends event from services/wallet/events.
func SendWalletEvent(signalType SignalType, event interface{}) {
send(string(signalType), event)
}