All Series
This script returns all the Series structs.
Note: This will eventually be long.
Returns: [AllDay.SeriesData]
- A list of the AllDay Series Data.
import AllDay from 0xALLDAYADDRESS
pub fun main(): [AllDay.SeriesData] {
let series: [AllDay.SeriesData] = []
var id: UInt64 = 1
// Note < , as nextSeriesID has not yet been used
while id < AllDay.nextSeriesID {
series.append(AllDay.getSeriesData(id: id)!)
id = id + 1
}
return series
}