Skip to content

Commit

Permalink
feat(rooch-open-rpc-spec): add avail_backends to DAInfoView
Browse files Browse the repository at this point in the history
Add a required `avail_backends` property to the `DAInfoView` schema. This property is an array of pairs (string and u128) and enforces a strict length of two items in each pair.
  • Loading branch information
popcnt1 committed Jan 20, 2025
1 parent 7c417a0 commit e64f3f8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions crates/rooch-open-rpc-spec/schemas/openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,26 @@
},
"DAInfoView": {
"type": "object",
"required": [
"avail_backends"
],
"properties": {
"avail_backends": {
"type": "array",
"items": {
"type": "array",
"items": [
{
"type": "string"
},
{
"$ref": "#/components/schemas/u128"
}
],
"maxItems": 2,
"minItems": 2
}
},
"last_avail_block_number": {
"anyOf": [
{
Expand Down

0 comments on commit e64f3f8

Please sign in to comment.