Bitcoin Forum
May 10, 2024, 08:53:13 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [BOUNTY] 2 BTC -- Betarigs Dual API Programming Challenge  (Read 4896 times)
mux (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
June 24, 2014, 09:29:35 AM
Last edit: July 15, 2014, 09:08:28 AM by mux
 #1

Betarigs Dual API Programming Challenge -- 2 BTC Bounty total!

[BOUNTY AWARDED]Betarigs API Programming Challenge number 1 : Mass rental script -- 1 BTC Bounty!
Winner: https://github.com/Toorop/betarigs-autorent

1 BTC will be awarded to the submitted script selected by Betarigs that:
1/ Work on all OSes (Win/Mac/Linux) on the command line.
2/ Use Betarigs and Coinbase API (whose API keys will be stored either in a config file, or in the script itself)
3/ Takes as input:
 - An target amount of Mh/s to rent
 - A mining algorithm (X11, Scrypt, ...)
 - A maximum price in BTC/Mh/day of the rigs to rent
 - A given duration in hours (to be taken in the list of available Betarigs durations; so all rigs would be rented for that duration)
 - A target pool URL, worker name and worker password
4/ Have the following behavior:
 - The script will use the Betarigs API to create rentals up to the target amount of Mh/s to rent (unless the maximum price in BTC/Mh/day is reached)
 - The script will then use the Coinbase API to pay for these rentals (use the "idem" parameter on the Coinbase payment API to prevent double payments!!!)
 - The script will then, without waiting for the payment to be confirmed by Betarigs, put the pool infos (URL, worker name, password) on the created rentals
5/ As output, the script will have launched and paid mining rentals based on the input parameters.
6/ The script must be sufficiently verbose to inform what it is doing.
7/ The script must have a dry-run mode: It would be an option that, if used, will simulate the rental creation and payment, but not actually do it.
8/ The script will have to handle all the error scenarios (no more rentals under the specified price, rig got rented by someone else, Coinbase API returning an error ("You are sending too fast, wait a bit"), ...)
9/ The submission of participants will be assessed on the forum thread https://bitcointalk.org/index.php?topic=434464.0 ; and any feedback by Betarigs about bugs/missing features will be posted on this forum.
10/ The resulting script will have to be open-source, and hosted on Github.
11/ The actual winner will be assessed by the Betarigs team. Code quality, proper output, handling of errors, fullfillment of requirements, will be criterias used to determine a winner. There is no time limit, a winner can be designated as soon as a proper script is created.


[BOUNTY AWARDED] Betarigs API Programming Challenge number 2 : Mass rental website -- 1 BTC Bounty!
Winner: https://github.com/sathoro/betarigs-manager

1 BTC will be awarded to the submitted website selected by Betarigs that:
1/ Use PHP as a language. The full project needs to be fully in PHP. A Symfony 2 setup with bundles will be strongly preferred.
2/ Use Betarigs and Coinbase API (whose API keys will be stored in a config file)
3/ Takes as input, in a form in a web page:
 - An target amount of Mh/s to rent
 - A mining algorithm (X11, Scrypt, ...)
 - A maximum price in BTC/Mh/day of the rigs to rent
 - A given duration in hours (to be taken in the list of available Betarigs durations; so all rigs would be rented for that duration)
 - A target pool URL, worker name and worker password
4/ Have the following behavior:
 - The website will use the Betarigs API to create rentals up to the target amount of Mh/s to rent (unless the maximum price in BTC/Mh/day is reached)
 - The website will then use the Coinbase API to pay for these rentals (use the "idem" parameter on the Coinbase payment API to prevent double payments!!!)
 - The website will then, without waiting for the payment to be confirmed by Betarigs, put the pool infos (URL, worker name, password) on the created rentals
5/ As output, the web page will have launched and paid mining rentals based on the input parameters.
6/ The web page should display the various actions taken as a result of the form submission (which rigs were rented, etc)
7/ The website must have a dry-run mode: It would be an option that, if used, will simulate the rental creation and payment, but not actually do it.
8/ The web page should then be able to display the status of the currently rented rigs, and to mass update their pool credentials.
9/ The web page will have to handle all the error scenarios (no more rentals under the specified price, rig got rented by someone else, Coinbase API returning an error ("You are sending too fast, wait a bit"), ...)
10/ The submission of participants will be assessed on the forum thread https://bitcointalk.org/index.php?topic=434464.0 ; and any feedback by Betarigs about bugs/missing features will be posted on this forum.
11/ The resulting website will have to be open-source, and hosted on Github.
12/ The website code will have to work standalone (i.e. only a database connection, and a composer install will be needed).
13/ The website will NOT need to work for external visitors. The website will primarily need to work for his owner, the admin. (Of course, it's a big bonus if it works for external visitors, but that's a much larger work, so it's not required)
14/ The actual winner will be assessed by the Betarigs team. Website aestetics, reusability, code quality, proper output, handling of errors, fullfillment of requirements, will be criterias used to determine a winner. There is no time limit, a winner can be designated as soon as a proper website is created.


Good luck!

REVISIONS : Specs may be slightly modified (mainly adding more details), and the change list will be listed here:

29 June: The Challenge 2 is closed, the bounty has been awarded to https://github.com/sathoro/betarigs-manager and paid via https://blockchain.info/tx/0058ad971ce8c7154e25a581aa607c1e6b380963e12811358f960f3ddbf1bd61 !

15 July: The Challenge 1 is closed, the bounty has been awarded to https://github.com/Toorop/betarigs-autorent and paid via https://blockchain.info/tx/f7fb695923e606ce11a81192fa06ee976b408f4574e5bd85a0430d4694d7ae75

BETARIGS.COM - Leasing a rig is as simple as adding a pool!
Bitrated user: Mux.
1715374393
Hero Member
*
Offline Offline

Posts: 1715374393

View Profile Personal Message (Offline)

Ignore
1715374393
Reply with quote  #2

1715374393
Report to moderator
1715374393
Hero Member
*
Offline Offline

Posts: 1715374393

View Profile Personal Message (Offline)

Ignore
1715374393
Reply with quote  #2

1715374393
Report to moderator
1715374393
Hero Member
*
Offline Offline

Posts: 1715374393

View Profile Personal Message (Offline)

Ignore
1715374393
Reply with quote  #2

1715374393
Report to moderator
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715374393
Hero Member
*
Offline Offline

Posts: 1715374393

View Profile Personal Message (Offline)

Ignore
1715374393
Reply with quote  #2

1715374393
Report to moderator
1715374393
Hero Member
*
Offline Offline

Posts: 1715374393

View Profile Personal Message (Offline)

Ignore
1715374393
Reply with quote  #2

1715374393
Report to moderator
1715374393
Hero Member
*
Offline Offline

Posts: 1715374393

View Profile Personal Message (Offline)

Ignore
1715374393
Reply with quote  #2

1715374393
Report to moderator
danosphere
Legendary
*
Offline Offline

Activity: 1036
Merit: 1001


Syscoin- Changing the way people do business.


View Profile WWW
June 24, 2014, 07:23:27 PM
 #2

Interesting. Low bounty IMO. Especially for the "Mass Rental Website" [stipulating the symphony2 framework be used, which I've worked with].

I love Betarigs tho. Good luck to those who participate!

Syscoin: Business on the Blockchain. - Buy and sell goods and services, send encrypted messages and more all secured by the blockchain.
Syscoin Website | Syscoin Whitepaper | Syscoin Team Price Peg
mux (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
June 25, 2014, 07:12:54 AM
 #3

Hello!

Indeed, the website would take more time than the script -- but we are expecting only a raw admin form; not a fancy website with external users and so on :-)
On the other hand, the script should only take a few hundreds lines; this one should be quite easy ;-)

BETARIGS.COM - Leasing a rig is as simple as adding a pool!
Bitrated user: Mux.
mux (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
June 26, 2014, 08:04:49 AM
 #4

First submission on the Challenge 2 (website) received!

BETARIGS.COM - Leasing a rig is as simple as adding a pool!
Bitrated user: Mux.
mux (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
June 29, 2014, 05:57:40 PM
 #5

Bounty of 1 BTC for the Challenge 2 (website) has been awarded to Sathoro!

His website work is at: https://github.com/sathoro/betarigs-manager (which was then cloned to https://github.com/betarigs/betarigs-manager )
His bounty has been sent via https://blockchain.info/tx/0058ad971ce8c7154e25a581aa607c1e6b380963e12811358f960f3ddbf1bd61

BETARIGS.COM - Leasing a rig is as simple as adding a pool!
Bitrated user: Mux.
fr333n3rgy
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
July 03, 2014, 03:55:59 PM
 #6

did anyone got this ever to work? The do-rent route does not work/not enough data checking/no returns ...

blah
mux (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
July 03, 2014, 05:55:25 PM
 #7

did anyone got this ever to work? The do-rent route does not work/not enough data checking/no returns ...

blah


Hello;

I personally tested the website submission, it does work :-)

Also, I just got a submission for the script, which I'm going to review in the next days.

BETARIGS.COM - Leasing a rig is as simple as adding a pool!
Bitrated user: Mux.
Toorop
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
July 03, 2014, 06:17:41 PM
 #8

Also, I just got a submission for the script, which I'm going to review in the next days.

Rhaaa too bad i've just started a dev this afternoon.
50% is done  Undecided

I wanted to provide reals CLI binaries (*nix, windows, MacOs) with zero dependencies  (unlike script which needs an interpreter) made with Go.
A screenshot: https://www.dropbox.com/s/ibwtfq74mx5afts/Capture%20d%E2%80%99%C3%A9cran%202014-07-03%20%C3%A0%2020.11.50.png

Ping me if the script submitted will not pass your review, i'll will continue my dev.

For info i'have made an other tool some weeks ago which automatically adjusts rig rental prices :
https://github.com/Toorop/betarigs-autoprice

fr333n3rgy
Newbie
*
Offline Offline

Activity: 42
Merit: 0


View Profile
July 03, 2014, 09:11:59 PM
 #9

did anyone got this ever to work? The do-rent route does not work/not enough data checking/no returns ...

blah


Hello;

I personally tested the website submission, it does work :-)

Also, I just got a submission for the script, which I'm going to review in the next days.

mux, I've followed the instruction - so I am missing something I guess. What are the step-by-step installation on a new unix box (with composer already installed) ? - thanks -- no hurry as I am using my own scripts for now, but i'd like to give this a go someday.

mux (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
July 07, 2014, 06:38:20 PM
 #10

Also, I just got a submission for the script, which I'm going to review in the next days.

Rhaaa too bad i've just started a dev this afternoon.
50% is done  Undecided

I wanted to provide reals CLI binaries (*nix, windows, MacOs) with zero dependencies  (unlike script which needs an interpreter) made with Go.
A screenshot: https://www.dropbox.com/s/ibwtfq74mx5afts/Capture%20d%E2%80%99%C3%A9cran%202014-07-03%20%C3%A0%2020.11.50.png

Ping me if the script submitted will not pass your review, i'll will continue my dev.

For info i'have made an other tool some weeks ago which automatically adjusts rig rental prices :
https://github.com/Toorop/betarigs-autoprice



Hello!

Sorry for the delay, a long weekend was inbetween!
I like what I'm seeing at first glance on this screenshot! (Plus it's made in Go! And plus you made a lib for Go :-) )
Please continue your work, and if both of your scripts are good, I'm going to add a secondary bounty for the one not being the best! Then we'll have one in Python and one in Go!

Mux

BETARIGS.COM - Leasing a rig is as simple as adding a pool!
Bitrated user: Mux.
mux (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
July 07, 2014, 06:42:25 PM
 #11

did anyone got this ever to work? The do-rent route does not work/not enough data checking/no returns ...

blah


Hello;

I personally tested the website submission, it does work :-)

Also, I just got a submission for the script, which I'm going to review in the next days.

mux, I've followed the instruction - so I am missing something I guess. What are the step-by-step installation on a new unix box (with composer already installed) ? - thanks -- no hurry as I am using my own scripts for now, but i'd like to give this a go someday.


Re!

Well, I basically followed the instructions in the README at https://github.com/betarigs/betarigs-manager, and it proved to be sufficient. Can you tell me at which step you are having problems?
For composer, if you don't have it, you can
Code:
curl -sS https://getcomposer.org/installer | php

BETARIGS.COM - Leasing a rig is as simple as adding a pool!
Bitrated user: Mux.
Toorop
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
July 08, 2014, 08:27:50 AM
 #12

Hi,

I've just finished my CLI version:

http://dl.toorop.fr/pics/brAutorent-demo.gif

More info on Github: https://github.com/Toorop/betarigs-autorent

Enjoy  Cool
mux (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250


View Profile
July 15, 2014, 09:06:38 AM
 #13

Ok the script version 1 BTC bounty has been awarded to Toorop via the TX f7fb695923e606ce11a81192fa06ee976b408f4574e5bd85a0430d4694d7ae75 !

His project has been forked to https://github.com/betarigs/betarigs-autorent

Thanks a lot for all your submissions!!!

BETARIGS.COM - Leasing a rig is as simple as adding a pool!
Bitrated user: Mux.
vnhyp0
Member
**
Offline Offline

Activity: 106
Merit: 10


View Profile
August 13, 2014, 05:38:14 PM
 #14

It would be nice to have the ability to blacklist rigs manually so they are never rented (and also perhaps not include rentals with below X rating, or with no rating). There seems to be a rig or two that are low rating and poor performance on the site and it would be nice to be able to manually decide whether or not to rent the rigs. It would also help customers avoid renting the scam rigs and give less profits to the scammers.

Thanks for the great site and API scripts added so far!

QQ: 2228207157
Toorop
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
August 14, 2014, 08:23:12 AM
 #15

It would be nice to have the ability to blacklist rigs manually so they are never rented.

I'm currently on holiday, i'll will add this feature when i'll come back (end of the month)

Thanks for your feedback.
Toorop
Newbie
*
Offline Offline

Activity: 32
Merit: 0


View Profile
September 26, 2014, 12:46:10 PM
 #16

It would be nice to have the ability to blacklist rigs manually

Done: https://github.com/Toorop/betarigs-autorent

Just add a file named "blacklistedRigs.txt" (in the same directories as the app) containing a list of rigs to skip (one per line).

I plan to add a "paranoid mod", which automatically skip never rented rigs & rigs with bad ratings.
No ETA for this option, i'm currently very busy.

Enjoy Cool

Stoneboy
Member
**
Offline Offline

Activity: 69
Merit: 10


View Profile WWW
December 27, 2015, 07:08:27 AM
 #17

Is this scrypt still usable?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!