mirror of
https://github.com/status-im/status-go.git
synced 2025-01-15 09:19:26 +00:00
22 lines
492 B
Go
22 lines
492 B
Go
|
package shhext
|
||
|
|
||
|
import (
|
||
|
"github.com/ethereum/go-ethereum/common"
|
||
|
"github.com/status-im/status-go/geth/signal"
|
||
|
)
|
||
|
|
||
|
// EnvelopeSentSignal includes hash of the sent envelope.
|
||
|
type EnvelopeSentSignal struct {
|
||
|
Hash common.Hash `json:"hash"`
|
||
|
}
|
||
|
|
||
|
// SendEnvelopeSentSignal sends an envelope.sent signal with hash of the envelope.
|
||
|
func SendEnvelopeSentSignal(hash common.Hash) {
|
||
|
signal.Send(signal.Envelope{
|
||
|
Type: signal.EventEnvelopeSent,
|
||
|
Event: EnvelopeSentSignal{
|
||
|
Hash: hash,
|
||
|
},
|
||
|
})
|
||
|
}
|