Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
141ab94
Simulate auth addr trickery
jasonpaulos Jan 23, 2024
a3abdc9
initial fix auth addrs implementation
joe-p Feb 23, 2024
404372c
only fix auth addrs for txns that have no sig
joe-p Apr 26, 2024
e2df845
fix linting error
joe-p Apr 29, 2024
af154f0
FixSigners in ResultEvalOverrides
joe-p May 1, 2024
24e8150
test signing various transactions for fix signers
joe-p May 1, 2024
4179503
fix signPayAfterInnerRekey
joe-p May 1, 2024
6cbf130
fix txnHasNoSignature location
joe-p May 1, 2024
a923d71
rm some whitespace
joe-p May 1, 2024
52212d3
check signer in simulate response
joe-p May 1, 2024
9e2e377
more explicit error message checking
joe-p May 1, 2024
156c3e9
FixedSigner in TxnResult
joe-p May 1, 2024
b404899
don't set FixedSigner after failed txn
joe-p May 2, 2024
97970a5
stop static rekey correction after first appl
joe-p May 2, 2024
01ed949
rm TODO comment
joe-p May 2, 2024
16dcb0d
skip setting the FixedSigner when signer == sender
joe-p May 22, 2024
b3adf66
API implementation (not working)
joe-p May 30, 2024
7c494a8
Merge branch 'master' into pr/joe-p/5942
jasonpaulos May 31, 2024
4dc8e62
Merge pull request #1 from jasonpaulos/master-simulate-auth-addr
joe-p Jun 3, 2024
e8cec95
fix conversion of simulate request with FixSigners (resp WIP)
joe-p Jun 3, 2024
8bf0954
don't use fixed zero address for fixed signer
joe-p Jun 4, 2024
8fa89c6
test comments
joe-p Jun 4, 2024
89c20b5
only FixSigners in AfterProgram for outer app calls
joe-p Jun 4, 2024
7dc3716
more inner txn rekey nesting in test
joe-p Jun 4, 2024
1eaf837
Test changes and tweaks
jasonpaulos Jun 6, 2024
c2b9dfb
Merge pull request #3 from jasonpaulos/fix-signers-sub-pr
joe-p Jun 6, 2024
0c018a9
use txnHasNoSignature
joe-p Jun 11, 2024
65cbc51
refactor FixSigner logic in AfterProgram
joe-p Jun 11, 2024
d6e5884
Merge branch 'master' into simulate-auth-addr
joe-p Jun 13, 2024
cf0272f
only lookup account if txn has no sig
joe-p Jun 14, 2024
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
13 changes: 13 additions & 0 deletions daemon/algod/api/algod.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3944,6 +3944,10 @@
},
"exec-trace-config": {
"$ref": "#/definitions/SimulateTraceConfig"
},
"fix-signers": {
"description": "If true, signers for transactions that are missing signatures will be fixed during evaluation.",
"type": "boolean"
}
}
},
Expand Down Expand Up @@ -4287,6 +4291,11 @@
},
"unnamed-resources-accessed": {
"$ref": "#/definitions/SimulateUnnamedResourcesAccessed"
},
"fixed-signer":{
"description": "The account that needed to sign this transaction when no signature was provided and the provided signer was incorrect.",
"type": "string",
"x-algorand-format": "Address"
}
}
},
Expand Down Expand Up @@ -4393,6 +4402,10 @@
"extra-opcode-budget": {
"description": "The extra opcode budget added to each transaction group during simulation",
"type": "integer"
},
"fix-signers": {
"description": "If true, signers for transactions that are missing signatures will be fixed during evaluation.",
"type": "boolean"
}
}
},
Expand Down
13 changes: 13 additions & 0 deletions daemon/algod/api/algod.oas3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2302,6 +2302,10 @@
"description": "Applies extra opcode budget during simulation for each transaction group.",
"type": "integer"
},
"fix-signers": {
"description": "If true, signers for transactions that are missing signatures will be fixed during evaluation.",
"type": "boolean"
},
"round": {
"description": "If provided, specifies the round preceding the simulation. State changes through this round will be used to run this simulation. Usually only the 4 most recent rounds will be available (controlled by the node config value MaxAcctLookback). If not specified, defaults to the latest available round.",
"type": "integer"
Expand Down Expand Up @@ -2408,6 +2412,11 @@
"exec-trace": {
"$ref": "#/components/schemas/SimulationTransactionExecTrace"
},
"fixed-signer": {
"description": "The account that needed to sign this transaction when no signature was provided and the provided signer was incorrect.",
"type": "string",
"x-algorand-format": "Address"
},
"logic-sig-budget-consumed": {
"description": "Budget used during execution of a logic sig transaction.",
"type": "integer"
Expand Down Expand Up @@ -2494,6 +2503,10 @@
"description": "The extra opcode budget added to each transaction group during simulation",
"type": "integer"
},
"fix-signers": {
"description": "If true, signers for transactions that are missing signatures will be fixed during evaluation.",
"type": "boolean"
},
"max-log-calls": {
"description": "The maximum log calls one can make during simulation",
"type": "integer"
Expand Down
428 changes: 215 additions & 213 deletions daemon/algod/api/server/v2/generated/data/routes.go

Large diffs are not rendered by default.

449 changes: 225 additions & 224 deletions daemon/algod/api/server/v2/generated/experimental/routes.go

Large diffs are not rendered by default.

9 changes: 9 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.

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

Loading