Add missing compiler interop API functions (#93)
* added runtime serialize and deserialize functions * removed getCurrentBlock from runtime functions * Added block and header stdlib interop functions * added transaction interop api * added asset interop api * bumped version * Added missing storage.Find storage API function * Fixed wrong example in the compiler README * updated the compiler README to be more accurate on compiler features
This commit is contained in:
parent
34a37ff51d
commit
d77354db66
8 changed files with 145 additions and 9 deletions
24
pkg/vm/api/header/header.go
Normal file
24
pkg/vm/api/header/header.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
package header
|
||||
|
||||
import "github.com/CityOfZion/neo-go/pkg/core"
|
||||
|
||||
// GetIndex returns the index of the given header.
|
||||
func GetIndex(header *core.Header) uint32 { return 0 }
|
||||
|
||||
// GetHash returns the hash of the given header.
|
||||
func GetHash(header *core.Header) []byte { return nil }
|
||||
|
||||
// GetHash returns the version of the given header.
|
||||
func GetVersion(header *core.Header) uint32 { return 0 }
|
||||
|
||||
// GetHash returns the previous hash of the given header.
|
||||
func GetPrevHash(header *core.Header) []byte { return nil }
|
||||
|
||||
// GetHash returns the merkle root of the given header.
|
||||
func GetMerkleRoot(header *core.Header) []byte { return nil }
|
||||
|
||||
// GetHash returns the timestamp of the given header.
|
||||
func GetTimestamp(header *core.Header) uint32 { return 0 }
|
||||
|
||||
// GetHash returns the next validator address of the given header.
|
||||
func GetNextConsensus(header *core.Header) []byte { return nil }
|
Loading…
Add table
Add a link
Reference in a new issue