-
Notifications
You must be signed in to change notification settings - Fork 38
Description
This refers to the coinvault instance of the wallet.
https://github.com/CoinVault/coinvault-extension
Add a tab for DAO Management support
Only the coinvault wallet under Cirrus (CRS) a user will see an additional tab call DAO
This tab will enable a user to manage and create DAO contracts
The DAO contract can be found here
https://github.com/stratisproject/CirrusSmartContracts/blob/master/Mainnet/DAOContract/DAOContract/DAOContract.cs
The methods that would be nice to support is
- CreateProposal : An owner of a proposal can create a proposal
- Vote : DAO users can vote on a proposal
- ExecuteProposal : when a proposal is complete the creator can take the funds
- Deposit : adds funds
- WhiteListAddress : allow an address to vote
- TransferOwnership
Basically we should probably be able to call all the public methods of that contract or at least the ability to vote by DAO users
There is a JS library to build a transaction that can call a method on a smart contract in this repo
https://github.com/stratisproject/bitcore-lib-cirrus
Alternatively if its too hard to create the C# byte code for a Cirrus transaction we could expose an endpoint on the cirrus indexer to create the transaction and use the wallet only for signing it, we could add a controller here for CirrusContractTemplatesController.cs
https://github.com/block-core/blockcore-indexer/tree/master/src/Blockcore.Indexer.Cirrus/Controllers
Add a tab for Token Management support
This tab will enable a user to manage and create tokens
Functionality of a token management can be found in the cirrus core wallet (this can be downloaded here)
https://www.stratisplatform.com/wallets/
The Standard Token contract can be found here
https://github.com/stratisproject/CirrusSmartContracts/blob/master/Mainnet/StandardToken/StandardToken/StandardToken.cs
The methods we should support are probably
- TransferTo
- TransferFrom
- GetBalance
We should also display some parameters like TotalSupply etc...
Add a tab for Calling Smartcontracts
The same cirrus core wallet has that support already for calling a contract
