github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/examples/gno.land/r/x/nir1218_evaluation_proposal/points.gno (about) 1 package evaluation 2 3 // Points could be converted to rewards 4 type Points struct { 5 total int64 6 factors map[string]int32 7 } 8 9 func NewPoints(t int64, f map[string]int32) Points { 10 return Points{ 11 total: t, 12 factors: f, 13 } 14 }