Giter Club home page Giter Club logo

Comments (3)

ilblackdragon avatar ilblackdragon commented on July 22, 2024 1

v2 factory should not be creating DAOs with failed calls anymore.
The main problem with this kind of deletion is how to check that DAO is indeed empty. And also who to allow to do this.

Alternative, we can allow Genesis DAO to moderate the list for example, given that list is mostly just for convenience usage anyway.

If DAO needs to be deleted, it can be done now via SelfUpgrade proposal to a contract that would remove things.

from sputnik-dao-contract.

mikedotexe avatar mikedotexe commented on July 22, 2024

Want to point out that you can also add a public key to a DAO, meaning a person can delete that account later.

near call $CONTRACT_ID create '{"name": "genesis", "public_key": "ed25519:CexEjoGcVgb1we3aAwo8o4nZ211p1rnUaoQydHTs9mLo", "args": "$ARGS"}' --accountId $CONTRACT_ID --amount 5 --gas 150000000000000

Perhaps this is something I can explore more later, as we might need to modify the state of the factory, adding a ping function or something to "refresh" them. Not sure of a great way to do this… My first thought would be to send 1 yoctoNEAR to the account we think should still exist and have a callback seeing if that failed.

from sputnik-dao-contract.

AngelBlock avatar AngelBlock commented on July 22, 2024

Want to point out that you can also add a public key to a DAO, meaning a person can delete that account later.

near call $CONTRACT_ID create '{"name": "genesis", "public_key": "ed25519:CexEjoGcVgb1we3aAwo8o4nZ211p1rnUaoQydHTs9mLo", "args": "$ARGS"}' --accountId $CONTRACT_ID --amount 5 --gas 150000000000000

Perhaps this is something I can explore more later, as we might need to modify the state of the factory, adding a ping function or something to "refresh" them. Not sure of a great way to do this… My first thought would be to send 1 yoctoNEAR to the account we think should still exist and have a callback seeing if that failed.

This is one of the cases why I was proposing the DAO deletion mechanism. When DAO is deleted with full access key, it will still remain in the factory state as a reference, and will be returned by getter function, if this is not handled properly on UI it will break it.

from sputnik-dao-contract.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.