Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 95 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 @@ -3078,6 +3078,100 @@
}
},
"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"
},
"stprf": {
"type": "string"
},
"vote": {
"type": "string"
},
"voteKD": {
"type": "number"
},
"voteFst": {
"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"
}
},
"comment": {
"type": "string"
},
"devmode": {
"type": "boolean"
},
"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
96 changes: 95 additions & 1 deletion daemon/algod/api/algod.oas3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2053,6 +2053,100 @@
],
"type": "object"
},
"Genesis": {
"properties": {
"alloc": {
"items": {
"$ref": "#/components/schemas/GenesisAllocation"
},
"type": "array"
},
"comment": {
"type": "string"
},
"devmode": {
"type": "boolean"
},
"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"
],
"title": "Genesis File in JSON",
"type": "object"
},
"GenesisAllocation": {
"properties": {
"addr": {
"type": "string"
},
"comment": {
"type": "string"
},
"state": {
"properties": {
"algo": {
"type": "number"
},
"onl": {
"type": "number"
},
"sel": {
"type": "string"
},
"stprf": {
"type": "string"
},
"vote": {
"type": "string"
},
"voteFst": {
"type": "number"
},
"voteKD": {
"type": "number"
},
"voteLst": {
"type": "number"
}
},
"required": [
"algo"
],
"type": "object"
}
},
"required": [
"addr",
"comment",
"state"
],
"title": "Allocations for Genesis File",
"type": "object"
},
"LedgerStateDelta": {
"description": "Ledger StateDelta object",
"type": "object",
Expand Down Expand Up @@ -2838,7 +2932,7 @@
"content": {
"application/json": {
"schema": {
"type": "string"
"$ref": "#/components/schemas/Genesis"
}
}
},
Expand Down
Loading
Loading