-
Notifications
You must be signed in to change notification settings - Fork 2
/
tmp.txt
1 lines (1 loc) · 8.57 KB
/
tmp.txt
1
var cC = web3.eth.contract([{"constant":true,"inputs":[{"name":"current_opinion","type":"uint256"},{"name":"current_quality","type":"uint256"},{"name":"num_pack_saved","type":"uint256"}],"name":"directModulationRule","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"decision_rule","type":"uint256"},{"name":"current_opinion","type":"uint256"},{"name":"current_quality","type":"uint256"},{"name":"num_pack_saved","type":"uint256"}],"name":"applyStrategy","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"returnLast","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"wVotes","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"current_opinion","type":"uint256"},{"name":"num_pack_saved","type":"uint256"}],"name":"voterModel","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"a","type":"uint256"},{"name":"b","type":"uint256"}],"name":"min","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"bVotes","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"current_opinion","type":"uint256"},{"name":"num_pack_saved","type":"uint256"}],"name":"majorityRule","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"c","type":"uint256"},{"name":"q","type":"uint256"}],"name":"voteHelper","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"c","type":"uint256"},{"name":"s","type":"uint256"}],"name":"vote","outputs":[],"payable":true,"type":"function"},{"constant":true,"inputs":[],"name":"returnSecondToLast","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"blackVotes","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"whiteVotes","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"type":"constructor"}]); var c = cC.new({ from: web3.eth.accounts[0], data: '0x6060604052600260005534610000575b6000546006818154818355818115116100545781836000526020600020918201910161005391905b8082111561004f576000816000905550600101610037565b5090565b5b50505050600060058181548183558181151161009c5781836000526020600020918201910161009b91905b8082111561009757600081600090555060010161007f565b5090565b5b5050505060006003818154818355818115116100e4578183600052602060002091820191016100e391905b808211156100df5760008160009055506001016100c7565b5090565b5b50505050600060048181548183558181151161012c5781836000526020600020918201910161012b91905b8082111561012757600081600090555060010161010f565b5090565b5b50505050600060018190555060006002819055505b5b610adc806101516000396000f300606060405236156100c3576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063057b9d52146100c85780630603e09b1461010b5780630fbe3e401461015757806311968bbb1461017a5780633949ada91461019d5780637ae2b5c7146101d75780637f42331614610211578063801fb51814610234578063a100f1f21461026e578063b384abef14610294578063b86beafd146102b5578063c09342b0146102d8578063f4cbbd43146102fb575b610000565b34610000576100f5600480803590602001909190803590602001909190803590602001909190505061031e565b6040518082815260200191505060405180910390f35b3461000057610141600480803590602001909190803590602001909190803590602001909190803590602001909190505061045e565b6040518082815260200191505060405180910390f35b34610000576101646104ce565b6040518082815260200191505060405180910390f35b3461000057610187610516565b6040518082815260200191505060405180910390f35b34610000576101c1600480803590602001909190803590602001909190505061051c565b6040518082815260200191505060405180910390f35b34610000576101fb600480803590602001909190803590602001909190505061061e565b6040518082815260200191505060405180910390f35b346100005761021e61063f565b6040518082815260200191505060405180910390f35b34610000576102586004808035906020019091908035906020019091905050610645565b6040518082815260200191505060405180910390f35b346100005761029260048080359060200190919080359060200190919050506107e4565b005b6102b36004808035906020019091908035906020019091905050610a00565b005b34610000576102c2610a52565b6040518082815260200191505060405180910390f35b34610000576102e5610a9a565b6040518082815260200191505060405180910390f35b3461000057610308610aa5565b6040518082815260200191505060405180910390f35b60006000600060006000600780549050141561033c57869350610454565b61034b8560078054905061061e565b9250600183600143034060019004811561000057060191505b3373ffffffffffffffffffffffffffffffffffffffff1660058360058054905003815481101561000057906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480156103e2575060078054905082105b156103f4578180600101925050610364565b60088260088054905003815481101561000057906000526020600020900160005b505490508581111561044b5760078260078054905003815481101561000057906000526020600020900160005b50549350610454565b869350610454565b5b5050509392505050565b6000600085141561046e57610000565b600185141561048857610481848361051c565b90506104c6565b60028514156104a35761049c84848461031e565b90506104c6565b60038514156104bd576104b68483610645565b90506104c6565b610000565b5b5b5b5b949350505050565b600060006007805490501115610509576007600160078054905003815481101561000057906000526020600020900160005b50549050610513565b60039050610513565b5b90565b60015481565b6000600060006000600780549050141561053857849250610616565b6105478460078054905061061e565b9150600182600143034060019004811561000057060190505b3373ffffffffffffffffffffffffffffffffffffffff1660058260058054905003815481101561000057906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480156105de575060078054905081105b156105f0578080600101915050610560565b60078160078054905003815481101561000057906000526020600020900160005b505492505b505092915050565b60008183101561063057829050610639565b819050610639565b5b92915050565b60025481565b6000600060006000600060009350600092506106668660078054905061061e565b9150600090505b8181101561078f573373ffffffffffffffffffffffffffffffffffffffff1660056001836005805490500303815481101561000057906000526020600020900160005b9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561076d57600060076001836007805490500303815481101561000057906000526020600020900160005b50541415610727578380600101945050610768565b600160076001836007805490500303815481101561000057906000526020600020900160005b50541415610762578280600101935050610767565b610000565b5b610782565b61077f6001870160078054905061061e565b91505b808060010191505061066d565b60008714156107a55783806001019450506107ae565b82806001019350505b828411156107bf57600094506107da565b838311156107d057600194506107da565b8694506107da565b5b5b5050505092915050565b600054821015156107f457610000565b6001600683815481101561000057906000526020600020900160005b505401600683815481101561000057906000526020600020900160005b50819055506007805480919060010181548183558181151161087b5781836000526020600020918201910161087a91905b8082111561087657600081600090555060010161085e565b5090565b5b50505050816007600160078054905003815481101561000057906000526020600020900160005b5081905550600580548091906001018154818355818115116108f0578183600052602060002091820191016108ef91905b808211156108eb5760008160009055506001016108d3565b5090565b5b50505050336005600160058054905003815481101561000057906000526020600020900160005b6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506008805480919060010181548183558181151161099c5781836000526020600020918201910161099b91905b8082111561099757600081600090555060010161097f565b5090565b5b50505050806008600160088054905003815481101561000057906000526020600020900160005b508190555060008214156109e8576001600081548092919060010191905055506109fb565b6002600081548092919060010191905055505b5b5050565b60006002821415610a1d57349050610a1883826107e4565b610a4c565b6001821480610a2c5750600382145b15610a4b576001341015610a3f57610000565b610a4a8360016107e4565b5b5b5b505050565b600060016007805490501115610a8d576007600260078054905003815481101561000057906000526020600020900160005b50549050610a97565b60039050610a97565b5b90565b600060025490505b90565b600060015490505b905600a165627a7a72305820dd9834e3c45bd15191cf23e10b0045f927a576e133f3030d3415acf46e933b0d0029', gas: '4700000' }, function (e, contract){if (!e) { while (!contract.transactionHash) { admin.sleep(1); } console.log(contract.transactionHash); } else {console.log(e);}})