This repository has been archived by the owner on Dec 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdeploy_minime.js
177 lines (148 loc) · 98.3 KB
/
deploy_minime.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
/*jslint node: true */
"use strict";
var Web3 = require('web3');
// create an instance of web3 using the HTTP provider.
// NOTE in mist web3 is already available, so check first if its available before instantiating
var web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
var BigNumber = require('bignumber.js');
var milestoneTrackerHelper = require('milestonetracker');
var eth = web3.eth;
var Adam = "0xC2d9F9c9dD6f76784a8f56f936953b6661A12da8"; // AP
var Barry = "0x39cfe11c1321c7b506eb1d967af6ea35dd6ef304"; // BW
var Griff = "0x839395e20bbb182fa440d08f850e6c7a8f6f0780"; // Griff
var Gian = "0x82aEB1D8939f514318449fa8Ec704A94DC16E01D"; // Gian
var Jordi = "0x1dba1131000664b884a1ba238464159892252d3a"; // Jordi
var multisigAbi = [{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"removeOwner","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_addr","type":"address"}],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"m_numOwners","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"m_lastDay","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"resetSpentToday","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"m_spentToday","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"addOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"m_required","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_h","type":"bytes32"}],"name":"confirm","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newLimit","type":"uint256"}],"name":"setDailyLimit","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"},{"name":"_data","type":"bytes"}],"name":"execute","outputs":[{"name":"_r","type":"bytes32"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_operation","type":"bytes32"}],"name":"revoke","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newRequired","type":"uint256"}],"name":"changeRequirement","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_operation","type":"bytes32"},{"name":"_owner","type":"address"}],"name":"hasConfirmed","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"ownerIndex","type":"uint256"}],"name":"getOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"}],"name":"kill","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"m_dailyLimit","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"_owners","type":"address[]"},{"name":"_required","type":"uint256"},{"name":"_daylimit","type":"uint256"}],"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"}],"name":"Confirmation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"}],"name":"Revoke","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"},{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newOwner","type":"address"}],"name":"OwnerAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"oldOwner","type":"address"}],"name":"OwnerRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"newRequirement","type":"uint256"}],"name":"RequirementChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"SingleTransact","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"operation","type":"bytes32"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"MultiTransact","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"operation","type":"bytes32"},{"indexed":false,"name":"initiator","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"data","type":"bytes"}],"name":"ConfirmationNeeded","type":"event"}];
var multisig = web3.eth.contract(multisigAbi).at("0x32bacc8b241fb172fee18bda32527126c6f3c5f7");
var minimetokenfactoryAbi = [{"constant":false,"inputs":[{"name":"_parentToken","type":"address"},{"name":"_snapshotBlock","type":"uint256"},{"name":"_tokenName","type":"string"},{"name":"_decimalUnits","type":"uint8"},{"name":"_tokenSymbol","type":"string"},{"name":"_transfersEnabled","type":"bool"}],"name":"createCloneToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"}];
var minimetokenfactoryContract = web3.eth.contract(minimetokenfactoryAbi);
var minimetokenfactory = minimetokenfactoryContract.new(
{
from: web3.eth.accounts[0],
data: '0x606060405234610000575b611e1e806100186000396000f3606060405260e060020a60003504635b7b72c1811461001e575b610000565b3461000057604080516020600460443581810135601f81018490048402850184019095528484526100b994823594602480359560649492939190920191819084018382808284375050604080516020601f818a01358b0180359182018390048302840183018552818452989a8a359a90999401975091955091820193509150819084018382808284375094965050933593506100d592505050565b60408051600160a060020a039092168252519081900360200190f35b6000600030888888888888604051611bc38061025b8339018088600160a060020a0316815260200187600160a060020a03168152602001868152602001806020018560ff1681526020018060200184151581526020018381038352878181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156101835780820380516001836020036101000a031916815260200191505b508381038252858181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156101dc5780820380516001836020036101000a031916815260200191505b509950505050505050505050604051809103906000f0801561000057905080600160a060020a0316633cebb823336040518260e060020a0281526004018082600160a060020a03168152602001915050600060405180830381600087803b156100005760325a03f115610000575050508091505b5096955050505050505660a0604052600760608190527f4d4d545f302e310000000000000000000000000000000000000000000000000060809081526004805460008290527f4d4d545f302e310000000000000000000000000000000000000000000000000e825590927f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b602060026001851615610100026000190190941693909304601f0192909204820192909190620000db565b82800160010185558215620000db579182015b82811115620000db578251825591602001919060010190620000be565b5b50620000ff9291505b80821115620000fb5760008155600101620000e5565b5090565b505034620000005760405162001bc338038062001bc383398101604090815281516020830151918301516060840151608085015160a086015160c0870151949693949284019391929101905b5b60008054600160a060020a0319166c01000000000000000000000000338102041790555b86600b60016101000a815481600160a060020a0302191690836c010000000000000000000000009081020402179055508360019080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001ee57805160ff19168380011785556200021e565b828001600101855582156200021e579182015b828111156200021e57825182559160200191906001019062000201565b5b50620002429291505b80821115620000fb5760008155600101620000e5565b5090565b50506002805460ff19167f010000000000000000000000000000000000000000000000000000000000000085810204178155825160038054600082905290927fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b60206101006001851615026000190190931691909104601f90810183900482019392870190839010620002e157805160ff191683800117855562000311565b8280016001018555821562000311579182015b8281111562000311578251825591602001919060010190620002f4565b5b50620003359291505b80821115620000fb5760008155600101620000e5565b5090565b505060058054600160a060020a0319166c01000000000000000000000000888102041790556006859055600b805460ff19167f010000000000000000000000000000000000000000000000000000000000000083810204179055436007555b505050505050505b61181880620003ab6000396000f36060604052361561011c5760e060020a600035046306fdde038114610213578063095ea7b31461028e57806317634514146102b557806318160ddd146102d457806323b872dd146102f3578063313ce5671461031d5780633cebb823146103405780634ee2cd7e1461035257806354fd4d50146103775780636638c087146103f257806370a08231146104aa57806380a54001146104cc578063827f32c0146104f557806395d89b411461051c578063981b24d014610597578063a9059cbb146105b9578063bef97c87146105e0578063c5bcc4f114610601578063cae9ca5114610620578063d3ce77fe1461068b578063dd62ed3e146106b2578063e77772fe146106d7578063f41e60c514610700578063f77c479114610712575b6102115b600054600160a060020a0316151561013757610000565b60005461014c90600160a060020a031661073b565b156101d957600060009054906101000a9004600160a060020a0316600160a060020a031663f48c305434336000604051602001526040518360e060020a0281526004018082600160a060020a031681526020019150506020604051808303818588803b156100005761235a5a03f11561000057505060405151151591506101d4905057610000565b61020d565b60008054604051600160a060020a03909116913480156108fc02929091818181858888f19350505050151561020d57610000565b5b5b565b005b346100005761022061074a565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156102805780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34610000576102a16004356024356107d7565b604080519115158252519081900360200190f35b34610000576102c2610955565b60408051918252519081900360200190f35b34610000576102c261095b565b60408051918252519081900360200190f35b34610000576102a160043560243560443561096c565b604080519115158252519081900360200190f35b346100005761032a610a0e565b6040805160ff9092168252519081900360200190f35b3461000057610211600435610a17565b005b34610000576102c2600435602435610a67565b60408051918252519081900360200190f35b3461000057610220610bbc565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156102805780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b346100005761048e600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284375050604080516020601f818a01358b0180359182018390048302840183018552818452989a8a359a90999401975091955091820193509150819084018382808284375094965050843594602001359350610c4a92505050565b60408051600160a060020a039092168252519081900360200190f35b34610000576102c2600435610e51565b60408051918252519081900360200190f35b346100005761048e610e65565b60408051600160a060020a039092168252519081900360200190f35b34610000576102a1600435602435610e74565b604080519115158252519081900360200190f35b3461000057610220610f2d565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156102805780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34610000576102c2600435610fbb565b60408051918252519081900360200190f35b34610000576102a16004356024356110bb565b604080519115158252519081900360200190f35b34610000576102a16110e3565b604080519115158252519081900360200190f35b34610000576102c26110ec565b60408051918252519081900360200190f35b3461000057604080516020600460443581810135601f81018490048402850184019095528484526102a19482359460248035956064949293919092019181908401838280828437509496506110f295505050505050565b604080519115158252519081900360200190f35b34610000576102a1600435602435611277565b604080519115158252519081900360200190f35b34610000576102c2600435602435611349565b60408051918252519081900360200190f35b346100005761048e611376565b60408051600160a060020a039092168252519081900360200190f35b346100005761021160043561138a565b005b346100005761048e6113be565b60408051600160a060020a039092168252519081900360200190f35b6000813b908111905b50919050565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107cf5780601f106107a4576101008083540402835291602001916107cf565b820191906000526020600020905b8154815290600101906020018083116107b257829003601f168201915b505050505081565b600b5460009060ff1615156107eb57610000565b811580159061081e5750600160a060020a0333811660009081526009602090815260408083209387168352929052205415155b1561082857610000565b600054600160a060020a031615801590610852575060005461085290600160a060020a031661073b565b5b156108ed576000805460408051602090810184905281517fda682aeb000000000000000000000000000000000000000000000000000000008152600160a060020a0333811660048301528881166024830152604482018890529251929093169363da682aeb9360648082019492918390030190829087803b156100005760325a03f11561000057505060405151151590506108ed57610000565b5b600160a060020a03338116600081815260096020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060015b92915050565b60075481565b600061096643610fbb565b90505b90565b6000805433600160a060020a039081169116146109f957600b5460ff16151561099457610000565b600160a060020a0380851660009081526009602090815260408083203390941683529290522054829010156109cb57506000610a07565b600160a060020a03808516600090815260096020908152604080832033909416835292905220805483900390555b610a048484846113cd565b90505b9392505050565b60025460ff1681565b60005433600160a060020a03908116911614610a3257610000565b6000805473ffffffffffffffffffffffffffffffffffffffff19166c01000000000000000000000000838102041790555b5b50565b6000600754821015610a7f5750600061094f5661094f565b600160a060020a0383166000908152600860205260409020541580610ade5750600160a060020a0383166000908152600860205260408120805484929081101561000057906000526020600020900160005b50546001608060020a0316115b15610b8b57600554600160a060020a031615610b7e57600560009054906101000a9004600160a060020a0316600160a060020a0316634ee2cd7e846006546000604051602001526040518360e060020a0281526004018083600160a060020a0316815260200182815260200192505050602060405180830381600087803b156100005760325a03f11561000057505060405151915061094f905056610b86565b50600061094f565b61094f565b600160a060020a0383166000908152600860205260409020610bad90836115a3565b905061094f565b5b5b92915050565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107cf5780601f106107a4576101008083540402835291602001916107cf565b820191906000526020600020905b8154815290600101906020018083116107b257829003601f168201915b505050505081565b6000600043841115610c5a574393505b600b60019054906101000a9004600160a060020a0316600160a060020a0316635b7b72c130868a8a8a896000604051602001526040518760e060020a0281526004018087600160a060020a03168152602001868152602001806020018560ff1681526020018060200184151581526020018381038352878181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f168015610d235780820380516001836020036101000a031916815260200191505b508381038252858181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f168015610d7c5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b156100005760325a03f1156100005750505060405180519060200150905080600160a060020a0316633cebb823336040518260e060020a0281526004018082600160a060020a03168152602001915050600060405180830381600087803b156100005760325a03f115610000575050604080518681529051600160a060020a03841692507f086c875b377f900b07ce03575813022f05dd10ed7640b5282cf6d3c3fc352ade9181900360200190a28091505b5095945050505050565b6000610e5d8243610a67565b90505b919050565b600554600160a060020a031681565b600080548190819033600160a060020a03908116911614610e9457610000565b610e9f600a436115a3565b9150610eae600a8584016116f3565b610eb785610e51565b600160a060020a0386166000908152600860205260409020909150610ede908583016116f3565b604080518581529051600160a060020a038716916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3600192505b5b505092915050565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107cf5780601f106107a4576101008083540402835291602001916107cf565b820191906000526020600020905b8154815290600101906020018083116107b257829003601f168201915b505050505081565b6000600754821015610fd357506000610e6056610e60565b600a541580611006575081600a6000815481101561000057906000526020600020900160005b50546001608060020a0316115b156110a257600554600160a060020a03161561109557600560009054906101000a9004600160a060020a0316600160a060020a031663981b24d06006546000604051602001526040518260e060020a02815260040180828152602001915050602060405180830381600087803b156100005760325a03f115610000575050604051519150610e6090505661109d565b506000610e60565b610e60565b6110ad600a836115a3565b9050610e60565b5b5b919050565b600b5460009060ff1615156110cf57610000565b6110da3384846113cd565b90505b92915050565b600b5460ff1681565b60065481565b600160a060020a03338116600081815260096020908152604080832094881680845294825280832087905580518781529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a383600160a060020a031660405180807f72656365697665417070726f76616c28616464726573732c75696e743235362c81526020017f616464726573732c627974657329000000000000000000000000000000000000815260200150602e019050604051809103902060e060020a9004338530866040518560e060020a0281526004018085600160a060020a0316815260200184815260200183600160a060020a031681526020018280519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156112445780820380516001836020036101000a031916815260200191505b509450505050506000604051808303816000876161da5a03f192505050151561126c57610000565b5060015b9392505050565b600080548190819033600160a060020a0390811691161461129757610000565b6112a2600a436115a3565b9150838210156112b157610000565b6112be600a8584036116f3565b6112c785610e51565b9050838110156112d657610000565b600160a060020a03851660009081526008602052604090206112fa908583036116f3565b604080518581529051600091600160a060020a038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3600192505b5b505092915050565b600160a060020a038083166000908152600960209081526040808320938516835292905220545b92915050565b600b546101009004600160a060020a031681565b60005433600160a060020a039081169116146113a557610000565b600b805460ff191660f860020a838102041790555b5b50565b600054600160a060020a031681565b600080808315156113e1576001925061159a565b600160a060020a0385161580611408575030600160a060020a031685600160a060020a0316145b1561141257610000565b61141c8643610a67565b91508382101561142f576000925061159a565b600054600160a060020a031615801590611459575060005461145990600160a060020a031661073b565b5b156114f4576000805460408051602090810184905281517f4a393149000000000000000000000000000000000000000000000000000000008152600160a060020a038b811660048301528a81166024830152604482018a905292519290931693634a3931499360648082019492918390030190829087803b156100005760325a03f11561000057505060405151151590506114f457610000565b5b600160a060020a0386166000908152600860205260409020611519908584036116f3565b6115238543610a67565b600160a060020a038616600090815260086020526040902090915061154a908583016116f3565b84600160a060020a031686600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef866040518082815260200191505060405180910390a3600192505b50509392505050565b60006000600060008580549050600014156115c157600093506116ea565b8554869060001981019081101561000057906000526020600020900160005b50546001608060020a03168510611629578554869060001981019081101561000057906000526020600020900160005b5054608060020a90046001608060020a031693506116ea565b856000815481101561000057906000526020600020900160005b50546001608060020a031685101561165e57600093506116ea565b8554600093506000190191505b828211156116bc576002600183850101049050848682815481101561000057906000526020600020900160005b50546001608060020a0316116116b0578092506116b7565b6001810391505b61166b565b8583815481101561000057906000526020600020900160005b5054608060020a90046001608060020a031693505b50505092915050565b81546000908190158061172f575083544390859060001981019081101561000057906000526020600020900160005b50546001608060020a0316105b156117d45783848054809190600101815481835581811511611776576000838152602090206117769181019083015b80821115611772576000815560010161175e565b5090565b5b505050815481101561000057906000526020600020900160005b508054608060020a8581028190048102438202919091046fffffffffffffffffffffffffffffffff19909216919091176001608060020a03161781559150611811565b8354849060001981019081101561000057906000526020600020900160005b5080546001608060020a0316608060020a8581028190040217815590505b5b5050505056',
gas: '3000000'
}, function (e, contract){
console.log(e, contract);
if (typeof contract.address !== 'undefined') {
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
}
});
var _tokenFactory = minimetokenfactory.address ;
var _parentToken = 0 ;
var _parentSnapShotBlock = 0 ;
var _tokenName = 'Giveth Token' ;
var _decimalUnits = 18 ;
var _tokenSymbol = 'GTH' ;
var _transfersEnabled = true ;
var minimetokenAbi = [{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"creationBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newController","type":"address"}],"name":"changeController","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_blockNumber","type":"uint256"}],"name":"balanceOfAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_cloneTokenName","type":"string"},{"name":"_cloneDecimalUnits","type":"uint8"},{"name":"_cloneTokenSymbol","type":"string"},{"name":"_snapshotBlock","type":"uint256"},{"name":"_transfersEnabled","type":"bool"}],"name":"createCloneToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"parentToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_amount","type":"uint256"}],"name":"generateTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_blockNumber","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"transfersEnabled","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"parentSnapShotBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_amount","type":"uint256"}],"name":"destroyTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenFactory","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_transfersEnabled","type":"bool"}],"name":"enableTransfers","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[{"name":"_tokenFactory","type":"address"},{"name":"_parentToken","type":"address"},{"name":"_parentSnapShotBlock","type":"uint256"},{"name":"_tokenName","type":"string"},{"name":"_decimalUnits","type":"uint8"},{"name":"_tokenSymbol","type":"string"},{"name":"_transfersEnabled","type":"bool"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_cloneToken","type":"address"},{"indexed":false,"name":"_snapshotBlock","type":"uint256"}],"name":"NewCloneToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"Approval","type":"event"}];
var minimetokenContract = web3.eth.contract(minimetokenAbi);
var minimetoken = minimetokenContract.new(
_tokenFactory,
_parentToken,
_parentSnapShotBlock,
_tokenName,
_decimalUnits,
_tokenSymbol,
_transfersEnabled,
{
from: web3.eth.accounts[0],
data: '0x60a0604052600760608190527f4d4d545f302e310000000000000000000000000000000000000000000000000060809081526004805460008290527f4d4d545f302e310000000000000000000000000000000000000000000000000e825590927f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b602060026001851615610100026000190190941693909304601f0192909204820192909190620000db565b82800160010185558215620000db579182015b82811115620000db578251825591602001919060010190620000be565b5b50620000ff9291505b80821115620000fb5760008155600101620000e5565b5090565b505034620000005760405162001bc338038062001bc383398101604090815281516020830151918301516060840151608085015160a086015160c0870151949693949284019391929101905b5b60008054600160a060020a0319166c01000000000000000000000000338102041790555b86600b60016101000a815481600160a060020a0302191690836c010000000000000000000000009081020402179055508360019080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001ee57805160ff19168380011785556200021e565b828001600101855582156200021e579182015b828111156200021e57825182559160200191906001019062000201565b5b50620002429291505b80821115620000fb5760008155600101620000e5565b5090565b50506002805460ff19167f010000000000000000000000000000000000000000000000000000000000000085810204178155825160038054600082905290927fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b60206101006001851615026000190190931691909104601f90810183900482019392870190839010620002e157805160ff191683800117855562000311565b8280016001018555821562000311579182015b8281111562000311578251825591602001919060010190620002f4565b5b50620003359291505b80821115620000fb5760008155600101620000e5565b5090565b505060058054600160a060020a0319166c01000000000000000000000000888102041790556006859055600b805460ff19167f010000000000000000000000000000000000000000000000000000000000000083810204179055436007555b505050505050505b61181880620003ab6000396000f36060604052361561011c5760e060020a600035046306fdde038114610213578063095ea7b31461028e57806317634514146102b557806318160ddd146102d457806323b872dd146102f3578063313ce5671461031d5780633cebb823146103405780634ee2cd7e1461035257806354fd4d50146103775780636638c087146103f257806370a08231146104aa57806380a54001146104cc578063827f32c0146104f557806395d89b411461051c578063981b24d014610597578063a9059cbb146105b9578063bef97c87146105e0578063c5bcc4f114610601578063cae9ca5114610620578063d3ce77fe1461068b578063dd62ed3e146106b2578063e77772fe146106d7578063f41e60c514610700578063f77c479114610712575b6102115b600054600160a060020a0316151561013757610000565b60005461014c90600160a060020a031661073b565b156101d957600060009054906101000a9004600160a060020a0316600160a060020a031663f48c305434336000604051602001526040518360e060020a0281526004018082600160a060020a031681526020019150506020604051808303818588803b156100005761235a5a03f11561000057505060405151151591506101d4905057610000565b61020d565b60008054604051600160a060020a03909116913480156108fc02929091818181858888f19350505050151561020d57610000565b5b5b565b005b346100005761022061074a565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156102805780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34610000576102a16004356024356107d7565b604080519115158252519081900360200190f35b34610000576102c2610955565b60408051918252519081900360200190f35b34610000576102c261095b565b60408051918252519081900360200190f35b34610000576102a160043560243560443561096c565b604080519115158252519081900360200190f35b346100005761032a610a0e565b6040805160ff9092168252519081900360200190f35b3461000057610211600435610a17565b005b34610000576102c2600435602435610a67565b60408051918252519081900360200190f35b3461000057610220610bbc565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156102805780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b346100005761048e600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284375050604080516020601f818a01358b0180359182018390048302840183018552818452989a8a359a90999401975091955091820193509150819084018382808284375094965050843594602001359350610c4a92505050565b60408051600160a060020a039092168252519081900360200190f35b34610000576102c2600435610e51565b60408051918252519081900360200190f35b346100005761048e610e65565b60408051600160a060020a039092168252519081900360200190f35b34610000576102a1600435602435610e74565b604080519115158252519081900360200190f35b3461000057610220610f2d565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156102805780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34610000576102c2600435610fbb565b60408051918252519081900360200190f35b34610000576102a16004356024356110bb565b604080519115158252519081900360200190f35b34610000576102a16110e3565b604080519115158252519081900360200190f35b34610000576102c26110ec565b60408051918252519081900360200190f35b3461000057604080516020600460443581810135601f81018490048402850184019095528484526102a19482359460248035956064949293919092019181908401838280828437509496506110f295505050505050565b604080519115158252519081900360200190f35b34610000576102a1600435602435611277565b604080519115158252519081900360200190f35b34610000576102c2600435602435611349565b60408051918252519081900360200190f35b346100005761048e611376565b60408051600160a060020a039092168252519081900360200190f35b346100005761021160043561138a565b005b346100005761048e6113be565b60408051600160a060020a039092168252519081900360200190f35b6000813b908111905b50919050565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107cf5780601f106107a4576101008083540402835291602001916107cf565b820191906000526020600020905b8154815290600101906020018083116107b257829003601f168201915b505050505081565b600b5460009060ff1615156107eb57610000565b811580159061081e5750600160a060020a0333811660009081526009602090815260408083209387168352929052205415155b1561082857610000565b600054600160a060020a031615801590610852575060005461085290600160a060020a031661073b565b5b156108ed576000805460408051602090810184905281517fda682aeb000000000000000000000000000000000000000000000000000000008152600160a060020a0333811660048301528881166024830152604482018890529251929093169363da682aeb9360648082019492918390030190829087803b156100005760325a03f11561000057505060405151151590506108ed57610000565b5b600160a060020a03338116600081815260096020908152604080832094881680845294825291829020869055815186815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a35060015b92915050565b60075481565b600061096643610fbb565b90505b90565b6000805433600160a060020a039081169116146109f957600b5460ff16151561099457610000565b600160a060020a0380851660009081526009602090815260408083203390941683529290522054829010156109cb57506000610a07565b600160a060020a03808516600090815260096020908152604080832033909416835292905220805483900390555b610a048484846113cd565b90505b9392505050565b60025460ff1681565b60005433600160a060020a03908116911614610a3257610000565b6000805473ffffffffffffffffffffffffffffffffffffffff19166c01000000000000000000000000838102041790555b5b50565b6000600754821015610a7f5750600061094f5661094f565b600160a060020a0383166000908152600860205260409020541580610ade5750600160a060020a0383166000908152600860205260408120805484929081101561000057906000526020600020900160005b50546001608060020a0316115b15610b8b57600554600160a060020a031615610b7e57600560009054906101000a9004600160a060020a0316600160a060020a0316634ee2cd7e846006546000604051602001526040518360e060020a0281526004018083600160a060020a0316815260200182815260200192505050602060405180830381600087803b156100005760325a03f11561000057505060405151915061094f905056610b86565b50600061094f565b61094f565b600160a060020a0383166000908152600860205260409020610bad90836115a3565b905061094f565b5b5b92915050565b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107cf5780601f106107a4576101008083540402835291602001916107cf565b820191906000526020600020905b8154815290600101906020018083116107b257829003601f168201915b505050505081565b6000600043841115610c5a574393505b600b60019054906101000a9004600160a060020a0316600160a060020a0316635b7b72c130868a8a8a896000604051602001526040518760e060020a0281526004018087600160a060020a03168152602001868152602001806020018560ff1681526020018060200184151581526020018381038352878181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f168015610d235780820380516001836020036101000a031916815260200191505b508381038252858181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f168015610d7c5780820380516001836020036101000a031916815260200191505b5098505050505050505050602060405180830381600087803b156100005760325a03f1156100005750505060405180519060200150905080600160a060020a0316633cebb823336040518260e060020a0281526004018082600160a060020a03168152602001915050600060405180830381600087803b156100005760325a03f115610000575050604080518681529051600160a060020a03841692507f086c875b377f900b07ce03575813022f05dd10ed7640b5282cf6d3c3fc352ade9181900360200190a28091505b5095945050505050565b6000610e5d8243610a67565b90505b919050565b600554600160a060020a031681565b600080548190819033600160a060020a03908116911614610e9457610000565b610e9f600a436115a3565b9150610eae600a8584016116f3565b610eb785610e51565b600160a060020a0386166000908152600860205260409020909150610ede908583016116f3565b604080518581529051600160a060020a038716916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3600192505b5b505092915050565b6003805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156107cf5780601f106107a4576101008083540402835291602001916107cf565b820191906000526020600020905b8154815290600101906020018083116107b257829003601f168201915b505050505081565b6000600754821015610fd357506000610e6056610e60565b600a541580611006575081600a6000815481101561000057906000526020600020900160005b50546001608060020a0316115b156110a257600554600160a060020a03161561109557600560009054906101000a9004600160a060020a0316600160a060020a031663981b24d06006546000604051602001526040518260e060020a02815260040180828152602001915050602060405180830381600087803b156100005760325a03f115610000575050604051519150610e6090505661109d565b506000610e60565b610e60565b6110ad600a836115a3565b9050610e60565b5b5b919050565b600b5460009060ff1615156110cf57610000565b6110da3384846113cd565b90505b92915050565b600b5460ff1681565b60065481565b600160a060020a03338116600081815260096020908152604080832094881680845294825280832087905580518781529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a383600160a060020a031660405180807f72656365697665417070726f76616c28616464726573732c75696e743235362c81526020017f616464726573732c627974657329000000000000000000000000000000000000815260200150602e019050604051809103902060e060020a9004338530866040518560e060020a0281526004018085600160a060020a0316815260200184815260200183600160a060020a031681526020018280519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156112445780820380516001836020036101000a031916815260200191505b509450505050506000604051808303816000876161da5a03f192505050151561126c57610000565b5060015b9392505050565b600080548190819033600160a060020a0390811691161461129757610000565b6112a2600a436115a3565b9150838210156112b157610000565b6112be600a8584036116f3565b6112c785610e51565b9050838110156112d657610000565b600160a060020a03851660009081526008602052604090206112fa908583036116f3565b604080518581529051600091600160a060020a038816917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a3600192505b5b505092915050565b600160a060020a038083166000908152600960209081526040808320938516835292905220545b92915050565b600b546101009004600160a060020a031681565b60005433600160a060020a039081169116146113a557610000565b600b805460ff191660f860020a838102041790555b5b50565b600054600160a060020a031681565b600080808315156113e1576001925061159a565b600160a060020a0385161580611408575030600160a060020a031685600160a060020a0316145b1561141257610000565b61141c8643610a67565b91508382101561142f576000925061159a565b600054600160a060020a031615801590611459575060005461145990600160a060020a031661073b565b5b156114f4576000805460408051602090810184905281517f4a393149000000000000000000000000000000000000000000000000000000008152600160a060020a038b811660048301528a81166024830152604482018a905292519290931693634a3931499360648082019492918390030190829087803b156100005760325a03f11561000057505060405151151590506114f457610000565b5b600160a060020a0386166000908152600860205260409020611519908584036116f3565b6115238543610a67565b600160a060020a038616600090815260086020526040902090915061154a908583016116f3565b84600160a060020a031686600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef866040518082815260200191505060405180910390a3600192505b50509392505050565b60006000600060008580549050600014156115c157600093506116ea565b8554869060001981019081101561000057906000526020600020900160005b50546001608060020a03168510611629578554869060001981019081101561000057906000526020600020900160005b5054608060020a90046001608060020a031693506116ea565b856000815481101561000057906000526020600020900160005b50546001608060020a031685101561165e57600093506116ea565b8554600093506000190191505b828211156116bc576002600183850101049050848682815481101561000057906000526020600020900160005b50546001608060020a0316116116b0578092506116b7565b6001810391505b61166b565b8583815481101561000057906000526020600020900160005b5054608060020a90046001608060020a031693505b50505092915050565b81546000908190158061172f575083544390859060001981019081101561000057906000526020600020900160005b50546001608060020a0316105b156117d45783848054809190600101815481835581811511611776576000838152602090206117769181019083015b80821115611772576000815560010161175e565b5090565b5b505050815481101561000057906000526020600020900160005b508054608060020a8581028190048102438202919091046fffffffffffffffffffffffffffffffff19909216919091176001608060020a03161781559150611811565b8354849060001981019081101561000057906000526020600020900160005b5080546001608060020a0316608060020a8581028190040217815590505b5b5050505056',
gas: '3000000'
}, function (e, contract){
console.log(e, contract);
if (typeof contract.address !== 'undefined') {
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
}
});
var _startFundingTime = 1478640923 ;
var _endFundingTime = 1489009223 ;
var _maximumFunding = web3.toWei(10000) ;
var _vaultAddress = multisig.address ;
var _tokenAddress = minimetoken.address ;
var campaignAbi = [{"constant":false,"inputs":[],"name":"seal","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"vaultAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"onTransfer","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenContract","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newVaultAddress","type":"address"}],"name":"setVault","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"data","type":"uint256[]"}],"name":"fill","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"maximumFunding","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"finalizeFunding","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"startFundingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"onApprove","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalCollected","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"endFundingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sealed","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"proxyPayment","outputs":[{"name":"","type":"bool"}],"payable":true,"type":"function"},{"inputs":[{"name":"_startFundingTime","type":"uint256"},{"name":"_endFundingTime","type":"uint256"},{"name":"_maximumFunding","type":"uint256"},{"name":"_vaultAddress","type":"address"},{"name":"_tokenAddress","type":"address"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"}];
var campaignContract = web3.eth.contract(campaignAbi);
var campaign = campaignContract.new(
_startFundingTime,
_endFundingTime,
_maximumFunding,
_vaultAddress,
_tokenAddress,
{
from: web3.eth.accounts[0],
data: '0x6060604052346100005760405160a08061086c83398101604090815281516020830151918301516060840151608090940151919390915b5b60008054600160a060020a0319166c01000000000000000000000000338102041790555b428410806100695750848411155b8061007d575069021e19e0c9bab240000083115b8061008f5750600160a060020a038216155b1561009957610000565b600185905560028490556003839055600580546c01000000000000000000000000808402819004600160a060020a0319928316179092556006805485840293909304929091169190911790555b50505050505b610772806100fa6000396000f3606060405236156100c45760e060020a60003504633fb27b8581146100d6578063430bf08a146100e55780634a3931491461010e57806355a373d6146101385780636817031b14610161578063884b5dc214610173578063893d20e8146101c557806399d64ab0146101ee578063a19ed39d1461020d578063a6f9dae11461021c578063b75ece9c1461022e578063da682aeb1461010e578063e29eb83614610277578063e4693e9814610296578063e4b203ef146102b5578063f48c3054146102d6575b6100d45b6100d1336102f5565b5b565b005b34610000576100d461046d565b005b34610000576100f26104ab565b60408051600160a060020a039092168252519081900360200190f35b34610000576101246004356024356044356104ba565b604080519115158252519081900360200190f35b34610000576100f26104c4565b60408051600160a060020a039092168252519081900360200190f35b34610000576100d46004356104d3565b005b34610000576100d460048080359060200190820180359060200190808060200260200160405190810160405280939291908181526020018383602002808284375094965061052395505050505050565b005b34610000576100f261063d565b60408051600160a060020a039092168252519081900360200190f35b34610000576101fb61065f565b60408051918252519081900360200190f35b34610000576100d4610665565b005b34610000576100d46004356106e2565b005b34610000576101fb610732565b60408051918252519081900360200190f35b34610000576101246004356024356044356104ba565b604080519115158252519081900360200190f35b34610000576101fb610742565b60408051918252519081900360200190f35b34610000576101fb610748565b60408051918252519081900360200190f35b346100005761012461074e565b604080519115158252519081900360200190f35b61012460043561075e565b604080519115158252519081900360200190f35b600154421080610306575060025442115b8061037b5750600560009054906101000a9004600160a060020a0316600160a060020a031663f77c47916000604051602001526040518160e060020a028152600401809050602060405180830381600087803b156100005760325a03f11561000057505060405151600160a060020a03161590505b80610384575034155b8061039457506003543460045401115b1561039e57610000565b6004805434908101909155600654604051600160a060020a039091169180156108fc02916000818181858888f1935050505015156103db57610000565b600554604080516000602091820181905282517f827f32c0000000000000000000000000000000000000000000000000000000008152600160a060020a0386811660048301523460248301529351939094169363827f32c0936044808301949391928390030190829087803b156100005760325a03f115610000575050604051511515905061046957610000565b5b50565b60065460a060020a900460ff161561048457610000565b6006805474ff0000000000000000000000000000000000000000191660a060020a1790555b565b600654600160a060020a031681565b60015b9392505050565b600554600160a060020a031681565b60005433600160a060020a039081169116146104ee57610000565b6006805473ffffffffffffffffffffffffffffffffffffffff19166c01000000000000000000000000838102041790555b5b50565b600080548190819033600160a060020a0390811691161461054357610000565b60065460a060020a900460ff161561055a57610000565b600092505b83518310156106355783838151811015610000579060200190602002015191508383600101815181101561000057906020019060200201519050600560009054906101000a9004600160a060020a0316600160a060020a031663827f32c083836000604051602001526040518360e060020a0281526004018083600160a060020a0316815260200182815260200192505050602060405180830381600087803b156100005760325a03f115610000575050604051511515905061062157610000565b60048054820190555b60028301925061055f565b5b5b50505050565b6000600034111561064d57610000565b50600054600160a060020a03165b5b90565b60035481565b60025442101561067457610000565b600554604080517f3cebb8230000000000000000000000000000000000000000000000000000000081526000600482018190529151600160a060020a0390931692633cebb8239260248084019391929182900301818387803b156100005760325a03f115610000575050505b565b60005433600160a060020a039081169116146106fd57610000565b6000805473ffffffffffffffffffffffffffffffffffffffff19166c01000000000000000000000000838102041790555b5b50565b60015481565b60015b9392505050565b60045481565b60025481565b60065460a060020a900460ff1681565b6000610769826102f5565b5060015b91905056',
gas: '3000000'
}, function (e, contract){
console.log(e, contract);
if (typeof contract.address !== 'undefined') {
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
}
});
minimetoken.changeController(campaign.address, {from: eth.accounts[0]});
campaign.fill([
"0xcb4baa0344065655da9e7d2dde781e5efa25995e",
"0xb1a2bc2ec50000",
"0x839395e20bbb182fa440d08f850e6c7a8f6f0780",
"0x58d15e176280000",
"0x198ef1ec325a96cc354c7266a038be8b5c558f67",
"0x1043561a8829300000",
"0x33d0edc9d1f0407ed7bdd0637de74cfdd24a56ee",
"0x16345785d8a0000",
"0x72e61047818f2783f0c466b86c3988484c73d3",
"0xb1a2bc2ec50000"
], {from: eth.accounts[0], gas: 600000});
campaign.seal({from: eth.accounts[0]});
var _escapeCaller = eth.accounts[0] ;
var _escapeDestination = multisig.address ;
var _absoluteMinTimeLock = 0 ;
var _timeLock = 86400*2 ;
var _securityGuard = Griff ;
var _maxSecurityGuardDelay = 86400*15 ;
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":"_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":false,"inputs":[{"name":"_idPayment","type":"uint256"}],"name":"collectAuthorizedPayment","outputs":[],"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":"PaymentCanceled","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 vaultContract = web3.eth.contract(vaultAbi);
var vault = vaultContract.new(
_escapeCaller,
_escapeDestination,
_absoluteMinTimeLock,
_timeLock,
_securityGuard,
_maxSecurityGuardDelay,
{
from: web3.eth.accounts[0],
data: '0x6060604052346100005760405160c080610e5a83398101604090815281516020830151918301516060840151608085015160a090950151929491929091905b85855b5b60008054600160a060020a0319166c01000000000000000000000000338102041790555b600280546c01000000000000000000000000808402819004600160a060020a0319928316179092556001805485840293909304929091169190911790555b505060048054600160a060020a0319166c01000000000000000000000000848102041790556006839055600584905560078190555b5050505050505b610d6c806100ee6000396000f3606060405236156101065760e060020a60003504630b2e742381146101175780631554611f146101365780631e891c0a14610145578063681617c71461015757806368b8c5a114610169578063793c0fd4146101885780638422927d1461019d578063846a5dde146101af5780638da5cb5b146101c45780638e637a33146101ed57806392e4b8a41461025f578063a0927a6a14610271578063a3912ec81461034d578063a6f9dae114610357578063b2ca3ec414610369578063bb2a51d114610392578063c7238af7146103a4578063d085835a146103cd578063d8528af0146103ec578063da4793ac14610410578063ea8a66c714610422578063f17f6f8a14610441575b6101155b61011261046a565b5b565b005b34610000576101246104b0565b60408051918252519081900360200190f35b34610000576101156104b6565b005b3461000057610115600435610561565b005b3461000057610115600435610595565b005b34610000576101246105ec565b60408051918252519081900360200190f35b34610000576101156004356024356105f3565b005b346100005761011560043561067a565b005b3461000057610115600435602435610736565b005b34610000576101d16107d5565b60408051600160a060020a039092168252519081900360200190f35b3461000057610124600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284375094965050843594602081013594506040013592506107e4915050565b60408051918252519081900360200190f35b3461000057610115600435610a9e565b005b3461000057610281600435610c20565b60408051600160a060020a03808a1660208301529181018890528615156060820152851515608082015290841660a082015260c0810183905260e081018290526101008082528954600260001960018316158402019091160490820181905281906101208201908b9080156103375780601f1061030c57610100808354040283529160200191610337565b820191906000526020600020905b81548152906001019060200180831161031a57829003601f168201915b5050995050505050505050505060405180910390f35b61011561046a565b005b3461000057610115600435610c85565b005b34610000576101d1610cbf565b60408051600160a060020a039092168252519081900360200190f35b3461000057610115600435610cce565b005b34610000576101d1610d08565b60408051600160a060020a039092168252519081900360200190f35b3461000057610124610d17565b60408051918252519081900360200190f35b34610000576103fc600435610d1d565b604080519115158252519081900360200190f35b3461000057610115600435610d32565b005b3461000057610124610d57565b60408051918252519081900360200190f35b34610000576101d1610d5d565b60408051600160a060020a039092168252519081900360200190f35b60408051600160a060020a033316815234602082015281517f1e57e3bb474320be3d2c77138f75b7c3941292d647f5f9634e33a8e94e0e069b929181900390910190a15b565b60075481565b60015460009033600160a060020a039081169116148015906104e7575060005433600160a060020a03908116911614155b156104f157610000565b50600254604051600160a060020a033081163192169082156108fc029083906000818181858888f19350505050151561052957610000565b6040805182815290517f2a3ef566ae160e22f4c547c4a751e6dabd0c266b98b091a909eb729b609ea1869181900360200190a15b5b50565b60005433600160a060020a0390811691161461057c57610000565b60055481101561058b57610000565b60068190555b5b50565b60015433600160a060020a039081169116148015906105c3575060005433600160a060020a03908116911614155b156105cd57610000565b60018054600160a060020a031916606060020a838102041790555b5b50565b6003545b90565b60005433600160a060020a0390811691161461060e57610000565b600160a060020a038216600081815260086020908152604091829020805460ff191660f860020a8681020417905581519283528315159083015280517f801f568efbc3346a6ae3d0c3eb335a30d64e0d3cf08f1c39626d62cd5c8272819281900390910190a15b5b5050565b6000805433600160a060020a0390811691161461069657610000565b60035482106106a457610000565b600382815481101561000057906000526020600020906006020160005b50600381015490915060ff16156106d757610000565b6003810154610100900460ff16156106ee57610000565b60038101805460ff191660011790556040805183815290517ffdf197ed54809861dafe0b4d391843652730ac67274c1e9e46db7687dccaa3019181900360200190a15b5b5050565b60045460009033600160a060020a0390811691161461075457610000565b600354831061076257610000565b600383815481101561000057906000526020600020906006020160005b5090506007548282600501540111806107a157506003810154610100900460ff165b806107b05750600381015460ff165b156107ba57610000565b60058101805483019055600281018054830190555b5b505050565b600054600160a060020a031681565b600160a060020a0333166000908152600860205260408120548190819060ff16151561080f57610000565b60038054600181018083559093508391908280158290116109015760060281600602836000526020600020918201910161090191905b808211156108a657600060008201805460018160011615610100020316600290046000825580601f1061087857506108aa565b601f0160209004906000526020600020908101906108aa91905b808211156108a65760008155600101610892565b5090565b5b5050600181018054600160a060020a031916905560006002820181905560038201805475ffffffffffffffffffffffffffffffffffffffffffff19169055600482018190556005820155600601610845565b5090565b5b50505050600382815481101561000057906000526020600020906006020160005b50600181018054600160a060020a031916606060020a3381020417905560065490915084101561095757600654420161095b565b8342015b600280830191909155600382018054606060020a808a0204620100000275ffffffffffffffffffffffffffffffffffffffff000019909116179055600482018690558751825460008481526020908190208594601f600185161561010002600019019094160483018290048101939290918c01908390106109e757805160ff1916838001178555610a14565b82800160010185558215610a14579182015b82811115610a145782518255916020019190600101906109f9565b5b50610a359291505b808211156108a65760008155600101610892565b5090565b5050600381015460048201546040805185815262010000909304600160a060020a0316602084015282810191909152517f47e9633c99dd05fabd1b937e7c85f9e00d6866bfd2e5885e0091f40a173be3d3916060908290030190a18192505b5050949350505050565b6003546000908210610aaf57610000565b600382815481101561000057906000526020600020906006020160005b50600381015490915033600160a060020a03908116620100009092041614610af357610000565b6001810154600160a060020a031660009081526008602052604090205460ff161515610b1e57610000565b8060020154421015610b2f57610000565b600381015460ff1615610b4157610000565b6003810154610100900460ff1615610b5857610000565b806004015430600160a060020a0316311015610b7357610000565b60038101805461010061ff00199091161790819055600482015460405162010000909204600160a060020a0316916108fc82150291906000818181858888f193505050501515610bc257610000565b600381015460048201546040805185815262010000909304600160a060020a0316602084015282810191909152517f7f5bfe3018715b26a7067888a5c42912fbb3485170b8154ea9a448661f2f0de2916060908290030190a15b5050565b600381815481101561000057906000526020600020906006020160005b5060018101546002820154600383015460048401546005850154949550600160a060020a0393841694929360ff80841694610100850490911693620100009004909116919088565b60005433600160a060020a03908116911614610ca057610000565b60008054600160a060020a031916606060020a838102041790555b5b50565b600454600160a060020a031681565b60005433600160a060020a03908116911614610ce957610000565b60048054600160a060020a031916606060020a838102041790555b5b50565b600254600160a060020a031681565b60065481565b60086020526000908152604090205460ff1681565b60005433600160a060020a03908116911614610d4d57610000565b60078190555b5b50565b60055481565b600154600160a060020a03168156',
gas: '3000000'
}, function (e, contract){
console.log(e, contract);
if (typeof contract.address !== 'undefined') {
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
}
});
var _arbitrator = multisig.address ;
var _donor = multisig.address;
var _recipient = Jordi ;
var milestonetrackerAbi = [{"constant":true,"inputs":[],"name":"proposedMilestones","outputs":[{"name":"","type":"bytes"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"changingMilestones","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"campaignCanceled","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"collectMilestonePayment","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"unproposeMilestones","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"donor","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"milestoneCompleted","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hashProposals","type":"bytes32"}],"name":"acceptProposedMilestones","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"approveCompletedMilestone","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"recipient","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newMilestones","type":"bytes"}],"name":"proposeMilestones","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"arbitrator","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"arbitrateCancelCampaign","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newRecipient","type":"address"}],"name":"changeRecipient","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"numberOfMilestones","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"rejectMilestone","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newDonor","type":"address"}],"name":"changeDonor","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"milestones","outputs":[{"name":"description","type":"string"},{"name":"url","type":"string"},{"name":"minCompletionDate","type":"uint256"},{"name":"maxCompletionDate","type":"uint256"},{"name":"reviewer","type":"address"},{"name":"reviewTime","type":"uint256"},{"name":"paymentSource","type":"address"},{"name":"payData","type":"bytes"},{"name":"status","type":"uint8"},{"name":"doneTime","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"arbitrateApproveMilestone","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"cancelMilestone","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newArbitrator","type":"address"}],"name":"changeArbitrator","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_arbitrator","type":"address"},{"name":"_donor","type":"address"},{"name":"_recipient","type":"address"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[],"name":"NewMilestoneListProposed","type":"event"},{"anonymous":false,"inputs":[],"name":"NewMilestoneListUnproposed","type":"event"},{"anonymous":false,"inputs":[],"name":"NewMilestoneListAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"idProposal","type":"uint256"},{"indexed":false,"name":"newProposal","type":"uint8"}],"name":"ProposalStatusChanged","type":"event"},{"anonymous":false,"inputs":[],"name":"CampaignCalncelled","type":"event"}];
var milestonetrackerContract = web3.eth.contract(milestonetrackerAbi);
var milestonetracker = milestonetrackerContract.new(
_arbitrator,
_donor,
_recipient,
{
from: web3.eth.accounts[0],
data: '0x60606040523461000057604051606080611e8b8339810160409081528151602083015191909201515b600380546c01000000000000000000000000808602819004600160a060020a031992831617909255600280548584028490049083161790556001805484840293909304929091169190911790555b5050505b611e03806100886000396000f3606060405236156100fb5760e060020a600035046303096e92811461010057806303c327f01461017b57806312f054181461019c57806313ca6ec3146101bd57806321c17ab8146101cf57806325223bd4146101de5780634757ace4146102075780634c2fc8b214610219578063658df3f71461022b57806366d003ac1461023d57806367b327fa146102665780636cc6cde1146102bb5780638b99b742146102e457806392c2bcb4146102f3578063c81196da14610305578063caaed30214610324578063de2b2cd214610336578063e89e4ed614610348578063f4387d8614610525578063f75fdcaa14610537578063fc548f0814610549575b610000565b346100005761010d61055b565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f16801561016d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34610000576101886105e9565b604080519115158252519081900360200190f35b34610000576101886105f9565b604080519115158252519081900360200190f35b34610000576101cd600435610609565b005b34610000576101cd6106c6565b005b34610000576101eb610791565b60408051600160a060020a039092168252519081900360200190f35b34610000576101cd6004356107a0565b005b34610000576101cd6004356108b4565b005b34610000576101cd6004356110bd565b005b34610000576101eb611167565b60408051600160a060020a039092168252519081900360200190f35b34610000576101cd600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284375094965061117695505050505050565b005b34610000576101eb611289565b60408051600160a060020a039092168252519081900360200190f35b34610000576101cd611298565b005b34610000576101cd60043561131c565b005b3461000057610312611356565b60408051918252519081900360200190f35b34610000576101cd60043561135d565b005b34610000576101cd600435611433565b005b346100005761035860043561146d565b6040518080602001806020018b81526020018a815260200189600160a060020a0316815260200188815260200187600160a060020a03168152602001806020018660038111610000578152602081018690526040858203810185528f54600260018216156101000260001901909116049082018190526060909101908f9080156104235780601f106103f857610100808354040283529160200191610423565b820191906000526020600020905b81548152906001019060200180831161040657829003601f168201915b505084810383528d54600260001961010060018416150201909116048082526020909101908e9080156104975780601f1061046c57610100808354040283529160200191610497565b820191906000526020600020905b81548152906001019060200180831161047a57829003601f168201915b505084810382528754600260001961010060018416150201909116048082526020909101908890801561050b5780601f106104e05761010080835404028352916020019161050b565b820191906000526020600020905b8154815290600101906020018083116104ee57829003601f168201915b50509d505050505050505050505050505060405180910390f35b34610000576101cd6004356114d2565b005b34610000576101cd600435611597565b005b34610000576101cd6004356116a4565b005b6004805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105e15780601f106105b6576101008083540402835291602001916105e1565b820191906000526020600020905b8154815290600101906020018083116105c457829003601f168201915b505050505081565b60035460a860020a900460ff1681565b60035460a060020a900460ff1681565b60015460009033600160a060020a0390811691161461062757610000565b60035460a060020a900460ff161561063e57610000565b60035460a860020a900460ff161561065557610000565b600054821061066357610000565b60008281548110156100005790600052602060002090600a020160005b5090506001600882015460ff1660038111610000571415806106ab5750806005015481600901540142105b156106b557610000565b6106be826116de565b5b5b5b5b5050565b60015433600160a060020a039081169116146106e157610000565b60035460a060020a900460ff16156106f857610000565b6004805460018160011615610100020316600290046000825580601f1061071f5750610751565b601f01602090049060005260206000209081019061075191905b8082111561074d5760008155600101610739565b5090565b5b506003805460a860020a60ff02191690556040517fc516b468ac0b47d819796bd497b371dfbb0789c12b82b33f0b5c8f54cbd1c00690600090a15b5b5b565b600254600160a060020a031681565b60015460009033600160a060020a039081169116146107be57610000565b60035460a060020a900460ff16156107d557610000565b60035460a860020a900460ff16156107ec57610000565b60005482106107fa57610000565b60008281548110156100005790600052602060002090600a020160005b5090506000600882015460ff1660038111610000571461083657610000565b806002015442101561084757610000565b806003015442111561085857610000565b60088101805460ff191660011790819055426009830155604051838152600080516020611de383398151915291849160ff91909116906020810182600381116100005781526020019250505060405180910390a15b5b5b5b5050565b6040805160208181018352600080835283518085018552818152808301829052845160a08082018752606082810185815260808085018790529084528387018690528851808a018a528681528088018790528951938401909952908201858152908201859052815293840183905260025492959193909286919033600160a060020a0390811691161461094657610000565b60035460a060020a900460ff161561095d57610000565b60035460a860020a900460ff16151561097557610000565b8760001916600460405180828054600181600116156101000203166002900480156109d75780601f106109b55761010080835404028352918201916109d7565b820191906000526020600020905b8154815290600101906020018083116109c3575b50509150506040518091039020600019161415156109f457610000565b600096505b600054871015610a7f57600260008881548110156100005790600052602060002090600a020160005b506008015460ff16600381116100005714610a7357600360008881548110156100005790600052602060002090600a020160005b50600801805460ff191660f860020a928302929092049190911790555b5b6001909601956109f9565b6004805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610b055780601f10610ada57610100808354040283529160200191610b05565b820191906000526020600020905b815481529060010190602001808311610ae857829003601f168201915b50505050509550610b2060018761182790919063ffffffff16565b9450610b2b856118b2565b1515610b3657610000565b610b3f856118e5565b93505b610b4b8461193c565b1561101c57610b598461196a565b9250600060008054809190600101815481835581811511610d0757600a0281600a028360005260206000209182019101610d0791905b8082111561074d57600060008201805460018160011615610100020316600290046000825580601f10610bc25750610bf4565b601f016020900490600052602060002090810190610bf491905b8082111561074d5760008155600101610739565b5090565b5b5060018201805460018160011615610100020316600290046000825580601f10610c1f5750610c51565b601f016020900490600052602060002090810190610c5191905b8082111561074d5760008155600101610739565b5090565b5b506000600283810182905560038401829055600484018054600160a060020a031990811690915560058501839055600685018054909116905560078401805492815591600181161561010002600019011604601f819010610cb35750610ce5565b601f016020900490600052602060002090810190610ce591905b8082111561074d5760008155600101610739565b5090565b5b505060088101805460ff1916905560006009820155600a01610b8f565b5090565b5b50505081548110156100005790600052602060002090600a020160005b509150610d31836118b2565b1515610d3c57610000565b610d45836118e5565b9050610d58610d538261196a565b6119c5565b826000019080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610da557805160ff1916838001178555610dd2565b82800160010185558215610dd2579182015b82811115610dd2578251825591602001919060010190610db7565b5b50610df39291505b8082111561074d5760008155600101610739565b5090565b5050610e06610d538261196a565b6119c5565b826001019080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610e5357805160ff1916838001178555610e80565b82800160010185558215610e80579182015b82811115610e80578251825591602001919060010190610e65565b5b50610ea19291505b8082111561074d5760008155600101610739565b5090565b5050610eb4610eaf8261196a565b611a3e565b6002830155610ed0610eaf8263ffffffff61196a16565b611a3e565b6003830155610eec610ee78263ffffffff61196a16565b611a91565b600483018054600160a060020a031916606060020a92830292909204919091179055610f1f610eaf8261196a565b611a3e565b6005830155610f3b610ee78263ffffffff61196a16565b611a91565b600683018054600160a060020a031916606060020a92830292909204919091179055610f6e610f698261196a565b611ad9565b826007019080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610fbb57805160ff1916838001178555610fe8565b82800160010185558215610fe8579182015b82811115610fe8578251825591602001919060010190610fcd565b5b506110099291505b8082111561074d5760008155600101610739565b5090565b505060088201805460ff19169055610b42565b6004805460018160011615610100020316600290046000825580601f106110435750611075565b601f01602090049060005260206000209081019061107591905b8082111561074d5760008155600101610739565b5090565b5b506003805460a860020a60ff02191690556040517fb53f61d857c853f3dc1a4f444d826c6b765f2f18e2dcc2f263d70c21067d712590600090a15b5b5b5050505050505050565b60035460009060a060020a900460ff16156110d757610000565b60035460a860020a900460ff16156110ee57610000565b60005482106110fc57610000565b60008281548110156100005790600052602060002090600a020160005b50600481015490915033600160a060020a0390811691161415806106ab57506001600882015460ff16600381116100005714155b156106b557610000565b6106be826116de565b5b5b5b5050565b600154600160a060020a031681565b60015433600160a060020a0390811691161461119157610000565b60035460a060020a900460ff16156111a857610000565b8060049080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106111f457805160ff1916838001178555611221565b82800160010185558215611221579182015b82811115611221578251825591602001919060010190611206565b5b506112429291505b8082111561074d5760008155600101610739565b5090565b50506003805460a860020a60ff02191660a860020a1790556040517fc9865c5759f076e15025fe1ed0663317b805464c6372928344d324b4ea77f9d490600090a15b5b5b50565b600354600160a060020a031681565b60035433600160a060020a039081169116146112b357610000565b60035460a060020a900460ff16156112ca57610000565b6003805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f5294e09b9492f85e8581baf049d64f1ac828ff3058befc8c160d308dfa2e63a090600090a15b5b5b565b60015433600160a060020a0390811691161461133757610000565b60018054600160a060020a031916606060020a838102041790555b5b50565b6000545b90565b60035460009060a060020a900460ff161561137757610000565b60035460a860020a900460ff161561138e57610000565b600054821061139c57610000565b60008281548110156100005790600052602060002090600a020160005b50600481015490915033600160a060020a0390811691161415806113ed57506001600882015460ff16600381116100005714155b156113f757610000565b60088101805460ff1916905560408051838152600060208201528151600080516020611de3833981519152929181900390910190a15b5b5b5050565b60025433600160a060020a0390811691161461144e57610000565b60028054600160a060020a031916606060020a838102041790555b5b50565b60008181548110156100005790600052602060002090600a020160005b5060028101546003820154600483015460058401546006850154600886015460098701549697506001880196600160a060020a039485169490921691600789019160ff16908a565b60035460009033600160a060020a039081169116146114f057610000565b60035460a060020a900460ff161561150757610000565b60035460a860020a900460ff161561151e57610000565b600054821061152c57610000565b60008281548110156100005790600052602060002090600a020160005b5090506000600882015460ff166003811161000057141580156106ab57506001600882015460ff16600381116100005714155b156106b557610000565b6106be826116de565b5b5b5b5b5050565b60015460009033600160a060020a039081169116146115b557610000565b60035460a060020a900460ff16156115cc57610000565b60035460a860020a900460ff16156115e357610000565b60005482106115f157610000565b60008281548110156100005790600052602060002090600a020160005b5090506000600882015460ff1660038111610000571415801561164157506001600882015460ff16600381116100005714155b1561164b57610000565b60088101805460ff1916600390811791829055604051848152600080516020611de383398151915292859260ff9190911691906020820190839081116100005781526020019250505060405180910390a15b5b5b5b5050565b60035433600160a060020a039081169116146116bf57610000565b60038054600160a060020a031916606060020a838102041790555b5b50565b6000805482106116ed57610000565b60008281548110156100005790600052602060002090600a020160005b5090506002600882015460ff166003811161000057141561172a57610000565b60088101805460ff191660029081179091556006820154604051600784018054600160a060020a03909316936000939192918291849160001960018216156101000201160480156117bc5780601f10611791576101008083540402835291602001916117bc565b820191906000526020600020905b81548152906001019060200180831161179f57829003601f168201915b505091505060006040518083038185876185025a03f19250505015156117e157610000565b6008810154604051838152600080516020611de383398151915291849160ff909116906020810182600381116100005781526020019250505060405180910390a15b5050565b604080518082018252600080825260208083018290528351808501909452818452830181905290919061185985611b3f565b915083156118a5575083518061186e83611b9e565b111561187957610000565b806118878360000151611c24565b1461189157610000565b61189a82611cb6565b15156118a557610000565b5b8192505b505092915050565b600060008260200151600014156118cc57600091506118df565b8260000151905060c0815160001a101591505b50919050565b6040805160a0810190915260006060820181815260808301829052825260208201819052611912836118b2565b151561191d57610000565b61192683611b9e565b8351848452016020830181905290505b50919050565b6040805180820190915260008082526020918201528151808201518151928401519201909110905b50919050565b604080518082019091526000808252602082018190528061198a8461193c565b156100fb578360200151915061199f82611c24565b82845260208085018290528382019086015290506119bd565b610000565b5b5050919050565b60408051602081810183526000808352835191820190935282815290919081906119ee85611cf0565b15156119f957610000565b611a0285611d22565b9250925081604051805910611a145750595b8181526020808302820101604052905b509050611a32838284611da2565b8093505b505050919050565b600060006000611a4d84611cf0565b1515611a5857610000565b611a6184611d22565b915091506020811180611a72575080155b15611a7c57610000565b806020036101000a82510492505b5050919050565b600060006000611aa084611cf0565b1515611aab57610000565b611ab484611d22565b909250905060148114611ac657610000565b8151606060020a900492505b5050919050565b6040805160208101909152600080825280611af384611cf0565b1515611afe57610000565b611b0784611d22565b9150915080604051805910611b195750595b8181526020808302820101604052905b5092506119bd828483611da2565b5b5050919050565b60408051808201909152600080825260208201819052825190811515611b7a57604080518082019091526000808252602082015292506119bd565b506040805180820190915260208481018083529082018390529092505b5050919050565b600060006000836020015160001415611bba57600092506119bd565b50508151805160001a906080821015611bd657600092506119bd565b60b8821080611bf1575060c08210158015611bf1575060f882105b5b15611c0057600192506119bd565b60c0821015611c155760b519820192506119bd565b60f519820192505b5050919050565b8051600090811a6080811015611c3d57600191506118df565b60b8811015611c5257607e19810191506118df565b60c0811015611c7b57600183015160b76020839003016101000a9004810160b5190191506118df565b60f8811015611c905760be19810191506118df565b600183015160f76020839003016101000a9004810160f5190191505b5b5b5b5b50919050565b8051805160009181831a9160011a90608183148015611cd55750608082105b15611ce35760009350611a36565b600193505b505050919050565b60006000826020015160001415611d0a57600091506118df565b8260000151905060c0815160001a1091505b50919050565b60006000600060006000611d3586611cf0565b1515611d4057610000565b8551805160001a935091506080831015611d605781945060019350611d99565b60b8831015611d7e5760018660200151039350816001019450611d99565b60b78303905080600187602001510303935080820160010194505b5b505050915091565b60006020601f83010484602085015b828414611dcf57602084028281015190820152600190930192611db1565b60008651602001870152505050505b505050563346abf262ac5179e9052765fb72484e0baab1f356f08442bb7a3054147631de',
gas: '3000000'
}, function (e, contract){
console.log(e, contract);
if (typeof contract.address !== 'undefined') {
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
}
});
vault.authorizeSpender(milestonetracker.address, true, {from: eth.accounts[0]});
var minimetokenfactoryAbi = [{"constant":false,"inputs":[{"name":"_parentToken","type":"address"},{"name":"_snapshotBlock","type":"uint256"},{"name":"_tokenName","type":"string"},{"name":"_decimalUnits","type":"uint8"},{"name":"_tokenSymbol","type":"string"},{"name":"_transfersEnabled","type":"bool"}],"name":"createCloneToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"}];
var minimetokenfactory = web3.eth.contract(minimetokenfactoryAbi).at('0x71fc91bd2a3c75ffd7464cbd26edcd5fc50425dd');
var minimetokenAbi = [{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"creationBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newController","type":"address"}],"name":"changeController","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_blockNumber","type":"uint256"}],"name":"balanceOfAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_cloneTokenName","type":"string"},{"name":"_cloneDecimalUnits","type":"uint8"},{"name":"_cloneTokenSymbol","type":"string"},{"name":"_snapshotBlock","type":"uint256"},{"name":"_transfersEnabled","type":"bool"}],"name":"createCloneToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"parentToken","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_amount","type":"uint256"}],"name":"generateTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_blockNumber","type":"uint256"}],"name":"totalSupplyAt","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"transfersEnabled","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"parentSnapShotBlock","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_amount","type":"uint256"}],"name":"destroyTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenFactory","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_transfersEnabled","type":"bool"}],"name":"enableTransfers","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"controller","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"inputs":[{"name":"_tokenFactory","type":"address"},{"name":"_parentToken","type":"address"},{"name":"_parentSnapShotBlock","type":"uint256"},{"name":"_tokenName","type":"string"},{"name":"_decimalUnits","type":"uint8"},{"name":"_tokenSymbol","type":"string"},{"name":"_transfersEnabled","type":"bool"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_from","type":"address"},{"indexed":true,"name":"_to","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_cloneToken","type":"address"},{"indexed":false,"name":"_snapshotBlock","type":"uint256"}],"name":"NewCloneToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"Approval","type":"event"}];
var minimetoken = web3.eth.contract(minimetokenAbi).at('0xf19c536ab792f173b7ee62d9ccc51f4ed6180773');
var campaignAbi = [{"constant":false,"inputs":[],"name":"seal","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"vaultAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"onTransfer","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"tokenContract","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newVaultAddress","type":"address"}],"name":"setVault","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"data","type":"uint256[]"}],"name":"fill","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"getOwner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"maximumFunding","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"finalizeFunding","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"startFundingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"},{"name":"_amount","type":"uint256"}],"name":"onApprove","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalCollected","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"endFundingTime","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"sealed","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_owner","type":"address"}],"name":"proxyPayment","outputs":[{"name":"","type":"bool"}],"payable":true,"type":"function"},{"inputs":[{"name":"_startFundingTime","type":"uint256"},{"name":"_endFundingTime","type":"uint256"},{"name":"_maximumFunding","type":"uint256"},{"name":"_vaultAddress","type":"address"},{"name":"_tokenAddress","type":"address"}],"payable":false,"type":"constructor"},{"payable":true,"type":"fallback"}];
var campaign = web3.eth.contract(campaignAbi).at('0x0aecaad227f0c0dbddddef7e9a841d19c61b2724');
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":"_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":false,"inputs":[{"name":"_idPayment","type":"uint256"}],"name":"collectAuthorizedPayment","outputs":[],"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":"PaymentCanceled","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('0xd5abcc4c80fd01d8822f35f379fbcebf7a8b8679');
var milestonetrackerAbi = [{"constant":true,"inputs":[],"name":"proposedMilestones","outputs":[{"name":"","type":"bytes"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"changingMilestones","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"campaignCanceled","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"collectMilestonePayment","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"unproposeMilestones","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"donor","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"milestoneCompleted","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_hashProposals","type":"bytes32"}],"name":"acceptProposedMilestones","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"approveCompletedMilestone","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"recipient","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newMilestones","type":"bytes"}],"name":"proposeMilestones","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"arbitrator","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"arbitrateCancelCampaign","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newRecipient","type":"address"}],"name":"changeRecipient","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"numberOfMilestones","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"rejectMilestone","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newDonor","type":"address"}],"name":"changeDonor","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"milestones","outputs":[{"name":"description","type":"string"},{"name":"url","type":"string"},{"name":"minCompletionDate","type":"uint256"},{"name":"maxCompletionDate","type":"uint256"},{"name":"reviewer","type":"address"},{"name":"reviewTime","type":"uint256"},{"name":"paymentSource","type":"address"},{"name":"payData","type":"bytes"},{"name":"status","type":"uint8"},{"name":"doneTime","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"arbitrateApproveMilestone","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_idMilestone","type":"uint256"}],"name":"cancelMilestone","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_newArbitrator","type":"address"}],"name":"changeArbitrator","outputs":[],"payable":false,"type":"function"},{"inputs":[{"name":"_arbitrator","type":"address"},{"name":"_donor","type":"address"},{"name":"_recipient","type":"address"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[],"name":"NewMilestoneListProposed","type":"event"},{"anonymous":false,"inputs":[],"name":"NewMilestoneListUnproposed","type":"event"},{"anonymous":false,"inputs":[],"name":"NewMilestoneListAccepted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"idProposal","type":"uint256"},{"indexed":false,"name":"newProposal","type":"uint8"}],"name":"ProposalStatusChanged","type":"event"},{"anonymous":false,"inputs":[],"name":"CampaignCalncelled","type":"event"}];
var milestonetracker = web3.eth.contract(milestonetrackerAbi).at('0x3c01ddc7af41e6888cbd8d0398fe34a81c3c7f36');