diff --git a/api/docgen/docgen.go b/api/docgen/docgen.go index eac266a1684..cecc79886e0 100644 --- a/api/docgen/docgen.go +++ b/api/docgen/docgen.go @@ -105,6 +105,31 @@ func init() { addExample(f3Lease) addExample(&f3Lease) + f3Cert := certs.FinalityCertificate{ + GPBFTInstance: 0, + ECChain: []gpbft.TipSet{ + { + Epoch: 0, + Key: tsk.Bytes(), + PowerTable: c, + }, + }, + SupplementalData: gpbft.SupplementalData{ + PowerTable: c, + }, + Signers: bitfield.NewFromSet([]uint64{2, 3, 5, 7}), + Signature: []byte("UnDadaSeA"), + PowerTableDelta: []certs.PowerTableDelta{ + { + ParticipantID: 0, + PowerDelta: gpbft.StoragePower{}, + SigningKey: []byte("BaRrelEYe"), + }, + }, + } + addExample(f3Cert) + addExample(&f3Cert) + block := blocks.Block(&blocks.BasicBlock{}) ExampleValues[reflect.TypeOf(&block).Elem()] = block @@ -429,7 +454,6 @@ func init() { FromHeight: epochPtr(1010), ToHeight: epochPtr(1020), }) - addExample(&certs.FinalityCertificate{}) addExample(&manifest.Manifest{}) addExample(gpbft.NetworkName("filecoin")) addExample(gpbft.ActorID(1000)) diff --git a/build/openrpc/full.json b/build/openrpc/full.json index 9517c26d6ae..1dcaf298e85 100644 --- a/build/openrpc/full.json +++ b/build/openrpc/full.json @@ -7084,15 +7084,45 @@ "examples": [ { "GPBFTInstance": 0, - "ECChain": null, + "ECChain": [ + { + "Key": [ + { + "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" + }, + { + "/": "bafy2bzacebp3shtrn43k7g3unredz7fxn4gj533d3o43tqn2p2ipxxhrvchve" + } + ], + "Commitments": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", + "Epoch": 0, + "PowerTable": { + "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" + } + } + ], "SupplementalData": { "Commitments": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", - "PowerTable": null + "PowerTable": { + "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" + } }, "Signers": [ - 0 + 2, + 2, + 1, + 1, + 1, + 1 ], - "Signature": null + "Signature": "VW5EYWRhU2VB", + "PowerTableDelta": [ + { + "ParticipantID": 0, + "PowerDelta": "0", + "SigningKey": "QmFScmVsRVll" + } + ] } ], "additionalProperties": false, @@ -7383,15 +7413,45 @@ "examples": [ { "GPBFTInstance": 0, - "ECChain": null, + "ECChain": [ + { + "Key": [ + { + "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" + }, + { + "/": "bafy2bzacebp3shtrn43k7g3unredz7fxn4gj533d3o43tqn2p2ipxxhrvchve" + } + ], + "Commitments": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", + "Epoch": 0, + "PowerTable": { + "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" + } + } + ], "SupplementalData": { "Commitments": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", - "PowerTable": null + "PowerTable": { + "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" + } }, "Signers": [ - 0 + 2, + 2, + 1, + 1, + 1, + 1 ], - "Signature": null + "Signature": "VW5EYWRhU2VB", + "PowerTableDelta": [ + { + "ParticipantID": 0, + "PowerDelta": "0", + "SigningKey": "QmFScmVsRVll" + } + ] } ], "additionalProperties": false, diff --git a/documentation/en/api-v1-unstable-methods.md b/documentation/en/api-v1-unstable-methods.md index 129410ab332..12077ab5790 100644 --- a/documentation/en/api-v1-unstable-methods.md +++ b/documentation/en/api-v1-unstable-methods.md @@ -2417,15 +2417,45 @@ Response: ```json { "GPBFTInstance": 0, - "ECChain": null, + "ECChain": [ + { + "Key": [ + { + "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" + }, + { + "/": "bafy2bzacebp3shtrn43k7g3unredz7fxn4gj533d3o43tqn2p2ipxxhrvchve" + } + ], + "Commitments": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", + "Epoch": 0, + "PowerTable": { + "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" + } + } + ], "SupplementalData": { "Commitments": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", - "PowerTable": null + "PowerTable": { + "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" + } }, "Signers": [ - 0 + 2, + 2, + 1, + 1, + 1, + 1 ], - "Signature": null + "Signature": "VW5EYWRhU2VB", + "PowerTableDelta": [ + { + "ParticipantID": 0, + "PowerDelta": "0", + "SigningKey": "QmFScmVsRVll" + } + ] } ``` @@ -2503,15 +2533,45 @@ Response: ```json { "GPBFTInstance": 0, - "ECChain": null, + "ECChain": [ + { + "Key": [ + { + "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" + }, + { + "/": "bafy2bzacebp3shtrn43k7g3unredz7fxn4gj533d3o43tqn2p2ipxxhrvchve" + } + ], + "Commitments": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", + "Epoch": 0, + "PowerTable": { + "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" + } + } + ], "SupplementalData": { "Commitments": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=", - "PowerTable": null + "PowerTable": { + "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" + } }, "Signers": [ - 0 + 2, + 2, + 1, + 1, + 1, + 1 ], - "Signature": null + "Signature": "VW5EYWRhU2VB", + "PowerTableDelta": [ + { + "ParticipantID": 0, + "PowerDelta": "0", + "SigningKey": "QmFScmVsRVll" + } + ] } ```