Skip to content

Commit

Permalink
make rest ,rpc and api endpoint start with https:// (#209)
Browse files Browse the repository at this point in the history
* make rest and rpc endpoint start with https://

* fix: remove the space
  • Loading branch information
ALPAC-4 authored Oct 31, 2024
1 parent c37277b commit dbae3ab
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
31 changes: 28 additions & 3 deletions chain.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion testnets/milkyway/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbae3ab

Please sign in to comment.