Ethtags: Added a confirm popup, donations and withdrawals

in utopian-io •  7 years ago  (edited)

This is yet another update to my ongoing project ethtags. This time I have focused on the sustainability of the whole project and I have also added some conviniece oriented features. For those who do not know Ethtags, it is my project that runs in ethereum blockchain, it lets you add name and a signature to your ethereum address and the share this dogtag in a form of a link or iframe. The contract and frontend now also support a verification of the dogtag.

Link to the project is here and you can check it out on github here.

Commits

Contract

There are two new functions and one change. Two new functions are donate and withdraw, they are just simple functions in order to let people send ethereum to the contract and to let the owner withdraw from the contract. The one change is that the functions that alter the dogtag are now payable.

Review popup and donation

pic_review
After you click the submit button to submit your dogtag, you now have to review what you are submitting in order to prevent costly errors. This popup also contains a field which lets you donate ethereum to the contract. This money is then available to the owner of the contract and can be transferred to the owners address, however there is a limit of 90% of total contract balance in order to ensure that the contract always has some amount of ethereum at its disposal, this may be used in future for example when updates are implemented or in order to move larger amounts of data, I am working on a way of updating the contract efficiently, but it is rather complicated.

Withdraw form

pic_withdraw
This is more of a convinience feature rather than a necesity it lets the owner of the contract conviniently withdraw specified amount of ethereum from the contract.

Readme

I have updated the readme a bit.

Feel free to check out the project, just make sure that you are using the Ropsten test network. I have written about switching to it in metamask in my previous posts.



Posted on Utopian.io - Rewarding Open Source Contributors

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Thank you for the contribution. It has been approved.

It's nice to see how your solidity contract is evolving.
I look forward more instructions on deployment.

You can contact us on Discord.
[utopian-moderator]

Hey @helo, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

Thanks for the approval. I hope to get it all done in next couple of months, ideally by april. I am planning to write a some tutorials afterwards on how I did things and how they should be done.