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
member.gnogno
1package hub23import (4	"gno.land/p/gnoland/boards/v0"5)67// Member defines a safe type for board members.8type Member struct {9	// address is the account address of the member.10	address address1112	// roles contains the names of the roles assigned to the member.13	roles []string14}1516// Address returns the account address of the member.17func (m Member) Address() address { return m.address }1819// Roles returns the names of the roles assigned to the member.20func (m Member) Roles() []string { return append([]string(nil), m.roles...) }2122// NewSafeMember creates a safe board member.23func NewSafeMember(ref boards.User) Member {24	roles := make([]string, len(ref.Roles))25	for i, r := range ref.Roles {26		roles[i] = string(r)27	}2829	return Member{30		address: ref.Address,31		roles:   roles,32	}33}34

Functions

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

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