AlchemyVM
AlchemyVM copied to clipboard
Proper gas calculation
This PR solves #19 and introduces everything in #32 along with:
- A new gas module whose purpose is to return the gas cost for a given OpCode
- Changes to the executor file to use the new gas module
- A small paper explaining how the gas cost of each OpCode is calculated
Let me know when you want to merge it, i'll review & then merge, then I can use this as a clean base for the opcode fix from before
@fantypants this won't be ready for merge for a while. I think using the current master for the fix should be fine, should be a change in a different file I believe, not in executor.ex