ref-fvm
ref-fvm copied to clipboard
EVM opcodes: GASPRICE, BALANCE, GAS
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 agas::available()syscall.