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/r/moul/x/social/threads/v0

Realm
Open in gnoweb ↗

Overview

Kind
Realm (renderable)
Name
v0
Namespace
moul / x / social / threads
Files
5 (README)(gnomod.toml)
Exported functions
18
Module
gno.land/r/moul/x/social/threads/v0
gno
0.9
This realm implements a recognized token.THREAD →

Files (5)

  • README.mdmarkdown
  • gnomod.tomltoml
  • render.gnogno
  • threads.gnogno
  • threads_test.gnogno

Select a file to view its exact on-chain source. Sorted README → gnomod → sources → tests.

Functions

  • Allowance(owner string, spender string) int64

  • Approve(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, spender string, amount int64)

  • BalanceOf(owner string) int64

  • Boost(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, threadID int64)

  • Count(page string) int

  • Pages() int

  • PinnedUntil(threadID int64) int64

  • Post(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, page string, body string) int64

  • Render(path string) string

  • RenderBlock() string

  • RenderBlockFor(page string) string

  • Repliers(threadID int64) int

  • Reply(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, threadID int64, body string)

  • TokenKey() string

  • Total() int

  • TotalSupply() int64

  • Transfer(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, to string, amount int64)

  • TransferFrom(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, from string, to string, amount int64)

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

Rendered

RenderedRawgnoweb ↗
# Threads
A discussion block any realm can embed, keyed on the page it appears on.

| threads | pages | THREAD supply |
| --- | --- | --- |
| 0 | 0 | 0 |
## Recent, across every page
*No threads yet.*
## The token
### Thread Points (THREAD)
|  |  |
| --- | --- |
| earns | 1 to a thread's author per distinct address that replies to it |
| burns | burned by Boost to pin a thread to the top of its page |
| bought by | anyone who wants placement and has not earned it |
| supply | earned | burned | holders |
| --- | --- | --- | --- |
| 0 | 0 | 0 | 0 |
## Embedding it
Two lines in the host realm, and it stores nothing:

```go
import "gno.land/r/moul/x/social/threads/v0"

func Render(path string) string {
	return body + threads.RenderBlock()
}
```
The page key is the host realm's own path, read off the call. `RenderBlockFor(page)` names one explicitly.

vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.