Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

pool package

Function

NewPoolObservationsTree

func NewPoolObservationsTree(currentTime int64) *ObservationTree

NewPoolObservationsTree creates a circular observation buffer with slot zero initialized.

Parameters:

  • currentTime: Timestamp assigned to the initial observation at index zero.

Returns:

  • tree: Observation tree containing an initialized zero-index observation with zero cumulative values.

Param

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/gnoswap/pool.NewPoolObservationsTree()"

Result