Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

portbook state

Back to all declarations

PortEntry

type

PortEntry records a Solidity contract transpiled and deployed to Gno.land.

Value

portbook.PortEntry

PortRequest

type

PortRequest records a community request to port a Solidity contract to Gno.land.

Value

portbook.PortRequest

admin

.uverse.address

Value

<gnolang.StringValue>

nextPortID

uint64

Value

2

nextReqID

uint64

Value

3

totalVotes

uint64

Value

3

openReqCount

uint64

Value

3

portsByID

*v0.Tree

// key: idKey(id) -> \*PortEntry

Open
OID
0ca572…afea:36
portsByID details

Inspect pointer

requestsByID

*v0.Tree

// key: idKey(id) -> \*PortRequest

Open
OID
0ca572…afea:38
requestsByID details

Inspect pointer

portUpvoters

*v0.Tree

// key: idKey(id) + ":" + string(addr) -> true

Open
OID
0ca572…afea:40
portUpvoters details

Inspect pointer

reqVoters

*v0.Tree

// key: idKey(id) + ":" + string(addr) -> true

Open
OID
0ca572…afea:42
reqVoters details

Inspect pointer

contributors

*v0.Tree

// key: string(addr) -> true

Open
OID
0ca572…afea:44
contributors details

Inspect pointer

RegisterPort

func(name string, category string, sourceURL string, solHash string, realmPath string, mode string, cleanFuncs int, totalFuncs int, warns int, holes int, summary string) uint64

RegisterPort publishes a Solidity -> Gno migration record on-chain.

Open
OID
0ca572…afea:15
RegisterPort details

Inspect func

UpvotePort

func(portID uint64)

UpvotePort casts a single upvote per address on a registered port.

Open
OID
0ca572…afea:16
UpvotePort details

Inspect func

RequestPort

func(contractName string, category string, sourceURL string, notes string) uint64

RequestPort submits a Solidity contract that the community wants ported to Gno.land. Automatically casts the requester's initial vote.

Open
OID
0ca572…afea:17
RequestPort details

Inspect func

VoteRequest

func(requestID uint64)

VoteRequest casts a single vote per address on an open port request.

Open
OID
0ca572…afea:18
VoteRequest details

Inspect func

FulfillRequest

func(requestID uint64, portID uint64)

FulfillRequest links an open community request to a registered PortEntry. Callable by the port author, the requester, or the realm admin.

Open
OID
0ca572…afea:19
FulfillRequest details

Inspect func

Stats

func() (ports uint64, requests uint64, openRequests uint64, votes uint64, uniqueContributors int)

Stats returns aggregate registry counters for indexers, tests, and cross-realm reads.

Open
OID
0ca572…afea:20
Stats details

Inspect func

GetPort

func(id uint64) *portbook.PortEntry

GetPort returns a registered port by ID, or nil if it does not exist.

Open
OID
0ca572…afea:21
GetPort details

Inspect func

GetRequest

func(id uint64) *portbook.PortRequest

GetRequest returns a community port request by ID, or nil if it does not exist.

Open
OID
0ca572…afea:22
GetRequest details

Inspect func

normalizeMode

func(mode string) string
Open
OID
0ca572…afea:24
normalizeMode details

Inspect func

normalizeCategory

func(cat string) string
Open
OID
0ca572…afea:25
normalizeCategory details

Inspect func

Render

func(path string) string

Render exposes the interactive Markdown UI in gnoweb with clickable Adena txlinks.

Open
OID
0ca572…afea:26
Render details

Inspect func

renderAllPorts

func() string
Open
OID
0ca572…afea:29
renderAllPorts details

Inspect func

renderAllRequests

func() string
Open
OID
0ca572…afea:30
renderAllRequests details

Inspect func

renderPortsTable

func(limit int) string
Open
OID
0ca572…afea:31
renderPortsTable details

Inspect func

renderRequestsTable

func(limit int) string
Open
OID
0ca572…afea:32
renderRequestsTable details

Inspect func

renderPortDetail

func(id uint64) string
Open
OID
0ca572…afea:33
renderPortDetail details

Inspect func

renderRequestDetail

func(id uint64) string
Open
OID
0ca572…afea:34
renderRequestDetail details

Inspect func

escapeCell

func(s string) string
Open
OID
0ca572…afea:35
escapeCell details

Inspect func
PortEntry : type =portbook.PortEntry
PortRequest : type =portbook.PortRequest
admin : .uverse.address =<gnolang.StringValue>
nextPortID : uint64 =2
nextReqID : uint64 =3
totalVotes : uint64 =3
openReqCount : uint64 =3
portsByID : *v0.Tree Inspect
requestsByID : *v0.Tree Inspect
portUpvoters : *v0.Tree Inspect
reqVoters : *v0.Tree Inspect
contributors : *v0.Tree Inspect
init.12 : func() Inspect
RegisterPort : func(name string, category string, sourceURL string, solHash string, realmPath string, mode string, cleanFuncs int, totalFuncs int, warns int, holes int, summary string) uint64 Inspect
UpvotePort : func(portID uint64) Inspect
RequestPort : func(contractName string, category string, sourceURL string, notes string) uint64 Inspect
VoteRequest : func(requestID uint64) Inspect
FulfillRequest : func(requestID uint64, portID uint64) Inspect
Stats : func() (ports uint64, requests uint64, openRequests uint64, votes uint64, uniqueContributors int) Inspect
GetPort : func(id uint64) *portbook.PortEntry Inspect
GetRequest : func(id uint64) *portbook.PortRequest Inspect
idKey : func(id uint64) string Inspect
normalizeMode : func(mode string) string Inspect
normalizeCategory : func(cat string) string Inspect
Render : func(path string) string Inspect
renderHome : func() string Inspect
renderAllPorts : func() string Inspect
renderAllRequests : func() string Inspect
renderPortsTable : func(limit int) string Inspect
renderRequestsTable : func(limit int) string Inspect
renderPortDetail : func(id uint64) string Inspect
renderRequestDetail : func(id uint64) string Inspect
escapeCell : func(s string) string Inspect