gitcoinco / web

Grow Open Source
https://gitcoin.co
Other
1.78k stars 771 forks source link

Desktop Miner integration #2324

Closed captnseagraves closed 5 years ago

captnseagraves commented 5 years ago

Why Is this Needed

Summary: We need a miner to listen for metatx and to submit them onchain when appropriate time comes

Description

Type: Work with Austin Griffith to import his desktop miner into Gitcoin. Will likely be in a docker container.

Definition of Done

When we can submit a metatx from the app and have the desktop miner process those transactions correctly

owocki commented 5 years ago

cc @austingriffith in case he wants to advance the 1337-ness of his desktop miner

captnseagraves commented 5 years ago

@mbeacom I think we should prioritize this issue. It will unblock work for @owocki on sync-geth stuff, and the web3 integration/test stuff for me.

owocki commented 5 years ago

https://github.com/austintgriffith/tokensubscription.com/blob/master/backend/tokensubminer.js is austin's subminer https://github.com/gitcoinco/grants1337/blob/master/Subscription/Subscription.sol is the contract

owocki commented 5 years ago

subminer psuedo code

iterate through all subscriptions: contract.methods.getSubscriptionHash ready = contract.methods.isSubscriptionReady if ready: contract.methods.executeSubscription