PathrockNetwork Gno Explorer
HomeBlocksTransactionsRealmsPackagesValidators

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/v0

Package
Open in gnoweb ↗

Overview

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

Files (22)

  • gnomod.tomltoml
  • board.gnogno
  • flag_storage.gnogno
  • id.gnogno
  • permission_set.gnogno
  • permissions.gnogno
  • post_storage.gnogno
  • post.gnogno
  • reply.gnogno
  • repost_storage.gnogno
  • storage.gnogno
  • thread.gnogno
  • board_test.gnogno
  • flag_storage_test.gnogno
  • id_test.gnogno
  • permission_set_test.gnogno
  • post_storage_test.gnogno
  • post_test.gnogno
  • reply_test.gnogno
  • repost_storage_test.gnogno
  • storage_test.gnogno
  • thread_test.gnogno
  • id_test.gnogno
    1package boards_test23import (4	"testing"56	"gno.land/p/nt/urequire/v0"78	"gno.land/p/gnoland/boards/v0"9)1011func TestID(t *testing.T) {12	id := boards.ID(42)1314	urequire.Equal(t, "42", id.String(), "expect string to match")15	urequire.Equal(t, "0000000042", id.PaddedString(), "expect padded string to match")16	urequire.Equal(t, "000001a", id.Key(), "expect key to match")17}1819func TestIdentifierGenerator(t *testing.T) {20	g := boards.NewIdentifierGenerator()2122	urequire.Equal(t, uint64(0), uint64(g.Last()), "expect default to be 0")23	urequire.Equal(t, uint64(1), uint64(g.Next()), "expect next to be 1")24	urequire.Equal(t, uint64(1), uint64(g.Last()), "expect last to be 1")25	urequire.Equal(t, uint64(2), uint64(g.Next()), "expect next to be 2")26	urequire.Equal(t, uint64(2), uint64(g.Last()), "expect last to be 2")27}28

    Functions

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

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