core: export GetContractState/GetScriptHashesForVerifying via Blockchainer

These are gonna be used by interops and are also useful in general.
This commit is contained in:
Roman Khimov 2019-10-11 14:22:53 +03:00
parent 19fd7f844e
commit 8266a5ce19
2 changed files with 8 additions and 0 deletions

View file

@ -15,6 +15,7 @@ type Blockchainer interface {
BlockHeight() uint32
HeaderHeight() uint32
GetBlock(hash util.Uint256) (*Block, error)
GetContractState(hash util.Uint160) *ContractState
GetHeaderHash(int) util.Uint256
GetHeader(hash util.Uint256) (*Header, error)
CurrentHeaderHash() util.Uint256
@ -23,6 +24,7 @@ type Blockchainer interface {
HasTransaction(util.Uint256) bool
GetAssetState(util.Uint256) *AssetState
GetAccountState(util.Uint160) *AccountState
GetScriptHashesForVerifying(*transaction.Transaction) ([]util.Uint160, error)
GetStorageItem(scripthash util.Uint160, key []byte) *StorageItem
GetStorageItems(hash util.Uint160) (map[string]*StorageItem, error)
GetTransaction(util.Uint256) (*transaction.Transaction, uint32, error)