ref-fvm icon indicating copy to clipboard operation
ref-fvm copied to clipboard

EVM opcodes: GASPRICE, BALANCE, GAS

Open maciejwitowski opened this issue 3 years ago • 0 comments

Implement opcodes which require FVM work https://github.com/filecoin-project/ref-fvm/issues/689#issuecomment-1208032152

  • [ ] GASPRICE => sum of base_fee and gas_premium. Requires the gas_premium in the InvocationContext, so that it's returned in vm::context().
  • [ ] BALANCE => requires a syscall to obtain the balance of an arbitrary address.
  • [ ] GAS => return available gas. Requires a gas::available() syscall.

maciejwitowski avatar Sep 12 '22 13:09 maciejwitowski