neoneo-go/pkg/interop/account/account.go
Roman Khimov a1e3655560 interop: move into pkg/interop, replace pkg/vm/api
neo-storm has developed more wrappers for syscall APIs, so they can and should
be used as a drop-in replacement for pkg/vm/api. Moving it out of vm, as it's
not exactly related to the VM itself.
2019-08-15 19:41:51 +03:00

23 lines
615 B
Go

package account
// Package account provides function signatures that can be used inside
// smart contracts that are written in the neo-go framework.
// Account stubs a NEO account type.
type Account struct{}
// GetScripHash returns the script hash of the given account.
func GetScriptHash(a Account) []byte {
return nil
}
// GetVotes returns the votes of the given account which should be a slice of
// public key raw bytes.
func GetVotes(a Account) [][]byte {
return nil
}
// GetBalance returns the balance of for the given account and asset id.
func GetBalance(a Account, assetID []byte) int {
return 0
}