2018-08-21 10:57:48 +00:00
|
|
|
package transaction
|
|
|
|
|
|
|
|
import (
|
2018-08-21 11:39:35 +00:00
|
|
|
"github.com/CityOfZion/neo-storm/interop/attribute"
|
|
|
|
"github.com/CityOfZion/neo-storm/interop/input"
|
|
|
|
"github.com/CityOfZion/neo-storm/interop/output"
|
2018-08-21 10:57:48 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Package transaction provides function signatures that can be used inside
|
2018-08-21 11:39:35 +00:00
|
|
|
// smart contracts that are written in the neo-storm framework.
|
2018-08-21 10:57:48 +00:00
|
|
|
|
|
|
|
// Transaction stubs a NEO transaction type.
|
|
|
|
type Transaction struct{}
|
|
|
|
|
|
|
|
// GetHash returns the hash of the given transaction.
|
|
|
|
func GetHash(t Transaction) []byte {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetType returns the type of the given transaction.
|
|
|
|
func GetType(t Transaction) byte {
|
|
|
|
return 0x00
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetAttributes returns a slice of attributes for the given transaction.
|
|
|
|
func GetAttributes(t Transaction) []attribute.Attribute {
|
|
|
|
return []attribute.Attribute{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// FIXME: What is the correct return type for this?
|
|
|
|
// GetReferences returns a slice of references for the given transaction.
|
2018-10-23 08:23:03 +00:00
|
|
|
func GetReferences(t Transaction) []interface{} {
|
|
|
|
return []interface{}{}
|
2018-08-21 10:57:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// FIXME: What is the correct return type for this?
|
|
|
|
// GetUnspentCoins returns the unspent coins for the given transaction.
|
|
|
|
func GetUnspentCoins(t Transaction) interface{} {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetInputs returns the inputs of the given transaction.
|
|
|
|
func GetInputs(t Transaction) []input.Input {
|
|
|
|
return []input.Input{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// GetOutputs returns the outputs of the given transaction.
|
|
|
|
func GetOutputs(t Transaction) []output.Output {
|
|
|
|
return []output.Output{}
|
|
|
|
}
|