From e64f3f8919bc3cca9c7ac3eb598f3d9d2cc52474 Mon Sep 17 00:00:00 2001 From: popcnt1 <142196625+popcnt1@users.noreply.github.com> Date: Tue, 21 Jan 2025 01:26:03 +0800 Subject: [PATCH] feat(rooch-open-rpc-spec): add avail_backends to DAInfoView 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. --- .../rooch-open-rpc-spec/schemas/openrpc.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/crates/rooch-open-rpc-spec/schemas/openrpc.json b/crates/rooch-open-rpc-spec/schemas/openrpc.json index 72a770bd56..d286a49cd8 100644 --- a/crates/rooch-open-rpc-spec/schemas/openrpc.json +++ b/crates/rooch-open-rpc-spec/schemas/openrpc.json @@ -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": [ {