Skip to content

Commit

Permalink
model change
Browse files Browse the repository at this point in the history
  • Loading branch information
ahangsu committed Aug 13, 2023
1 parent d030af9 commit ee27164
Show file tree
Hide file tree
Showing 14 changed files with 1,698 additions and 1,313 deletions.
38 changes: 38 additions & 0 deletions daemon/algod/api/algod.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4096,6 +4096,37 @@
}
}
},
"AppStateOperation": {
"description": "An operation against an app global/local/box key-value pair.",
"required": [
"operation-type",
"app-state-type",
"app-id",
"key"
],
"properties": {
"operation-type": {
"description": "Operation type. Value `1` is **create**, `2` is **write**, `3` is **read**, `4` is **delete**.",
"type": "integer"
},
"app-state-type": {
"description": "Type of app state. Value `1` is **global state**, `2` is **local state**, `3` is **boxes**.",
"type": "integer"
},
"app-id": {
"description": "Application index.",
"type": "integer"
},
"key": {
"description": "The key of the global/local/box state get written to.",
"type": "string",
"format": "byte"
},
"new-value": {
"$ref": "#/definitions/AvmValue"
}
}
},
"SimulationOpcodeTraceUnit": {
"description": "The set of trace information and effect from evaluating a single opcode.",
"type": "object",
Expand All @@ -4114,6 +4145,13 @@
"$ref": "#/definitions/ScratchChange"
}
},
"state-changes": {
"description": "The operations against app states.",
"type": "array",
"items": {
"$ref": "#/definitions/AppStateOperation"
}
},
"spawned-inners": {
"description": "The indexes of the traces for inner transactions spawned by this opcode, if any.",
"type": "array",
Expand Down
40 changes: 40 additions & 0 deletions daemon/algod/api/algod.oas3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1200,6 +1200,39 @@
],
"type": "object"
},
"AppStateOperation": {
"description": "An operation against an app global/local/box key-value pair.",
"properties": {
"app-id": {
"description": "Application index.",
"type": "integer"
},
"app-state-type": {
"description": "Type of app state. Value `1` is **global state**, `2` is **local state**, `3` is **boxes**.",
"type": "integer"
},
"key": {
"description": "The key of the global/local/box state get written to.",
"format": "byte",
"pattern": "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$",
"type": "string"
},
"new-value": {
"$ref": "#/components/schemas/AvmValue"
},
"operation-type": {
"description": "Operation type. Value `1` is **create**, `2` is **write**, `3` is **read**, `4` is **delete**.",
"type": "integer"
}
},
"required": [
"app-id",
"app-state-type",
"key",
"operation-type"
],
"type": "object"
},
"Application": {
"description": "Application index and its parameters",
"properties": {
Expand Down Expand Up @@ -2285,6 +2318,13 @@
"stack-pop-count": {
"description": "The number of deleted stack values by this opcode.",
"type": "integer"
},
"state-changes": {
"description": "The operations against app states.",
"items": {
"$ref": "#/components/schemas/AppStateOperation"
},
"type": "array"
}
},
"required": [
Expand Down
299 changes: 151 additions & 148 deletions daemon/algod/api/server/v2/generated/data/routes.go

Large diffs are not rendered by default.

389 changes: 196 additions & 193 deletions daemon/algod/api/server/v2/generated/experimental/routes.go

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions daemon/algod/api/server/v2/generated/model/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ee27164

Please sign in to comment.