Closed lrettig closed 12 months ago
@dshulyak already implemented some basic fix costs. @WilfredTA will determine whether this is sufficient for genesis.
What i set is not sufficient. Those numbers are just placeholders.
Agreed gas formula for Genesis is available here: https://community.spacemesh.io/t/nonce-in-self-spawn-never-ending-battle/304/4?u=selfdual-brain
Hopefully helpful: #210
The current values are set and considered being "good enough". More info https://github.com/spacemeshos/pm/issues/145
This was done in:
See also: https://community.spacemesh.io/t/gas-cost-for-precompiles/348
Assuming @dshulyak is happy with the current state; let us know if there's any more to be done here for genesis
Set initial gas costing for all genesis contracts and calls.
The most straightforward approach is to fix the gas cost for a basic operation, e.g., our "simple send" analogue, on the order of magnitude of 10,000-100,000 (e.g., ETH uses 21k), and then calculate a gas cost table relative to this.