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

Estimate EVM gas cost for Aurora custom precompiles using NEAR host functions #483

Open
birchmd opened this issue Apr 5, 2022 · 1 comment
Labels
A-precompiles Area: Issues that relate to the precompiles.

Comments

@birchmd
Copy link
Member

birchmd commented Apr 5, 2022

There are several custom precompiles in Aurora that uses NEAR host functions:

  • Exit precompiles (move assets from Aurora to NEAR)
  • Entropy seed for randomness
  • Accessing current_account_id and predecessor_account_id
  • Amount of prepaid NEAR gas

Presently they are all costed at 0 EVM gas, but they do perform a non-trivial amount of work, so should cost some amount of EVM gas in order to have a close correlation between EVM gas burned and NEAR gas burned. The purpose of this issue is to estimate the "appropriate" EVM gas costs; and also to define more carefully what "appropriate" means (i.e. how we want to try to correlate NEAR and EVM gas).

@birchmd birchmd added the A-precompiles Area: Issues that relate to the precompiles. label Apr 5, 2022
@birchmd
Copy link
Member Author

birchmd commented Apr 5, 2022

See also: #332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-precompiles Area: Issues that relate to the precompiles.
Projects
None yet
Development

No branches or pull requests

1 participant