Skip to content

Commit

Permalink
Merge pull request #7 from KYVENetwork/friewe/schema-validator
Browse files Browse the repository at this point in the history
Added Schema Validator
  • Loading branch information
christopherbrumm authored Nov 28, 2023
2 parents eb2799e + 6f2c7e5 commit c91c840
Show file tree
Hide file tree
Showing 13 changed files with 408 additions and 83 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# https://help.github.com/articles/about-codeowners

* @mbreithecker @troykessler @christopherbrumm @shifty11
* @fabianriewe @mbreithecker @troykessler @christopherbrumm @shifty11
120 changes: 120 additions & 0 deletions .github/schemas/source.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"source-id": {
"type": "string"
},
"config-version": {
"type": "integer"
},
"networks": {
"type": "object",
"properties": {
"kyve-1": {
"$ref": "#/definitions/network"
},
"kaon-1": {
"$ref": "#/definitions/network"
}
},
"additionalProperties": false
}
},
"required": [
"source-id",
"config-version",
"networks"
],
"additionalProperties": false,
"definitions": {
"properties": {
"type": "object",
"properties": {
"hex": {
"type": "string",
"pattern": "^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"logo": {
"type": "string"
}
},
"additionalProperties": false,
"required": [
"title"
]
},
"network": {
"type": "object",
"properties": {
"pools": {
"type": "array",
"items": {
"$ref": "#/definitions/pool"
}
},
"integrations": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/integration"
}
},
"properties": {
"$ref": "#/definitions/properties"
}
},
"additionalProperties": false
},
"pool": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"runtime": {
"type": "string"
}
},
"required": [
"id"
]
},
"integration": {
"type": "object",
"properties": {
"ksync": {
"type": "object",
"properties": {
"binary-name": {
"type": "string"
},
"block-sync-pool": {
"type": "integer"
},
"docs-url": {
"type": "string"
},
"state-sync-pool": {
"type": "integer"
}
},
"required": [
"binary-name",
"block-sync-pool",
"docs-url"
]
},
"elt": {
"type": "object"
}
},
"additionalProperties": true
}
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
# Editor-based HTTP Client requests
/httpRequests/
/.idea
# ignoring built registry to avoid a push
registry.yml
41 changes: 31 additions & 10 deletions archway-1/config.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
# Global information
source:
source-id: "archway-1"
config-version: 1
properties:
title: "Archway"
chain_id: "archway-1"
hex: "#e45121"
logo: "ar://hKb8dVx4E1NCUJ_BlhNOcyfQEta5r38SBXqsfPnAsWE"

# Mainnet pools
kyve-1:
block_pool_id: 2
state_pool_id: 4
networks:
# Mainnet pools
kyve-1:
pools:
- id: 2
runtime: "kyvejs/tendermint"
- id: 4
runtime: "kyvejs/tendermint-ssync"
integrations:
ksync:
binary-name: "archwayd"
block-sync-pool: 2
docs-url: "https://docs.archway.io/"
state-sync-pool: 4

# Testnet pools
kaon-1:
block_pool_id: 2
state_pool_id: 4
# Testnet pools
kaon-1:
pools:
- id: 2
runtime: "kyvejs/tendermint"
- id: 4
runtime: "kyvejs/tendermint-ssync"
integrations:
ksync:
binary-name: "archwayd"
block-sync-pool: 2
docs-url: "https://docs.archway.io/"
state-sync-pool: 4
33 changes: 25 additions & 8 deletions axelar-dojo-1/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
# Global information
source:
source-id: "axelar-dojo-1"
config-version: 1
properties:
title: "Axelar"
chain_id: "axelar-dojo-1"
hex: "#5cc1fa"
logo: "ar://iW1jN99yH_gdQtRhf5J_lVwOIu8p_i7FyxEgoQAkWxU"

# Mainnet pools
kyve-1:
block_pool_id: 3
networks:
# Mainnet pools
kyve-1:
pools:
- id: 3
runtime: "kyvejs/tendermint"
integrations:
ksync:
binary-name: "axelard"
block-sync-pool: 3
docs-url: "https://docs.axelar.dev/"

# Testnet pools
kaon-1:
block_pool_id: 3
# Testnet pools
kaon-1:
pools:
- id: 1
runtime: "kyvejs/tendermint"
integrations:
ksync:
binary-name: "axelard"
block-sync-pool: 3
docs-url: "https://docs.axelar.dev/"
33 changes: 25 additions & 8 deletions cosmoshub-4/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,30 @@
# Global information
source:
source-id: "cosmoshub-4"
config-version: 1
properties:
title: "Cosmos Hub"
chain_id: "cosmoshub-4"
hex: "#6f3048"
logo: "ar://TCHDYB2xfk4VcWqyxApoWiFgr354gNSMdIliv2KnkRo"

# Mainnet pools
kyve-1:
block_pool_id: 0
networks:
# Mainnet pools
kyve-1:
pools:
- id: 0
runtime: "kyvejs/tendermint-bsync"
integrations:
ksync:
binary-name: "gaiad"
block-sync-pool: 0
docs-url: "https://docs.cosmos.network/"

# Testnet pools
kaon-1:
block_pool_id: 0
# Testnet pools
kaon-1:
pools:
- id: 0
runtime: "kyvejs/tendermint-bsync"
integrations:
ksync:
binary-name: "gaiad"
block-sync-pool: 0
docs-url: "https://docs.cosmos.network/"
44 changes: 33 additions & 11 deletions cronosmainnet_25-1/config.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
# Global information
source:
title: "Cronos"
chain_id: "cronosmainnet_25-1"
source-id: "cronosmainnet_25-1"
config-version: 1
properties:
hex: "#191b34"
logo: "ar://BbNmwRFv11y68Jiele3wxZNYQTqRVn_ZK6BwJ5S2MCE"
title: "Cronos"

networks:
# Mainnet pools
kyve-1:
pools:
- id: 5
runtime: "kyvejs/tendermint"
- id: 6
runtime: "kyvejs/tendermint-bsync"
integrations:
ksync:
binary: "cronosd"
block-sync-pool: 5
docs: "https://docs.cronos.org/"
state-sync-pool: 6

# Mainnet pools
kyve-1:
block_pool_id: 5
state_pool_id: 6
# Testnet pools
kaon-1:
pools:
- id: 6
runtime: "kyvejs/tendermint"
- id: 7
runtime: "kyvejs/tendermint-bsync"
integrations:
ksync:
binary: "cronosd"
block-sync-pool: 6
docs: "https://docs.cronos.org/"
state-sync-pool: 7

# Testnet pools
kaon-1:
block_pool_id: 6
state_pool_id: 7
27 changes: 18 additions & 9 deletions dydx-mainnet-1/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
# Global information
source:
source-id: "dydx-mainnet-1"
config-version: 1
properties:
title: "dYdX"
chain_id: "dydx-mainnet-1"
hex: "#12121d"
logo: "ar://34RVRPI9Ume67ZdNhqwQ42GkZa0NoulBXNiJFJQZ6uc"

# Mainnet pools
kyve-1: {}

# Testnet pools
kaon-1:
block_pool_id: 8
state_pool_id: 9
networks:
# Testnet pools
kaon-1:
pools:
- id: 8
runtime: "kyvejs/tendermint"
- id: 9
runtime: "kyvejs/tendermint-ssync"
integrations:
ksync:
binary-name: "dydxprotocold"
block-sync-pool: 8
docs-url: "https://docs.dydx.exchange/"
state-sync-pool: 9
Loading

0 comments on commit c91c840

Please sign in to comment.