core: retrieve contract hash by ID

We'll need this ability further to retrieve contracts hashes for Nep5Balances.
This commit is contained in:
Anna Shaleva 2020-07-28 16:36:47 +03:00
parent f24e707ea1
commit dbd460d883
5 changed files with 38 additions and 1 deletions

View file

@ -26,6 +26,7 @@ type Blockchainer interface {
HeaderHeight() uint32
GetBlock(hash util.Uint256) (*block.Block, error)
GetContractState(hash util.Uint160) *state.Contract
GetContractScriptHash(id int32) (util.Uint160, error)
GetEnrollments() ([]state.Validator, error)
GetGoverningTokenBalance(acc util.Uint160) (*big.Int, uint32)
GetHeaderHash(int) util.Uint256