cdf3812e40
Co-authored-by: Steven Allen <steven@stebalien.com> Co-authored-by: Raul Kripalani <raulk@users.noreply.github.com> Co-authored-by: Kevin Li <ychiaoli18@users.noreply.github.com> Co-authored-by: vyzo <vyzo@hackzen.org> Co-authored-by: Ian Davis <nospam@iandavis.com> Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com> Co-authored-by: Jiaying Wang <42981373+jennijuju@users.noreply.github.com> Co-authored-by: Jennifer Wang <jiayingw703@gmail.com> Co-authored-by: Geoff Stuart <geoff.vball@gmail.com> Co-authored-by: Shrenuj Bansal <shrenuj.bansal@protocol.ai> Co-authored-by: Shrenuj Bansal <108157875+shrenujbansal@users.noreply.github.com> Co-authored-by: Geoff Stuart <geoffrey.stuart@protocol.ai> Co-authored-by: Aayush Rajasekaran <aayushrajasekaran@Aayushs-MacBook-Pro.local> Co-authored-by: ZenGround0 <5515260+ZenGround0@users.noreply.github.com> Co-authored-by: zenground0 <ZenGround0@users.noreply.github.com>
33 lines
599 B
Go
33 lines
599 B
Go
package types
|
|
|
|
import (
|
|
"github.com/filecoin-project/go-state-types/abi"
|
|
)
|
|
|
|
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
|
|
|
|
// Any DAG-CBOR encodeable type.
|
|
Value []byte
|
|
}
|
|
|
|
type FilterID [32]byte // compatible with EthHash
|
|
|
|
// EventEntry flags defined in fvm_shared
|
|
const (
|
|
EventFlagIndexedKey = 0b00000001
|
|
EventFlagIndexedValue = 0b00000010
|
|
)
|