Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

custom_resource state

Back to all declarations

Post

type

Value

custom_resource.Post

Blog

type

Value

custom_resource.Blog

ActionNewPostKind

untyped string

Value

"gno.land/r/daodemo/custom_resource/blog.NewPost"

ActionNewPost

type

Value

custom_resource.ActionNewPost

NewPostAction

func(title string, content string) daokit.Action
Open
OID
080f91…e10f:3
NewPostAction details

Inspect func

NewPostHandler

func(blog *custom_resource.Blog) daokit.ActionHandler
Open
OID
080f91…e10f:5
NewPostHandler details

Inspect func

Propose

func(req daokit.ProposalRequest)

Propose creates a new proposal To execute this function, you must use a MsgRun (maketx run) See why it is necessary in Gno Documentation: [https://docs.gno.land/users/interact-with-gnokey#run](https://docs.gno.land/users/interact-with-gnokey#run)

Open
OID
080f91…e10f:12
Propose details

Inspect func

Vote

func(proposalID uint64, vote daocond.Vote)

Vote allows DAO members to cast their vote on a specific proposal

Open
OID
080f91…e10f:13
Vote details

Inspect func

Execute

func(proposalID uint64)

Execute triggers the implementation of a proposal's actions

Open
OID
080f91…e10f:14
Execute details

Inspect func

Render

func(path string) string

Render generates a UI representation of the DAO's state

Open
OID
080f91…e10f:15
Render details

Inspect func

setImplem

func(newLocalDAO daokit.DAO)

Updates the DAO implementation when governance proposals change it. This allows the DAO to upgrade itself through proposals that modify its core logic.

Open
OID
080f91…e10f:16
setImplem details

Inspect func

initBlogProposals

func()

initBlogProposals creates initial blog post proposals to demonstrate custom resource functionality

Open
OID
080f91…e10f:17
initBlogProposals details

Inspect func

AddMember

func()

Bypass limitation by adding yourself to the DAO. It is necessary to be part of the DAO to create a Proposal.

Open
OID
080f91…e10f:19
AddMember details

Inspect func

ProposeNewPost

func(title string, content string)

Creates a Proposal to create a new blog post. This demonstrates the custom resource functionality of the DAO. Parameters: - title: The title of the blog post - content: The content of the blog post

Open
OID
080f91…e10f:20
ProposeNewPost details

Inspect func
Post : type =custom_resource.Post
Blog : type =custom_resource.Blog
ActionNewPostKind : untyped string ="gno.land/r/daodemo/custom_resource/blog.NewPost"
ActionNewPost : type =custom_resource.ActionNewPost
NewPostAction : func(title string, content string) daokit.Action Inspect
NewPostHandler : func(blog *custom_resource.Blog) daokit.ActionHandler Inspect
localDAO : *basedao.daoPublic Inspect
daoPrivate : *basedao.DAOPrivate Inspect
myblog : custom_resource.Blog Inspect
init.9 : func() Inspect
Propose : func(req daokit.ProposalRequest) Inspect
Vote : func(proposalID uint64, vote daocond.Vote) Inspect
Execute : func(proposalID uint64) Inspect
Render : func(path string) string Inspect
setImplem : func(newLocalDAO daokit.DAO) Inspect
initBlogProposals : func() Inspect
AddMember : func() Inspect
ProposeNewPost : func(title string, content string) Inspect
renderDemo : func() string Inspect