mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-07 23:10:32 +00:00
Optimisations and API changes for smart contracts (#67)
* support VM to pass method and arguments to a script. * added support for type assertions in smartcontracts. * added native vm support for print. * moved VM API packages to vm -> API * reverted the native Print opcode in favor of runtime.Log * added support for registering custom interop hooks in the VM. * Updated README * Updated compiler with @OPTIMIZE tags * Moved more tests to VM package. * optimized and refactored compiler and vm API * updated README with new smartcontract apis * bumped version
This commit is contained in:
parent
b2021c126e
commit
4bd5b2812e
29 changed files with 655 additions and 494 deletions
8
pkg/vm/api/util/util.go
Normal file
8
pkg/vm/api/util/util.go
Normal file
|
@ -0,0 +1,8 @@
|
|||
package util
|
||||
|
||||
// Package util provides utility functions that can be used in smart contracts.
|
||||
// These functions are just signatures and provide not internal logic.
|
||||
// Only the compiler knows how to convert them to bytecode.
|
||||
|
||||
// Print is a VM helper function to print/log data.
|
||||
func Print(v interface{}) {}
|
Loading…
Add table
Add a link
Reference in a new issue