Skip to content

Commit

Permalink
add rpc json new command
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Sep 13, 2024
1 parent 163e7b2 commit 31e0321
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions rpc/api/generated_rpc_schema/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -4173,6 +4173,57 @@
}
}
}
},
{
"name": "chain.is_ancestor_of",
"params": [
{
"name": "ancestor",
"schema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "HashValue",
"type": "string",
"format": "HashValue"
}
},
{
"name": "descendants",
"schema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Array_of_HashValue",
"type": "array",
"items": {
"type": "string",
"format": "HashValue"
}
}
}
],
"result": {
"name": "starcoin_dag :: consensusdb :: consenses_state :: ReachabilityView",
"schema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ReachabilityView",
"type": "object",
"required": [
"ancestor",
"descendants"
],
"properties": {
"ancestor": {
"type": "string",
"format": "HashValue"
},
"descendants": {
"type": "array",
"items": {
"type": "string",
"format": "HashValue"
}
}
}
}
}
}
]
}

0 comments on commit 31e0321

Please sign in to comment.