-
Notifications
You must be signed in to change notification settings - Fork 6
/
GivethJanMilestones.js
79 lines (72 loc) · 9.18 KB
/
GivethJanMilestones.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
var Adam = "0xC2d9F9c9dD6f76784a8f56f936953b6661A12da8"; // AP
var Barry = "0x39cfe11c1321c7b506eb1d967af6ea35dd6ef304"; // BW
var Griff = "0x839395e20bbb182fa440d08f850e6c7a8f6f0780"; // Griff
var Gian = "0x82aEB1D8939f514318449fa8Ec704A94DC16E01D"; // Gian
var Jordi = "0x1dba1131000664b884a1ba238464159892252d3a"; // Jordi
var Grace = "0x64A1C14aCF4D3d1F8F0316f6C924Ec8f35a27BCF"; // Grace
var Vojtech = "0xf9a2595bFAe0694f114042679b3A9a536Bb7A5D8"; // Vojtech
var MultisigAddy = "0x32bacc8B241FB172fEE18bDa32527126c6f3c5f7";
var ETHprice = 10.45;
var vaultAbi = [{"constant":true,"inputs":[],"name":"maxSecurityGuardDelay","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"escapeHatch","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idPayment","type":"uint256"}],"name":"executePayment","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newTimeLock","type":"uint256"}],"name":"setTimelock","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newEscapeCaller","type":"address"}],"name":"changeEscapeCaller","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"numberOfAuthorizedPayments","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_authorize","type":"bool"}],"name":"authorizeSpender","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idPayment","type":"uint256"}],"name":"cancelPayment","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idPayment","type":"uint256"},{"name":"_delay","type":"uint256"}],"name":"delayPayment","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_description","type":"string"},{"name":"_recipient","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_paymentDelay","type":"uint256"}],"name":"authorizePayment","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"authorizedPayments","outputs":[{"name":"description","type":"string"},{"name":"spender","type":"address"},{"name":"earliestPayTime","type":"uint256"},{"name":"canceled","type":"bool"},{"name":"paid","type":"bool"},{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"},{"name":"securityGuardDelay","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"receiveEther","outputs":[],"payable":true,"type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"securityGuard","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newSecurityGuard","type":"address"}],"name":"setSecurityGuard","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"escapeDestination","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"timeLock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"allowedSpenders","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_maxSecurityGuardDelay","type":"uint256"}],"name":"setMaxSecurityGuardDelay","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"absoluteMinTimeLock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"escapeCaller","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[{"name":"_escapeCaller","type":"address"},{"name":"_escapeDestination","type":"address"},{"name":"_absoluteMinTimeLock","type":"uint256"},{"name":"_timeLock","type":"uint256"},{"name":"_securityGuard","type":"address"},{"name":"_maxSecurityGuardDelay","type":"uint256"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"idPayment","type":"uint256"},{"indexed":false,"name":"recipient","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"PaymentAuthorized","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"idPayment","type":"uint256"},{"indexed":false,"name":"recipient","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"PaymentExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"idPayment","type":"uint256"}],"name":"PaymentCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"from","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"EtherReceived","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"spender","type":"address"},{"indexed":false,"name":"authorized","type":"bool"}],"name":"SpenderAuthorization","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"}],"name":"EscapeCalled","type":"event"}];
var vault = web3.eth.contract(vaultAbi).at(vaultAddr);
var milestonesBytes = milestoneTrackerHelper.milestones2bytes( {
description:"The Airbnb in London for Grace, Griff, Jordi, and Vojtech. We are launching Giveth officially to the public at the Blockchain-Expo and we are staying close to Colony's offices in Shoreditch so after the Expo we can look to collaborate with Colony as much as possible as both projects evolve. The Airbnb is to be reimbursed in full: $1164 USD in ETH at the market rate to Griff Green, the URL shows the receipt posted on IPFS",
url:"https://ipfs.pics/QmX6m4K59WHJRcPjVSUE2p56hCqADpQoevcEvbDxZwStsQ",
minDoneDate:Math.floor(new Date('2017-01-01').getTime() /1000),
maxDoneDate:Math.floor(new Date('2017-05-01').getTime() /1000),
milestoneLeadLink:Griff,
reviewer:Griff,
reviewTime:86400*7,
payDestination:vaultAddr,
payData:vault.authorizePayment.getData(
"London Airbnb",
Griff,
web3.toWei(1164/ETHprice),
0
)
}, {
description:"Brand Management, website design and filling in the gaps: Creating the website including hosting/email setup, First draft website creating the Giveth logo and colors, reviewing blog posts and help to keep Griff in this reality from Dec 1st to Jan 26th: $1000 worth of ETH to be paid at the market rate asap to Grace Torrellas",
url:"http://www.giveth.io",
minDoneDate:Math.floor(new Date('2017-01-01').getTime() /1000),
maxDoneDate:Math.floor(new Date('2017-05-01').getTime() /1000),
milestoneLeadLink:Grace,
reviewer:Griff,
reviewTime:86400*7,
payDestination:vaultAddr,
payData:vault.authorizePayment.getData(
"Grace’s Branding and Startup Work",
Grace,
web3.toWei(1000/ETHprice),
0
)
}, {
description:"Grace’s Expenses: Giveth T-shirts for the core team for the London launch at the blockchain-expo ($106 USD). Reimbursement for the ticket to attend to the North American Bitcoin Conference $300 (includes a $50 discount coupon). Total = $406 USD in ETH at the market rate to be given asap to Grace Torrellas",
url:"https://ipfs.pics/QmW3FgNGeD46kHEryFUw1ftEUqRw254WkKxYeKaouz7DJA",
minDoneDate:Math.floor(new Date('2017-01-01').getTime() /1000),
maxDoneDate:Math.floor(new Date('2017-05-01').getTime() /1000),
milestoneLeadLink:Grace,
reviewer:Griff,
reviewTime:86400*7,
payDestination:vaultAddr,
payData:vault.authorizePayment.getData(
"T-shirts and Tickets bought by Grace",
Grace,
web3.toWei(406/ETHprice),
0
)
}, {
description:"Griff’s Milestone: Promote Giveth and coordinate between all the interested parties and teams; lead the project making sure things get done: a weekly salary of $350 for 39 days (Dec15-Jan26) ($1950) + Code review, adding descriptive comments, admin, editing ReadMes and doing anything else needed to support the development $35/hour for 23 hours ($805) + 2 blog posts ($300) plus spending 16 hours at the Blockchain-expo $25/hour ($400) minus $122 because this was too much money for a charity project that I had a lot of fun working on: Total = $3333 in ETH at the market rate on 1/26/17 at midnight ($ETH Price) to Griff Green",
url:"http://www.giveth.io",
minDoneDate:Math.floor(new Date('2017-01-01').getTime() /1000),
maxDoneDate:Math.floor(new Date('2017-05-01').getTime() /1000),
milestoneLeadLink:Griff,
reviewer:Jordi,
reviewTime:86400*7,
payDestination:vaultAddr,
payData:vault.authorizePayment.getData(
"Griff Making Giveth Happen",
Griff,
web3.toWei(3333/ETHprice),
0
)
});