Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

algod:Stateproof server api #3888

Merged
merged 19 commits into from
May 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
adding new API to daemon/algod
  • Loading branch information
algonathan committed Apr 14, 2022
commit def43ae965f30264d9286295ddcf6728da5897a7
79 changes: 67 additions & 12 deletions daemon/algod/api/algod.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,50 @@
}
]
},
"/v2/transactions/state-proof": {
"get": {
"produces": [
"application/json"
],
"schemes": [
"http"
],
"summary": "Get the state proof transaction for a given round",
"operationId": "StateProof",
"responses": {
"200": {
"$ref": "#/components/responses/StateProofResponse"
},
"401": {
"description": "Invalid API Token",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"404": {
"description": "State proof transaction not found",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"500": {
"description": "Internal Error",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"503": {
"description": "Service Temporarily Unavailable",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
},
"default": {
"description": "Unknown Error"
}
}
}
},
"/v2/applications/{application-id}": {
"get": {
"description": "Given a application ID, it returns application information including creator, approval and clear programs, global and local schemas, and global state.",
Expand Down Expand Up @@ -1295,7 +1339,7 @@
"name": "application-id",
"in": "path",
"required": true
}
}
]
},
"/v2/assets/{asset-id}": {
Expand Down Expand Up @@ -1358,7 +1402,7 @@
"name": "asset-id",
"in": "path",
"required": true
}
}
]
},
"/v2/teal/compile": {
Expand Down Expand Up @@ -1776,8 +1820,8 @@
"properties": {
"amount": {
"description": "\\[a\\] number of units held.",
"type": "integer",
"x-algorand-format": "uint64"
"type": "integer",
"x-algorand-format": "uint64"
},
"asset-id": {
"description": "Asset ID of the holding.",
Expand Down Expand Up @@ -2401,7 +2445,7 @@
"asset-index": {
"description": "The asset index if the transaction was found and it created an asset.",
"type": "integer"
},
},
"application-index": {
"description": "The application index if the transaction was found and it created an application.",
"type": "integer"
Expand Down Expand Up @@ -2462,10 +2506,17 @@
},
"txn": {
"description": "The raw signed transaction.",
"type": "object",
"type": "object",
"x-algorand-format": "SignedTransaction"
}
}
},
"StateProof": {
"description": "StateProof transaction.",
"type": "object",
"required": [
],
"properties": {}
}
},
"parameters": {
Expand Down Expand Up @@ -2639,6 +2690,12 @@
}
},
"responses": {
"StateProofResponse": {
"description": "StateProof transaction.",
"schema": {
"$ref": "#/definitions/StateProof"
}
},
"AccountResponse": {
"description": "AccountResponse wraps the Account type in a response.",
"schema": {
Expand Down Expand Up @@ -2679,7 +2736,7 @@
"round": {
"description": "The round for which this information is relevant.",
"type": "integer"
},
},
"app-local-state": {
"description": "\\[appl\\] the application local data stored in this account.\n\nThe raw account uses `AppLocalState` for this type.",
"$ref": "#/definitions/ApplicationLocalState"
Expand Down Expand Up @@ -2772,7 +2829,7 @@
}
}
},
"CatchpointAbortResponse":{
"CatchpointAbortResponse": {
"tags": [
"private"
],
Expand Down Expand Up @@ -2908,12 +2965,12 @@
"$ref": "#/definitions/ParticipationKey"
}
},
"PostParticipationResponse" : {
"PostParticipationResponse": {
"description": "Participation ID of the submission",
"schema": {
"type": "object",
"required": [
"partId"
"partId"
],
"properties": {
"partId": {
Expand All @@ -2922,9 +2979,7 @@
}
}
}

},

"PostTransactionsResponse": {
"description": "Transaction ID of the submission.",
"schema": {
Expand Down
69 changes: 69 additions & 0 deletions daemon/algod/api/algod.oas3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,16 @@
},
"description": "Proof of transaction in a block."
},
"StateProofResponse": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/StateProof"
}
}
},
"description": "StateProof transaction."
},
"SupplyResponse": {
"content": {
"application/json": {
Expand Down Expand Up @@ -1542,6 +1552,10 @@
},
"type": "array"
},
"StateProof": {
"description": "StateProof transaction.",
"type": "object"
},
"TealKeyValue": {
"description": "Represents a key-value pair in an application store.",
"properties": {
Expand Down Expand Up @@ -4197,6 +4211,61 @@
"summary": "Get a specific pending transaction."
}
},
"/v2/transactions/state-proof": {
"get": {
"operationId": "StateProof",
"responses": {
"200": {
"$ref": "#/components/responses/StateProofResponse"
},
"401": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
},
"description": "Invalid API Token"
},
"404": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
},
"description": "State proof transaction not found"
},
"500": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
},
"description": "Internal Error"
},
"503": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
},
"description": "Service Temporarily Unavailable"
},
"default": {
"content": {},
"description": "Unknown Error"
}
},
"summary": "Get the state proof transaction for a given round"
}
},
"/versions": {
"get": {
"description": "Retrieves the supported API versions, binary build versions, and genesis information.",
Expand Down
Loading