mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 06:12:55 +00:00
ad1b8b6d43
transfers for removed account Updates #10246
20 lines
484 B
Go
20 lines
484 B
Go
package accountsevent
|
|
|
|
import "github.com/ethereum/go-ethereum/common"
|
|
|
|
// EventType type for event types.
|
|
type EventType string
|
|
|
|
// Event is a type for accounts events.
|
|
type Event struct {
|
|
Type EventType `json:"type"`
|
|
Accounts []common.Address `json:"accounts"`
|
|
}
|
|
|
|
const (
|
|
// EventTypeAdded is emitted when a new account is added.
|
|
EventTypeAdded EventType = "added"
|
|
// EventTypeRemoved is emitted when an account is removed.
|
|
EventTypeRemoved EventType = "removed"
|
|
)
|