package user import ( "gno.land/p/zenao/users" "gno.land/r/demo/profile" "gno.land/p/zenao/daokit" "gno.land/p/zenao/daocond" ) var ( DAO daokit.DAO localDAO daokit.DAO user *users.User // XXX: needed for backward compatibility with frontend queries ) func init() { user = users.NewUser(&users.Config{ Name: "Samouraï Crew", Bio: "Samouraï Coop is a decentralized agency mixing film makers, designers, hackers, developers into a single cooperative company. Providing high quality services since 2016 to decentralized ecosystems, communities & international major Web3 companies, the coop company developed an agency side, a production company, and a lab with a research focus on distributed protocols, a future of cooperative governances.\n\nSamouraï Crew is members of this cooperative company who're experimenting, designing, building, hacking future of decentralized autonomous human organizations.\nThis crew is also building Zenao.io and organizers of HyperHacktive Festival.\nhttps://www.samourai.world", AvatarURI: "ipfs://bafybeib62oinb3ee5vztgu43bwvzejammxplod6koxqsbmyipyjpqdsqfm", GetProfileString: profile.GetStringField, SetProfileString: profile.SetStringField, ZenaoAdminAddr: "g1djrkw9tf4px658j85cc6fhsvm50uf9s0g6kfsm", CrossFn: crossFn, SetImplemFn: setImplem, PrivateVarName: "user", }) } func Vote(_ realm, proposalID uint64, vote daocond.Vote) { localDAO.Vote(proposalID, vote) } func Execute(_ realm, proposalID uint64) { localDAO.Execute(proposalID) } func Render(path string) string { return localDAO.Render(path) } func crossFn(_ realm, cb func()) { cb() } func setImplem(newLocalDAO daokit.DAO, newDAO daokit.DAO) { localDAO, DAO = newLocalDAO, newDAO }