2023-01-13 19:11:13 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/filecoin-project/go-state-types/abi"
|
|
|
|
)
|
|
|
|
|
2023-02-03 03:10:30 +00:00
|
|
|
// EventEntry flags defined in fvm_shared
|
|
|
|
const (
|
|
|
|
EventFlagIndexedKey = 0b00000001
|
|
|
|
EventFlagIndexedValue = 0b00000010
|
|
|
|
)
|
|
|
|
|
2023-01-13 19:11:13 +00:00
|
|
|
type Event struct {
|
|
|
|
// The ID of the actor that emitted this event.
|
|
|
|
Emitter abi.ActorID
|
|
|
|
|
|
|
|
// Key values making up this event.
|
|
|
|
Entries []EventEntry
|
|
|
|
}
|
|
|
|
|
|
|
|
type EventEntry struct {
|
|
|
|
// A bitmap conveying metadata or hints about this entry.
|
|
|
|
Flags uint8
|
|
|
|
|
|
|
|
// The key of this event entry
|
|
|
|
Key string
|
|
|
|
|
2023-02-07 21:43:18 +00:00
|
|
|
// The event value's codec
|
|
|
|
Codec uint64
|
|
|
|
|
2024-02-07 08:17:46 +00:00
|
|
|
// The event value. It is encoded using the codec specified above
|
2023-01-13 19:11:13 +00:00
|
|
|
Value []byte
|
|
|
|
}
|
|
|
|
|
|
|
|
type FilterID [32]byte // compatible with EthHash
|