-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathmobilechain.js
12 lines (12 loc) · 10.4 KB
/
mobilechain.js
1
2
3
4
5
6
7
8
9
10
11
12
var browser_untitled_sol_mobilechainContract = web3.eth.contract([{"constant":false,"inputs":[{"name":"id","type":"uint256"},{"name":"pass","type":"bytes32"},{"name":"types","type":"bytes32"}],"name":"login","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_mid","type":"uint256"}],"name":"getLength","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"id","type":"uint256"}],"name":"getMobile","outputs":[{"name":"","type":"bytes32"},{"name":"","type":"bytes32"},{"name":"","type":"address"},{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"sid","type":"uint256"},{"name":"types","type":"bytes32"},{"name":"name","type":"bytes32"},{"name":"specs","type":"bytes32"}],"name":"setMobile","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"totMobile","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"u_id1","type":"uint256"},{"name":"u_id2","type":"uint256"},{"name":"_mid","type":"uint256"}],"name":"transferOwnershipOfMobile","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"id","type":"uint256"}],"name":"getstakeholders","outputs":[{"name":"","type":"bytes32"},{"name":"","type":"bytes32"},{"name":"","type":"address"},{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"mid","type":"uint256"},{"name":"id","type":"uint256"}],"name":"gettrack","outputs":[{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"bytes32"},{"name":"pass","type":"bytes32"},{"name":"Add","type":"address"},{"name":"typeuser","type":"bytes32"}],"name":"setstakeholders","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"}]);
var browser_untitled_sol_mobilechain = browser_untitled_sol_mobilechainContract.new(
{
from: web3.eth.accounts[0],
data: '0x606060405260636000556064600155341561001957600080fd5b5b610f62806100296000396000f30060606040523615610097576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063068e445a1461009c5780630986e647146100f15780631d3318491461012857806326bf560d146101b85780635357e5ab146102165780639b40bce91461023f5780639ec7b8f61461028c578063e86670221461031c578063f1fab8ca14610396575b600080fd5b34156100a757600080fd5b6100d76004808035906020019091908035600019169060200190919080356000191690602001909190505061040a565b604051808215151515815260200191505060405180910390f35b34156100fc57600080fd5b610112600480803590602001909190505061046e565b6040518082815260200191505060405180910390f35b341561013357600080fd5b610149600480803590602001909190505061048f565b60405180856000191660001916815260200184600019166000191681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001826000191660001916815260200194505050505060405180910390f35b34156101c357600080fd5b6102006004808035906020019091908035600019169060200190919080356000191690602001909190803560001916906020019091905050610521565b6040518082815260200191505060405180910390f35b341561022157600080fd5b6102296107b9565b6040518082815260200191505060405180910390f35b341561024a57600080fd5b61027260048080359060200190919080359060200190919080359060200190919050506107c3565b604051808215151515815260200191505060405180910390f35b341561029757600080fd5b6102ad6004808035906020019091905050610ccf565b60405180856000191660001916815260200184600019166000191681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001826000191660001916815260200194505050505060405180910390f35b341561032757600080fd5b6103466004808035906020019091908035906020019091905050610d61565b604051808481526020018381526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001935050505060405180910390f35b34156103a157600080fd5b6103f46004808035600019169060200190919080356000191690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803560001916906020019091905050610dd9565b6040518082815260200191505060405180910390f35b60008160001916600460008681526020019081526020016000206003015460001916141561046257826000191660046000868152602001908152602001600020600101546000191614156104615760019050610467565b5b600090505b9392505050565b6000600260008381526020019081526020016000208054905090505b919050565b600080600080600360008681526020019081526020016000206000015460036000878152602001908152602001600020600101546003600088815260200190815260200160002060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600360008981526020019081526020016000206002015493509350935093505b9193509193565b60008060007f4d616e756661637475726572000000000000000000000000000000000000000060046000898152602001908152602001600020600301546000191614156107a557600160005401915085600360008481526020019081526020016000206000018160001916905550846003600084815260200190815260200160002060010181600019169055506004600088815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550836003600084815260200190815260200160002060020181600019169055508181600001819055506004600088815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508681600101819055506002600083815260200190815260200160002080548060010182816107089190610eae565b916000526020600020906003020160005b83909190915060008201548160000155600182015481600101556002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050508192506107af565b600092506107af565b5b5050949350505050565b6000805490505b90565b600080600080846003600082815260200190815260200160002060030160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561083a57600080fd5b6004600089815260200190815260200160002093506004600088815260200190815260200160002092507f4d616e75666163747572657200000000000000000000000000000000000000008460030154600019161480156108c257507f4469737472696275746f72000000000000000000000000000000000000000000836003015460001916145b15610a8e578582600001819055506004600088815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168260020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508682600101819055506002600087815260200190815260200160002080548060010182816109779190610eae565b916000526020600020906003020160005b84909190915060008201548160000155600182015481600101556002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050508260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166003600088815260200190815260200160002060030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019450610cc3565b7f4469737472696275746f72000000000000000000000000000000000000000000846003015460001916148015610aec57507f5573657200000000000000000000000000000000000000000000000000000000836003015460001916145b15610cb8578582600001819055506004600088815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168260020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550868260010181905550600260008781526020019081526020016000208054806001018281610ba19190610eae565b916000526020600020906003020160005b84909190915060008201548160000155600182015481600101556002820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050508260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166003600088815260200190815260200160002060030160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060019450610cc3565b60009450610cc3565b5b5b5b505050509392505050565b600080600080600460008681526020019081526020016000206000015460046000878152602001908152602001600020600101546004600088815260200190815260200160002060020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600460008981526020019081526020016000206003015493509350935093505b9193509193565b6000806000806002600087815260200190815260200160002085815481101515610d8757fe5b906000526020600020906003020160005b509050806000015481600101548260020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169350935093505b509250925092565b600080600160008154809291906001019190505590508560046000838152602001908152602001600020600001816000191690555084600460008381526020019081526020016000206001018160001916905550836004600083815260200190815260200160002060020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550826004600083815260200190815260200160002060030181600019169055508091505b50949350505050565b815481835581811511610edb57600302816003028360005260206000209182019101610eda9190610ee0565b5b505050565b610f3391905b80821115610f2f5760008082016000905560018201600090556002820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550600301610ee6565b5090565b905600a165627a7a7230582094faa3dc1fecefedfcd0a363070d281e2ce6bee3b6cf0929ad2df7e1589b4c8b0029',
gas: '4300000'
}, function (e, contract){
console.log(e, contract);
if (typeof contract.address !== 'undefined') {
console.log('Contract mined! address: ' + contract.address + ' transactionHash: ' + contract.transactionHash);
}
})