Skip to content

Commit 2a7f1de

Browse files
committed
feat(gateway): add F3GetCertificate & F3GetLatestCertificate to gateway
1 parent 4f29e2e commit 2a7f1de

File tree

9 files changed

+858
-465
lines changed

9 files changed

+858
-465
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- Add json output of tipsets to `louts chain list`. ([filecoin-project/lotus#12691](https://github.com/filecoin-project/lotus/pull/12691))
1313
- 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)
1414
- 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))
15+
- Add F3GetCertificate & F3GetLatestCertificate to the gateway. ([filecoin-project/lotus#12778](https://github.com/filecoin-project/lotus/pull/12778))
1516

1617
# UNRELEASED v.1.32.0
1718

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)