forked from near/nearcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement NEP264, function call gas weight (near#6285)
More of a rough draft because I don't have context around the runtime as to the best migration plan of these APIs. I've followed the recommendation of near#6150 to avoid refactoring to move action receipts to `VMLogic`, but this means the `External` trait needs to be updated, and it's unclear if anyone has preferences. TODO: - e2e test to cover `RuntimeExt` as current tests just cover `MockedExternal` (same functionality though) - Also these tests don't check that gas was distributed to the correct function calls - Determine the best path for trait migration (would we do the refactor mentioned above before any releases?) - Where does the protocol version number come from, and what should this one be numbered? - Benchmark to gauge gas cost and verify existing impl doesn't have higher cost - Would be nice to fuzz test this to make sure there aren't any weird edge cases
- Loading branch information
1 parent
dbf2557
commit 13057c5
Showing
18 changed files
with
579 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.