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-06-20 08:50:59 +00:00
|
|
|
Wallet = SignalType("wallet")
|
|
|
|
SignTransactions = SignalType("wallet.sign.transactions")
|
2024-06-20 09:03:42 +00:00
|
|
|
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
|
|
|
}
|