Post
typeValue
custom_resource.Post
Blog
typeValue
custom_resource.Blog
ActionNewPostKind
untyped stringValue
"gno.land/r/daodemo/custom_resource/blog.NewPost"
ActionNewPost
typeValue
custom_resource.ActionNewPost
NewPostAction
func(title string, content string) daokit.Action- OID
- 080f91…e10f:3
NewPostAction details
NewPostHandler
func(blog *custom_resource.Blog) daokit.ActionHandler- OID
- 080f91…e10f:5
NewPostHandler details
localDAO
*basedao.daoPublic- OID
- 080f91…e10f:23
localDAO details
daoPrivate
*basedao.DAOPrivate- OID
- 080f91…e10f:25
daoPrivate details
myblog
custom_resource.Blog- OID
- 080f91…e10f:9
myblog details
init.9
func()- OID
- 080f91…e10f:10
init.9 details
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)
- OID
- 080f91…e10f:12
Propose details
Vote
func(proposalID uint64, vote daocond.Vote)Vote allows DAO members to cast their vote on a specific proposal
- OID
- 080f91…e10f:13
Vote details
Execute
func(proposalID uint64)Execute triggers the implementation of a proposal's actions
- OID
- 080f91…e10f:14
Execute details
Render
func(path string) stringRender generates a UI representation of the DAO's state
- OID
- 080f91…e10f:15
Render details
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.
- OID
- 080f91…e10f:16
setImplem details
initBlogProposals
func()initBlogProposals creates initial blog post proposals to demonstrate custom resource functionality
- OID
- 080f91…e10f:17
initBlogProposals details
AddMember
func()Bypass limitation by adding yourself to the DAO. It is necessary to be part of the DAO to create a Proposal.
- OID
- 080f91…e10f:19
AddMember details
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
- OID
- 080f91…e10f:20
ProposeNewPost details
renderDemo
func() string- OID
- 080f91…e10f:21