PathrockNetwork Gno Explorer
HomeBlocksTransactionsTokensRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/g17khqpukees4237dtn3astzapmp462vjhsz6st4/datasource

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
datasource
Namespace
g17khqpukees4237dtn3astzapmp462vjhsz6st4
Files
6 (README)(gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/g17khqpukees4237dtn3astzapmp462vjhsz6st4/datasource
gno
0.9

Files (6)

  • README.mdmarkdown
  • gnomod.tomltoml
  • datasource.gnogno
  • fields.gnogno
  • iterator.gnogno
  • query.gnogno
iterator.gnogno
1package datasource23// NewRecordIterator returns an iterator for a list of records.4// The iterator never returns an error and it doesn't modify the slice.5func NewRecordIterator(records []Record) Iterator {6	return &recordIterator{records: records}7}89type recordIterator struct {10	records []Record11	current Record12}1314func (it *recordIterator) Err() error     { return nil }15func (it *recordIterator) Record() Record { return it.current }1617func (it *recordIterator) Next() bool {18	if len(it.records) == 0 {19		return false20	}2122	it.current, it.records = it.records[0], it.records[1:]23	return true24}25

Functions

not supported for pure packages by the node (vm/qfuncs)

Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.