Realm detail
test3
gno.land/r/nym-encapsulate001/test3
Indexed deployment identity with independently loaded latest RPC source, functions, and Render.
Indexed deployment
Identity
- Package path
- gno.land/r/nym-encapsulate001/test3
- Block
- 270468
- Deployed (UTC)
- Transaction
- r1NsRPtWGA4t+rU8+sXOpyXqgJyiho2ZlO5YuSOlk8E=
Latest RPC state
Source
package test3
import "errors"
var (
ErrFormNotFound = errors.New("form not found")
ErrBadSlug = errors.New("slug must be 3-48 lowercase letters, digits and single hyphens, e.g. valoper-questionnaire")
ErrSlugTaken = errors.New("a form with this slug already exists")
ErrFormClosed = errors.New("form is closed")
ErrFormOpen = errors.New("form is already open")
ErrNotOwner = errors.New("caller is not the form owner")
ErrNoFields = errors.New("a form needs at least one field")
ErrTooManyFields = errors.New("a form can have at most 8 fields")
ErrFieldSpecMismatch = errors.New("labels, kinds and required must describe the same number of fields")
ErrBadFieldKind = errors.New("field kind must be one of text, textarea, number, select")
ErrSelectNoOptions = errors.New("a select field needs at least one option")
ErrEmptyLabel = errors.New("field label cannot be empty")
ErrPipeInField = errors.New("field labels and options cannot contain |")
ErrEmptyTitle = errors.New("form title cannot be empty")
ErrTitleTooLong = errors.New("form title is too long")
ErrDescriptionTooLong = errors.New("form description is too long")
ErrBadDeadline = errors.New("deadline must be a future chain height or 0")
ErrDeadlinePassed = errors.New("form deadline has passed")
ErrAlreadyResponded = errors.New("this address has already responded to this form")
ErrNoResponse = errors.New("no response from this address to withdraw")
ErrRequired = errors.New("required field is empty")
ErrNotANumber = errors.New("field expects a number")
ErrNotAnOption = errors.New("value is not one of the select options")
ErrAnswerTooLong = errors.New("answer exceeds the field's maximum length")
ErrTooManyAnswers = errors.New("more answers than the form has fields")
ErrNotUserCall = errors.New("this function must be called by a user account")
)
Latest RPC state
Exported functions
- Create(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}, slug string, title string, description string, labels string, kinds string, required string, options string, onePerAddr bool, deadline int64) string
- CreateForm(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}, slug string, title string, description string, l1 string, k1 string, r1 string, o1 string, l2 string, k2 string, r2 string, o2 string, l3 string, k3 string, r3 string, o3 string, l4 string, k4 string, r4 string, o4 string, l5 string, k5 string, r5 string, o5 string, l6 string, k6 string, r6 string, o6 string, l7 string, k7 string, r7 string, o7 string, l8 string, k8 string, r8 string, o8 string, onePerAddr string, deadline string) string
- Close(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}, id string)
- Reopen(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}, id string)
- TransferOwnership(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}, id string, to string)
- GetForm(id string) (*gno.land/r/nym-encapsulate001/test3.Form, bool)
- ResponseCount(id string) int
- FormCount() int
- Render(path string) string
Forms
Publish a form, collect responses on chain, read them back here. Respondents fill it in on this page and pay their own storage deposit; withdrawing a response refunds it.
| Form | Status | Responses | Fields | Owner | | --- | --- | --- | --- | --- | | dwefweqdfeq | open | 0 | 2 | g1lyj99a…6u5q | | What would you use an on-chain form for? | open | 0 | 5 | g1eyr3hf…x2v0 |
Create a form
Up to 8 fields. Blank rows are skipped. Submitting opens your wallet with the call already filled in.
From a terminal, Create takes the same thing as pipe-separated field specs — see the realm source.