Document future API changes
This commit is contained in:
parent
b12714f092
commit
377a3e2157
@ -29,6 +29,9 @@ type ActorEventFilter struct {
|
|||||||
|
|
||||||
// The height of the earliest tipset to include in the query. If empty, the query starts at the
|
// The height of the earliest tipset to include in the query. If empty, the query starts at the
|
||||||
// last finalized tipset.
|
// last finalized tipset.
|
||||||
|
// NOTE: In a future upgrade, this will be strict when set and will result in an error if a filter
|
||||||
|
// cannot be fulfilled by the depth of history available in the node. Currently, the node will
|
||||||
|
// nott return an error, but will return starting from the epoch it has data for.
|
||||||
FromHeight *abi.ChainEpoch `json:"fromHeight,omitempty"`
|
FromHeight *abi.ChainEpoch `json:"fromHeight,omitempty"`
|
||||||
|
|
||||||
// The height of the latest tipset to include in the query. If empty, the query ends at the
|
// The height of the latest tipset to include in the query. If empty, the query ends at the
|
||||||
@ -45,6 +48,8 @@ type ActorEvent struct {
|
|||||||
Entries []EventEntry `json:"entries"`
|
Entries []EventEntry `json:"entries"`
|
||||||
|
|
||||||
// Filecoin address of the actor that emitted this event.
|
// Filecoin address of the actor that emitted this event.
|
||||||
|
// NOTE: In a future upgrade, this will change to always be an ID address. Currently this will be
|
||||||
|
// either the f4 address, or ID address if an f4 is not available for this actor.
|
||||||
Emitter address.Address `json:"emitter"`
|
Emitter address.Address `json:"emitter"`
|
||||||
|
|
||||||
// Reverted is set to true if the message that produced this event was reverted because of a network re-org
|
// Reverted is set to true if the message that produced this event was reverted because of a network re-org
|
||||||
|
@ -2,7 +2,6 @@ package modules
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -141,8 +140,6 @@ func EventFilterManager(cfg config.FevmConfig) func(helpers.MetricsCtx, repo.Loc
|
|||||||
return idAddr, true
|
return idAddr, true
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("")
|
|
||||||
|
|
||||||
return *actor.Address, true
|
return *actor.Address, true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user