Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

/memba_reviews_v2 package

Function

GetSubjectSummaryJSON

func GetSubjectSummaryJSON(subject string) string
Ask AI Claude ChatGPT

GetSubjectSummaryJSON returns {"count":N,"average":A,"sum":S} over non-hidden, non-deleted reviews for a subject. Average is integer-rounded. GetSubjectSummaryJSON returns the count/average/sum of a subject's VISIBLE reviews. RV-1: O(1) — reads the maintained per-subject counters instead of scanning the (sybil- growable) review list, so it can never exceed the query gas cap.

Param

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/samcrew/memba_reviews_v2.GetSubjectSummaryJSON()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/samcrew/memba_reviews_v2, for example a function call with arguments.