Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

LegitLit

##Dependencies

  1. Install git if you have not already done so.
  2. git clone https://github.com/sukrithanda/LegitLit
  3. Install Node.js if you have not already done so: https://nodejs.org/en/download/
  4. Install npm if you have not already done so: http://blog.npmjs.org/post/85484771375/how-to-install-npm
  5. Install meteor if you have not already done so: https://www.meteor.com/
  6. Install TestRPC if you have not already done so: https://github.com/ethereumjs/testrpc

##Setup

  1. Launch testrpc with the testrpc command
  2. cd to the folder LegitLit/contract-launcher in the terminal and run the command: python -m SimpleHTTPServer
  3. Open localhost:8000 in your browser. This is a solidity contract launcher that can save any contract to the blockchain.
  4. In the "Deploy from Bytecode and Interface" section
  • Copy and paste the following into the bytecode input: 60606040525b33600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908302179055505b6107b88061003f6000396000f360606040526000357c0100000000000000000000000000000000000000000000000000000000900480630a8517f81461005a5780632d22c947146100f7578063de7cc07f14610194578063f8a8fd6d1461025657610058565b005b6100f56004808035906020019082018035906020019191908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050909091908035906020019082018035906020019191908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050909091905050610279565b005b6101926004808035906020019082018035906020019191908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050909091908035906020019082018035906020019191908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509090919050506102c4565b005b6101e86004808035906020019082018035906020019191908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505090909190505061030f565b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156102485780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61026360048050506107aa565b6040518082815260200191505060405180910390f35b6000600060005083604051808280519060200190808383829060006004602084601f0104600302600f01f150905001915050908152602001604051809103902060005090505b505050565b6000600060005083604051808280519060200190808383829060006004602084601f0104600302600f01f150905001915050908152602001604051809103902060005090505b505050565b602060405190810160405280600081526020015060e060405190810160405280600081526020016000815260200160206040519081016040528060008152602001508152602001602060405190810160405280600081526020015081526020016000815260200160008152602001600081526020015060008160000190908181526020015050600081602001909081815260200150508281604001819052506000816080019090818152602001505060018160a00190151590818152602001505060028160c0019090818152602001505080600060005084604051808280519060200190808383829060006004602084601f0104600302600f01f150905001915050908152602001604051809103902060005060008201518160000160005055602082015181600101600050556040820151816002016000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061049157805160ff19168380011785556104c2565b828001600101855582156104c2579182015b828111156104c15782518260005055916020019190600101906104a3565b5b5090506104ed91906104cf565b808211156104e957600081815060009055506001016104cf565b5090565b505060608201518160030160005090805190602001908280548282559060005260206000209081019282156105e5579160200282015b828111156105e4578251829080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061057757805160ff19168380011785556105a8565b828001600101855582156105a8579182015b828111156105a7578251826000505591602001919060010190610589565b5b5090506105d391906105b5565b808211156105cf57600081815060009055506001016105b5565b5090565b505091602001919060010190610523565b5b50905061066f91906105f2565b8082111561066b576000818150805460018160011615610100020316600290046000825580601f106106245750610661565b601f0160209004906000526020600020908101906106609190610642565b8082111561065c5760008181506000905550600101610642565b5090565b5b50506001016105f2565b5090565b505060808201518160040160006101000a81548160ff0219169083021790555060a08201518160040160016101000a81548160ff0219169083021790555060c08201518160050160005055905050600060005083604051808280519060200190808383829060006004602084601f0104600302600f01f15090500191505090815260200160405180910390206000506002016000508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107985780601f1061076d57610100808354040283529160200191610798565b820191906000526020600020905b81548152906001019060200180831161077b57829003601f168201915b505050505091506107a4565b50919050565b6000600890506107b5565b9056

  • Copy and past the following into the Interface input: [{"constant":false,"inputs":[{"name":"_paper_id","type":"string"},{"name":"_review","type":"string"}],"name":"rejectPaper","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_paper_id","type":"string"},{"name":"_review","type":"string"}],"name":"acceptPaper","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_paper_id","type":"string"}],"name":"submitPaper","outputs":[{"name":"id","type":"string"}],"type":"function"},{"constant":true,"inputs":[],"name":"test","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"inputs":[],"type":"constructor"}]

  • Click deploy from bytecode.

  1. Output will be displayed. You need to copy the address of the contract.
  2. In the contract.js component in LegitLit/app/client/components you will see this line: var myContractInstance = MyContract.at('0xadf7d81b85a291c6e52e89546fd84646e9493dc6'); Change '0xadf7d81b85a291c6e52e89546fd84646e9493dc6' to the address you copied earlier
  3. In the terminal cd to LegitLit/app and launch meteor using the command meteor.

About

LegitLit

Resources

Stars

1 star

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages