Transaction

0A5E998D486C6B…7E82F4526213

Block 25,957 · index 0 · indexed

Summary

Hash
0A5E998D486C6BC2D0E6FDCFAAD3FE67705A197B66687C95D2A77E82F4526213
Block
25,957
Size
2900 bytes
Gas used
8,015,249 / 9,618,358
Fee
1000000ugnot
Memo
gnopublish
Status
success

Messages

#1AddPackagegno.land/p/moul/xdao/v09 arguments

Arguments · 9

  1. #1xdao
  2. #2README.md
  3. #3# `gno.land/p/moul/xdao/v0` _TODO: describe this package._ <!-- BEGIN GNOCONTRACTS FOOTER (generated by `make readmes`; do not edit below) --> --- Part of **[moul/gno-contracts](https://github.com/moul/gno-contracts)** — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage. **Dependency graph:** ![gno.land/p/moul/xdao/v0 dependency graph](https://raw.githubusercontent.com/moul/gno-contracts/main/_assets/gno.land/p/moul/xdao/v0/deps.png) > ⚠️ **Disclaimer:** provided as-is, without warranty; not security-audited. Full disclaimer: [DISCLAIMER](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md). <!-- END GNOCONTRACTS FOOTER -->
  4. #4gnomod.toml
  5. #5module = "gno.land/p/moul/xdao/v0" gno = "0.9"
  6. #6xdao.gno
  7. #7package xdao import ( "chain/runtime/unsafe" "gno.land/p/moul/udao/v0" ) // DAO is a whitelist system that implements the udao.DAO interface. // It can allow a trusted list of addresses to share the administration of realms that are designed to be managed by "DAOs". // It's not a DAO per say. But makes sense to be used to bootstrap a realm until the DAO can replace itself with a really decnetralized autonomous organization. Asan inception. // It's also useful for people who manages multiple keys, like on different computers so they can simulte being a single entity while managing several addresses. type WhitelistDAO struct { admins []address // for the sake of simplicity and because this simple DAO implementation isn't designed to scale, we just keep a simple slice } // check that DAO implements the udao.DAO interface. var _ udao.DAO = (*WhitelistDAO)(nil) func NewWhitelistDAO() *WhitelistDAO { caller := unsafe.PreviousRealm().Address() return &WhitelistDAO{ admins: []address{caller}, } } // udao.DAO methods // func (d *WhitelistDAO) Propose(prop udao.Proposal) (uint64, error) { panic("not implemented") } func (d WhitelistDAO) GetProposalStatus(id uint64) (udao.ProposalStatus, error) { panic("not implemented") } func (d *WhitelistDAO) Execute(id uint64) error { panic("not implemented") } func (d WhitelistDAO) GetProposal(id uint64) (udao.Proposal, error) { panic("not implemented") } // other methods // func (d *WhitelistDAO) AddAdmin(addr address) { panic("not implemented") } func (d *WhitelistDAO) DelAdmin(addr address) { panic("not implemented") } func (d WhitelistDAO) ListAdmins() []address { return d.admins[:] } func (d WhitelistDAO) Render(path string) string { return "TODO" }
  8. #8/gno.MemPackageType
  9. #9 MPUserProd

Result log

msg:0,success:true,log:,events:[]

← Back to block 25,957