Skip to content

Commit

Permalink
Merge pull request #2342 from planetarium/PDX-203-config-json-schema
Browse files Browse the repository at this point in the history
PDX-203: add config.schema.json
  • Loading branch information
moreal authored Dec 6, 2023
2 parents 68761cc + 2ec5092 commit ad4f08e
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 0 deletions.
1 change: 1 addition & 0 deletions config.json.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "./config.schema.json",
"data": {
"tablePath": "Lib9c/Lib9c/TableCSV"
},
Expand Down
103 changes: 103 additions & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Genesis config",
"description": "Config file for headless genesis block generation",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"tablePath": {
"type": "string"
}
}
},
"currency": {
"type": "object",
"properties": {
"initialMinter": {
"type": "string"
},
"initialCurrencyDeposit": {
"type": "array",
"items": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"amount": {
"type": "integer"
},
"start": {
"type": "integer"
},
"end": {
"type": "integer"
}
}
}
}
}
},
"admin": {
"type": "object",
"properties": {
"activate": {
"type": "boolean"
},
"address": {
"type": "string"
},
"validUntil": {
"type": "integer"
}
}
},
"initialValidatorSet": {
"type": "array",
"items": {
"type": "object",
"properties": {
"publicKey": {
"type": "string"
},
"power": {
"type": "integer"
}
}
}
},
"initialMeadConfigs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"amount": {
"type": "string"
}
}
}
},
"initialPledgeConfigs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"agentAddress": {
"type": "string"
},
"patronAddress": {
"type": "string"
},
"mead": {
"type": "string"
}
}
}
}
}
}

0 comments on commit ad4f08e

Please sign in to comment.