Skip to content

Commit 58c1ed8

Browse files
authored
chore: generate v0 JSON RPC specification (#13155)
* Generate v0 JSON RPC specification Consistently generate v0 JSON RPC specification, similar to what's provided for v1 and v2. Fixes #13153
1 parent 817d6af commit 58c1ed8

File tree

4 files changed

+5863
-2
lines changed

4 files changed

+5863
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- feat(spcli): make settle-deal optionally take deal id ranges ([filecoin-project/lotus#13146](https://github.com/filecoin-project/lotus/pull/13146))
2121
- fix(f3): properly wire up eth v2 APIs for f3 ([filecoin-project/lotus#13149](https://github.com/filecoin-project/lotus/pull/13149))
2222
- `lotus state active-sectors` now outputs CSV format and supports an optional `--show-partitions` to list active sector deadlines and partitions. ([filecoin-project/lotus#13152](https://github.com/filecoin-project/lotus/pull/13152))
23+
- chore: generate v0 JSON RPC specification ([filecoin-project/lotus#13155](https://github.com/filecoin-project/lotus/pull/13155))
2324

2425
# Node v1.33.0 / 2025-05-08
2526
The Lotus v1.33.0 release introduces experimental v2 APIs with F3 awareness, featuring a new TipSet selection mechanism that significantly enhances how applications interact with the Filecoin blockchain. This release candidate also adds F3-aware Ethereum APIs via the /v2 endpoint. All of the /v2 APIs implement intelligent fallback mechanisms between F3 and Expected Consensus and are exposed through the Lotus Gateway.

api/docgen/docgen.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,10 @@ func GetAPIType(name, pkg string) (i interface{}, t reflect.Type, permStruct []r
521521
permStruct = append(permStruct, reflect.TypeOf(v0api.FullNodeStruct{}.Internal))
522522
permStruct = append(permStruct, reflect.TypeOf(v0api.CommonStruct{}.Internal))
523523
permStruct = append(permStruct, reflect.TypeOf(v0api.NetStruct{}.Internal))
524+
case "Gateway":
525+
i = &v0api.GatewayStruct{}
526+
t = reflect.TypeOf(new(struct{ v0api.Gateway })).Elem()
527+
permStruct = append(permStruct, reflect.TypeOf(v0api.GatewayStruct{}.Internal))
524528
default:
525529
panic("unknown type")
526530
}

0 commit comments

Comments
 (0)