2019-06-14 10:16:30 +00:00
|
|
|
package signal
|
|
|
|
|
2024-06-20 08:50:59 +00:00
|
|
|
type SignalType string
|
|
|
|
|
2019-06-14 10:16:30 +00:00
|
|
|
const (
|
2024-09-23 07:19:00 +00:00
|
|
|
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")
|
2019-06-14 10:16:30 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// SendWalletEvent sends event from services/wallet/events.
|
2024-06-20 08:50:59 +00:00
|
|
|
func SendWalletEvent(signalType SignalType, event interface{}) {
|
|
|
|
send(string(signalType), event)
|
2023-09-29 17:56:27 +00:00
|
|
|
}
|