From 1f4e84d58e02064d5069875e5957727546a6e971 Mon Sep 17 00:00:00 2001 From: ALPAC-4 Date: Thu, 31 Oct 2024 18:35:10 +0900 Subject: [PATCH 1/2] make rest and rpc endpoint start with https:// --- chain.schema.json | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/chain.schema.json b/chain.schema.json index df2a2b9..5473b21 100644 --- a/chain.schema.json +++ b/chain.schema.json @@ -487,21 +487,21 @@ "rpc": { "type": "array", "items": { - "$ref": "#/$defs/endpoint" + "$ref": "#/$defs/secureEndpoint" }, "minContains": "1" }, "rest": { "type": "array", "items": { - "$ref": "#/$defs/endpoint" + "$ref": "#/$defs/secureEndpoint" }, "minContains": "1" }, "api": { "type": "array", "items": { - "$ref": "#/$defs/endpoint" + "$ref": "#/$defs/secureEndpoint" } }, "grpc": { @@ -694,6 +694,31 @@ }, "additionalProperties": false }, + "secureEndpoint": { + "type": "object", + "required": ["address"], + "properties": { + "address": { + "type": "string", + "format": "uri", + "pattern": "^https://." + }, + "provider": { + "type": "string" + }, + "archive": { + "type": "boolean", + "default": false + }, + "authorizedUser": { + "type": "string" + }, + "indexForSkip": { + "type": "number" + } + }, + "additionalProperties": false + }, "explorer": { "type": "object", "properties": { From 621828b0d279c22c11884995800037236484acdb Mon Sep 17 00:00:00 2001 From: ALPAC-4 Date: Thu, 31 Oct 2024 18:40:58 +0900 Subject: [PATCH 2/2] fix: remove the space --- testnets/milkyway/chain.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testnets/milkyway/chain.json b/testnets/milkyway/chain.json index 2fc7a45..199f8e6 100644 --- a/testnets/milkyway/chain.json +++ b/testnets/milkyway/chain.json @@ -42,7 +42,7 @@ "provider": "MilkyWay Labs" }, { - "address": " https://rpc-skip.testnet.milkyway.zone", + "address": "https://rpc-skip.testnet.milkyway.zone", "provider": "MilkyWay Labs", "authorizedUser": "skip", "indexForSkip": 0