Ivan Belyakov ad1b8b6d43 fix(wallet): added remove event for accounts. Stop loading
transfers for removed account

Updates #10246
2023-06-05 08:22:08 +02:00

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"
)