-
Notifications
You must be signed in to change notification settings - Fork 622
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
runtime: start lifting contract preparation up through tx runtime layers #11810
Commits on Jul 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a53ba63 - Browse repository at this point
Copy the full SHA a53ba63View commit details
Commits on Jul 11, 2024
-
Move local receipts into ApplyProcessingReceiptState
With this all receipts are accounted for within this structure. Next up will be moving the iteration over receipts to happen internally within this structure, which would then allow us to also peek, etc.
Configuration menu - View commit details
-
Copy full SHA for fc990e0 - Browse repository at this point
Copy the full SHA fc990e0View commit details -
runtime: change local receipt processing to use a queue
This now allows introducing some hooks for pipelined preparation into the receipt execution loop.
Configuration menu - View commit details
-
Copy full SHA for b3dd149 - Browse repository at this point
Copy the full SHA b3dd149View commit details
Commits on Jul 18, 2024
-
vm: split out the contract code access into trait
It appears that having the contract code access bundled into Externals wasn't particularly helping with lifting the contract preparation up. As a demo I have lifted the preparation to happen before the RuntimeExt is constructed...
Configuration menu - View commit details
-
Copy full SHA for 056a9d4 - Browse repository at this point
Copy the full SHA 056a9d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d98384 - Browse repository at this point
Copy the full SHA 2d98384View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cb8076 - Browse repository at this point
Copy the full SHA 0cb8076View commit details -
Configuration menu - View commit details
-
Copy full SHA for c68f479 - Browse repository at this point
Copy the full SHA c68f479View commit details
Commits on Jul 19, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 70c4ca7 - Browse repository at this point
Copy the full SHA 70c4ca7View commit details -
Configuration menu - View commit details
-
Copy full SHA for c19ca4d - Browse repository at this point
Copy the full SHA c19ca4dView commit details -
vm: Construct VMOutcome in
run
onlyThis avoids a problem where in order to prepare a contract the NEAR balances of an account need to be known (in order to construct a `VMOutcome`) but also where the balance of an account might change by the time the VMOutcome is materialized to the caller as a result of them calling `run`.
Configuration menu - View commit details
-
Copy full SHA for f63d3c5 - Browse repository at this point
Copy the full SHA f63d3c5View commit details -
vm: move method out of VMContext again
`method` has been very recently moved into `VMContext` with the thought that `method` is closely related to the function call arguments which were already inside `VMContext`. However with `prepare` having been modified sufficiently to not rely on `VMContext`, `method` has again moved to be passed through a function argument. Keeping another instance of `method` inside `VMContext` would potentially allow for value confusion, as running a different method than what has been prepared is invalid.
Configuration menu - View commit details
-
Copy full SHA for cd8042b - Browse repository at this point
Copy the full SHA cd8042bView commit details
Commits on Jul 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for af27272 - Browse repository at this point
Copy the full SHA af27272View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d01f4a - Browse repository at this point
Copy the full SHA 9d01f4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b06c74 - Browse repository at this point
Copy the full SHA 9b06c74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 385d550 - Browse repository at this point
Copy the full SHA 385d550View commit details
Commits on Jul 23, 2024
-
This is not, strictly speaking dead-dead code. It is going to appear in a future change regardless, but is unnecessary in this PR.
Configuration menu - View commit details
-
Copy full SHA for 79170bc - Browse repository at this point
Copy the full SHA 79170bcView commit details