Skip to content

Commit

Permalink
fix: genesis oas2 definition
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed Oct 28, 2024
1 parent e531e0e commit 48a93f3
Showing 1 changed file with 83 additions and 1 deletion.
84 changes: 83 additions & 1 deletion daemon/algod/api/algod.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"200": {
"description": "The genesis file in json.",
"schema": {
"type": "string"
"$ref": "#/definitions/Genesis"
}
},
"default": {
Expand Down Expand Up @@ -3054,6 +3054,88 @@
}
},
"definitions": {
"GenesisAllocation":{
"title": "Allocations for Genesis File",
"type": "object",
"properties": {
"addr": {
"type": "string"
},
"comment": {
"type": "string"
},
"state": {
"type": "object",
"properties": {
"algo": {
"type": "number"
},
"onl": {
"type": "number"
},
"sel": {
"type": "string"
},
"vote": {
"type": "string"
},
"voteKD": {
"type": "number"
},
"voteLst": {
"type": "number"
}
},
"required": [
"algo"
]
}
},
"required": [
"addr",
"comment",
"state"
]
},
"Genesis":{
"title": "Genesis File in JSON",
"type": "object",
"properties": {
"alloc": {
"type": "array",
"items": {
"$ref": "#/definitions/GenesisAllocation"
}
},
"fees": {
"type": "string"
},
"id": {
"type": "string"
},
"network": {
"type": "string"
},
"proto": {
"type": "string"
},
"rwd": {
"type": "string"
},
"timestamp": {
"type": "number"
}
},
"required": [
"alloc",
"fees",
"id",
"network",
"proto",
"rwd",
"timestamp"
]
},
"LedgerStateDelta": {
"description": "Ledger StateDelta object",
"type": "object",
Expand Down

0 comments on commit 48a93f3

Please sign in to comment.