mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-12 11:10:35 +00:00
d77354db66
* 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
27 lines
1.1 KiB
Go
27 lines
1.1 KiB
Go
package transaction
|
|
|
|
import "github.com/CityOfZion/neo-go/pkg/core/transaction"
|
|
|
|
// GetType returns the type of the given transaction.
|
|
// TODO: Double check if the type returned should be of type uint8.
|
|
func GetType(tx *transaction.Transaction) uint8 { return 0x00 }
|
|
|
|
// GetTXHash returns the hash of the given transaction.
|
|
func GetTXHash(tx *transaction.Transaction) []byte { return nil }
|
|
|
|
// GetAttributes returns the attributes of the given transaction.
|
|
func GetAttributes(tx *transaction.Transaction) []*transaction.Attribute { return nil }
|
|
|
|
// GetInputs returns the inputs of the given transaction.
|
|
func GetInputs(tx *transaction.Transaction) []*transaction.Input { return nil }
|
|
|
|
// GetOutputs returns the outputs of the given transaction.
|
|
func GetOutputs(tx *transaction.Transaction) []*transaction.Output { return nil }
|
|
|
|
// TODO: What does this return as data type?
|
|
// GetReferences returns the outputs of the given transaction.
|
|
// func GetReferences(tx *transaction.Transaction) { }
|
|
|
|
// TODO: What does this return as data type?
|
|
// GetUnspentCoins returns the unspent coins of the given transaction.
|
|
// func GetUnspentCoins(tx *transaction.Transaction) { }
|