Skip to content

adrianbarwicki/ethnewyork-upvotebutton

Repository files navigation

Moneybutton for upvoting stuff on Internet

Intro

This repository contains a code for creating your own money button component. It does depend on the web3 library and requires Metamask to work correctly.

If you click on the button, it will send X ETH to an Ethereum smart contract that will distribute it between the author and previous voters.

Build version

You will find the build version here: dist/ethnewyork-moneybutton.js.

Example Integration

<html>
    <head>
    <title></title>
    </head>
    <body> 
        <div id="your-custom-moneybutton"></div>

        <script type="text/javascript" src="ethnewyork-moneybutton.js" />
        <script type="text/javascript">
            window.ethNewYorkMoneyButton.bootstrap({
                domID: "your-custom-moneybutton",
                contentId: location.href
            })
        </script>
    </body>
</html>

Technologies used

  • Ethereum
  • Web3
  • SKALE - the smart contracts have been deployed to SKALE side chain in order to significatly lower the costs.

Developers

Licence

MIT

About

Money Button for upvoting stuff on Internet with Ether

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published