-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.js
19 lines (7 loc) · 4.46 KB
/
setup.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import Web3 from 'web3';
const web3=new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
let devStan=[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function","signature":"0x06fdde03"},{"constant":true,"inputs":[],"name":"test_mark_security","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function","signature":"0x0bb32bd6"},{"constant":true,"inputs":[],"name":"social_engineering_knowledge","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function","signature":"0x1f9c4d26"},{"constant":true,"inputs":[],"name":"age","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function","signature":"0x262a9dff"},{"constant":true,"inputs":[],"name":"test_mark_os","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function","signature":"0x29d9c68f"},{"constant":false,"inputs":[{"name":"mark","type":"uint256"}],"name":"give_mark_networking","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function","signature":"0x2d17b2c8"},{"constant":true,"inputs":[],"name":"comunication_skils","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function","signature":"0x3bbc8a90"},{"constant":true,"inputs":[],"name":"english_knowledge","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function","signature":"0x45712de1"},{"constant":false,"inputs":[{"name":"mark","type":"uint256"}],"name":"give_mark_os","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function","signature":"0x669cc512"},{"constant":true,"inputs":[],"name":"master_degree","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function","signature":"0x7591fbcc"},{"constant":true,"inputs":[],"name":"cloud_knowledge","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function","signature":"0x769bdbec"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"prog_lang","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function","signature":"0x969df693"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"previous_exp","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function","signature":"0xc66fb4dd"},{"constant":true,"inputs":[],"name":"ccna_security_cert","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function","signature":"0xc69262d3"},{"constant":true,"inputs":[],"name":"database_knowledge","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function","signature":"0xdd1bbf71"},{"constant":true,"inputs":[],"name":"bachelor_degree","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function","signature":"0xdfc26486"},{"constant":true,"inputs":[],"name":"kali_linux_knowledge","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function","signature":"0xe08d4ab3"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"markReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function","signature":"0xed5984f0"},{"constant":false,"inputs":[{"name":"_name","type":"bytes32"}],"name":"mark_recieved","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function","signature":"0xf1984a08"},{"constant":true,"inputs":[],"name":"test_mark_networking","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function","signature":"0xf1b76cdf"},{"constant":true,"inputs":[],"name":"ceh_cert","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function","signature":"0xf24cede4"},{"constant":false,"inputs":[{"name":"mark","type":"uint256"}],"name":"give_mark_security","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function","signature":"0x56132e4d"},{"constant":true,"inputs":[],"name":"minimum_requirement","outputs":[{"name":"","type":"int256"}],"payable":false,"stateMutability":"view","type":"function","signature":"0x3fe6be8b"}]
let devAdress='0x409285e7e217dDc11E48F6c666b0D8052eC5a755';
web3.eth.defaultAccount = web3.eth.accounts[0]
const devContract=web3.eth.contract(devStan).at(devAdress);
export {devContract};