Add API in compiler for easily calling all native contract methods #2495
Labels
area/compiler
Categorize issue or PR as compiler (@neo-one/smart-contract-compiler) related
kind/cleanup
Categorizes issue or PR as related to cleaning up code, process, or technical debt.
kind/feature
Categorizes issue or PR as related to a new feature.
priority/important-longterm
Important over the long term, but may not be staffed.
Currently users can do this with our linked smart contract API but we could make native contract calls way more user friendly be exposing them directly with something like
Native.Ledger.getBlockHash(<index>)
. This is just an idea. Or maybe we want to expose all those native contract methods in a module likeBlockchain.getBlockHash(<index>)
. Either way all those native contract methods should be exposes very easily to the user in some way.Make sure to add docs and tests.
The text was updated successfully, but these errors were encountered: