We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forest wants to use Lotus' OpenRPC definitions to ensure RPC compatibility. But we've found that most endpoints are incorrect.
Here are some examples:
Snippets are taken from Lotus' OpenRPC definitions, and extraneous items have been redacted for brevity. Tested against Lotus v1.23.3
{ "name": "Filecoin.WalletList", "result": { "description": "[]address.Address", "schema": { "items": [ { "additionalProperties": false, "type": [ "object" ] } ], "type": [ "array" ] }, "required": true, } },
Claims to return an array of empty objects: [ {}, {}, {} ], but actually returns an array of strings
array
object
[ {}, {}, {} ]
string
{ "name": "Filecoin.ChainHasObj", "params": [ { "description": "cid.Cid", "schema": { "examples": [ { "/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4" } ], "type": [ "string" ] }, "required": true, } ],
Claims to accept a string but in actually accepts only objects like { "/": "<some CID>" }. Note that the example does match the schema.
{ "/": "<some CID>" }
Filecoin.Version does not appear in the schema, but is callable, and appears in the documentation
Filecoin.Version
The text was updated successfully, but these errors were encountered:
@aatifsyed Should it be rather an issue in lotus?
Sorry, something went wrong.
filecoin-project/lotus#12164
No branches or pull requests
Forest wants to use Lotus' OpenRPC definitions to ensure RPC compatibility.
But we've found that most endpoints are incorrect.
Here are some examples:
Snippets are taken from Lotus' OpenRPC definitions, and extraneous items have been redacted for brevity.
Tested against Lotus v1.23.3
Objects in spec do not match objects in practice
Claims to return an
array
of emptyobject
s:[ {}, {}, {} ]
, but actually returns anarray
ofstring
sClaims to accept a
string
but in actually accepts only objects like{ "/": "<some CID>" }
.Note that the example does match the schema.
The schema does not represent all (stable) endpoints
Filecoin.Version
does not appear in the schema, but is callable, and appears in the documentationThe text was updated successfully, but these errors were encountered: