2018-08-31 08:23:57 +00:00
|
|
|
package iterator
|
|
|
|
|
|
|
|
// Package iterator provides function signatures that can be used inside
|
2019-08-15 16:41:51 +00:00
|
|
|
// smart contracts that are written in the neo-go framework.
|
2018-08-31 08:23:57 +00:00
|
|
|
|
|
|
|
// Iterator stubs a NEO iterator object type.
|
|
|
|
type Iterator struct{}
|
|
|
|
|
|
|
|
// Create creates an iterator from the given items.
|
|
|
|
func Create(items []interface{}) Iterator {
|
|
|
|
return Iterator{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Key returns the iterator key.
|
2019-09-03 14:51:37 +00:00
|
|
|
// TODO: Better description for this.
|
2018-08-31 08:23:57 +00:00
|
|
|
func Key(it Iterator) interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Keys returns the iterator keys.
|
|
|
|
func Keys(it Iterator) []interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-26 13:34:54 +00:00
|
|
|
// Next advances the iterator, return true if it is was successful
|
|
|
|
// and false otherwise.
|
|
|
|
func Next(it Iterator) bool {
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
// Value returns the current iterator value.
|
|
|
|
func Value(it Iterator) interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2018-08-31 08:23:57 +00:00
|
|
|
// Values returns the iterator values.
|
|
|
|
func Values(it Iterator) []interface{} {
|
|
|
|
return nil
|
|
|
|
}
|