Comments (3)
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.
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.
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)
- Re-write all the tests that are using `near-sdk-sim` to use `near/workspaces-rs`
- Re-write all the tests that are using `near-workspaces-ava` to use `near/workspaces-rs`
- The contract has already been initialized HOT 2
- the account ID is invalid HOT 21
- What is HashSet<String> ? HOT 1
- "ExecutionError":"Exceeded the prepaid gas." HOT 1
- How to update role : "vote_policy" HOT 1
- README file in sputnikdao-factory2 doesn't work HOT 1
- Adding new members for Paras DAO HOT 2
- require attached deposit for voting
- "ExecutionError": "Smart contract panicked: panicked at 'attempt to subtract with overflow' HOT 5
- A question about minting
- Refinement of cross-contract call policy HOT 1
- Build impossible HOT 6
- `UpgradeRemote` on workspace-rs sandbox seems to behave unexpectedly HOT 5
- "Exceeded the prepaid gas." when approved and excute UpgradeRemote
- Feat: Review contract metadata strategy and relevance HOT 1
- Feat: Upgrade to latest near-sdk-rs
- When send to dao address tokens other than NEAR dont show in funds tab, neither the transaction history
- near deploy linktown-sputnik.testnet --wasmFile=res/sputnikdao_factory2.wasm HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sputnik-dao-contract.