PathrockNetwork Gno Explorer
HomeBlocksTransactionsRealmsPackagesValidatorsAnalytics

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/gnoland/boards/exts/hub/v0

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
v0
Namespace
gnoland / boards / exts / hub
Files
12 (README)(gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/gnoland/boards/exts/hub/v0
gno
0.9

Files (12)

  • README.mdmarkdown
  • gnomod.tomltoml
  • board.gnogno
  • comment.gnogno
  • flag.gnogno
  • format.gnogno
  • member.gnogno
  • thread.gnogno
  • board_test.gnogno
  • comment_test.gnogno
  • member_test.gnogno
  • thread_test.gnogno
flag.gnogno
1package hub23import (4	"gno.land/p/gnoland/boards/v0"5)67// Flag defines a type for thread and comment flags.8type Flag struct {9	// user is the user that flagged.10	user address1112	// reason is the reason for flagging.13	reason string14}1516// User returns the user that flagged.17func (f Flag) User() address { return f.user }1819// Reason returns the reason for flagging.20func (f Flag) Reason() string { return f.reason }2122// NewSafeFlag creates a safe flag.23func NewSafeFlag(ref boards.Flag) Flag {24	return Flag{25		user:   ref.User,26		reason: ref.Reason,27	}28}29

Functions

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

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