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

Simulate: Pack transaction reference arrays for unnamed resources #5684

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
53 changes: 52 additions & 1 deletion daemon/algod/api/algod.oas2.json
Expand Up @@ -3944,6 +3944,13 @@
},
"unnamed-resources-accessed": {
"$ref": "#/definitions/SimulateUnnamedResourcesAccessed"
},
"additional-txn-packed-unnamed-resources": {
"description": "todo",
"type": "array",
"items": {
"$ref": "#/definitions/SimulatePackedUnnamedResources"
}
}
}
},
Expand All @@ -3958,7 +3965,7 @@
"$ref": "#/definitions/PendingTransactionResponse"
},
"app-budget-consumed": {
"description": "Budget used during execution of an app call transaction. This value includes budged used by inner app calls spawned by this transaction.",
"description": "Budget used during execution of an app call transaction. This value includes budget used by inner app calls spawned by this transaction.",
"type": "integer"
},
"logic-sig-budget-consumed": {
Expand All @@ -3970,6 +3977,9 @@
},
"unnamed-resources-accessed": {
"$ref": "#/definitions/SimulateUnnamedResourcesAccessed"
},
"packed-unnamed-resources": {
"$ref": "#/definitions/SimulatePackedUnnamedResources"
}
}
},
Expand Down Expand Up @@ -4275,6 +4285,47 @@
}
}
}
},
"SimulatePackedUnnamedResources": {
"description": "todo",
"type": "object",
"properties": {
"accounts": {
"description": "Account references. The order of this array is arbitrary.",
"type": "array",
"items": {
"type": "string",
"x-algorand-format": "Address"
}
},
"assets": {
"description": "Asset references. The order of this array is arbitrary.",
"type": "array",
"items": {
"type": "integer",
"x-algorand-format": "uint64"
}
},
"apps": {
"description": "Application references. The order of this array is arbitrary.",
"type": "array",
"items": {
"type": "integer",
"x-algorand-format": "uint64"
}
},
"boxes": {
"description": "Box references. The order of this array is arbitrary.",
"type": "array",
"items": {
"$ref": "#/definitions/BoxReference"
}
},
"extra-box-refs": {
"description": "Extra box references",
"type": "integer"
}
}
}
},
"parameters": {
Expand Down
53 changes: 52 additions & 1 deletion daemon/algod/api/algod.oas3.yml
Expand Up @@ -2066,6 +2066,47 @@
],
"type": "object"
},
"SimulatePackedUnnamedResources": {
"description": "todo",
"properties": {
"accounts": {
"description": "Account references. The order of this array is arbitrary.",
"items": {
"type": "string",
"x-algorand-format": "Address"
},
"type": "array"
},
"apps": {
"description": "Application references. The order of this array is arbitrary.",
"items": {
"type": "integer",
"x-algorand-format": "uint64"
},
"type": "array"
},
"assets": {
"description": "Asset references. The order of this array is arbitrary.",
"items": {
"type": "integer",
"x-algorand-format": "uint64"
},
"type": "array"
},
"boxes": {
"description": "Box references. The order of this array is arbitrary.",
"items": {
"$ref": "#/components/schemas/BoxReference"
},
"type": "array"
},
"extra-box-refs": {
"description": "Extra box references",
"type": "integer"
}
},
"type": "object"
},
"SimulateRequest": {
"description": "Request type for simulation endpoint.",
"properties": {
Expand Down Expand Up @@ -2145,6 +2186,13 @@
"SimulateTransactionGroupResult": {
"description": "Simulation result for an atomic transaction group",
"properties": {
"additional-txn-packed-unnamed-resources": {
"description": "todo",
"items": {
"$ref": "#/components/schemas/SimulatePackedUnnamedResources"
},
"type": "array"
},
"app-budget-added": {
"description": "Total budget added during execution of app calls in the transaction group.",
"type": "integer"
Expand Down Expand Up @@ -2184,7 +2232,7 @@
"description": "Simulation result for an individual transaction",
"properties": {
"app-budget-consumed": {
"description": "Budget used during execution of an app call transaction. This value includes budged used by inner app calls spawned by this transaction.",
"description": "Budget used during execution of an app call transaction. This value includes budget used by inner app calls spawned by this transaction.",
"type": "integer"
},
"exec-trace": {
Expand All @@ -2194,6 +2242,9 @@
"description": "Budget used during execution of a logic sig transaction.",
"type": "integer"
},
"packed-unnamed-resources": {
"$ref": "#/components/schemas/SimulatePackedUnnamedResources"
},
"txn-result": {
"$ref": "#/components/schemas/PendingTransactionResponse"
},
Expand Down