Skip to content

Commit 394aeee

Browse files
rvaggrjan90
authored andcommitted
feat(gateway): add F3GetCertificate & F3GetLatestCertificate to gateway (#12778)
1 parent 6eebd30 commit 394aeee

11 files changed

+899
-465
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ For certain node operators, such as full archival nodes or systems that need to
4949
- Fix checkpointed tipsets being expanded ([filecoin-project/lotus#12747](https://github.com/filecoin-project/lotus/pull/12747))
5050
- Remove IPNI advertisement relay over pubsub via Lotus node as it now has been deprecated. ([filecoin-project/lotus#12768](https://github.com/filecoin-project/lotus/pull/12768)
5151
- During a network upgrade, log migration progress every 2 seconds so they are more helpful and informative. The `LOTUS_MIGRATE_PROGRESS_LOG_SECONDS` environment variable can be used to change this if needed. ([filecoin-project/lotus#12732](https://github.com/filecoin-project/lotus/pull/12732))
52+
- Add F3GetCertificate & F3GetLatestCertificate to the gateway. ([filecoin-project/lotus#12778](https://github.com/filecoin-project/lotus/pull/12778))
5253

5354
## Bug Fixes
5455

api/api_gateway.go

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"github.com/ipfs/go-cid"
88

99
"github.com/filecoin-project/go-address"
10+
"github.com/filecoin-project/go-f3/certs"
1011
"github.com/filecoin-project/go-jsonrpc"
1112
"github.com/filecoin-project/go-state-types/abi"
1213
verifregtypes "github.com/filecoin-project/go-state-types/builtin/v9/verifreg"
@@ -141,4 +142,7 @@ type Gateway interface {
141142
GetActorEventsRaw(ctx context.Context, filter *types.ActorEventFilter) ([]*types.ActorEvent, error)
142143
SubscribeActorEventsRaw(ctx context.Context, filter *types.ActorEventFilter) (<-chan *types.ActorEvent, error)
143144
ChainGetEvents(context.Context, cid.Cid) ([]types.Event, error)
145+
146+
F3GetCertificate(ctx context.Context, instance uint64) (*certs.FinalityCertificate, error)
147+
F3GetLatestCertificate(ctx context.Context) (*certs.FinalityCertificate, error)
144148
}

api/proxy_gen.go

+26
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)