github.com/status-im/status-go@v1.1.0/services/accounts/accountsevent/events.go (about)

     1  package accountsevent
     2  
     3  import "github.com/ethereum/go-ethereum/common"
     4  
     5  // EventType type for event types.
     6  type EventType string
     7  
     8  // Event is a type for accounts events.
     9  type Event struct {
    10  	Type     EventType        `json:"type"`
    11  	Accounts []common.Address `json:"accounts"`
    12  }
    13  
    14  const (
    15  	// EventTypeAdded is emitted when a new account is added.
    16  	EventTypeAdded EventType = "added"
    17  	// EventTypeRemoved is emitted when an account is removed.
    18  	EventTypeRemoved EventType = "removed"
    19  )