status-go/signal/events_wallet.go
Sale Djenic 92361d9e20 feat_: new endpoint added for an async route/s calculation
- `GetSuggestedRoutesV2Async` calculates the route/s based on input parameters and sends
`wallet.suggested.routes` signal to notify a client.
2024-07-01 15:07:17 +02:00

15 lines
369 B
Go

package signal
type SignalType string
const (
Wallet = SignalType("wallet")
SignTransactions = SignalType("wallet.sign.transactions")
SuggestedRoutes = SignalType("wallet.suggested.routes")
)
// SendWalletEvent sends event from services/wallet/events.
func SendWalletEvent(signalType SignalType, event interface{}) {
send(string(signalType), event)
}