Skip to content
This repository has been archived by the owner on Jan 22, 2018. It is now read-only.

Ethereum contracts for nanopayments schemes used in Golem Worldwide Supercomputer.

License

Notifications You must be signed in to change notification settings

golemfactory/ethereum-contracts

Repository files navigation

Ethereum Contracts for Golem

Ethereum contracts for nanopayment schemes used in Golem Worldwide Supercomputer.

The contracts have been created thanks to the BlockGrantX #1:Genesis.

Copyright © 2016

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

The Bank Of Deposit contract keeps users' ethers in contract's internal storage. This approach allows performing one-to-many payment scheme that is linearly cheaper than a series of individual Ethereum transactions.

The Lottery contract implements probabilistic one-to-many payments described in A Probabilistic Nanopayment Scheme for Golem. The contract allows organizing a lottery for multiple participants. Only one of the participants becomes a winner and gets the right to collect the lottery's reward.

Testing

The repository contains Python unit tests for the contracts. The pyethereum is used to implement the tests.

pip install -r requirements.txt
python -m unittest discover tests

About

Ethereum contracts for nanopayments schemes used in Golem Worldwide Supercomputer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages