From 5e93e96d172ef07a46295bd0a2a2c8aae0e8140d Mon Sep 17 00:00:00 2001 From: LorenzoAlluminio Date: Wed, 23 May 2018 12:59:47 +0200 Subject: [PATCH 1/2] upgraded contracts --- dist/paratii.eth.vouchers.js | 54 ++-- dist/paratii.min.js | 96 +++---- package-lock.json | 502 +---------------------------------- package.json | 2 +- 4 files changed, 83 insertions(+), 571 deletions(-) diff --git a/dist/paratii.eth.vouchers.js b/dist/paratii.eth.vouchers.js index 4ec619f..4c75539 100644 --- a/dist/paratii.eth.vouchers.js +++ b/dist/paratii.eth.vouchers.js @@ -271,73 +271,73 @@ var ParatiiEthVouchers = exports.ParatiiEthVouchers = function () { case 8: thisVoucher = _context5.sent; thisVoucherClaimant = thisVoucher[0].toString(); - thisVoucherAmount = Number(thisVoucher[1]); - _context5.t0 = Number; - _context5.next = 14; + thisVoucherAmount = thisVoucher[1]; + _context5.next = 13; return _regenerator2.default.awrap(this.eth.balanceOf(contract.options.address, 'PTI')); - case 14: - _context5.t1 = _context5.sent; - vouchersContractBalance = (0, _context5.t0)(_context5.t1); + case 13: + vouchersContractBalance = _context5.sent; if (!(thisVoucherClaimant !== _utils.NULL_ADDRESS)) { - _context5.next = 18; + _context5.next = 16; break; } throw Error('This voucher was already used'); - case 18: - if (!(thisVoucherAmount > vouchersContractBalance)) { - _context5.next = 20; + case 16: + if (!this.eth.web3.utils.toBN(thisVoucherAmount).gt(vouchersContractBalance)) { + _context5.next = 18; break; } throw Error('The Vouchers contract doesn\'t have enough PTI to redeem the voucher'); - case 20: - if (!(thisVoucherAmount === Number(0))) { - _context5.next = 22; + case 18: + if (!this.eth.web3.utils.toBN(thisVoucherAmount).eq(0)) { + _context5.next = 20; break; } throw Error('This voucher doesn\'t exist'); - case 22: - _context5.prev = 22; - _context5.next = 25; + case 20: + _context5.prev = 20; + _context5.next = 23; return _regenerator2.default.awrap(contract.methods.redeem(voucherCode).send()); - case 25: + case 23: tx = _context5.sent; + + console.log(tx); claimant = (0, _utils.getInfoFromLogs)(tx, 'LogRedeemVoucher', '_claimant', 1); amount = (0, _utils.getInfoFromLogs)(tx, 'LogRedeemVoucher', '_amount', 1); if (!(claimant === this.eth.getAccount())) { - _context5.next = 32; + _context5.next = 31; break; } return _context5.abrupt('return', amount); - case 32: + case 31: return _context5.abrupt('return', false); - case 33: - _context5.next = 38; + case 32: + _context5.next = 37; break; - case 35: - _context5.prev = 35; - _context5.t2 = _context5['catch'](22); - throw Error('An unknown error occurred'); + case 34: + _context5.prev = 34; + _context5.t0 = _context5['catch'](20); + throw _context5.t0; - case 38: + case 37: case 'end': return _context5.stop(); } } - }, null, this, [[22, 35]]); + }, null, this, [[20, 34]]); } }]); return ParatiiEthVouchers; diff --git a/dist/paratii.min.js b/dist/paratii.min.js index 15e0dee..2efe46b 100644 --- a/dist/paratii.min.js +++ b/dist/paratii.min.js @@ -199871,73 +199871,73 @@ var ParatiiEthVouchers = exports.ParatiiEthVouchers = function () { case 8: thisVoucher = _context5.sent; thisVoucherClaimant = thisVoucher[0].toString(); - thisVoucherAmount = Number(thisVoucher[1]); - _context5.t0 = Number; - _context5.next = 14; + thisVoucherAmount = thisVoucher[1]; + _context5.next = 13; return _regenerator2.default.awrap(this.eth.balanceOf(contract.options.address, 'PTI')); - case 14: - _context5.t1 = _context5.sent; - vouchersContractBalance = (0, _context5.t0)(_context5.t1); + case 13: + vouchersContractBalance = _context5.sent; if (!(thisVoucherClaimant !== _utils.NULL_ADDRESS)) { - _context5.next = 18; + _context5.next = 16; break; } throw Error('This voucher was already used'); - case 18: - if (!(thisVoucherAmount > vouchersContractBalance)) { - _context5.next = 20; + case 16: + if (!this.eth.web3.utils.toBN(thisVoucherAmount).gt(vouchersContractBalance)) { + _context5.next = 18; break; } throw Error('The Vouchers contract doesn\'t have enough PTI to redeem the voucher'); - case 20: - if (!(thisVoucherAmount === Number(0))) { - _context5.next = 22; + case 18: + if (!this.eth.web3.utils.toBN(thisVoucherAmount).eq(0)) { + _context5.next = 20; break; } throw Error('This voucher doesn\'t exist'); - case 22: - _context5.prev = 22; - _context5.next = 25; + case 20: + _context5.prev = 20; + _context5.next = 23; return _regenerator2.default.awrap(contract.methods.redeem(voucherCode).send()); - case 25: + case 23: tx = _context5.sent; + + console.log(tx); claimant = (0, _utils.getInfoFromLogs)(tx, 'LogRedeemVoucher', '_claimant', 1); amount = (0, _utils.getInfoFromLogs)(tx, 'LogRedeemVoucher', '_amount', 1); if (!(claimant === this.eth.getAccount())) { - _context5.next = 32; + _context5.next = 31; break; } return _context5.abrupt('return', amount); - case 32: + case 31: return _context5.abrupt('return', false); - case 33: - _context5.next = 38; + case 32: + _context5.next = 37; break; - case 35: - _context5.prev = 35; - _context5.t2 = _context5['catch'](22); - throw Error('An unknown error occurred'); + case 34: + _context5.prev = 34; + _context5.t0 = _context5['catch'](20); + throw _context5.t0; - case 38: + case 37: case 'end': return _context5.stop(); } } - }, null, this, [[22, 35]]); + }, null, this, [[20, 34]]); } }]); return ParatiiEthVouchers; @@ -229262,127 +229262,127 @@ webpackContext.id = 883; /* 884 */ /***/ (function(module, exports) { -module.exports = {"contractName":"Avatar","abi":[{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"whitelist","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"addToWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"removeFromWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"isOnWhiteList","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b604051602080610c7f83398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610b83806100fc6000396000f30060606040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806323b872dd146100935780637b1039991461010c5780637ebd1b30146101615780638ab1d681146101c45780638da5cb5b146101fd578063e43252d714610252578063ecb223ab1461028b578063f2fde38b146102dc575b600080fd5b341561009e57600080fd5b6100f2600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610315565b604051808215151515815260200191505060405180910390f35b341561011757600080fd5b61011f610517565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561016c57600080fd5b610182600480803590602001909190505061053d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101cf57600080fd5b6101fb600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061057c565b005b341561020857600080fd5b6102106106a8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561025d57600080fd5b610289600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506106cd565b005b341561029657600080fd5b6102c2600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061090d565b604051808215151515815260200191505060405180910390f35b34156102e757600080fd5b610313600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506109b1565b005b6000806103213361090d565b151561032c57600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252600c8152602001807f50617261746969546f6b656e0000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15156103f657600080fd5b6102c65a03f1151561040757600080fd5b5050506040518051905090508073ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866000604051602001526040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15156104f257600080fd5b6102c65a03f1151561050357600080fd5b505050604051805190509150509392505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60028181548110151561054c57fe5b90600052602060002090016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156105d957600080fd5b600090505b6002805490508110156106a4578173ffffffffffffffffffffffffffffffffffffffff1660028281548110151561061157fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156106975760028181548110151561066857fe5b906000526020600020900160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b80806001019150506105de565b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561072b57600080fd5b6002805490509150600090505b600280549050811015610838578273ffffffffffffffffffffffffffffffffffffffff1660028281548110151561076b57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156107b857610908565b600073ffffffffffffffffffffffffffffffffffffffff166002828154811015156107df57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561082b578091505b8080600101915050610738565b6002805490508214156108ad57600280548060010182816108599190610b06565b9160005260206000209001600085909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610907565b826002838154811015156108bd57fe5b906000526020600020900160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b505050565b600080600090505b6002805490508110156109a6578273ffffffffffffffffffffffffffffffffffffffff1660028281548110151561094857fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561099957600191506109ab565b8080600101915050610915565b600091505b50919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a0c57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610a4857600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b815481835581811511610b2d57818360005260206000209182019101610b2c9190610b32565b5b505050565b610b5491905b80821115610b50576000816000905550600101610b38565b5090565b905600a165627a7a723058201a4f5754ac3f37070662ceb2b9447da98100607f56ba5828ba5c0439abb9de9c0029","deployedBytecode":"0x60606040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806323b872dd146100935780637b1039991461010c5780637ebd1b30146101615780638ab1d681146101c45780638da5cb5b146101fd578063e43252d714610252578063ecb223ab1461028b578063f2fde38b146102dc575b600080fd5b341561009e57600080fd5b6100f2600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610315565b604051808215151515815260200191505060405180910390f35b341561011757600080fd5b61011f610517565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561016c57600080fd5b610182600480803590602001909190505061053d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101cf57600080fd5b6101fb600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061057c565b005b341561020857600080fd5b6102106106a8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561025d57600080fd5b610289600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506106cd565b005b341561029657600080fd5b6102c2600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190505061090d565b604051808215151515815260200191505060405180910390f35b34156102e757600080fd5b610313600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506109b1565b005b6000806103213361090d565b151561032c57600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252600c8152602001807f50617261746969546f6b656e0000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15156103f657600080fd5b6102c65a03f1151561040757600080fd5b5050506040518051905090508073ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866000604051602001526040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15156104f257600080fd5b6102c65a03f1151561050357600080fd5b505050604051805190509150509392505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60028181548110151561054c57fe5b90600052602060002090016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156105d957600080fd5b600090505b6002805490508110156106a4578173ffffffffffffffffffffffffffffffffffffffff1660028281548110151561061157fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156106975760028181548110151561066857fe5b906000526020600020900160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b80806001019150506105de565b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561072b57600080fd5b6002805490509150600090505b600280549050811015610838578273ffffffffffffffffffffffffffffffffffffffff1660028281548110151561076b57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156107b857610908565b600073ffffffffffffffffffffffffffffffffffffffff166002828154811015156107df57fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561082b578091505b8080600101915050610738565b6002805490508214156108ad57600280548060010182816108599190610b06565b9160005260206000209001600085909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610907565b826002838154811015156108bd57fe5b906000526020600020900160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b505050565b600080600090505b6002805490508110156109a6578273ffffffffffffffffffffffffffffffffffffffff1660028281548110151561094857fe5b906000526020600020900160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561099957600191506109ab565b8080600101915050610915565b600091505b50919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a0c57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610a4857600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b815481835581811511610b2d57818360005260206000209182019101610b2c9190610b32565b5b505050565b610b5491905b80821115610b50576000816000905550600101610b38565b5090565b905600a165627a7a723058201a4f5754ac3f37070662ceb2b9447da98100607f56ba5828ba5c0439abb9de9c0029","sourceMap":"204:1586:2:-;;;394:108;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;509:10:15;501:5;;:18;;;;;;;;;;;;;;;;;;458:9:2;447:8;;:20;;;;;;;;;;;;;;;;;;485:10;477:5;;:18;;;;;;;;;;;;;;;;;;394:108;204:1586;;;;;;","deployedSourceMap":"204:1586:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1541:247;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;237:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;268:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1074:218;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;508:560:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;1298:237;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;834:169:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;1541:247:2;1637:4;1655:18;344:25;358:10;344:13;:25::i;:::-;336:34;;;;;;;;1689:8;;;;;;;;;;;:20;;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1655:71;;1743:5;:18;;;1762:5;1769:3;1774:6;1743:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1736:45;;1541:247;;;;;;:::o;237:24::-;;;;;;;;;;;;;:::o;268:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1074:218::-;1151:6;654:5:15;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;1158:1:2;1151:8;;1146:140;1165:9;:16;;;;1161:1;:20;1146:140;;;1220:8;1204:24;;:9;1214:1;1204:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;:24;;;1200:78;;;1253:9;1263:1;1253:12;;;;;;;;;;;;;;;;;;;1246:19;;;;;;;;;;;1200:78;1183:3;;;;;;;1146:140;;;1074:218;;:::o;238:20:15:-;;;;;;;;;;;;;:::o;508:560:2:-;669:14;715:6;654:5:15;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;686:9:2;:16;;;;669:33;;722:1;715:8;;710:208;729:9;:16;;;;725:1;:20;710:208;;;784:8;768:24;;:9;778:1;768:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;:24;;;764:63;;;808:7;;764:63;866:1;842:26;;:9;852:1;842:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;:26;;;838:72;;;896:1;884:13;;838:72;747:3;;;;;;;710:208;;;942:9;:16;;;;929:9;:29;925:137;;;971:9;:24;;;;;;;;;;;:::i;:::-;;;;;;;;;;986:8;971:24;;;;;;;;;;;;;;;;;;;;;;;925:137;;;1045:8;1022:9;1032;1022:20;;;;;;;;;;;;;;;;;;;:31;;;;;;;;;;;;;;;;;;925:137;666:1:15;508:560:2;;;:::o;1298:237::-;1363:4;1382:6;1389:1;1382:8;;1377:132;1396:9;:16;;;;1392:1;:20;1377:132;;;1451:8;1435:24;;:9;1445:1;1435:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;:24;;;1431:70;;;1484:4;1477:11;;;;1431:70;1414:3;;;;;;;1377:132;;;1523:5;1516:12;;1298:237;;;;;:::o;834:169:15:-;654:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;930:1;910:22;;:8;:22;;;;902:31;;;;;;;;967:8;939:37;;960:5;;;;;;;;;;;939:37;;;;;;;;;;;;990:8;982:5;;:16;;;;;;;;;;;;;;;;;;834:169;:::o;204:1586:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o","source":"pragma solidity ^0.4.18;\nimport './Registry.sol';\nimport './ParatiiToken.sol';\nimport \"zeppelin-solidity/contracts/ownership/Ownable.sol\";\n/*\n * @dev A contract that holds PTI for the paratii DAO\n *\n */\n\ncontract Avatar is Ownable {\n Registry public registry;\n\n address[] public whitelist;\n\n modifier onlyWhitelist() {\n require(isOnWhiteList(msg.sender));\n _;\n }\n\n function Avatar(Registry _registry) public {\n registry = _registry;\n owner = msg.sender;\n }\n\n function addToWhitelist(address _address) public onlyOwner {\n // check if the address is already known, and if there is a free space in the whitelist\n uint freeSpace = whitelist.length;\n for (uint i=0; i < whitelist.length; i++) {\n if (whitelist[i] == _address) {\n return;\n }\n if (whitelist[i] == address(0)) {\n freeSpace = i;\n }\n }\n if (freeSpace == whitelist.length){\n whitelist.push(_address);\n } else {\n whitelist[freeSpace] = _address;\n }\n }\n\n function removeFromWhitelist(address _address) public onlyOwner {\n for (uint i=0; i < whitelist.length; i++) {\n if (whitelist[i] == _address) {\n delete whitelist[i];\n }\n }\n }\n\n function isOnWhiteList(address _address) public constant returns(bool) {\n for (uint i=0; i < whitelist.length; i++) {\n if (whitelist[i] == _address) {\n return true;\n }\n }\n return false;\n }\n\n function transferFrom(address _from, address _to, uint256 _value) public onlyWhitelist returns (bool) {\n ParatiiToken token = ParatiiToken(registry.getContract('ParatiiToken'));\n return token.transferFrom(_from, _to, _value);\n }\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Avatar.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Avatar.sol","exportedSymbols":{"Avatar":[287]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":89,"name":"PragmaDirective","src":"0:24:2"},{"attributes":{"SourceUnit":857,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Registry.sol","file":"./Registry.sol","scope":288,"symbolAliases":[null],"unitAlias":""},"id":90,"name":"ImportDirective","src":"25:24:2"},{"attributes":{"SourceUnit":632,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/ParatiiToken.sol","file":"./ParatiiToken.sol","scope":288,"symbolAliases":[null],"unitAlias":""},"id":91,"name":"ImportDirective","src":"50:28:2"},{"attributes":{"SourceUnit":2517,"absolutePath":"zeppelin-solidity/contracts/ownership/Ownable.sol","file":"zeppelin-solidity/contracts/ownership/Ownable.sol","scope":288,"symbolAliases":[null],"unitAlias":""},"id":92,"name":"ImportDirective","src":"79:59:2"},{"attributes":{"contractDependencies":[2516],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[287,2516],"name":"Avatar","scope":288},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"Ownable","referencedDeclaration":2516,"type":"contract Ownable"},"id":93,"name":"UserDefinedTypeName","src":"223:7:2"}],"id":94,"name":"InheritanceSpecifier","src":"223:7:2"},{"attributes":{"constant":false,"name":"registry","scope":287,"stateVariable":true,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"public"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":95,"name":"UserDefinedTypeName","src":"237:8:2"}],"id":96,"name":"VariableDeclaration","src":"237:24:2"},{"attributes":{"constant":false,"name":"whitelist","scope":287,"stateVariable":true,"storageLocation":"default","type":"address[] storage ref","value":null,"visibility":"public"},"children":[{"attributes":{"length":null,"type":"address[] storage pointer"},"children":[{"attributes":{"name":"address","type":"address"},"id":97,"name":"ElementaryTypeName","src":"268:7:2"}],"id":98,"name":"ArrayTypeName","src":"268:9:2"}],"id":99,"name":"VariableDeclaration","src":"268:26:2"},{"attributes":{"name":"onlyWhitelist","visibility":"internal"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":100,"name":"ParameterList","src":"323:2:2"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":101,"name":"Identifier","src":"336:7:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":256,"type":"function (address) view returns (bool)","value":"isOnWhiteList"},"id":102,"name":"Identifier","src":"344:13:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":103,"name":"Identifier","src":"358:3:2"}],"id":104,"name":"MemberAccess","src":"358:10:2"}],"id":105,"name":"FunctionCall","src":"344:25:2"}],"id":106,"name":"FunctionCall","src":"336:34:2"}],"id":107,"name":"ExpressionStatement","src":"336:34:2"},{"id":108,"name":"PlaceholderStatement","src":"380:1:2"}],"id":109,"name":"Block","src":"326:62:2"}],"id":110,"name":"ModifierDefinition","src":"301:87:2"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"Avatar","payable":false,"scope":287,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_registry","scope":125,"stateVariable":false,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":111,"name":"UserDefinedTypeName","src":"410:8:2"}],"id":112,"name":"VariableDeclaration","src":"410:18:2"}],"id":113,"name":"ParameterList","src":"409:20:2"},{"attributes":{"parameters":[null]},"children":[],"id":114,"name":"ParameterList","src":"437:0:2"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"contract Registry"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":96,"type":"contract Registry","value":"registry"},"id":115,"name":"Identifier","src":"447:8:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":112,"type":"contract Registry","value":"_registry"},"id":116,"name":"Identifier","src":"458:9:2"}],"id":117,"name":"Assignment","src":"447:20:2"}],"id":118,"name":"ExpressionStatement","src":"447:20:2"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2464,"type":"address","value":"owner"},"id":119,"name":"Identifier","src":"477:5:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":120,"name":"Identifier","src":"485:3:2"}],"id":121,"name":"MemberAccess","src":"485:10:2"}],"id":122,"name":"Assignment","src":"477:18:2"}],"id":123,"name":"ExpressionStatement","src":"477:18:2"}],"id":124,"name":"Block","src":"437:65:2"}],"id":125,"name":"FunctionDefinition","src":"394:108:2"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"addToWhitelist","payable":false,"scope":287,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_address","scope":191,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":126,"name":"ElementaryTypeName","src":"532:7:2"}],"id":127,"name":"VariableDeclaration","src":"532:16:2"}],"id":128,"name":"ParameterList","src":"531:18:2"},{"attributes":{"parameters":[null]},"children":[],"id":131,"name":"ParameterList","src":"567:0:2"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2490,"type":"modifier ()","value":"onlyOwner"},"id":129,"name":"Identifier","src":"557:9:2"}],"id":130,"name":"ModifierInvocation","src":"557:9:2"},{"children":[{"attributes":{"assignments":[133]},"children":[{"attributes":{"constant":false,"name":"freeSpace","scope":191,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":132,"name":"ElementaryTypeName","src":"669:4:2"}],"id":133,"name":"VariableDeclaration","src":"669:14:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":99,"type":"address[] storage ref","value":"whitelist"},"id":134,"name":"Identifier","src":"686:9:2"}],"id":135,"name":"MemberAccess","src":"686:16:2"}],"id":136,"name":"VariableDeclarationStatement","src":"669:33:2"},{"children":[{"attributes":{"assignments":[138]},"children":[{"attributes":{"constant":false,"name":"i","scope":191,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":137,"name":"ElementaryTypeName","src":"715:4:2"}],"id":138,"name":"VariableDeclaration","src":"715:6:2"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":139,"name":"Literal","src":"722:1:2"}],"id":140,"name":"VariableDeclarationStatement","src":"715:8:2"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":138,"type":"uint256","value":"i"},"id":141,"name":"Identifier","src":"725:1:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":99,"type":"address[] storage ref","value":"whitelist"},"id":142,"name":"Identifier","src":"729:9:2"}],"id":143,"name":"MemberAccess","src":"729:16:2"}],"id":144,"name":"BinaryOperation","src":"725:20:2"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":138,"type":"uint256","value":"i"},"id":145,"name":"Identifier","src":"747:1:2"}],"id":146,"name":"UnaryOperation","src":"747:3:2"}],"id":147,"name":"ExpressionStatement","src":"747:3:2"},{"children":[{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":99,"type":"address[] storage ref","value":"whitelist"},"id":148,"name":"Identifier","src":"768:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":138,"type":"uint256","value":"i"},"id":149,"name":"Identifier","src":"778:1:2"}],"id":150,"name":"IndexAccess","src":"768:12:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":127,"type":"address","value":"_address"},"id":151,"name":"Identifier","src":"784:8:2"}],"id":152,"name":"BinaryOperation","src":"768:24:2"},{"children":[{"attributes":{"expression":null,"functionReturnParameters":131},"id":153,"name":"Return","src":"808:7:2"}],"id":154,"name":"Block","src":"794:33:2"}],"id":155,"name":"IfStatement","src":"764:63:2"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":99,"type":"address[] storage ref","value":"whitelist"},"id":156,"name":"Identifier","src":"842:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":138,"type":"uint256","value":"i"},"id":157,"name":"Identifier","src":"852:1:2"}],"id":158,"name":"IndexAccess","src":"842:12:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":true,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":159,"name":"ElementaryTypeNameExpression","src":"858:7:2"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":160,"name":"Literal","src":"866:1:2"}],"id":161,"name":"FunctionCall","src":"858:10:2"}],"id":162,"name":"BinaryOperation","src":"842:26:2"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":133,"type":"uint256","value":"freeSpace"},"id":163,"name":"Identifier","src":"884:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":138,"type":"uint256","value":"i"},"id":164,"name":"Identifier","src":"896:1:2"}],"id":165,"name":"Assignment","src":"884:13:2"}],"id":166,"name":"ExpressionStatement","src":"884:13:2"}],"id":167,"name":"Block","src":"870:40:2"}],"id":168,"name":"IfStatement","src":"838:72:2"}],"id":169,"name":"Block","src":"752:166:2"}],"id":170,"name":"ForStatement","src":"710:208:2"},{"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":133,"type":"uint256","value":"freeSpace"},"id":171,"name":"Identifier","src":"929:9:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":99,"type":"address[] storage ref","value":"whitelist"},"id":172,"name":"Identifier","src":"942:9:2"}],"id":173,"name":"MemberAccess","src":"942:16:2"}],"id":174,"name":"BinaryOperation","src":"929:29:2"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"push","referencedDeclaration":null,"type":"function (address) returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":99,"type":"address[] storage ref","value":"whitelist"},"id":175,"name":"Identifier","src":"971:9:2"}],"id":177,"name":"MemberAccess","src":"971:14:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":127,"type":"address","value":"_address"},"id":178,"name":"Identifier","src":"986:8:2"}],"id":179,"name":"FunctionCall","src":"971:24:2"}],"id":180,"name":"ExpressionStatement","src":"971:24:2"}],"id":181,"name":"Block","src":"959:45:2"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":99,"type":"address[] storage ref","value":"whitelist"},"id":182,"name":"Identifier","src":"1022:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":133,"type":"uint256","value":"freeSpace"},"id":183,"name":"Identifier","src":"1032:9:2"}],"id":184,"name":"IndexAccess","src":"1022:20:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":127,"type":"address","value":"_address"},"id":185,"name":"Identifier","src":"1045:8:2"}],"id":186,"name":"Assignment","src":"1022:31:2"}],"id":187,"name":"ExpressionStatement","src":"1022:31:2"}],"id":188,"name":"Block","src":"1010:52:2"}],"id":189,"name":"IfStatement","src":"925:137:2"}],"id":190,"name":"Block","src":"567:501:2"}],"id":191,"name":"FunctionDefinition","src":"508:560:2"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"removeFromWhitelist","payable":false,"scope":287,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_address","scope":224,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":192,"name":"ElementaryTypeName","src":"1103:7:2"}],"id":193,"name":"VariableDeclaration","src":"1103:16:2"}],"id":194,"name":"ParameterList","src":"1102:18:2"},{"attributes":{"parameters":[null]},"children":[],"id":197,"name":"ParameterList","src":"1138:0:2"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2490,"type":"modifier ()","value":"onlyOwner"},"id":195,"name":"Identifier","src":"1128:9:2"}],"id":196,"name":"ModifierInvocation","src":"1128:9:2"},{"children":[{"children":[{"attributes":{"assignments":[199]},"children":[{"attributes":{"constant":false,"name":"i","scope":224,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":198,"name":"ElementaryTypeName","src":"1151:4:2"}],"id":199,"name":"VariableDeclaration","src":"1151:6:2"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":200,"name":"Literal","src":"1158:1:2"}],"id":201,"name":"VariableDeclarationStatement","src":"1151:8:2"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":199,"type":"uint256","value":"i"},"id":202,"name":"Identifier","src":"1161:1:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":99,"type":"address[] storage ref","value":"whitelist"},"id":203,"name":"Identifier","src":"1165:9:2"}],"id":204,"name":"MemberAccess","src":"1165:16:2"}],"id":205,"name":"BinaryOperation","src":"1161:20:2"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":199,"type":"uint256","value":"i"},"id":206,"name":"Identifier","src":"1183:1:2"}],"id":207,"name":"UnaryOperation","src":"1183:3:2"}],"id":208,"name":"ExpressionStatement","src":"1183:3:2"},{"children":[{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":99,"type":"address[] storage ref","value":"whitelist"},"id":209,"name":"Identifier","src":"1204:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":199,"type":"uint256","value":"i"},"id":210,"name":"Identifier","src":"1214:1:2"}],"id":211,"name":"IndexAccess","src":"1204:12:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":193,"type":"address","value":"_address"},"id":212,"name":"Identifier","src":"1220:8:2"}],"id":213,"name":"BinaryOperation","src":"1204:24:2"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"delete","prefix":true,"type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":99,"type":"address[] storage ref","value":"whitelist"},"id":214,"name":"Identifier","src":"1253:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":199,"type":"uint256","value":"i"},"id":215,"name":"Identifier","src":"1263:1:2"}],"id":216,"name":"IndexAccess","src":"1253:12:2"}],"id":217,"name":"UnaryOperation","src":"1246:19:2"}],"id":218,"name":"ExpressionStatement","src":"1246:19:2"}],"id":219,"name":"Block","src":"1230:48:2"}],"id":220,"name":"IfStatement","src":"1200:78:2"}],"id":221,"name":"Block","src":"1188:98:2"}],"id":222,"name":"ForStatement","src":"1146:140:2"}],"id":223,"name":"Block","src":"1138:154:2"}],"id":224,"name":"FunctionDefinition","src":"1074:218:2"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"isOnWhiteList","payable":false,"scope":287,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_address","scope":256,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":225,"name":"ElementaryTypeName","src":"1321:7:2"}],"id":226,"name":"VariableDeclaration","src":"1321:16:2"}],"id":227,"name":"ParameterList","src":"1320:18:2"},{"children":[{"attributes":{"constant":false,"name":"","scope":256,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":228,"name":"ElementaryTypeName","src":"1363:4:2"}],"id":229,"name":"VariableDeclaration","src":"1363:4:2"}],"id":230,"name":"ParameterList","src":"1362:6:2"},{"children":[{"children":[{"attributes":{"assignments":[232]},"children":[{"attributes":{"constant":false,"name":"i","scope":256,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":231,"name":"ElementaryTypeName","src":"1382:4:2"}],"id":232,"name":"VariableDeclaration","src":"1382:6:2"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":233,"name":"Literal","src":"1389:1:2"}],"id":234,"name":"VariableDeclarationStatement","src":"1382:8:2"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":232,"type":"uint256","value":"i"},"id":235,"name":"Identifier","src":"1392:1:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"length","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":99,"type":"address[] storage ref","value":"whitelist"},"id":236,"name":"Identifier","src":"1396:9:2"}],"id":237,"name":"MemberAccess","src":"1396:16:2"}],"id":238,"name":"BinaryOperation","src":"1392:20:2"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"++","prefix":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":232,"type":"uint256","value":"i"},"id":239,"name":"Identifier","src":"1414:1:2"}],"id":240,"name":"UnaryOperation","src":"1414:3:2"}],"id":241,"name":"ExpressionStatement","src":"1414:3:2"},{"children":[{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":99,"type":"address[] storage ref","value":"whitelist"},"id":242,"name":"Identifier","src":"1435:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":232,"type":"uint256","value":"i"},"id":243,"name":"Identifier","src":"1445:1:2"}],"id":244,"name":"IndexAccess","src":"1435:12:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":226,"type":"address","value":"_address"},"id":245,"name":"Identifier","src":"1451:8:2"}],"id":246,"name":"BinaryOperation","src":"1435:24:2"},{"children":[{"attributes":{"functionReturnParameters":230},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":247,"name":"Literal","src":"1484:4:2"}],"id":248,"name":"Return","src":"1477:11:2"}],"id":249,"name":"Block","src":"1461:40:2"}],"id":250,"name":"IfStatement","src":"1431:70:2"}],"id":251,"name":"Block","src":"1419:90:2"}],"id":252,"name":"ForStatement","src":"1377:132:2"},{"attributes":{"functionReturnParameters":230},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"66616c7365","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"false"},"id":253,"name":"Literal","src":"1523:5:2"}],"id":254,"name":"Return","src":"1516:12:2"}],"id":255,"name":"Block","src":"1369:166:2"}],"id":256,"name":"FunctionDefinition","src":"1298:237:2"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"transferFrom","payable":false,"scope":287,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_from","scope":286,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":257,"name":"ElementaryTypeName","src":"1563:7:2"}],"id":258,"name":"VariableDeclaration","src":"1563:13:2"},{"attributes":{"constant":false,"name":"_to","scope":286,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":259,"name":"ElementaryTypeName","src":"1578:7:2"}],"id":260,"name":"VariableDeclaration","src":"1578:11:2"},{"attributes":{"constant":false,"name":"_value","scope":286,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":261,"name":"ElementaryTypeName","src":"1591:7:2"}],"id":262,"name":"VariableDeclaration","src":"1591:14:2"}],"id":263,"name":"ParameterList","src":"1562:44:2"},{"children":[{"attributes":{"constant":false,"name":"","scope":286,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":266,"name":"ElementaryTypeName","src":"1637:4:2"}],"id":267,"name":"VariableDeclaration","src":"1637:4:2"}],"id":268,"name":"ParameterList","src":"1636:6:2"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":110,"type":"modifier ()","value":"onlyWhitelist"},"id":264,"name":"Identifier","src":"1614:13:2"}],"id":265,"name":"ModifierInvocation","src":"1614:13:2"},{"children":[{"attributes":{"assignments":[270]},"children":[{"attributes":{"constant":false,"name":"token","scope":286,"stateVariable":false,"storageLocation":"default","type":"contract ParatiiToken","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"ParatiiToken","referencedDeclaration":631,"type":"contract ParatiiToken"},"id":269,"name":"UserDefinedTypeName","src":"1655:12:2"}],"id":270,"name":"VariableDeclaration","src":"1655:18:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract ParatiiToken","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":631,"type":"type(contract ParatiiToken)","value":"ParatiiToken"},"id":271,"name":"Identifier","src":"1676:12:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_7631507f3f7bc8a54ae4ffd3c749e7cce6ebb390bbd0a742160abd113aa9ca0c","typeString":"literal_string \"ParatiiToken\""}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getContract","referencedDeclaration":743,"type":"function (string memory) view external returns (address)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":96,"type":"contract Registry","value":"registry"},"id":272,"name":"Identifier","src":"1689:8:2"}],"id":273,"name":"MemberAccess","src":"1689:20:2"},{"attributes":{"argumentTypes":null,"hexvalue":"50617261746969546f6b656e","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"ParatiiToken\"","value":"ParatiiToken"},"id":274,"name":"Literal","src":"1710:14:2"}],"id":275,"name":"FunctionCall","src":"1689:36:2"}],"id":276,"name":"FunctionCall","src":"1676:50:2"}],"id":277,"name":"VariableDeclarationStatement","src":"1655:71:2"},{"attributes":{"functionReturnParameters":268},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"transferFrom","referencedDeclaration":2774,"type":"function (address,address,uint256) external returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":270,"type":"contract ParatiiToken","value":"token"},"id":278,"name":"Identifier","src":"1743:5:2"}],"id":279,"name":"MemberAccess","src":"1743:18:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":258,"type":"address","value":"_from"},"id":280,"name":"Identifier","src":"1762:5:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":260,"type":"address","value":"_to"},"id":281,"name":"Identifier","src":"1769:3:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":262,"type":"uint256","value":"_value"},"id":282,"name":"Identifier","src":"1774:6:2"}],"id":283,"name":"FunctionCall","src":"1743:38:2"}],"id":284,"name":"Return","src":"1736:45:2"}],"id":285,"name":"Block","src":"1645:143:2"}],"id":286,"name":"FunctionDefinition","src":"1541:247:2"}],"id":287,"name":"ContractDefinition","src":"204:1586:2"}],"id":288,"name":"SourceUnit","src":"0:1791:2"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T13:59:31.982Z"} +module.exports = {"contractName":"Avatar","abi":[{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"whitelist","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"addToWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"removeFromWhitelist","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"isOnWhiteList","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b50604051602080610ca483398101806040528101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610ba0806101046000396000f30060806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806323b872dd146100935780637b103999146101185780637ebd1b301461016f5780638ab1d681146101dc5780638da5cb5b1461021f578063e43252d714610276578063ecb223ab146102b9578063f2fde38b14610314575b600080fd5b34801561009f57600080fd5b506100fe600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610357565b604051808215151515815260200191505060405180910390f35b34801561012457600080fd5b5061012d610589565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017b57600080fd5b5061019a600480360381019080803590602001909291905050506105af565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101e857600080fd5b5061021d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105ed565b005b34801561022b57600080fd5b50610234610717565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561028257600080fd5b506102b7600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061073c565b005b3480156102c557600080fd5b506102fa600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061097c565b604051808215151515815260200191505060405180910390f35b34801561032057600080fd5b50610355600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a1f565b005b6000806103633361097c565b151561036e57600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252600c8152602001807f50617261746969546f6b656e0000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15801561043057600080fd5b505af1158015610444573d6000803e3d6000fd5b505050506040513d602081101561045a57600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561054457600080fd5b505af1158015610558573d6000803e3d6000fd5b505050506040513d602081101561056e57600080fd5b81019080805190602001909291905050509150509392505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002818154811015156105be57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561064a57600080fd5b600090505b600280549050811015610713578173ffffffffffffffffffffffffffffffffffffffff1660028281548110151561068257fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610706576002818154811015156106d857fe5b9060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b808060010191505061064f565b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561079a57600080fd5b6002805490509150600090505b6002805490508110156108a5578273ffffffffffffffffffffffffffffffffffffffff166002828154811015156107da57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561082657610977565b600073ffffffffffffffffffffffffffffffffffffffff1660028281548110151561084d57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610898578091505b80806001019150506107a7565b60028054905082141561091d5760028390806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610976565b8260028381548110151561092d57fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b505050565b600080600090505b600280549050811015610a14578273ffffffffffffffffffffffffffffffffffffffff166002828154811015156109b757fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610a075760019150610a19565b8080600101915050610984565b600091505b50919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a7a57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610ab657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a7230582099e557b698fdb6f45b02bb464d27e4ec40d7ecac40f451affaa1229c5eb72ebf0029","deployedBytecode":"0x60806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806323b872dd146100935780637b103999146101185780637ebd1b301461016f5780638ab1d681146101dc5780638da5cb5b1461021f578063e43252d714610276578063ecb223ab146102b9578063f2fde38b14610314575b600080fd5b34801561009f57600080fd5b506100fe600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610357565b604051808215151515815260200191505060405180910390f35b34801561012457600080fd5b5061012d610589565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017b57600080fd5b5061019a600480360381019080803590602001909291905050506105af565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101e857600080fd5b5061021d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105ed565b005b34801561022b57600080fd5b50610234610717565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561028257600080fd5b506102b7600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061073c565b005b3480156102c557600080fd5b506102fa600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061097c565b604051808215151515815260200191505060405180910390f35b34801561032057600080fd5b50610355600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a1f565b005b6000806103633361097c565b151561036e57600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252600c8152602001807f50617261746969546f6b656e0000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15801561043057600080fd5b505af1158015610444573d6000803e3d6000fd5b505050506040513d602081101561045a57600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff166323b872dd8686866040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b15801561054457600080fd5b505af1158015610558573d6000803e3d6000fd5b505050506040513d602081101561056e57600080fd5b81019080805190602001909291905050509150509392505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002818154811015156105be57fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561064a57600080fd5b600090505b600280549050811015610713578173ffffffffffffffffffffffffffffffffffffffff1660028281548110151561068257fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610706576002818154811015156106d857fe5b9060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555b808060010191505061064f565b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561079a57600080fd5b6002805490509150600090505b6002805490508110156108a5578273ffffffffffffffffffffffffffffffffffffffff166002828154811015156107da57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561082657610977565b600073ffffffffffffffffffffffffffffffffffffffff1660028281548110151561084d57fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610898578091505b80806001019150506107a7565b60028054905082141561091d5760028390806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610976565b8260028381548110151561092d57fe5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b5b505050565b600080600090505b600280549050811015610a14578273ffffffffffffffffffffffffffffffffffffffff166002828154811015156109b757fe5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415610a075760019150610a19565b8080600101915050610984565b600091505b50919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a7a57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610ab657600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a7230582099e557b698fdb6f45b02bb464d27e4ec40d7ecac40f451affaa1229c5eb72ebf0029"} /***/ }), /* 885 */ /***/ (function(module, exports) { -module.exports = {"contractName":"BasicToken","abi":[{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b6104028061001e6000396000f300606060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806318160ddd1461005c57806370a0823114610085578063a9059cbb146100d2575b600080fd5b341561006757600080fd5b61006f61012c565b6040518082815260200191505060405180910390f35b341561009057600080fd5b6100bc600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610132565b6040518082815260200191505060405180910390f35b34156100dd57600080fd5b610112600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061017b565b604051808215151515815260200191505060405180910390f35b60005481565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156101b857600080fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561020657600080fd5b61025882600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461039f90919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506102ed82600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546103b890919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b60008282111515156103ad57fe5b818303905092915050565b60008082840190508381101515156103cc57fe5b80915050929150505600a165627a7a7230582013b236b6cd867f8b4e4428a404261c84b459b1d8c4b124d2eec5326c949183840029","deployedBytecode":"0x606060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806318160ddd1461005c57806370a0823114610085578063a9059cbb146100d2575b600080fd5b341561006757600080fd5b61006f61012c565b6040518082815260200191505060405180910390f35b341561009057600080fd5b6100bc600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610132565b6040518082815260200191505060405180910390f35b34156100dd57600080fd5b610112600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061017b565b604051808215151515815260200191505060405180910390f35b60005481565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156101b857600080fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561020657600080fd5b61025882600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461039f90919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506102ed82600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546103b890919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b60008282111515156103ad57fe5b818303905092915050565b60008082840190508381101515156103cc57fe5b80915050929150505600a165627a7a7230582013b236b6cd867f8b4e4428a404261c84b459b1d8c4b124d2eec5326c949183840029","sourceMap":"177:951:6:-;;;;;;;;;;;;;;;;;","deployedSourceMap":"177:951:6:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;179:26:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1018:107:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;437:379;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;179:26:8;;;;:::o;1018:107:6:-;1074:15;1104:8;:16;1113:6;1104:16;;;;;;;;;;;;;;;;1097:23;;1018:107;;;:::o;437:379::-;500:4;535:1;520:17;;:3;:17;;;;512:26;;;;;;;;562:8;:20;571:10;562:20;;;;;;;;;;;;;;;;552:6;:30;;544:39;;;;;;;;676:32;701:6;676:8;:20;685:10;676:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;653:8;:20;662:10;653:20;;;;;;;;;;;;;;;:55;;;;730:25;748:6;730:8;:13;739:3;730:13;;;;;;;;;;;;;;;;:17;;:25;;;;:::i;:::-;714:8;:13;723:3;714:13;;;;;;;;;;;;;;;:41;;;;782:3;761:33;;770:10;761:33;;;787:6;761:33;;;;;;;;;;;;;;;;;;807:4;800:11;;437:379;;;;:::o;584:110:4:-;642:7;669:1;664;:6;;657:14;;;;;;688:1;684;:5;677:12;;584:110;;;;:::o;698:129::-;756:7;771:9;787:1;783;:5;771:17;;806:1;801;:6;;794:14;;;;;;821:1;814:8;;698:129;;;;;:::o","source":"pragma solidity ^0.4.18;\n\n\nimport './ERC20Basic.sol';\nimport '../math/SafeMath.sol';\n\n\n/**\n * @title Basic token\n * @dev Basic version of StandardToken, with no allowances.\n */\ncontract BasicToken is ERC20Basic {\n using SafeMath for uint256;\n\n mapping(address => uint256) balances;\n\n /**\n * @dev transfer token for a specified address\n * @param _to The address to transfer to.\n * @param _value The amount to be transferred.\n */\n function transfer(address _to, uint256 _value) public returns (bool) {\n require(_to != address(0));\n require(_value <= balances[msg.sender]);\n\n // SafeMath.sub will throw if there is not enough balance.\n balances[msg.sender] = balances[msg.sender].sub(_value);\n balances[_to] = balances[_to].add(_value);\n Transfer(msg.sender, _to, _value);\n return true;\n }\n\n /**\n * @dev Gets the balance of the specified address.\n * @param _owner The address to query the the balance of.\n * @return An uint256 representing the amount owned by the passed address.\n */\n function balanceOf(address _owner) public view returns (uint256 balance) {\n return balances[_owner];\n }\n\n}\n","sourcePath":"zeppelin-solidity/contracts/token/BasicToken.sol","ast":{"attributes":{"absolutePath":"zeppelin-solidity/contracts/token/BasicToken.sol","exportedSymbols":{"BasicToken":[901]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":817,"name":"PragmaDirective","src":"0:24:6"},{"attributes":{"SourceUnit":974,"absolutePath":"zeppelin-solidity/contracts/token/ERC20Basic.sol","file":"./ERC20Basic.sol","scope":902,"symbolAliases":[null],"unitAlias":""},"id":818,"name":"ImportDirective","src":"27:26:6"},{"attributes":{"SourceUnit":760,"absolutePath":"zeppelin-solidity/contracts/math/SafeMath.sol","file":"../math/SafeMath.sol","scope":902,"symbolAliases":[null],"unitAlias":""},"id":819,"name":"ImportDirective","src":"54:30:6"},{"attributes":{"contractDependencies":[973],"contractKind":"contract","documentation":"@title Basic token\n@dev Basic version of StandardToken, with no allowances.","fullyImplemented":true,"linearizedBaseContracts":[901,973],"name":"BasicToken","scope":902},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"ERC20Basic","referencedDeclaration":973,"type":"contract ERC20Basic"},"id":820,"name":"UserDefinedTypeName","src":"200:10:6"}],"id":821,"name":"InheritanceSpecifier","src":"200:10:6"},{"children":[{"attributes":{"contractScope":null,"name":"SafeMath","referencedDeclaration":759,"type":"library SafeMath"},"id":822,"name":"UserDefinedTypeName","src":"221:8:6"},{"attributes":{"name":"uint256","type":"uint256"},"id":823,"name":"ElementaryTypeName","src":"234:7:6"}],"id":824,"name":"UsingForDirective","src":"215:27:6"},{"attributes":{"constant":false,"name":"balances","scope":901,"stateVariable":true,"storageLocation":"default","type":"mapping(address => uint256)","value":null,"visibility":"internal"},"children":[{"attributes":{"type":"mapping(address => uint256)"},"children":[{"attributes":{"name":"address","type":"address"},"id":825,"name":"ElementaryTypeName","src":"254:7:6"},{"attributes":{"name":"uint256","type":"uint256"},"id":826,"name":"ElementaryTypeName","src":"265:7:6"}],"id":827,"name":"Mapping","src":"246:27:6"}],"id":828,"name":"VariableDeclaration","src":"246:36:6"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"transfer","payable":false,"scope":901,"stateMutability":"nonpayable","superFunction":964,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_to","scope":888,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":829,"name":"ElementaryTypeName","src":"455:7:6"}],"id":830,"name":"VariableDeclaration","src":"455:11:6"},{"attributes":{"constant":false,"name":"_value","scope":888,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":831,"name":"ElementaryTypeName","src":"468:7:6"}],"id":832,"name":"VariableDeclaration","src":"468:14:6"}],"id":833,"name":"ParameterList","src":"454:29:6"},{"children":[{"attributes":{"constant":false,"name":"","scope":888,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":834,"name":"ElementaryTypeName","src":"500:4:6"}],"id":835,"name":"VariableDeclaration","src":"500:4:6"}],"id":836,"name":"ParameterList","src":"499:6:6"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"function (bool) pure","value":"require"},"id":837,"name":"Identifier","src":"512:7:6"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":830,"type":"address","value":"_to"},"id":838,"name":"Identifier","src":"520:3:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":true,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":839,"name":"ElementaryTypeNameExpression","src":"527:7:6"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":840,"name":"Literal","src":"535:1:6"}],"id":841,"name":"FunctionCall","src":"527:10:6"}],"id":842,"name":"BinaryOperation","src":"520:17:6"}],"id":843,"name":"FunctionCall","src":"512:26:6"}],"id":844,"name":"ExpressionStatement","src":"512:26:6"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"function (bool) pure","value":"require"},"id":845,"name":"Identifier","src":"544:7:6"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":832,"type":"uint256","value":"_value"},"id":846,"name":"Identifier","src":"552:6:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":828,"type":"mapping(address => uint256)","value":"balances"},"id":847,"name":"Identifier","src":"562:8:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":848,"name":"Identifier","src":"571:3:6"}],"id":849,"name":"MemberAccess","src":"571:10:6"}],"id":850,"name":"IndexAccess","src":"562:20:6"}],"id":851,"name":"BinaryOperation","src":"552:30:6"}],"id":852,"name":"FunctionCall","src":"544:39:6"}],"id":853,"name":"ExpressionStatement","src":"544:39:6"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":828,"type":"mapping(address => uint256)","value":"balances"},"id":854,"name":"Identifier","src":"653:8:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":855,"name":"Identifier","src":"662:3:6"}],"id":856,"name":"MemberAccess","src":"662:10:6"}],"id":857,"name":"IndexAccess","src":"653:20:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sub","referencedDeclaration":734,"type":"function (uint256,uint256) pure returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":828,"type":"mapping(address => uint256)","value":"balances"},"id":858,"name":"Identifier","src":"676:8:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":859,"name":"Identifier","src":"685:3:6"}],"id":860,"name":"MemberAccess","src":"685:10:6"}],"id":861,"name":"IndexAccess","src":"676:20:6"}],"id":862,"name":"MemberAccess","src":"676:24:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":832,"type":"uint256","value":"_value"},"id":863,"name":"Identifier","src":"701:6:6"}],"id":864,"name":"FunctionCall","src":"676:32:6"}],"id":865,"name":"Assignment","src":"653:55:6"}],"id":866,"name":"ExpressionStatement","src":"653:55:6"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":828,"type":"mapping(address => uint256)","value":"balances"},"id":867,"name":"Identifier","src":"714:8:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":830,"type":"address","value":"_to"},"id":868,"name":"Identifier","src":"723:3:6"}],"id":869,"name":"IndexAccess","src":"714:13:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"add","referencedDeclaration":758,"type":"function (uint256,uint256) pure returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":828,"type":"mapping(address => uint256)","value":"balances"},"id":870,"name":"Identifier","src":"730:8:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":830,"type":"address","value":"_to"},"id":871,"name":"Identifier","src":"739:3:6"}],"id":872,"name":"IndexAccess","src":"730:13:6"}],"id":873,"name":"MemberAccess","src":"730:17:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":832,"type":"uint256","value":"_value"},"id":874,"name":"Identifier","src":"748:6:6"}],"id":875,"name":"FunctionCall","src":"730:25:6"}],"id":876,"name":"Assignment","src":"714:41:6"}],"id":877,"name":"ExpressionStatement","src":"714:41:6"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":972,"type":"function (address,address,uint256)","value":"Transfer"},"id":878,"name":"Identifier","src":"761:8:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":879,"name":"Identifier","src":"770:3:6"}],"id":880,"name":"MemberAccess","src":"770:10:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":830,"type":"address","value":"_to"},"id":881,"name":"Identifier","src":"782:3:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":832,"type":"uint256","value":"_value"},"id":882,"name":"Identifier","src":"787:6:6"}],"id":883,"name":"FunctionCall","src":"761:33:6"}],"id":884,"name":"ExpressionStatement","src":"761:33:6"},{"attributes":{"functionReturnParameters":836},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":885,"name":"Literal","src":"807:4:6"}],"id":886,"name":"Return","src":"800:11:6"}],"id":887,"name":"Block","src":"506:310:6"}],"id":888,"name":"FunctionDefinition","src":"437:379:6"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"balanceOf","payable":false,"scope":901,"stateMutability":"view","superFunction":955,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_owner","scope":900,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":889,"name":"ElementaryTypeName","src":"1037:7:6"}],"id":890,"name":"VariableDeclaration","src":"1037:14:6"}],"id":891,"name":"ParameterList","src":"1036:16:6"},{"children":[{"attributes":{"constant":false,"name":"balance","scope":900,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":892,"name":"ElementaryTypeName","src":"1074:7:6"}],"id":893,"name":"VariableDeclaration","src":"1074:15:6"}],"id":894,"name":"ParameterList","src":"1073:17:6"},{"children":[{"attributes":{"functionReturnParameters":894},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":828,"type":"mapping(address => uint256)","value":"balances"},"id":895,"name":"Identifier","src":"1104:8:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":890,"type":"address","value":"_owner"},"id":896,"name":"Identifier","src":"1113:6:6"}],"id":897,"name":"IndexAccess","src":"1104:16:6"}],"id":898,"name":"Return","src":"1097:23:6"}],"id":899,"name":"Block","src":"1091:34:6"}],"id":900,"name":"FunctionDefinition","src":"1018:107:6"}],"id":901,"name":"ContractDefinition","src":"177:951:6"}],"id":902,"name":"SourceUnit","src":"0:1129:6"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T14:06:20.133Z"} +module.exports = {"contractName":"BasicToken","abi":[{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b50610415806100206000396000f300608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806318160ddd1461005c57806370a0823114610087578063a9059cbb146100de575b600080fd5b34801561006857600080fd5b50610071610143565b6040518082815260200191505060405180910390f35b34801561009357600080fd5b506100c8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061014d565b6040518082815260200191505060405180910390f35b3480156100ea57600080fd5b50610129600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610195565b604051808215151515815260200191505060405180910390f35b6000600154905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156101d257600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561021f57600080fd5b610270826000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546103b490919063ffffffff16565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610303826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546103cd90919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b60008282111515156103c257fe5b818303905092915050565b600081830190508281101515156103e057fe5b809050929150505600a165627a7a72305820244ef38b391a9a6c0b995a8a76bed722f27efde5314e3dbd6f488c7da8f013b20029","deployedBytecode":"0x608060405260043610610057576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806318160ddd1461005c57806370a0823114610087578063a9059cbb146100de575b600080fd5b34801561006857600080fd5b50610071610143565b6040518082815260200191505060405180910390f35b34801561009357600080fd5b506100c8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061014d565b6040518082815260200191505060405180910390f35b3480156100ea57600080fd5b50610129600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610195565b604051808215151515815260200191505060405180910390f35b6000600154905090565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156101d257600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561021f57600080fd5b610270826000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546103b490919063ffffffff16565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610303826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546103cd90919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b60008282111515156103c257fe5b818303905092915050565b600081830190508281101515156103e057fe5b809050929150505600a165627a7a72305820244ef38b391a9a6c0b995a8a76bed722f27efde5314e3dbd6f488c7da8f013b20029"} /***/ }), /* 886 */ /***/ (function(module, exports) { -module.exports = {"contractName":"Debug","abi":[{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"address"}],"name":"LogAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"int256"}],"name":"LogInt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"string"}],"name":"LogString","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"uint256"}],"name":"LogUint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"bytes"}],"name":"LogBytes","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"bytes32"}],"name":"LogBytes32","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"bool"}],"name":"LogBool","type":"event"}],"bytecode":"0x60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a72305820267a199b2c282a0e5d51fab0bc04af5c1e7e4a0b7a302854393ba39b2c0bd2ed0029","deployedBytecode":"0x6060604052600080fd00a165627a7a72305820267a199b2c282a0e5d51fab0bc04af5c1e7e4a0b7a302854393ba39b2c0bd2ed0029","sourceMap":"117:244:1:-;;;;;;;;;;;;;;;;;","deployedSourceMap":"117:244:1:-;;;;;","source":"pragma solidity ^0.4.18;\n\n/*\n A contract you can inherit from that has some useful Events to print statements.\n*/\ncontract Debug {\n event LogAddress(address _msg);\n event LogInt(int _msg);\n event LogString(string _msg);\n event LogUint(uint _msg);\n event LogBytes(bytes _msg);\n event LogBytes32(bytes32 _msg);\n event LogBool(bool _msg);\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/debug/Debug.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/debug/Debug.sol","exportedSymbols":{"Debug":[87]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":58,"name":"PragmaDirective","src":"0:24:1"},{"attributes":{"baseContracts":[null],"contractDependencies":[null],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[87],"name":"Debug","scope":88},"children":[{"attributes":{"anonymous":false,"name":"LogAddress"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_msg","scope":62,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":59,"name":"ElementaryTypeName","src":"155:7:1"}],"id":60,"name":"VariableDeclaration","src":"155:12:1"}],"id":61,"name":"ParameterList","src":"154:14:1"}],"id":62,"name":"EventDefinition","src":"138:31:1"},{"attributes":{"anonymous":false,"name":"LogInt"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_msg","scope":66,"stateVariable":false,"storageLocation":"default","type":"int256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"int","type":"int256"},"id":63,"name":"ElementaryTypeName","src":"187:3:1"}],"id":64,"name":"VariableDeclaration","src":"187:8:1"}],"id":65,"name":"ParameterList","src":"186:10:1"}],"id":66,"name":"EventDefinition","src":"174:23:1"},{"attributes":{"anonymous":false,"name":"LogString"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_msg","scope":70,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":67,"name":"ElementaryTypeName","src":"218:6:1"}],"id":68,"name":"VariableDeclaration","src":"218:11:1"}],"id":69,"name":"ParameterList","src":"217:13:1"}],"id":70,"name":"EventDefinition","src":"202:29:1"},{"attributes":{"anonymous":false,"name":"LogUint"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_msg","scope":74,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":71,"name":"ElementaryTypeName","src":"250:4:1"}],"id":72,"name":"VariableDeclaration","src":"250:9:1"}],"id":73,"name":"ParameterList","src":"249:11:1"}],"id":74,"name":"EventDefinition","src":"236:25:1"},{"attributes":{"anonymous":false,"name":"LogBytes"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_msg","scope":78,"stateVariable":false,"storageLocation":"default","type":"bytes memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes","type":"bytes storage pointer"},"id":75,"name":"ElementaryTypeName","src":"281:5:1"}],"id":76,"name":"VariableDeclaration","src":"281:10:1"}],"id":77,"name":"ParameterList","src":"280:12:1"}],"id":78,"name":"EventDefinition","src":"266:27:1"},{"attributes":{"anonymous":false,"name":"LogBytes32"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_msg","scope":82,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":79,"name":"ElementaryTypeName","src":"315:7:1"}],"id":80,"name":"VariableDeclaration","src":"315:12:1"}],"id":81,"name":"ParameterList","src":"314:14:1"}],"id":82,"name":"EventDefinition","src":"298:31:1"},{"attributes":{"anonymous":false,"name":"LogBool"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_msg","scope":86,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":83,"name":"ElementaryTypeName","src":"348:4:1"}],"id":84,"name":"VariableDeclaration","src":"348:9:1"}],"id":85,"name":"ParameterList","src":"347:11:1"}],"id":86,"name":"EventDefinition","src":"334:25:1"}],"id":87,"name":"ContractDefinition","src":"117:244:1"}],"id":88,"name":"SourceUnit","src":"0:362:1"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T13:59:31.981Z"} +module.exports = {"contractName":"Debug","abi":[{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"address"}],"name":"LogAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"int256"}],"name":"LogInt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"string"}],"name":"LogString","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"uint256"}],"name":"LogUint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"bytes"}],"name":"LogBytes","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"bytes32"}],"name":"LogBytes32","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"bool"}],"name":"LogBool","type":"event"}],"bytecode":"0x6080604052348015600f57600080fd5b50603580601d6000396000f3006080604052600080fd00a165627a7a72305820911639814e6dbd05b23510fa0b5ac39eb72d3dd68585255d05bd193d3fcac1360029","deployedBytecode":"0x6080604052600080fd00a165627a7a72305820911639814e6dbd05b23510fa0b5ac39eb72d3dd68585255d05bd193d3fcac1360029"} /***/ }), /* 887 */ /***/ (function(module, exports) { -module.exports = {"contractName":"ERC20","abi":[{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x","deployedBytecode":"0x","sourceMap":"","deployedSourceMap":"","source":"pragma solidity ^0.4.18;\n\n\nimport './ERC20Basic.sol';\n\n\n/**\n * @title ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/20\n */\ncontract ERC20 is ERC20Basic {\n function allowance(address owner, address spender) public view returns (uint256);\n function transferFrom(address from, address to, uint256 value) public returns (bool);\n function approve(address spender, uint256 value) public returns (bool);\n event Approval(address indexed owner, address indexed spender, uint256 value);\n}\n","sourcePath":"zeppelin-solidity/contracts/token/ERC20.sol","ast":{"attributes":{"absolutePath":"zeppelin-solidity/contracts/token/ERC20.sol","exportedSymbols":{"ERC20":[944]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":903,"name":"PragmaDirective","src":"0:24:7"},{"attributes":{"SourceUnit":974,"absolutePath":"zeppelin-solidity/contracts/token/ERC20Basic.sol","file":"./ERC20Basic.sol","scope":945,"symbolAliases":[null],"unitAlias":""},"id":904,"name":"ImportDirective","src":"27:26:7"},{"attributes":{"contractDependencies":[973],"contractKind":"contract","documentation":"@title ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/20","fullyImplemented":false,"linearizedBaseContracts":[944,973],"name":"ERC20","scope":945},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"ERC20Basic","referencedDeclaration":973,"type":"contract ERC20Basic"},"id":905,"name":"UserDefinedTypeName","src":"163:10:7"}],"id":906,"name":"InheritanceSpecifier","src":"163:10:7"},{"attributes":{"body":null,"constant":true,"implemented":false,"isConstructor":false,"modifiers":[null],"name":"allowance","payable":false,"scope":944,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"owner","scope":915,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":907,"name":"ElementaryTypeName","src":"197:7:7"}],"id":908,"name":"VariableDeclaration","src":"197:13:7"},{"attributes":{"constant":false,"name":"spender","scope":915,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":909,"name":"ElementaryTypeName","src":"212:7:7"}],"id":910,"name":"VariableDeclaration","src":"212:15:7"}],"id":911,"name":"ParameterList","src":"196:32:7"},{"children":[{"attributes":{"constant":false,"name":"","scope":915,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":912,"name":"ElementaryTypeName","src":"250:7:7"}],"id":913,"name":"VariableDeclaration","src":"250:7:7"}],"id":914,"name":"ParameterList","src":"249:9:7"}],"id":915,"name":"FunctionDefinition","src":"178:81:7"},{"attributes":{"body":null,"constant":false,"implemented":false,"isConstructor":false,"modifiers":[null],"name":"transferFrom","payable":false,"scope":944,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"from","scope":926,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":916,"name":"ElementaryTypeName","src":"284:7:7"}],"id":917,"name":"VariableDeclaration","src":"284:12:7"},{"attributes":{"constant":false,"name":"to","scope":926,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":918,"name":"ElementaryTypeName","src":"298:7:7"}],"id":919,"name":"VariableDeclaration","src":"298:10:7"},{"attributes":{"constant":false,"name":"value","scope":926,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":920,"name":"ElementaryTypeName","src":"310:7:7"}],"id":921,"name":"VariableDeclaration","src":"310:13:7"}],"id":922,"name":"ParameterList","src":"283:41:7"},{"children":[{"attributes":{"constant":false,"name":"","scope":926,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":923,"name":"ElementaryTypeName","src":"341:4:7"}],"id":924,"name":"VariableDeclaration","src":"341:4:7"}],"id":925,"name":"ParameterList","src":"340:6:7"}],"id":926,"name":"FunctionDefinition","src":"262:85:7"},{"attributes":{"body":null,"constant":false,"implemented":false,"isConstructor":false,"modifiers":[null],"name":"approve","payable":false,"scope":944,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"spender","scope":935,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":927,"name":"ElementaryTypeName","src":"367:7:7"}],"id":928,"name":"VariableDeclaration","src":"367:15:7"},{"attributes":{"constant":false,"name":"value","scope":935,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":929,"name":"ElementaryTypeName","src":"384:7:7"}],"id":930,"name":"VariableDeclaration","src":"384:13:7"}],"id":931,"name":"ParameterList","src":"366:32:7"},{"children":[{"attributes":{"constant":false,"name":"","scope":935,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":932,"name":"ElementaryTypeName","src":"415:4:7"}],"id":933,"name":"VariableDeclaration","src":"415:4:7"}],"id":934,"name":"ParameterList","src":"414:6:7"}],"id":935,"name":"FunctionDefinition","src":"350:71:7"},{"attributes":{"anonymous":false,"name":"Approval"},"children":[{"children":[{"attributes":{"constant":false,"indexed":true,"name":"owner","scope":943,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":936,"name":"ElementaryTypeName","src":"439:7:7"}],"id":937,"name":"VariableDeclaration","src":"439:21:7"},{"attributes":{"constant":false,"indexed":true,"name":"spender","scope":943,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":938,"name":"ElementaryTypeName","src":"462:7:7"}],"id":939,"name":"VariableDeclaration","src":"462:23:7"},{"attributes":{"constant":false,"indexed":false,"name":"value","scope":943,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":940,"name":"ElementaryTypeName","src":"487:7:7"}],"id":941,"name":"VariableDeclaration","src":"487:13:7"}],"id":942,"name":"ParameterList","src":"438:63:7"}],"id":943,"name":"EventDefinition","src":"424:78:7"}],"id":944,"name":"ContractDefinition","src":"145:359:7"}],"id":945,"name":"SourceUnit","src":"0:505:7"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T14:06:20.131Z"} +module.exports = {"contractName":"ERC20","abi":[{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[{"name":"owner","type":"address"},{"name":"spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"from","type":"address"},{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"spender","type":"address"},{"name":"value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x","deployedBytecode":"0x"} /***/ }), /* 888 */ /***/ (function(module, exports) { -module.exports = {"contractName":"ERC20Basic","abi":[{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[{"name":"who","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x","deployedBytecode":"0x","sourceMap":"","deployedSourceMap":"","source":"pragma solidity ^0.4.18;\n\n\n/**\n * @title ERC20Basic\n * @dev Simpler version of ERC20 interface\n * @dev see https://github.com/ethereum/EIPs/issues/179\n */\ncontract ERC20Basic {\n uint256 public totalSupply;\n function balanceOf(address who) public view returns (uint256);\n function transfer(address to, uint256 value) public returns (bool);\n event Transfer(address indexed from, address indexed to, uint256 value);\n}\n","sourcePath":"zeppelin-solidity/contracts/token/ERC20Basic.sol","ast":{"attributes":{"absolutePath":"zeppelin-solidity/contracts/token/ERC20Basic.sol","exportedSymbols":{"ERC20Basic":[973]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":946,"name":"PragmaDirective","src":"0:24:8"},{"attributes":{"baseContracts":[null],"contractDependencies":[null],"contractKind":"contract","documentation":"@title ERC20Basic\n@dev Simpler version of ERC20 interface\n@dev see https://github.com/ethereum/EIPs/issues/179","fullyImplemented":false,"linearizedBaseContracts":[973],"name":"ERC20Basic","scope":974},"children":[{"attributes":{"constant":false,"name":"totalSupply","scope":973,"stateVariable":true,"storageLocation":"default","type":"uint256","value":null,"visibility":"public"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":947,"name":"ElementaryTypeName","src":"179:7:8"}],"id":948,"name":"VariableDeclaration","src":"179:26:8"},{"attributes":{"body":null,"constant":true,"implemented":false,"isConstructor":false,"modifiers":[null],"name":"balanceOf","payable":false,"scope":973,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"who","scope":955,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":949,"name":"ElementaryTypeName","src":"228:7:8"}],"id":950,"name":"VariableDeclaration","src":"228:11:8"}],"id":951,"name":"ParameterList","src":"227:13:8"},{"children":[{"attributes":{"constant":false,"name":"","scope":955,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":952,"name":"ElementaryTypeName","src":"262:7:8"}],"id":953,"name":"VariableDeclaration","src":"262:7:8"}],"id":954,"name":"ParameterList","src":"261:9:8"}],"id":955,"name":"FunctionDefinition","src":"209:62:8"},{"attributes":{"body":null,"constant":false,"implemented":false,"isConstructor":false,"modifiers":[null],"name":"transfer","payable":false,"scope":973,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"to","scope":964,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":956,"name":"ElementaryTypeName","src":"292:7:8"}],"id":957,"name":"VariableDeclaration","src":"292:10:8"},{"attributes":{"constant":false,"name":"value","scope":964,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":958,"name":"ElementaryTypeName","src":"304:7:8"}],"id":959,"name":"VariableDeclaration","src":"304:13:8"}],"id":960,"name":"ParameterList","src":"291:27:8"},{"children":[{"attributes":{"constant":false,"name":"","scope":964,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":961,"name":"ElementaryTypeName","src":"335:4:8"}],"id":962,"name":"VariableDeclaration","src":"335:4:8"}],"id":963,"name":"ParameterList","src":"334:6:8"}],"id":964,"name":"FunctionDefinition","src":"274:67:8"},{"attributes":{"anonymous":false,"name":"Transfer"},"children":[{"children":[{"attributes":{"constant":false,"indexed":true,"name":"from","scope":972,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":965,"name":"ElementaryTypeName","src":"359:7:8"}],"id":966,"name":"VariableDeclaration","src":"359:20:8"},{"attributes":{"constant":false,"indexed":true,"name":"to","scope":972,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":967,"name":"ElementaryTypeName","src":"381:7:8"}],"id":968,"name":"VariableDeclaration","src":"381:18:8"},{"attributes":{"constant":false,"indexed":false,"name":"value","scope":972,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":969,"name":"ElementaryTypeName","src":"401:7:8"}],"id":970,"name":"VariableDeclaration","src":"401:13:8"}],"id":971,"name":"ParameterList","src":"358:57:8"}],"id":972,"name":"EventDefinition","src":"344:72:8"}],"id":973,"name":"ContractDefinition","src":"155:263:8"}],"id":974,"name":"SourceUnit","src":"0:419:8"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T14:06:20.134Z"} +module.exports = {"contractName":"ERC20Basic","abi":[{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"who","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"to","type":"address"},{"name":"value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x","deployedBytecode":"0x"} /***/ }), /* 889 */ /***/ (function(module, exports) { -module.exports = {"contractName":"Likes","abi":[{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_paratiiRegistry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_address","type":"address"},{"indexed":false,"name":"_videoId","type":"string"},{"indexed":false,"name":"_liked","type":"bool"}],"name":"LogLikeVideo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"},{"name":"_liked","type":"bool"}],"name":"likeVideo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"userLikes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"userDislikes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_videoId","type":"string"}],"name":"vidLikes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_videoId","type":"string"}],"name":"vidDislikes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"},{"name":"_videoId","type":"string"}],"name":"userLikesVideo","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"},{"name":"_videoId","type":"string"}],"name":"userDislikesVideo","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b6040516020806110f783398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610ffb806100fc6000396000f300606060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063075ca0d31461009e57806335068bef146101065780637b0aadea1461019a5780638da5cb5b1461020b5780638f886d9414610260578063a822f11f146102f4578063d834913314610341578063e8d5b22d146103b2578063f2fde38b146103ff575b600080fd5b34156100a957600080fd5b610104600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919080351515906020019091905050610438565b005b341561011157600080fd5b610180600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610b11565b604051808215151515815260200191505060405180910390f35b34156101a557600080fd5b6101f5600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610be3565b6040518082815260200191505060405180910390f35b341561021657600080fd5b61021e610c6a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561026b57600080fd5b6102da600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610c8f565b604051808215151515815260200191505060405180910390f35b34156102ff57600080fd5b61032b600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610d61565b6040518082815260200191505060405180910390f35b341561034c57600080fd5b61039c600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610daa565b6040518082815260200191505060405180910390f35b34156103bd57600080fd5b6103e9600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610e31565b6040518082815260200191505060405180910390f35b341561040a57600080fd5b610436600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610e7a565b005b600080600080339350856040518082805190602001908083835b6020831015156104775780518252602082019150602081019050602083039250610452565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902092506104b08487610b11565b91506104bc8487610c8f565b90508480156104c85750815b156104d257610b09565b841580156104dd5750805b156104e757610b09565b84156107a3576001600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060016006600085600019166000191681526020019081526020016000206000828254019250508190555080156106c6576000600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600760008560001916600019168152602001908152602001600020600082825403925050819055505b7fa7f48f489e5528c34ca196632deb780c27875fcc3040ed926a744d67aa2d3054848787604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200183151515158152602001828103825284818151815260200191508051906020019080838360005b8381101561076657808201518184015260208101905061074b565b50505050905090810190601f1680156107935780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15b841515610b08576001600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506001600760008560001916600019168152602001908152602001600020600082825401925050819055508115610983576000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600660008560001916600019168152602001908152602001600020600082825403925050819055505b7fa7f48f489e5528c34ca196632deb780c27875fcc3040ed926a744d67aa2d3054848787604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200183151515158152602001828103825284818151815260200191508051906020019080838360005b83811015610a23578082015181840152602081019050610a08565b50505050905090810190601f168015610a505780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a17fa7f48f489e5528c34ca196632deb780c27875fcc3040ed926a744d67aa2d30548486604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200183151515158152602001828103825260108152602001807f7468697320706173736564206865726500000000000000000000000000000000815250602001935050505060405180910390a15b5b505050505050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610b8a5780518252602082019150602081019050602083039250610b65565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060009054906101000a900460ff16905092915050565b600060076000836040518082805190602001908083835b602083101515610c1f5780518252602082019150602081019050602083039250610bfa565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610d085780518252602082019150602081019050602083039250610ce3565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600060066000836040518082805190602001908083835b602083101515610de65780518252602082019150602081019050602083039250610dc1565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020549050919050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610ed557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610f1157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a723058207e6964d6d2b272c3140371dab54db3b2ee260cdd3378870d8a88bf6aa82aa83b0029","deployedBytecode":"0x606060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063075ca0d31461009e57806335068bef146101065780637b0aadea1461019a5780638da5cb5b1461020b5780638f886d9414610260578063a822f11f146102f4578063d834913314610341578063e8d5b22d146103b2578063f2fde38b146103ff575b600080fd5b34156100a957600080fd5b610104600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919080351515906020019091905050610438565b005b341561011157600080fd5b610180600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610b11565b604051808215151515815260200191505060405180910390f35b34156101a557600080fd5b6101f5600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610be3565b6040518082815260200191505060405180910390f35b341561021657600080fd5b61021e610c6a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561026b57600080fd5b6102da600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610c8f565b604051808215151515815260200191505060405180910390f35b34156102ff57600080fd5b61032b600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610d61565b6040518082815260200191505060405180910390f35b341561034c57600080fd5b61039c600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610daa565b6040518082815260200191505060405180910390f35b34156103bd57600080fd5b6103e9600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610e31565b6040518082815260200191505060405180910390f35b341561040a57600080fd5b610436600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610e7a565b005b600080600080339350856040518082805190602001908083835b6020831015156104775780518252602082019150602081019050602083039250610452565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902092506104b08487610b11565b91506104bc8487610c8f565b90508480156104c85750815b156104d257610b09565b841580156104dd5750805b156104e757610b09565b84156107a3576001600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060016006600085600019166000191681526020019081526020016000206000828254019250508190555080156106c6576000600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600760008560001916600019168152602001908152602001600020600082825403925050819055505b7fa7f48f489e5528c34ca196632deb780c27875fcc3040ed926a744d67aa2d3054848787604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200183151515158152602001828103825284818151815260200191508051906020019080838360005b8381101561076657808201518184015260208101905061074b565b50505050905090810190601f1680156107935780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15b841515610b08576001600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506001600760008560001916600019168152602001908152602001600020600082825401925050819055508115610983576000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600660008560001916600019168152602001908152602001600020600082825403925050819055505b7fa7f48f489e5528c34ca196632deb780c27875fcc3040ed926a744d67aa2d3054848787604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200183151515158152602001828103825284818151815260200191508051906020019080838360005b83811015610a23578082015181840152602081019050610a08565b50505050905090810190601f168015610a505780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a17fa7f48f489e5528c34ca196632deb780c27875fcc3040ed926a744d67aa2d30548486604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200183151515158152602001828103825260108152602001807f7468697320706173736564206865726500000000000000000000000000000000815250602001935050505060405180910390a15b5b505050505050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610b8a5780518252602082019150602081019050602083039250610b65565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060009054906101000a900460ff16905092915050565b600060076000836040518082805190602001908083835b602083101515610c1f5780518252602082019150602081019050602083039250610bfa565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610d085780518252602082019150602081019050602083039250610ce3565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600060066000836040518082805190602001908083835b602083101515610de65780518252602082019150602081019050602083039250610dc1565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020549050919050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610ed557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610f1157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a723058207e6964d6d2b272c3140371dab54db3b2ee260cdd3378870d8a88bf6aa82aa83b0029","sourceMap":"168:3180:3:-;;;736:128;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;509:10:15;501:5;;:18;;;;;;;;;;;;;;;;;;803:10:3;795:5;;:18;;;;;;;;;;;;;;;;;;841:16;823:15;;:34;;;;;;;;;;;;;;;;;;736:128;168:3180;;;;;;","deployedSourceMap":"168:3180:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;869:1549;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3034:150;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2905:123;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3190:156:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2660:116;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2782:117;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2424:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;834:169:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;869:1549:3;934:16;974:18;1023:20;1089:23;953:10;934:29;;1005:8;995:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;974:40:3;;1046:34;1061:8;1071;1046:14;:34::i;:::-;1023:57;;1115:37;1133:8;1143;1115:17;:37::i;:::-;1089:63;;1166:6;:25;;;;;1176:15;1166:25;1162:115;;;1261:7;;1162:115;1291:6;1290:7;:29;;;;;1301:18;1290:29;1286:122;;;1392:7;;1286:122;1421:6;1417:466;;;1539:4;1508:6;:16;1515:8;1508:16;;;;;;;;;;;;;;;:28;1525:10;1508:28;;;;;;;;;;;;;;;;;;:35;;;;;;;;;;;;;;;;;;1580:1;1556:10;:20;1567:8;1556:20;;;;;;;;;;;;;;;;:25;;;;;;;;;;;1619:1;1594:9;:21;1604:10;1594:21;;;;;;;;;;;;;;;;;;:26;;;;;;;;;;;1638:18;1634:185;;;1709:5;1675:9;:19;1685:8;1675:19;;;;;;;;;;;;;;;:31;1695:10;1675:31;;;;;;;;;;;;;;;;;;:39;;;;;;;;;;;;;;;;;;1758:1;1731:13;:23;1745:8;1731:23;;;;;;;;;;;;;;;;:28;;;;;;;;;;;1804:1;1776:12;:24;1789:10;1776:24;;;;;;;;;;;;;;;;;;:29;;;;;;;;;;;1634:185;1832:40;1845:8;1855;1865:6;1832:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1417:466:3;1898:6;1897:7;1893:519;;;2019:4;1985:9;:19;1995:8;1985:19;;;;;;;;;;;;;;;:31;2005:10;1985:31;;;;;;;;;;;;;;;;;;:38;;;;;;;;;;;;;;;;;;2063:1;2036:13;:23;2050:8;2036:23;;;;;;;;;;;;;;;;:28;;;;;;;;;;;2105:1;2077:12;:24;2090:10;2077:24;;;;;;;;;;;;;;;;;;:29;;;;;;;;;;;2123:15;2119:169;;;2187:5;2156:6;:16;2163:8;2156:16;;;;;;;;;;;;;;;:28;2173:10;2156:28;;;;;;;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;2232:1;2208:10;:20;2219:8;2208:20;;;;;;;;;;;;;;;;:25;;;;;;;;;;;2274:1;2249:9;:21;2259:10;2249:21;;;;;;;;;;;;;;;;;;:26;;;;;;;;;;;2119:169;2299:40;2312:8;2322;2332:6;2299:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2351:50:3;2364:8;2394:6;2351:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1893:519;869:1549;;;;;;;:::o;3034:150::-;3117:4;3140:6;:16;3147:8;3140:16;;;;;;;;;;;;;;;:37;3167:8;3157:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;3140:37:3;;;;;;;;;;;;;;;;;;;;;;;;;;;3133:44;;3034:150;;;;:::o;2905:123::-;2967:4;2988:12;:33;3011:8;3001:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;2988:33:3;;;;;;;;;;;;;;;;;;2981:40;;2905:123;;;:::o;238:20:15:-;;;;;;;;;;;;;:::o;3190:156:3:-;3276:4;3299:9;:19;3309:8;3299:19;;;;;;;;;;;;;;;:40;3329:8;3319:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;3299:40:3;;;;;;;;;;;;;;;;;;;;;;;;;;;3292:47;;3190:156;;;;:::o;2660:116::-;2724:4;2746:13;:23;2760:8;2746:23;;;;;;;;;;;;;;;;2739:30;;2660:116;;;:::o;2782:117::-;2841:4;2862:9;:30;2882:8;2872:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;2862:30:3;;;;;;;;;;;;;;;;;;2855:37;;2782:117;;;:::o;2424:109::-;2485:4;2506:10;:20;2517:8;2506:20;;;;;;;;;;;;;;;;2499:27;;2424:109;;;:::o;834:169:15:-;654:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;930:1;910:22;;:8;:22;;;;902:31;;;;;;;;967:8;939:37;;960:5;;;;;;;;;;;939:37;;;;;;;;;;;;990:8;982:5;;:16;;;;;;;;;;;;;;;;;;834:169;:::o","source":"pragma solidity ^0.4.18;\n\nimport \"zeppelin-solidity/contracts/ownership/Ownable.sol\";\nimport 'zeppelin-solidity/contracts/math/SafeMath.sol';\nimport './Registry.sol';\n\ncontract Likes is Ownable {\n\n address paratiiRegistry;\n\n // mapping from user addrsses and video ids to booleans\n mapping (address=> mapping (bytes32 => bool)) private _likes;\n mapping (address=> mapping (bytes32 => bool)) private _dislikes;\n // total of liks on a video\n mapping (address => uint) private _userLikes;\n mapping (address => uint) private _userDislikes;\n mapping (bytes32 => uint) private _vidLikes;\n mapping (bytes32 => uint) private _vidDislikes;\n\n event LogLikeVideo(address _address, string _videoId, bool _liked);\n\n function Likes(Registry _paratiiRegistry) public {\n owner = msg.sender;\n paratiiRegistry = _paratiiRegistry;\n }\n\n function likeVideo(string _videoId, bool _liked) public {\n address _address = msg.sender ;\n bytes32 _videoHash = keccak256(_videoId);\n bool _userLikesVideo = userLikesVideo(_address, _videoId);\n bool _userDislikesVideo = userDislikesVideo(_address, _videoId);\n\n if (_liked && _userLikesVideo) {\n // this user already liked the video before\n return;\n }\n\n if (!_liked && _userDislikesVideo) {\n // this user already disliked the video before\n return;\n }\n\n if (_liked) {\n // msg.sender likes his video and did not do so before\n _likes[_address][_videoHash] = true;\n _userLikes[_address] += 1;\n _vidLikes[_videoHash] += 1;\n\n if (_userDislikesVideo) {\n _dislikes[_address][_videoHash] = false;\n _userDislikes[_address] -= 1;\n _vidDislikes[_videoHash] -= 1;\n }\n\n LogLikeVideo(_address, _videoId, _liked);\n }\n\n if (!_liked) {\n // msg.sender likes his video and did not do so before\n _dislikes[_address][_videoHash] = true;\n _userDislikes[_address] += 1;\n _vidDislikes[_videoHash] += 1;\n\n if (_userLikesVideo) {\n _likes[_address][_videoHash] = false;\n _userLikes[_address] -= 1;\n _vidLikes[_videoHash] -= 1;\n }\n LogLikeVideo(_address, _videoId, _liked);\n LogLikeVideo(_address, 'this passed here', _liked);\n }\n }\n\n function userLikes(address _address) public constant returns(uint) {\n return _userLikes[_address];\n }\n\n /**\n * @dev returns total of dislikes registered by this user\n * @param _address Address of the user\n */\n function userDislikes(address _address) public constant returns(uint) {\n return _userDislikes[_address];\n }\n\n function vidLikes(string _videoId) public constant returns(uint) {\n return _vidLikes[keccak256(_videoId)];\n }\n\n function vidDislikes(string _videoId) public constant returns(uint) {\n return _vidDislikes[keccak256(_videoId)];\n }\n\n function userLikesVideo(address _address, string _videoId) public constant returns(bool) {\n return _likes[_address][keccak256(_videoId)];\n }\n\n function userDislikesVideo(address _address, string _videoId) public constant returns(bool) {\n return _dislikes[_address][keccak256(_videoId)];\n }\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Likes.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Likes.sol","exportedSymbols":{"Likes":[593]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":289,"name":"PragmaDirective","src":"0:24:3"},{"attributes":{"SourceUnit":2517,"absolutePath":"zeppelin-solidity/contracts/ownership/Ownable.sol","file":"zeppelin-solidity/contracts/ownership/Ownable.sol","scope":594,"symbolAliases":[null],"unitAlias":""},"id":290,"name":"ImportDirective","src":"26:59:3"},{"attributes":{"SourceUnit":2461,"absolutePath":"zeppelin-solidity/contracts/math/SafeMath.sol","file":"zeppelin-solidity/contracts/math/SafeMath.sol","scope":594,"symbolAliases":[null],"unitAlias":""},"id":291,"name":"ImportDirective","src":"86:55:3"},{"attributes":{"SourceUnit":857,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Registry.sol","file":"./Registry.sol","scope":594,"symbolAliases":[null],"unitAlias":""},"id":292,"name":"ImportDirective","src":"142:24:3"},{"attributes":{"contractDependencies":[2516],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[593,2516],"name":"Likes","scope":594},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"Ownable","referencedDeclaration":2516,"type":"contract Ownable"},"id":293,"name":"UserDefinedTypeName","src":"186:7:3"}],"id":294,"name":"InheritanceSpecifier","src":"186:7:3"},{"attributes":{"constant":false,"name":"paratiiRegistry","scope":593,"stateVariable":true,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":295,"name":"ElementaryTypeName","src":"201:7:3"}],"id":296,"name":"VariableDeclaration","src":"201:23:3"},{"attributes":{"constant":false,"name":"_likes","scope":593,"stateVariable":true,"storageLocation":"default","type":"mapping(address => mapping(bytes32 => bool))","value":null,"visibility":"private"},"children":[{"attributes":{"type":"mapping(address => mapping(bytes32 => bool))"},"children":[{"attributes":{"name":"address","type":"address"},"id":297,"name":"ElementaryTypeName","src":"300:7:3"},{"attributes":{"type":"mapping(bytes32 => bool)"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":298,"name":"ElementaryTypeName","src":"319:7:3"},{"attributes":{"name":"bool","type":"bool"},"id":299,"name":"ElementaryTypeName","src":"330:4:3"}],"id":300,"name":"Mapping","src":"310:25:3"}],"id":301,"name":"Mapping","src":"291:45:3"}],"id":302,"name":"VariableDeclaration","src":"291:60:3"},{"attributes":{"constant":false,"name":"_dislikes","scope":593,"stateVariable":true,"storageLocation":"default","type":"mapping(address => mapping(bytes32 => bool))","value":null,"visibility":"private"},"children":[{"attributes":{"type":"mapping(address => mapping(bytes32 => bool))"},"children":[{"attributes":{"name":"address","type":"address"},"id":303,"name":"ElementaryTypeName","src":"366:7:3"},{"attributes":{"type":"mapping(bytes32 => bool)"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":304,"name":"ElementaryTypeName","src":"385:7:3"},{"attributes":{"name":"bool","type":"bool"},"id":305,"name":"ElementaryTypeName","src":"396:4:3"}],"id":306,"name":"Mapping","src":"376:25:3"}],"id":307,"name":"Mapping","src":"357:45:3"}],"id":308,"name":"VariableDeclaration","src":"357:63:3"},{"attributes":{"constant":false,"name":"_userLikes","scope":593,"stateVariable":true,"storageLocation":"default","type":"mapping(address => uint256)","value":null,"visibility":"private"},"children":[{"attributes":{"type":"mapping(address => uint256)"},"children":[{"attributes":{"name":"address","type":"address"},"id":309,"name":"ElementaryTypeName","src":"467:7:3"},{"attributes":{"name":"uint","type":"uint256"},"id":310,"name":"ElementaryTypeName","src":"478:4:3"}],"id":311,"name":"Mapping","src":"458:25:3"}],"id":312,"name":"VariableDeclaration","src":"458:44:3"},{"attributes":{"constant":false,"name":"_userDislikes","scope":593,"stateVariable":true,"storageLocation":"default","type":"mapping(address => uint256)","value":null,"visibility":"private"},"children":[{"attributes":{"type":"mapping(address => uint256)"},"children":[{"attributes":{"name":"address","type":"address"},"id":313,"name":"ElementaryTypeName","src":"517:7:3"},{"attributes":{"name":"uint","type":"uint256"},"id":314,"name":"ElementaryTypeName","src":"528:4:3"}],"id":315,"name":"Mapping","src":"508:25:3"}],"id":316,"name":"VariableDeclaration","src":"508:47:3"},{"attributes":{"constant":false,"name":"_vidLikes","scope":593,"stateVariable":true,"storageLocation":"default","type":"mapping(bytes32 => uint256)","value":null,"visibility":"private"},"children":[{"attributes":{"type":"mapping(bytes32 => uint256)"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":317,"name":"ElementaryTypeName","src":"570:7:3"},{"attributes":{"name":"uint","type":"uint256"},"id":318,"name":"ElementaryTypeName","src":"581:4:3"}],"id":319,"name":"Mapping","src":"561:25:3"}],"id":320,"name":"VariableDeclaration","src":"561:43:3"},{"attributes":{"constant":false,"name":"_vidDislikes","scope":593,"stateVariable":true,"storageLocation":"default","type":"mapping(bytes32 => uint256)","value":null,"visibility":"private"},"children":[{"attributes":{"type":"mapping(bytes32 => uint256)"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":321,"name":"ElementaryTypeName","src":"619:7:3"},{"attributes":{"name":"uint","type":"uint256"},"id":322,"name":"ElementaryTypeName","src":"630:4:3"}],"id":323,"name":"Mapping","src":"610:25:3"}],"id":324,"name":"VariableDeclaration","src":"610:46:3"},{"attributes":{"anonymous":false,"name":"LogLikeVideo"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_address","scope":332,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":325,"name":"ElementaryTypeName","src":"682:7:3"}],"id":326,"name":"VariableDeclaration","src":"682:16:3"},{"attributes":{"constant":false,"indexed":false,"name":"_videoId","scope":332,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":327,"name":"ElementaryTypeName","src":"700:6:3"}],"id":328,"name":"VariableDeclaration","src":"700:15:3"},{"attributes":{"constant":false,"indexed":false,"name":"_liked","scope":332,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":329,"name":"ElementaryTypeName","src":"717:4:3"}],"id":330,"name":"VariableDeclaration","src":"717:11:3"}],"id":331,"name":"ParameterList","src":"681:48:3"}],"id":332,"name":"EventDefinition","src":"663:67:3"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"Likes","payable":false,"scope":593,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_paratiiRegistry","scope":347,"stateVariable":false,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":333,"name":"UserDefinedTypeName","src":"751:8:3"}],"id":334,"name":"VariableDeclaration","src":"751:25:3"}],"id":335,"name":"ParameterList","src":"750:27:3"},{"attributes":{"parameters":[null]},"children":[],"id":336,"name":"ParameterList","src":"785:0:3"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2464,"type":"address","value":"owner"},"id":337,"name":"Identifier","src":"795:5:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":338,"name":"Identifier","src":"803:3:3"}],"id":339,"name":"MemberAccess","src":"803:10:3"}],"id":340,"name":"Assignment","src":"795:18:3"}],"id":341,"name":"ExpressionStatement","src":"795:18:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":296,"type":"address","value":"paratiiRegistry"},"id":342,"name":"Identifier","src":"823:15:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":334,"type":"contract Registry","value":"_paratiiRegistry"},"id":343,"name":"Identifier","src":"841:16:3"}],"id":344,"name":"Assignment","src":"823:34:3"}],"id":345,"name":"ExpressionStatement","src":"823:34:3"}],"id":346,"name":"Block","src":"785:79:3"}],"id":347,"name":"FunctionDefinition","src":"736:128:3"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"likeVideo","payable":false,"scope":593,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":504,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":348,"name":"ElementaryTypeName","src":"888:6:3"}],"id":349,"name":"VariableDeclaration","src":"888:15:3"},{"attributes":{"constant":false,"name":"_liked","scope":504,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":350,"name":"ElementaryTypeName","src":"905:4:3"}],"id":351,"name":"VariableDeclaration","src":"905:11:3"}],"id":352,"name":"ParameterList","src":"887:30:3"},{"attributes":{"parameters":[null]},"children":[],"id":353,"name":"ParameterList","src":"925:0:3"},{"children":[{"attributes":{"assignments":[355]},"children":[{"attributes":{"constant":false,"name":"_address","scope":504,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":354,"name":"ElementaryTypeName","src":"934:7:3"}],"id":355,"name":"VariableDeclaration","src":"934:16:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":356,"name":"Identifier","src":"953:3:3"}],"id":357,"name":"MemberAccess","src":"953:10:3"}],"id":358,"name":"VariableDeclarationStatement","src":"934:29:3"},{"attributes":{"assignments":[360]},"children":[{"attributes":{"constant":false,"name":"_videoHash","scope":504,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":359,"name":"ElementaryTypeName","src":"974:7:3"}],"id":360,"name":"VariableDeclaration","src":"974:18:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":361,"name":"Identifier","src":"995:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":349,"type":"string memory","value":"_videoId"},"id":362,"name":"Identifier","src":"1005:8:3"}],"id":363,"name":"FunctionCall","src":"995:19:3"}],"id":364,"name":"VariableDeclarationStatement","src":"974:40:3"},{"attributes":{"assignments":[366]},"children":[{"attributes":{"constant":false,"name":"_userLikesVideo","scope":504,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":365,"name":"ElementaryTypeName","src":"1023:4:3"}],"id":366,"name":"VariableDeclaration","src":"1023:20:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":574,"type":"function (address,string memory) view returns (bool)","value":"userLikesVideo"},"id":367,"name":"Identifier","src":"1046:14:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":355,"type":"address","value":"_address"},"id":368,"name":"Identifier","src":"1061:8:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":349,"type":"string memory","value":"_videoId"},"id":369,"name":"Identifier","src":"1071:8:3"}],"id":370,"name":"FunctionCall","src":"1046:34:3"}],"id":371,"name":"VariableDeclarationStatement","src":"1023:57:3"},{"attributes":{"assignments":[373]},"children":[{"attributes":{"constant":false,"name":"_userDislikesVideo","scope":504,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":372,"name":"ElementaryTypeName","src":"1089:4:3"}],"id":373,"name":"VariableDeclaration","src":"1089:23:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":592,"type":"function (address,string memory) view returns (bool)","value":"userDislikesVideo"},"id":374,"name":"Identifier","src":"1115:17:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":355,"type":"address","value":"_address"},"id":375,"name":"Identifier","src":"1133:8:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":349,"type":"string memory","value":"_videoId"},"id":376,"name":"Identifier","src":"1143:8:3"}],"id":377,"name":"FunctionCall","src":"1115:37:3"}],"id":378,"name":"VariableDeclarationStatement","src":"1089:63:3"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"&&","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":351,"type":"bool","value":"_liked"},"id":379,"name":"Identifier","src":"1166:6:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":366,"type":"bool","value":"_userLikesVideo"},"id":380,"name":"Identifier","src":"1176:15:3"}],"id":381,"name":"BinaryOperation","src":"1166:25:3"},{"children":[{"attributes":{"expression":null,"functionReturnParameters":353},"id":382,"name":"Return","src":"1261:7:3"}],"id":383,"name":"Block","src":"1193:84:3"}],"id":384,"name":"IfStatement","src":"1162:115:3"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"&&","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!","prefix":true,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":351,"type":"bool","value":"_liked"},"id":385,"name":"Identifier","src":"1291:6:3"}],"id":386,"name":"UnaryOperation","src":"1290:7:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":373,"type":"bool","value":"_userDislikesVideo"},"id":387,"name":"Identifier","src":"1301:18:3"}],"id":388,"name":"BinaryOperation","src":"1290:29:3"},{"children":[{"attributes":{"expression":null,"functionReturnParameters":353},"id":389,"name":"Return","src":"1392:7:3"}],"id":390,"name":"Block","src":"1321:87:3"}],"id":391,"name":"IfStatement","src":"1286:122:3"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":351,"type":"bool","value":"_liked"},"id":392,"name":"Identifier","src":"1421:6:3"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":302,"type":"mapping(address => mapping(bytes32 => bool))","value":"_likes"},"id":393,"name":"Identifier","src":"1508:6:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":355,"type":"address","value":"_address"},"id":394,"name":"Identifier","src":"1515:8:3"}],"id":396,"name":"IndexAccess","src":"1508:16:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":360,"type":"bytes32","value":"_videoHash"},"id":395,"name":"Identifier","src":"1525:10:3"}],"id":397,"name":"IndexAccess","src":"1508:28:3"},{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":398,"name":"Literal","src":"1539:4:3"}],"id":399,"name":"Assignment","src":"1508:35:3"}],"id":400,"name":"ExpressionStatement","src":"1508:35:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"+=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":312,"type":"mapping(address => uint256)","value":"_userLikes"},"id":401,"name":"Identifier","src":"1556:10:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":355,"type":"address","value":"_address"},"id":402,"name":"Identifier","src":"1567:8:3"}],"id":403,"name":"IndexAccess","src":"1556:20:3"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":404,"name":"Literal","src":"1580:1:3"}],"id":405,"name":"Assignment","src":"1556:25:3"}],"id":406,"name":"ExpressionStatement","src":"1556:25:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"+=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":320,"type":"mapping(bytes32 => uint256)","value":"_vidLikes"},"id":407,"name":"Identifier","src":"1594:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":360,"type":"bytes32","value":"_videoHash"},"id":408,"name":"Identifier","src":"1604:10:3"}],"id":409,"name":"IndexAccess","src":"1594:21:3"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":410,"name":"Literal","src":"1619:1:3"}],"id":411,"name":"Assignment","src":"1594:26:3"}],"id":412,"name":"ExpressionStatement","src":"1594:26:3"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":373,"type":"bool","value":"_userDislikesVideo"},"id":413,"name":"Identifier","src":"1638:18:3"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":308,"type":"mapping(address => mapping(bytes32 => bool))","value":"_dislikes"},"id":414,"name":"Identifier","src":"1675:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":355,"type":"address","value":"_address"},"id":415,"name":"Identifier","src":"1685:8:3"}],"id":417,"name":"IndexAccess","src":"1675:19:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":360,"type":"bytes32","value":"_videoHash"},"id":416,"name":"Identifier","src":"1695:10:3"}],"id":418,"name":"IndexAccess","src":"1675:31:3"},{"attributes":{"argumentTypes":null,"hexvalue":"66616c7365","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"false"},"id":419,"name":"Literal","src":"1709:5:3"}],"id":420,"name":"Assignment","src":"1675:39:3"}],"id":421,"name":"ExpressionStatement","src":"1675:39:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":316,"type":"mapping(address => uint256)","value":"_userDislikes"},"id":422,"name":"Identifier","src":"1731:13:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":355,"type":"address","value":"_address"},"id":423,"name":"Identifier","src":"1745:8:3"}],"id":424,"name":"IndexAccess","src":"1731:23:3"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":425,"name":"Literal","src":"1758:1:3"}],"id":426,"name":"Assignment","src":"1731:28:3"}],"id":427,"name":"ExpressionStatement","src":"1731:28:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":324,"type":"mapping(bytes32 => uint256)","value":"_vidDislikes"},"id":428,"name":"Identifier","src":"1776:12:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":360,"type":"bytes32","value":"_videoHash"},"id":429,"name":"Identifier","src":"1789:10:3"}],"id":430,"name":"IndexAccess","src":"1776:24:3"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":431,"name":"Literal","src":"1804:1:3"}],"id":432,"name":"Assignment","src":"1776:29:3"}],"id":433,"name":"ExpressionStatement","src":"1776:29:3"}],"id":434,"name":"Block","src":"1658:161:3"}],"id":435,"name":"IfStatement","src":"1634:185:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":332,"type":"function (address,string memory,bool)","value":"LogLikeVideo"},"id":436,"name":"Identifier","src":"1832:12:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":355,"type":"address","value":"_address"},"id":437,"name":"Identifier","src":"1845:8:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":349,"type":"string memory","value":"_videoId"},"id":438,"name":"Identifier","src":"1855:8:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":351,"type":"bool","value":"_liked"},"id":439,"name":"Identifier","src":"1865:6:3"}],"id":440,"name":"FunctionCall","src":"1832:40:3"}],"id":441,"name":"ExpressionStatement","src":"1832:40:3"}],"id":442,"name":"Block","src":"1429:454:3"}],"id":443,"name":"IfStatement","src":"1417:466:3"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!","prefix":true,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":351,"type":"bool","value":"_liked"},"id":444,"name":"Identifier","src":"1898:6:3"}],"id":445,"name":"UnaryOperation","src":"1897:7:3"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":308,"type":"mapping(address => mapping(bytes32 => bool))","value":"_dislikes"},"id":446,"name":"Identifier","src":"1985:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":355,"type":"address","value":"_address"},"id":447,"name":"Identifier","src":"1995:8:3"}],"id":449,"name":"IndexAccess","src":"1985:19:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":360,"type":"bytes32","value":"_videoHash"},"id":448,"name":"Identifier","src":"2005:10:3"}],"id":450,"name":"IndexAccess","src":"1985:31:3"},{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":451,"name":"Literal","src":"2019:4:3"}],"id":452,"name":"Assignment","src":"1985:38:3"}],"id":453,"name":"ExpressionStatement","src":"1985:38:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"+=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":316,"type":"mapping(address => uint256)","value":"_userDislikes"},"id":454,"name":"Identifier","src":"2036:13:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":355,"type":"address","value":"_address"},"id":455,"name":"Identifier","src":"2050:8:3"}],"id":456,"name":"IndexAccess","src":"2036:23:3"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":457,"name":"Literal","src":"2063:1:3"}],"id":458,"name":"Assignment","src":"2036:28:3"}],"id":459,"name":"ExpressionStatement","src":"2036:28:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"+=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":324,"type":"mapping(bytes32 => uint256)","value":"_vidDislikes"},"id":460,"name":"Identifier","src":"2077:12:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":360,"type":"bytes32","value":"_videoHash"},"id":461,"name":"Identifier","src":"2090:10:3"}],"id":462,"name":"IndexAccess","src":"2077:24:3"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":463,"name":"Literal","src":"2105:1:3"}],"id":464,"name":"Assignment","src":"2077:29:3"}],"id":465,"name":"ExpressionStatement","src":"2077:29:3"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":366,"type":"bool","value":"_userLikesVideo"},"id":466,"name":"Identifier","src":"2123:15:3"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":302,"type":"mapping(address => mapping(bytes32 => bool))","value":"_likes"},"id":467,"name":"Identifier","src":"2156:6:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":355,"type":"address","value":"_address"},"id":468,"name":"Identifier","src":"2163:8:3"}],"id":470,"name":"IndexAccess","src":"2156:16:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":360,"type":"bytes32","value":"_videoHash"},"id":469,"name":"Identifier","src":"2173:10:3"}],"id":471,"name":"IndexAccess","src":"2156:28:3"},{"attributes":{"argumentTypes":null,"hexvalue":"66616c7365","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"false"},"id":472,"name":"Literal","src":"2187:5:3"}],"id":473,"name":"Assignment","src":"2156:36:3"}],"id":474,"name":"ExpressionStatement","src":"2156:36:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":312,"type":"mapping(address => uint256)","value":"_userLikes"},"id":475,"name":"Identifier","src":"2208:10:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":355,"type":"address","value":"_address"},"id":476,"name":"Identifier","src":"2219:8:3"}],"id":477,"name":"IndexAccess","src":"2208:20:3"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":478,"name":"Literal","src":"2232:1:3"}],"id":479,"name":"Assignment","src":"2208:25:3"}],"id":480,"name":"ExpressionStatement","src":"2208:25:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":320,"type":"mapping(bytes32 => uint256)","value":"_vidLikes"},"id":481,"name":"Identifier","src":"2249:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":360,"type":"bytes32","value":"_videoHash"},"id":482,"name":"Identifier","src":"2259:10:3"}],"id":483,"name":"IndexAccess","src":"2249:21:3"},{"attributes":{"argumentTypes":null,"hexvalue":"31","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 1","value":"1"},"id":484,"name":"Literal","src":"2274:1:3"}],"id":485,"name":"Assignment","src":"2249:26:3"}],"id":486,"name":"ExpressionStatement","src":"2249:26:3"}],"id":487,"name":"Block","src":"2140:148:3"}],"id":488,"name":"IfStatement","src":"2119:169:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":332,"type":"function (address,string memory,bool)","value":"LogLikeVideo"},"id":489,"name":"Identifier","src":"2299:12:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":355,"type":"address","value":"_address"},"id":490,"name":"Identifier","src":"2312:8:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":349,"type":"string memory","value":"_videoId"},"id":491,"name":"Identifier","src":"2322:8:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":351,"type":"bool","value":"_liked"},"id":492,"name":"Identifier","src":"2332:6:3"}],"id":493,"name":"FunctionCall","src":"2299:40:3"}],"id":494,"name":"ExpressionStatement","src":"2299:40:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_stringliteral_9e480025039447a554ff4f3a62c71dd9b34e6a281c3693913bc42ac7651ef1e8","typeString":"literal_string \"this passed here\""},{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":332,"type":"function (address,string memory,bool)","value":"LogLikeVideo"},"id":495,"name":"Identifier","src":"2351:12:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":355,"type":"address","value":"_address"},"id":496,"name":"Identifier","src":"2364:8:3"},{"attributes":{"argumentTypes":null,"hexvalue":"74686973207061737365642068657265","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"this passed here\"","value":"this passed here"},"id":497,"name":"Literal","src":"2374:18:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":351,"type":"bool","value":"_liked"},"id":498,"name":"Identifier","src":"2394:6:3"}],"id":499,"name":"FunctionCall","src":"2351:50:3"}],"id":500,"name":"ExpressionStatement","src":"2351:50:3"}],"id":501,"name":"Block","src":"1906:506:3"}],"id":502,"name":"IfStatement","src":"1893:519:3"}],"id":503,"name":"Block","src":"925:1493:3"}],"id":504,"name":"FunctionDefinition","src":"869:1549:3"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"userLikes","payable":false,"scope":593,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_address","scope":516,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":505,"name":"ElementaryTypeName","src":"2443:7:3"}],"id":506,"name":"VariableDeclaration","src":"2443:16:3"}],"id":507,"name":"ParameterList","src":"2442:18:3"},{"children":[{"attributes":{"constant":false,"name":"","scope":516,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":508,"name":"ElementaryTypeName","src":"2485:4:3"}],"id":509,"name":"VariableDeclaration","src":"2485:4:3"}],"id":510,"name":"ParameterList","src":"2484:6:3"},{"children":[{"attributes":{"functionReturnParameters":510},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":312,"type":"mapping(address => uint256)","value":"_userLikes"},"id":511,"name":"Identifier","src":"2506:10:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":506,"type":"address","value":"_address"},"id":512,"name":"Identifier","src":"2517:8:3"}],"id":513,"name":"IndexAccess","src":"2506:20:3"}],"id":514,"name":"Return","src":"2499:27:3"}],"id":515,"name":"Block","src":"2491:42:3"}],"id":516,"name":"FunctionDefinition","src":"2424:109:3"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"userDislikes","payable":false,"scope":593,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_address","scope":528,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":517,"name":"ElementaryTypeName","src":"2682:7:3"}],"id":518,"name":"VariableDeclaration","src":"2682:16:3"}],"id":519,"name":"ParameterList","src":"2681:18:3"},{"children":[{"attributes":{"constant":false,"name":"","scope":528,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":520,"name":"ElementaryTypeName","src":"2724:4:3"}],"id":521,"name":"VariableDeclaration","src":"2724:4:3"}],"id":522,"name":"ParameterList","src":"2723:6:3"},{"children":[{"attributes":{"functionReturnParameters":522},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":316,"type":"mapping(address => uint256)","value":"_userDislikes"},"id":523,"name":"Identifier","src":"2746:13:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":518,"type":"address","value":"_address"},"id":524,"name":"Identifier","src":"2760:8:3"}],"id":525,"name":"IndexAccess","src":"2746:23:3"}],"id":526,"name":"Return","src":"2739:30:3"}],"id":527,"name":"Block","src":"2731:45:3"}],"id":528,"name":"FunctionDefinition","src":"2660:116:3"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"vidLikes","payable":false,"scope":593,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":542,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":529,"name":"ElementaryTypeName","src":"2800:6:3"}],"id":530,"name":"VariableDeclaration","src":"2800:15:3"}],"id":531,"name":"ParameterList","src":"2799:17:3"},{"children":[{"attributes":{"constant":false,"name":"","scope":542,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":532,"name":"ElementaryTypeName","src":"2841:4:3"}],"id":533,"name":"VariableDeclaration","src":"2841:4:3"}],"id":534,"name":"ParameterList","src":"2840:6:3"},{"children":[{"attributes":{"functionReturnParameters":534},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":320,"type":"mapping(bytes32 => uint256)","value":"_vidLikes"},"id":535,"name":"Identifier","src":"2862:9:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":536,"name":"Identifier","src":"2872:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":530,"type":"string memory","value":"_videoId"},"id":537,"name":"Identifier","src":"2882:8:3"}],"id":538,"name":"FunctionCall","src":"2872:19:3"}],"id":539,"name":"IndexAccess","src":"2862:30:3"}],"id":540,"name":"Return","src":"2855:37:3"}],"id":541,"name":"Block","src":"2847:52:3"}],"id":542,"name":"FunctionDefinition","src":"2782:117:3"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"vidDislikes","payable":false,"scope":593,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":556,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":543,"name":"ElementaryTypeName","src":"2926:6:3"}],"id":544,"name":"VariableDeclaration","src":"2926:15:3"}],"id":545,"name":"ParameterList","src":"2925:17:3"},{"children":[{"attributes":{"constant":false,"name":"","scope":556,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":546,"name":"ElementaryTypeName","src":"2967:4:3"}],"id":547,"name":"VariableDeclaration","src":"2967:4:3"}],"id":548,"name":"ParameterList","src":"2966:6:3"},{"children":[{"attributes":{"functionReturnParameters":548},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":324,"type":"mapping(bytes32 => uint256)","value":"_vidDislikes"},"id":549,"name":"Identifier","src":"2988:12:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":550,"name":"Identifier","src":"3001:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":544,"type":"string memory","value":"_videoId"},"id":551,"name":"Identifier","src":"3011:8:3"}],"id":552,"name":"FunctionCall","src":"3001:19:3"}],"id":553,"name":"IndexAccess","src":"2988:33:3"}],"id":554,"name":"Return","src":"2981:40:3"}],"id":555,"name":"Block","src":"2973:55:3"}],"id":556,"name":"FunctionDefinition","src":"2905:123:3"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"userLikesVideo","payable":false,"scope":593,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_address","scope":574,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":557,"name":"ElementaryTypeName","src":"3058:7:3"}],"id":558,"name":"VariableDeclaration","src":"3058:16:3"},{"attributes":{"constant":false,"name":"_videoId","scope":574,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":559,"name":"ElementaryTypeName","src":"3076:6:3"}],"id":560,"name":"VariableDeclaration","src":"3076:15:3"}],"id":561,"name":"ParameterList","src":"3057:35:3"},{"children":[{"attributes":{"constant":false,"name":"","scope":574,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":562,"name":"ElementaryTypeName","src":"3117:4:3"}],"id":563,"name":"VariableDeclaration","src":"3117:4:3"}],"id":564,"name":"ParameterList","src":"3116:6:3"},{"children":[{"attributes":{"functionReturnParameters":564},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":302,"type":"mapping(address => mapping(bytes32 => bool))","value":"_likes"},"id":565,"name":"Identifier","src":"3140:6:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"address","value":"_address"},"id":566,"name":"Identifier","src":"3147:8:3"}],"id":567,"name":"IndexAccess","src":"3140:16:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":568,"name":"Identifier","src":"3157:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":560,"type":"string memory","value":"_videoId"},"id":569,"name":"Identifier","src":"3167:8:3"}],"id":570,"name":"FunctionCall","src":"3157:19:3"}],"id":571,"name":"IndexAccess","src":"3140:37:3"}],"id":572,"name":"Return","src":"3133:44:3"}],"id":573,"name":"Block","src":"3123:61:3"}],"id":574,"name":"FunctionDefinition","src":"3034:150:3"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"userDislikesVideo","payable":false,"scope":593,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_address","scope":592,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":575,"name":"ElementaryTypeName","src":"3217:7:3"}],"id":576,"name":"VariableDeclaration","src":"3217:16:3"},{"attributes":{"constant":false,"name":"_videoId","scope":592,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":577,"name":"ElementaryTypeName","src":"3235:6:3"}],"id":578,"name":"VariableDeclaration","src":"3235:15:3"}],"id":579,"name":"ParameterList","src":"3216:35:3"},{"children":[{"attributes":{"constant":false,"name":"","scope":592,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":580,"name":"ElementaryTypeName","src":"3276:4:3"}],"id":581,"name":"VariableDeclaration","src":"3276:4:3"}],"id":582,"name":"ParameterList","src":"3275:6:3"},{"children":[{"attributes":{"functionReturnParameters":582},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":308,"type":"mapping(address => mapping(bytes32 => bool))","value":"_dislikes"},"id":583,"name":"Identifier","src":"3299:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":576,"type":"address","value":"_address"},"id":584,"name":"Identifier","src":"3309:8:3"}],"id":585,"name":"IndexAccess","src":"3299:19:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":586,"name":"Identifier","src":"3319:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":578,"type":"string memory","value":"_videoId"},"id":587,"name":"Identifier","src":"3329:8:3"}],"id":588,"name":"FunctionCall","src":"3319:19:3"}],"id":589,"name":"IndexAccess","src":"3299:40:3"}],"id":590,"name":"Return","src":"3292:47:3"}],"id":591,"name":"Block","src":"3282:64:3"}],"id":592,"name":"FunctionDefinition","src":"3190:156:3"}],"id":593,"name":"ContractDefinition","src":"168:3180:3"}],"id":594,"name":"SourceUnit","src":"0:3349:3"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T13:59:31.984Z"} +module.exports = {"contractName":"Likes","abi":[{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_paratiiRegistry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_address","type":"address"},{"indexed":false,"name":"_videoId","type":"string"},{"indexed":false,"name":"_liked","type":"bool"}],"name":"LogLikeVideo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"},{"name":"_liked","type":"bool"}],"name":"likeVideo","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"userLikes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"userDislikes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_videoId","type":"string"}],"name":"vidLikes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_videoId","type":"string"}],"name":"vidDislikes","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"},{"name":"_videoId","type":"string"}],"name":"userLikesVideo","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"},{"name":"_videoId","type":"string"}],"name":"userDislikesVideo","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b5060405160208061115e83398101806040528101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505061105a806101046000396000f300608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063075ca0d31461009e57806335068bef146101135780637b0aadea146101b45780638da5cb5b146102315780638f886d9414610288578063a822f11f14610329578063d834913314610380578063e8d5b22d146103fd578063f2fde38b14610454575b600080fd5b3480156100aa57600080fd5b50610111600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803515159060200190929190505050610497565b005b34801561011f57600080fd5b5061019a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610b70565b604051808215151515815260200191505060405180910390f35b3480156101c057600080fd5b5061021b600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610c42565b6040518082815260200191505060405180910390f35b34801561023d57600080fd5b50610246610cc9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561029457600080fd5b5061030f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610cee565b604051808215151515815260200191505060405180910390f35b34801561033557600080fd5b5061036a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dc0565b6040518082815260200191505060405180910390f35b34801561038c57600080fd5b506103e7600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e09565b6040518082815260200191505060405180910390f35b34801561040957600080fd5b5061043e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e90565b6040518082815260200191505060405180910390f35b34801561046057600080fd5b50610495600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ed9565b005b600080600080339350856040518082805190602001908083835b6020831015156104d657805182526020820191506020810190506020830392506104b1565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020925061050f8487610b70565b915061051b8487610cee565b90508480156105275750815b1561053157610b68565b8415801561053c5750805b1561054657610b68565b8415610802576001600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506001600660008560001916600019168152602001908152602001600020600082825401925050819055508015610725576000600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600760008560001916600019168152602001908152602001600020600082825403925050819055505b7fa7f48f489e5528c34ca196632deb780c27875fcc3040ed926a744d67aa2d3054848787604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200183151515158152602001828103825284818151815260200191508051906020019080838360005b838110156107c55780820151818401526020810190506107aa565b50505050905090810190601f1680156107f25780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15b841515610b67576001600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060016007600085600019166000191681526020019081526020016000206000828254019250508190555081156109e2576000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600660008560001916600019168152602001908152602001600020600082825403925050819055505b7fa7f48f489e5528c34ca196632deb780c27875fcc3040ed926a744d67aa2d3054848787604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200183151515158152602001828103825284818151815260200191508051906020019080838360005b83811015610a82578082015181840152602081019050610a67565b50505050905090810190601f168015610aaf5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a17fa7f48f489e5528c34ca196632deb780c27875fcc3040ed926a744d67aa2d30548486604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200183151515158152602001828103825260108152602001807f7468697320706173736564206865726500000000000000000000000000000000815250602001935050505060405180910390a15b5b505050505050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610be95780518252602082019150602081019050602083039250610bc4565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060009054906101000a900460ff16905092915050565b600060076000836040518082805190602001908083835b602083101515610c7e5780518252602082019150602081019050602083039250610c59565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610d675780518252602082019150602081019050602083039250610d42565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600060066000836040518082805190602001908083835b602083101515610e455780518252602082019150602081019050602083039250610e20565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020549050919050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f3457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610f7057600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820866b005f364eeeb005ff7389f2c1918c1b5f8f6b71cb85d030d5ae11fbafed190029","deployedBytecode":"0x608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063075ca0d31461009e57806335068bef146101135780637b0aadea146101b45780638da5cb5b146102315780638f886d9414610288578063a822f11f14610329578063d834913314610380578063e8d5b22d146103fd578063f2fde38b14610454575b600080fd5b3480156100aa57600080fd5b50610111600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803515159060200190929190505050610497565b005b34801561011f57600080fd5b5061019a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610b70565b604051808215151515815260200191505060405180910390f35b3480156101c057600080fd5b5061021b600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610c42565b6040518082815260200191505060405180910390f35b34801561023d57600080fd5b50610246610cc9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561029457600080fd5b5061030f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610cee565b604051808215151515815260200191505060405180910390f35b34801561033557600080fd5b5061036a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dc0565b6040518082815260200191505060405180910390f35b34801561038c57600080fd5b506103e7600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e09565b6040518082815260200191505060405180910390f35b34801561040957600080fd5b5061043e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e90565b6040518082815260200191505060405180910390f35b34801561046057600080fd5b50610495600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ed9565b005b600080600080339350856040518082805190602001908083835b6020831015156104d657805182526020820191506020810190506020830392506104b1565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020925061050f8487610b70565b915061051b8487610cee565b90508480156105275750815b1561053157610b68565b8415801561053c5750805b1561054657610b68565b8415610802576001600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506001600660008560001916600019168152602001908152602001600020600082825401925050819055508015610725576000600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600760008560001916600019168152602001908152602001600020600082825403925050819055505b7fa7f48f489e5528c34ca196632deb780c27875fcc3040ed926a744d67aa2d3054848787604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200183151515158152602001828103825284818151815260200191508051906020019080838360005b838110156107c55780820151818401526020810190506107aa565b50505050905090810190601f1680156107f25780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15b841515610b67576001600360008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254019250508190555060016007600085600019166000191681526020019081526020016000206000828254019250508190555081156109e2576000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856000191660001916815260200190815260200160002060006101000a81548160ff0219169083151502179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055506001600660008560001916600019168152602001908152602001600020600082825403925050819055505b7fa7f48f489e5528c34ca196632deb780c27875fcc3040ed926a744d67aa2d3054848787604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200183151515158152602001828103825284818151815260200191508051906020019080838360005b83811015610a82578082015181840152602081019050610a67565b50505050905090810190601f168015610aaf5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a17fa7f48f489e5528c34ca196632deb780c27875fcc3040ed926a744d67aa2d30548486604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200183151515158152602001828103825260108152602001807f7468697320706173736564206865726500000000000000000000000000000000815250602001935050505060405180910390a15b5b505050505050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610be95780518252602082019150602081019050602083039250610bc4565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060009054906101000a900460ff16905092915050565b600060076000836040518082805190602001908083835b602083101515610c7e5780518252602082019150602081019050602083039250610c59565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610d675780518252602082019150602081019050602083039250610d42565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060009054906101000a900460ff16905092915050565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600060066000836040518082805190602001908083835b602083101515610e455780518252602082019150602081019050602083039250610e20565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020549050919050565b6000600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f3457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610f7057600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820866b005f364eeeb005ff7389f2c1918c1b5f8f6b71cb85d030d5ae11fbafed190029"} /***/ }), /* 890 */ /***/ (function(module, exports) { -module.exports = {"contractName":"Migrations","abi":[{"constant":true,"inputs":[],"name":"last_completed_migration","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":false,"inputs":[{"name":"completed","type":"uint256"}],"name":"setCompleted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"new_address","type":"address"}],"name":"upgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102db8061005e6000396000f300606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100a05780638da5cb5b146100c9578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610224565b6040518082815260200191505060405180910390f35b34156100d457600080fd5b6100dc61022a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024f565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610220578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b6102c65a03f1151561021c57600080fd5b5050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102ac57806001819055505b505600a165627a7a72305820b958afb58ee4404d73ca60cacef6347acc08a1273218cc59bdeb1053ccb6b8970029","deployedBytecode":"0x606060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100a05780638da5cb5b146100c9578063fdacd5761461011e575b600080fd5b341561007257600080fd5b61009e600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610141565b005b34156100ab57600080fd5b6100b3610224565b6040518082815260200191505060405180910390f35b34156100d457600080fd5b6100dc61022a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561012957600080fd5b61013f600480803590602001909190505061024f565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415610220578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b151561020b57600080fd5b6102c65a03f1151561021c57600080fd5b5050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102ac57806001819055505b505600a165627a7a72305820b958afb58ee4404d73ca60cacef6347acc08a1273218cc59bdeb1053ccb6b8970029","sourceMap":"24:467:0:-;;;176:51;;;;;;;;212:10;204:5;;:18;;;;;;;;;;;;;;;;;;24:467;;;;;;","deployedSourceMap":"24:467:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;331:158;;;;;;;;;;;;;;;;;;;;;;;;;;;;72:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;231:96;;;;;;;;;;;;;;;;;;;;;;;;;;331:158;386:19;159:5;;;;;;;;;;;145:19;;:10;:19;;;141:26;;;419:11;386:45;;437:8;:21;;;459:24;;437:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;141:26;331:158;;:::o;72:36::-;;;;:::o;48:20::-;;;;;;;;;;;;;:::o;231:96::-;159:5;;;;;;;;;;;145:19;;:10;:19;;;141:26;;;313:9;286:24;:36;;;;141:26;231:96;:::o","source":"pragma solidity ^0.4.0;\ncontract Migrations {\n address public owner;\n uint public last_completed_migration;\n\n modifier restricted() {\n if (msg.sender == owner) _;\n }\n\n function Migrations() {\n owner = msg.sender;\n }\n\n function setCompleted(uint completed) restricted {\n last_completed_migration = completed;\n }\n\n function upgrade(address new_address) restricted {\n Migrations upgraded = Migrations(new_address);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/Migrations.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/Migrations.sol","exportedSymbols":{"Migrations":[56]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".0"]},"id":1,"name":"PragmaDirective","src":"0:23:0"},{"attributes":{"baseContracts":[null],"contractDependencies":[null],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[56],"name":"Migrations","scope":57},"children":[{"attributes":{"constant":false,"name":"owner","scope":56,"stateVariable":true,"storageLocation":"default","type":"address","value":null,"visibility":"public"},"children":[{"attributes":{"name":"address","type":"address"},"id":2,"name":"ElementaryTypeName","src":"48:7:0"}],"id":3,"name":"VariableDeclaration","src":"48:20:0"},{"attributes":{"constant":false,"name":"last_completed_migration","scope":56,"stateVariable":true,"storageLocation":"default","type":"uint256","value":null,"visibility":"public"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":4,"name":"ElementaryTypeName","src":"72:4:0"}],"id":5,"name":"VariableDeclaration","src":"72:36:0"},{"attributes":{"name":"restricted","visibility":"internal"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":6,"name":"ParameterList","src":"132:2:0"},{"children":[{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":7,"name":"Identifier","src":"145:3:0"}],"id":8,"name":"MemberAccess","src":"145:10:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3,"type":"address","value":"owner"},"id":9,"name":"Identifier","src":"159:5:0"}],"id":10,"name":"BinaryOperation","src":"145:19:0"},{"id":11,"name":"PlaceholderStatement","src":"166:1:0"}],"id":12,"name":"IfStatement","src":"141:26:0"}],"id":13,"name":"Block","src":"135:37:0"}],"id":14,"name":"ModifierDefinition","src":"113:59:0"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"Migrations","payable":false,"scope":56,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":15,"name":"ParameterList","src":"195:2:0"},{"attributes":{"parameters":[null]},"children":[],"id":16,"name":"ParameterList","src":"198:0:0"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":3,"type":"address","value":"owner"},"id":17,"name":"Identifier","src":"204:5:0"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":18,"name":"Identifier","src":"212:3:0"}],"id":19,"name":"MemberAccess","src":"212:10:0"}],"id":20,"name":"Assignment","src":"204:18:0"}],"id":21,"name":"ExpressionStatement","src":"204:18:0"}],"id":22,"name":"Block","src":"198:29:0"}],"id":23,"name":"FunctionDefinition","src":"176:51:0"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"setCompleted","payable":false,"scope":56,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"completed","scope":35,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":24,"name":"ElementaryTypeName","src":"253:4:0"}],"id":25,"name":"VariableDeclaration","src":"253:14:0"}],"id":26,"name":"ParameterList","src":"252:16:0"},{"attributes":{"parameters":[null]},"children":[],"id":29,"name":"ParameterList","src":"280:0:0"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":14,"type":"modifier ()","value":"restricted"},"id":27,"name":"Identifier","src":"269:10:0"}],"id":28,"name":"ModifierInvocation","src":"269:10:0"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":5,"type":"uint256","value":"last_completed_migration"},"id":30,"name":"Identifier","src":"286:24:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":25,"type":"uint256","value":"completed"},"id":31,"name":"Identifier","src":"313:9:0"}],"id":32,"name":"Assignment","src":"286:36:0"}],"id":33,"name":"ExpressionStatement","src":"286:36:0"}],"id":34,"name":"Block","src":"280:47:0"}],"id":35,"name":"FunctionDefinition","src":"231:96:0"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"upgrade","payable":false,"scope":56,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"new_address","scope":55,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":36,"name":"ElementaryTypeName","src":"348:7:0"}],"id":37,"name":"VariableDeclaration","src":"348:19:0"}],"id":38,"name":"ParameterList","src":"347:21:0"},{"attributes":{"parameters":[null]},"children":[],"id":41,"name":"ParameterList","src":"380:0:0"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":14,"type":"modifier ()","value":"restricted"},"id":39,"name":"Identifier","src":"369:10:0"}],"id":40,"name":"ModifierInvocation","src":"369:10:0"},{"children":[{"attributes":{"assignments":[43]},"children":[{"attributes":{"constant":false,"name":"upgraded","scope":55,"stateVariable":false,"storageLocation":"default","type":"contract Migrations","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Migrations","referencedDeclaration":56,"type":"contract Migrations"},"id":42,"name":"UserDefinedTypeName","src":"386:10:0"}],"id":43,"name":"VariableDeclaration","src":"386:19:0"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract Migrations","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":56,"type":"type(contract Migrations)","value":"Migrations"},"id":44,"name":"Identifier","src":"408:10:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":37,"type":"address","value":"new_address"},"id":45,"name":"Identifier","src":"419:11:0"}],"id":46,"name":"FunctionCall","src":"408:23:0"}],"id":47,"name":"VariableDeclarationStatement","src":"386:45:0"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"setCompleted","referencedDeclaration":35,"type":"function (uint256) external"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":43,"type":"contract Migrations","value":"upgraded"},"id":48,"name":"Identifier","src":"437:8:0"}],"id":50,"name":"MemberAccess","src":"437:21:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":5,"type":"uint256","value":"last_completed_migration"},"id":51,"name":"Identifier","src":"459:24:0"}],"id":52,"name":"FunctionCall","src":"437:47:0"}],"id":53,"name":"ExpressionStatement","src":"437:47:0"}],"id":54,"name":"Block","src":"380:109:0"}],"id":55,"name":"FunctionDefinition","src":"331:158:0"}],"id":56,"name":"ContractDefinition","src":"24:467:0"}],"id":57,"name":"SourceUnit","src":"0:492:0"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T13:59:31.980Z"} +module.exports = {"contractName":"Migrations","abi":[{"constant":true,"inputs":[],"name":"last_completed_migration","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":false,"inputs":[{"name":"completed","type":"uint256"}],"name":"setCompleted","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"new_address","type":"address"}],"name":"upgrade","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102f8806100606000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a72305820af261a791b7c279f0797e2f109c865211d0b1bd3215d10dd8b01ea142d74f3750029","deployedBytecode":"0x608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a72305820af261a791b7c279f0797e2f109c865211d0b1bd3215d10dd8b01ea142d74f3750029"} /***/ }), /* 891 */ /***/ (function(module, exports) { -module.exports = {"contractName":"Ownable","abi":[{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102858061005e6000396000f30060606040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638da5cb5b14610051578063f2fde38b146100a6575b600080fd5b341561005c57600080fd5b6100646100df565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156100b157600080fd5b6100dd600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610104565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561015f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561019b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820e47f8bdc1f6e20c43ebc0190df12858fd559f7e6441f657fac9fa8d8e169fc840029","deployedBytecode":"0x60606040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638da5cb5b14610051578063f2fde38b146100a6575b600080fd5b341561005c57600080fd5b6100646100df565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156100b157600080fd5b6100dd600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610104565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561015f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561019b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820e47f8bdc1f6e20c43ebc0190df12858fd559f7e6441f657fac9fa8d8e169fc840029","sourceMap":"217:789:5:-;;;469:55;;;;;;;;509:10;501:5;;:18;;;;;;;;;;;;;;;;;;217:789;;;;;;","deployedSourceMap":"217:789:5:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;834:169;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20;;;;;;;;;;;;;:::o;834:169::-;654:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;930:1;910:22;;:8;:22;;;;902:31;;;;;;;;967:8;939:37;;960:5;;;;;;;;;;;939:37;;;;;;;;;;;;990:8;982:5;;:16;;;;;;;;;;;;;;;;;;834:169;:::o","source":"pragma solidity ^0.4.18;\n\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\n * functions, this simplifies the implementation of \"user permissions\".\n */\ncontract Ownable {\n address public owner;\n\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n\n /**\n * @dev The Ownable constructor sets the original `owner` of the contract to the sender\n * account.\n */\n function Ownable() public {\n owner = msg.sender;\n }\n\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(msg.sender == owner);\n _;\n }\n\n\n /**\n * @dev Allows the current owner to transfer control of the contract to a newOwner.\n * @param newOwner The address to transfer ownership to.\n */\n function transferOwnership(address newOwner) public onlyOwner {\n require(newOwner != address(0));\n OwnershipTransferred(owner, newOwner);\n owner = newOwner;\n }\n\n}\n","sourcePath":"zeppelin-solidity/contracts/ownership/Ownable.sol","ast":{"attributes":{"absolutePath":"zeppelin-solidity/contracts/ownership/Ownable.sol","exportedSymbols":{"Ownable":[815]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":761,"name":"PragmaDirective","src":"0:24:5"},{"attributes":{"baseContracts":[null],"contractDependencies":[null],"contractKind":"contract","documentation":"@title Ownable\n@dev The Ownable contract has an owner address, and provides basic authorization control\nfunctions, this simplifies the implementation of \"user permissions\".","fullyImplemented":true,"linearizedBaseContracts":[815],"name":"Ownable","scope":816},"children":[{"attributes":{"constant":false,"name":"owner","scope":815,"stateVariable":true,"storageLocation":"default","type":"address","value":null,"visibility":"public"},"children":[{"attributes":{"name":"address","type":"address"},"id":762,"name":"ElementaryTypeName","src":"238:7:5"}],"id":763,"name":"VariableDeclaration","src":"238:20:5"},{"attributes":{"anonymous":false,"name":"OwnershipTransferred"},"children":[{"children":[{"attributes":{"constant":false,"indexed":true,"name":"previousOwner","scope":769,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":764,"name":"ElementaryTypeName","src":"291:7:5"}],"id":765,"name":"VariableDeclaration","src":"291:29:5"},{"attributes":{"constant":false,"indexed":true,"name":"newOwner","scope":769,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":766,"name":"ElementaryTypeName","src":"322:7:5"}],"id":767,"name":"VariableDeclaration","src":"322:24:5"}],"id":768,"name":"ParameterList","src":"290:57:5"}],"id":769,"name":"EventDefinition","src":"264:84:5"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"Ownable","payable":false,"scope":815,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":770,"name":"ParameterList","src":"485:2:5"},{"attributes":{"parameters":[null]},"children":[],"id":771,"name":"ParameterList","src":"495:0:5"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":763,"type":"address","value":"owner"},"id":772,"name":"Identifier","src":"501:5:5"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":773,"name":"Identifier","src":"509:3:5"}],"id":774,"name":"MemberAccess","src":"509:10:5"}],"id":775,"name":"Assignment","src":"501:18:5"}],"id":776,"name":"ExpressionStatement","src":"501:18:5"}],"id":777,"name":"Block","src":"495:29:5"}],"id":778,"name":"FunctionDefinition","src":"469:55:5"},{"attributes":{"name":"onlyOwner","visibility":"internal"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":779,"name":"ParameterList","src":"623:2:5"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"function (bool) pure","value":"require"},"id":780,"name":"Identifier","src":"632:7:5"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":781,"name":"Identifier","src":"640:3:5"}],"id":782,"name":"MemberAccess","src":"640:10:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":763,"type":"address","value":"owner"},"id":783,"name":"Identifier","src":"654:5:5"}],"id":784,"name":"BinaryOperation","src":"640:19:5"}],"id":785,"name":"FunctionCall","src":"632:28:5"}],"id":786,"name":"ExpressionStatement","src":"632:28:5"},{"id":787,"name":"PlaceholderStatement","src":"666:1:5"}],"id":788,"name":"Block","src":"626:46:5"}],"id":789,"name":"ModifierDefinition","src":"605:67:5"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"transferOwnership","payable":false,"scope":815,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"newOwner","scope":814,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":790,"name":"ElementaryTypeName","src":"861:7:5"}],"id":791,"name":"VariableDeclaration","src":"861:16:5"}],"id":792,"name":"ParameterList","src":"860:18:5"},{"attributes":{"parameters":[null]},"children":[],"id":795,"name":"ParameterList","src":"896:0:5"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":789,"type":"modifier ()","value":"onlyOwner"},"id":793,"name":"Identifier","src":"886:9:5"}],"id":794,"name":"ModifierInvocation","src":"886:9:5"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"function (bool) pure","value":"require"},"id":796,"name":"Identifier","src":"902:7:5"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":791,"type":"address","value":"newOwner"},"id":797,"name":"Identifier","src":"910:8:5"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":true,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":798,"name":"ElementaryTypeNameExpression","src":"922:7:5"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":799,"name":"Literal","src":"930:1:5"}],"id":800,"name":"FunctionCall","src":"922:10:5"}],"id":801,"name":"BinaryOperation","src":"910:22:5"}],"id":802,"name":"FunctionCall","src":"902:31:5"}],"id":803,"name":"ExpressionStatement","src":"902:31:5"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":769,"type":"function (address,address)","value":"OwnershipTransferred"},"id":804,"name":"Identifier","src":"939:20:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":763,"type":"address","value":"owner"},"id":805,"name":"Identifier","src":"960:5:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":791,"type":"address","value":"newOwner"},"id":806,"name":"Identifier","src":"967:8:5"}],"id":807,"name":"FunctionCall","src":"939:37:5"}],"id":808,"name":"ExpressionStatement","src":"939:37:5"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":763,"type":"address","value":"owner"},"id":809,"name":"Identifier","src":"982:5:5"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":791,"type":"address","value":"newOwner"},"id":810,"name":"Identifier","src":"990:8:5"}],"id":811,"name":"Assignment","src":"982:16:5"}],"id":812,"name":"ExpressionStatement","src":"982:16:5"}],"id":813,"name":"Block","src":"896:107:5"}],"id":814,"name":"FunctionDefinition","src":"834:169:5"}],"id":815,"name":"ContractDefinition","src":"217:789:5"}],"id":816,"name":"SourceUnit","src":"0:1007:5"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T14:06:20.130Z"} +module.exports = {"contractName":"Ownable","abi":[{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610291806100606000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638da5cb5b14610051578063f2fde38b146100a8575b600080fd5b34801561005d57600080fd5b506100666100eb565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156100b457600080fd5b506100e9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610110565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561016b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156101a757600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820d7f8688117116149b382478523c1a61a459f6ce33e578cdb29350ea1fc80dbf30029","deployedBytecode":"0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680638da5cb5b14610051578063f2fde38b146100a8575b600080fd5b34801561005d57600080fd5b506100666100eb565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156100b457600080fd5b506100e9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610110565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561016b57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156101a757600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a72305820d7f8688117116149b382478523c1a61a459f6ce33e578cdb29350ea1fc80dbf30029"} /***/ }), /* 892 */ /***/ (function(module, exports) { -module.exports = {"contractName":"PTIDistributor","abi":[{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"isUsed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_toAddress","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"},{"indexed":false,"name":"_reason","type":"string"}],"name":"LogDistribute","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_hashing","type":"bytes32"}],"name":"LogDebug","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_owner","type":"address"}],"name":"LogDebugOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_toAddress","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_salt","type":"bytes32"},{"name":"_reason","type":"string"},{"name":"_v","type":"uint8"},{"name":"_r","type":"bytes32"},{"name":"_s","type":"bytes32"}],"name":"distribute","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"},{"name":"_salt","type":"bytes32"},{"name":"_reason","type":"string"},{"name":"_v","type":"uint8"},{"name":"_r","type":"bytes32"},{"name":"_s","type":"bytes32"}],"name":"checkOwnerPacked","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"_v","type":"uint8"},{"name":"_r","type":"bytes32"},{"name":"_s","type":"bytes32"}],"name":"checkOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"},{"name":"_salt","type":"bytes32"},{"name":"_reason","type":"string"}],"name":"checkHashing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b60405160208061105783398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610f5b806100fc6000396000f30060606040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680635c7c6f931461009357806365995335146101065780637b1039991461019f5780638da5cb5b146101f4578063a88a8e3214610249578063d882044314610301578063f2fde38b1461038e578063fe255a18146103c7575b600080fd5b341561009e57600080fd5b61010460048080359060200190919080356000191690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610406565b005b341561011157600080fd5b61019d60048080359060200190919080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803560ff1690602001909190803560001916906020019091908035600019169060200190919050506104ca565b005b34156101aa57600080fd5b6101b26106f4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101ff57600080fd5b61020761071a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561025457600080fd5b6102ff600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803560ff16906020019091908035600019169060200190919080356000191690602001909190505061073f565b005b341561030c57600080fd5b61034c60048080356000191690602001909190803560ff169060200190919080356000191690602001909190803560001916906020019091905050610c5a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561039957600080fd5b6103c5600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610da6565b005b34156103d257600080fd5b6103ec600480803560001916906020019091905050610efb565b604051808215151515815260200191505060405180910390f35b600083838360405180848152602001836000191660001916815260200182805190602001908083835b602083101515610454578051825260208201915060208101905060208303925061042f565b6001836020036101000a0380198251168184511680821785525050505050509050019350505050604051809103902090507f05e46912c9be87d8a6830598db8544b61884d9d22f3921597a9a6e8a340914b38160405180826000191660001916815260200191505060405180910390a150505050565b60006104d4610f1b565b600088888860405180848152602001836000191660001916815260200182805190602001908083835b60208310151561052257805182526020820191506020810190506020830392506104fd565b6001836020036101000a0380198251168184511680821785525050505050509050019350505050604051809103902092506040805190810160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250915081836040518083805190602001908083835b6020831015156105c2578051825260208201915060208101905060208303925061059d565b6001836020036101000a038019825116818451168082178552505050505050905001826000191660001916815260200192505050604051809103902090507ff9af0632ddaf7a690a6486635894cfe799c6b72244b459660893f9f7b95771e8600182888888604051600081526020016040526000604051602001526040518085600019166000191681526020018460ff1660ff16815260200183600019166000191681526020018260001916600019168152602001945050505050602060405160208103908084039060008661646e5a03f1151561069f57600080fd5b505060206040510351604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1505050505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610749610f1b565b60008089898960405180848152602001836000191660001916815260200182805190602001908083835b6020831015156107985780518252602082019150602081019050602083039250610773565b6001836020036101000a0380198251168184511680821785525050505050509050019350505050604051809103902093506040805190810160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250925082846040518083805190602001908083835b6020831015156108385780518252602082019150602081019050602083039250610813565b6001836020036101000a03801982511681845116808217855250505050505090500182600019166000191681526020019250505060405180910390209150600260008a6000191660001916815260200190815260200160002060009054906101000a900460ff1615801561097e57506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600183898989604051600081526020016040526000604051602001526040518085600019166000191681526020018460ff1660ff16815260200183600019166000191681526020018260001916600019168152602001945050505050602060405160208103908084039060008661646e5a03f1151561095d57600080fd5b50506020604051035173ffffffffffffffffffffffffffffffffffffffff16145b151561098957600080fd5b6001600260008b6000191660001916815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252600c8152602001807f50617261746969546f6b656e0000000000000000000000000000000000000000815250602001915050602060405180830381600087803b1515610a8757600080fd5b6102c65a03f11515610a9857600080fd5b5050506040518051905090508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8c8c6000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610b4f57600080fd5b6102c65a03f11515610b6057600080fd5b505050604051805190501515610b7557600080fd5b7f47c36377eacf5c9bf0b0bffe0f11388976bba76b10c4a87c59a7d6847497205b8b8b8a604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610c11578082015181840152602081019050610bf6565b50505050905090810190601f168015610c3e5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15050505050505050505050565b6000610c64610f1b565b60006040805190810160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250915081876040518083805190602001908083835b602083101515610cd55780518252602082019150602081019050602083039250610cb0565b6001836020036101000a03801982511681845116808217855250505050505090500182600019166000191681526020019250505060405180910390209050600181878787604051600081526020016040526000604051602001526040518085600019166000191681526020018460ff1660ff16815260200183600019166000191681526020018260001916600019168152602001945050505050602060405160208103908084039060008661646e5a03f11515610d9157600080fd5b50506020604051035192505050949350505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e0157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610e3d57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60026020528060005260406000206000915054906101000a900460ff1681565b6020604051908101604052806000815250905600a165627a7a7230582044f025922bd8169753d19b6757826b78491f7bb68593715afc67b27cb4f830000029","deployedBytecode":"0x60606040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680635c7c6f931461009357806365995335146101065780637b1039991461019f5780638da5cb5b146101f4578063a88a8e3214610249578063d882044314610301578063f2fde38b1461038e578063fe255a18146103c7575b600080fd5b341561009e57600080fd5b61010460048080359060200190919080356000191690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610406565b005b341561011157600080fd5b61019d60048080359060200190919080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803560ff1690602001909190803560001916906020019091908035600019169060200190919050506104ca565b005b34156101aa57600080fd5b6101b26106f4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101ff57600080fd5b61020761071a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561025457600080fd5b6102ff600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919080359060200190919080356000191690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803560ff16906020019091908035600019169060200190919080356000191690602001909190505061073f565b005b341561030c57600080fd5b61034c60048080356000191690602001909190803560ff169060200190919080356000191690602001909190803560001916906020019091905050610c5a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561039957600080fd5b6103c5600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610da6565b005b34156103d257600080fd5b6103ec600480803560001916906020019091905050610efb565b604051808215151515815260200191505060405180910390f35b600083838360405180848152602001836000191660001916815260200182805190602001908083835b602083101515610454578051825260208201915060208101905060208303925061042f565b6001836020036101000a0380198251168184511680821785525050505050509050019350505050604051809103902090507f05e46912c9be87d8a6830598db8544b61884d9d22f3921597a9a6e8a340914b38160405180826000191660001916815260200191505060405180910390a150505050565b60006104d4610f1b565b600088888860405180848152602001836000191660001916815260200182805190602001908083835b60208310151561052257805182526020820191506020810190506020830392506104fd565b6001836020036101000a0380198251168184511680821785525050505050509050019350505050604051809103902092506040805190810160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250915081836040518083805190602001908083835b6020831015156105c2578051825260208201915060208101905060208303925061059d565b6001836020036101000a038019825116818451168082178552505050505050905001826000191660001916815260200192505050604051809103902090507ff9af0632ddaf7a690a6486635894cfe799c6b72244b459660893f9f7b95771e8600182888888604051600081526020016040526000604051602001526040518085600019166000191681526020018460ff1660ff16815260200183600019166000191681526020018260001916600019168152602001945050505050602060405160208103908084039060008661646e5a03f1151561069f57600080fd5b505060206040510351604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1505050505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610749610f1b565b60008089898960405180848152602001836000191660001916815260200182805190602001908083835b6020831015156107985780518252602082019150602081019050602083039250610773565b6001836020036101000a0380198251168184511680821785525050505050509050019350505050604051809103902093506040805190810160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250925082846040518083805190602001908083835b6020831015156108385780518252602082019150602081019050602083039250610813565b6001836020036101000a03801982511681845116808217855250505050505090500182600019166000191681526020019250505060405180910390209150600260008a6000191660001916815260200190815260200160002060009054906101000a900460ff1615801561097e57506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600183898989604051600081526020016040526000604051602001526040518085600019166000191681526020018460ff1660ff16815260200183600019166000191681526020018260001916600019168152602001945050505050602060405160208103908084039060008661646e5a03f1151561095d57600080fd5b50506020604051035173ffffffffffffffffffffffffffffffffffffffff16145b151561098957600080fd5b6001600260008b6000191660001916815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252600c8152602001807f50617261746969546f6b656e0000000000000000000000000000000000000000815250602001915050602060405180830381600087803b1515610a8757600080fd5b6102c65a03f11515610a9857600080fd5b5050506040518051905090508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8c8c6000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610b4f57600080fd5b6102c65a03f11515610b6057600080fd5b505050604051805190501515610b7557600080fd5b7f47c36377eacf5c9bf0b0bffe0f11388976bba76b10c4a87c59a7d6847497205b8b8b8a604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610c11578082015181840152602081019050610bf6565b50505050905090810190601f168015610c3e5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15050505050505050505050565b6000610c64610f1b565b60006040805190810160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250915081876040518083805190602001908083835b602083101515610cd55780518252602082019150602081019050602083039250610cb0565b6001836020036101000a03801982511681845116808217855250505050505090500182600019166000191681526020019250505060405180910390209050600181878787604051600081526020016040526000604051602001526040518085600019166000191681526020018460ff1660ff16815260200183600019166000191681526020018260001916600019168152602001945050505050602060405160208103908084039060008661646e5a03f11515610d9157600080fd5b50506020604051035192505050949350505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e0157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610e3d57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60026020528060005260406000206000915054906101000a900460ff1681565b6020604051908101604052806000815250905600a165627a7a7230582044f025922bd8169753d19b6757826b78491f7bb68593715afc67b27cb4f830000029","sourceMap":"141:1806:0:-;;;414:116;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;509:10:5;501:5;;:18;;;;;;;;;;;;;;;;;;483:10:0;475:5;;:18;;;;;;;;;;;;;;;;;;514:9;503:8;;:20;;;;;;;;;;;;;;;;;;414:116;141:1806;;;;;;","deployedSourceMap":"141:1806:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1781:164;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1142:356;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;183:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;537:599:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1503:272;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;834:169:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;369:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1781:164;1859:15;1887:7;1896:5;1903:7;1877:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;;;1859:52:0;;1919:19;1929:7;1919:19;;;;;;;;;;;;;;;;;;;;;;;;1781:164;;;;:::o;1142:356::-;1258:15;1318:19;;:::i;:::-;1382:20;1286:7;1295:5;1302:7;1276:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;;;1258:52:0;;1318:56;;;;;;;;;;;;;;;;;;;;1415:6;1423:7;1405:26;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1382:49:0;;1439:52;1454:35;1464:12;1478:2;1482;1486;1454:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1439:52;;;;;;;;;;;;;;;;;;;;;;1142:356;;;;;;;;;:::o;183:24::-;;;;;;;;;;;;;:::o;238:20:5:-;;;;;;;;;;;;;:::o;537:599:0:-;667:15;727:19;;:::i;:::-;791:20;955:18;695:7;704:5;711:7;685:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;;;667:52:0;;727:56;;;;;;;;;;;;;;;;;;;;824:6;832:7;814:26;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;791:49:0;;857:6;:13;864:5;857:13;;;;;;;;;;;;;;;;;;;;;;;;;;;856:14;:62;;;;;913:5;;;;;;;;;;;874:44;;:35;884:12;898:2;902;906;874:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:44;;;856:62;848:71;;;;;;;;943:4;927:6;:13;934:5;927:13;;;;;;;;;;;;;;;;;;:20;;;;;;;;;;;;;;;;;;989:8;;;;;;;;;;;:20;;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;955:71;;1042:5;:14;;;1057:10;1069:7;1042:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1034:44;;;;;;;;1086:43;1100:10;1112:7;1121;1086:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;537:599:0;;;;;;;;;;;:::o;1503:272::-;1590:7;1607:19;;:::i;:::-;1671:20;1607:56;;;;;;;;;;;;;;;;;;;;1704:6;1712:5;1694:24;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1671:47:0;;1733:35;1743:12;1757:2;1761;1765;1733:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1726:42;;1503:272;;;;;;;;:::o;834:169:5:-;654:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;930:1;910:22;;:8;:22;;;;902:31;;;;;;;;967:8;939:37;;960:5;;;;;;;;;;;939:37;;;;;;;;;;;;990:8;982:5;;:16;;;;;;;;;;;;;;;;;;834:169;:::o;369:38:0:-;;;;;;;;;;;;;;;;;;;;;;:::o;141:1806::-;;;;;;;;;;;;;;;:::o","source":"pragma solidity ^0.4.18;\n\nimport \"zeppelin-solidity/contracts/ownership/Ownable.sol\";\nimport './ParatiiToken.sol';\nimport './Registry.sol';\n\ncontract PTIDistributor is Ownable {\n\n Registry public registry;\n\n event LogDistribute(address _toAddress, uint _amount, string _reason);\n event LogDebug(bytes32 _hashing);\n event LogDebugOwner(address _owner);\n\n mapping(bytes32 => bool) public isUsed;\n\n function PTIDistributor(Registry _registry) public {\n owner = msg.sender;\n registry = _registry;\n }\n\n\n function distribute(address _toAddress, uint256 _amount, bytes32 _salt, string _reason, uint8 _v, bytes32 _r, bytes32 _s) {\n bytes32 message = keccak256(_amount, _salt, _reason);\n bytes memory prefix = \"\\x19Ethereum Signed Message:\\n32\";\n bytes32 prefixedHash = keccak256(prefix, message);\n require(!isUsed[_salt] && ecrecover(prefixedHash, _v, _r, _s) == owner);\n isUsed[_salt] = true;\n ParatiiToken token = ParatiiToken(registry.getContract('ParatiiToken'));\n require(token.transfer(_toAddress, _amount));\n LogDistribute(_toAddress, _amount, _reason);\n }\n\n function checkOwnerPacked(uint256 _amount, bytes32 _salt, string _reason, uint8 _v, bytes32 _r, bytes32 _s) {\n bytes32 message = keccak256(_amount, _salt, _reason);\n bytes memory prefix = \"\\x19Ethereum Signed Message:\\n32\";\n bytes32 prefixedHash = keccak256(prefix, message);\n LogDebugOwner( ecrecover(prefixedHash, _v, _r, _s) );\n }\n function checkOwner(bytes32 _hash, uint8 _v, bytes32 _r, bytes32 _s) constant returns (address) {\n bytes memory prefix = \"\\x19Ethereum Signed Message:\\n32\";\n bytes32 prefixedHash = keccak256(prefix, _hash);\n return ecrecover(prefixedHash, _v, _r, _s);\n }\n\n function checkHashing(uint256 _amount, bytes32 _salt, string _reason) {\n bytes32 hashing = keccak256(_amount, _salt, _reason);\n LogDebug( hashing );\n }\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/PTIDistributor.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/PTIDistributor.sol","exportedSymbols":{"PTIDistributor":[224]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":1,"name":"PragmaDirective","src":"0:24:0"},{"attributes":{"SourceUnit":816,"absolutePath":"zeppelin-solidity/contracts/ownership/Ownable.sol","file":"zeppelin-solidity/contracts/ownership/Ownable.sol","scope":225,"symbolAliases":[null],"unitAlias":""},"id":2,"name":"ImportDirective","src":"26:59:0"},{"attributes":{"SourceUnit":263,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/ParatiiToken.sol","file":"./ParatiiToken.sol","scope":225,"symbolAliases":[null],"unitAlias":""},"id":3,"name":"ImportDirective","src":"86:28:0"},{"attributes":{"SourceUnit":488,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Registry.sol","file":"./Registry.sol","scope":225,"symbolAliases":[null],"unitAlias":""},"id":4,"name":"ImportDirective","src":"115:24:0"},{"attributes":{"contractDependencies":[815],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[224,815],"name":"PTIDistributor","scope":225},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"Ownable","referencedDeclaration":815,"type":"contract Ownable"},"id":5,"name":"UserDefinedTypeName","src":"168:7:0"}],"id":6,"name":"InheritanceSpecifier","src":"168:7:0"},{"attributes":{"constant":false,"name":"registry","scope":224,"stateVariable":true,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"public"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":487,"type":"contract Registry"},"id":7,"name":"UserDefinedTypeName","src":"183:8:0"}],"id":8,"name":"VariableDeclaration","src":"183:24:0"},{"attributes":{"anonymous":false,"name":"LogDistribute"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_toAddress","scope":16,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":9,"name":"ElementaryTypeName","src":"234:7:0"}],"id":10,"name":"VariableDeclaration","src":"234:18:0"},{"attributes":{"constant":false,"indexed":false,"name":"_amount","scope":16,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":11,"name":"ElementaryTypeName","src":"254:4:0"}],"id":12,"name":"VariableDeclaration","src":"254:12:0"},{"attributes":{"constant":false,"indexed":false,"name":"_reason","scope":16,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":13,"name":"ElementaryTypeName","src":"268:6:0"}],"id":14,"name":"VariableDeclaration","src":"268:14:0"}],"id":15,"name":"ParameterList","src":"233:50:0"}],"id":16,"name":"EventDefinition","src":"214:70:0"},{"attributes":{"anonymous":false,"name":"LogDebug"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_hashing","scope":20,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":17,"name":"ElementaryTypeName","src":"304:7:0"}],"id":18,"name":"VariableDeclaration","src":"304:16:0"}],"id":19,"name":"ParameterList","src":"303:18:0"}],"id":20,"name":"EventDefinition","src":"289:33:0"},{"attributes":{"anonymous":false,"name":"LogDebugOwner"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_owner","scope":24,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":21,"name":"ElementaryTypeName","src":"347:7:0"}],"id":22,"name":"VariableDeclaration","src":"347:14:0"}],"id":23,"name":"ParameterList","src":"346:16:0"}],"id":24,"name":"EventDefinition","src":"327:36:0"},{"attributes":{"constant":false,"name":"isUsed","scope":224,"stateVariable":true,"storageLocation":"default","type":"mapping(bytes32 => bool)","value":null,"visibility":"public"},"children":[{"attributes":{"type":"mapping(bytes32 => bool)"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":25,"name":"ElementaryTypeName","src":"377:7:0"},{"attributes":{"name":"bool","type":"bool"},"id":26,"name":"ElementaryTypeName","src":"388:4:0"}],"id":27,"name":"Mapping","src":"369:24:0"}],"id":28,"name":"VariableDeclaration","src":"369:38:0"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"PTIDistributor","payable":false,"scope":224,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_registry","scope":43,"stateVariable":false,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":487,"type":"contract Registry"},"id":29,"name":"UserDefinedTypeName","src":"438:8:0"}],"id":30,"name":"VariableDeclaration","src":"438:18:0"}],"id":31,"name":"ParameterList","src":"437:20:0"},{"attributes":{"parameters":[null]},"children":[],"id":32,"name":"ParameterList","src":"465:0:0"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":763,"type":"address","value":"owner"},"id":33,"name":"Identifier","src":"475:5:0"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":34,"name":"Identifier","src":"483:3:0"}],"id":35,"name":"MemberAccess","src":"483:10:0"}],"id":36,"name":"Assignment","src":"475:18:0"}],"id":37,"name":"ExpressionStatement","src":"475:18:0"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"contract Registry"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":8,"type":"contract Registry","value":"registry"},"id":38,"name":"Identifier","src":"503:8:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":30,"type":"contract Registry","value":"_registry"},"id":39,"name":"Identifier","src":"514:9:0"}],"id":40,"name":"Assignment","src":"503:20:0"}],"id":41,"name":"ExpressionStatement","src":"503:20:0"}],"id":42,"name":"Block","src":"465:65:0"}],"id":43,"name":"FunctionDefinition","src":"414:116:0"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"distribute","payable":false,"scope":224,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_toAddress","scope":125,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":44,"name":"ElementaryTypeName","src":"557:7:0"}],"id":45,"name":"VariableDeclaration","src":"557:18:0"},{"attributes":{"constant":false,"name":"_amount","scope":125,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":46,"name":"ElementaryTypeName","src":"577:7:0"}],"id":47,"name":"VariableDeclaration","src":"577:15:0"},{"attributes":{"constant":false,"name":"_salt","scope":125,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":48,"name":"ElementaryTypeName","src":"594:7:0"}],"id":49,"name":"VariableDeclaration","src":"594:13:0"},{"attributes":{"constant":false,"name":"_reason","scope":125,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":50,"name":"ElementaryTypeName","src":"609:6:0"}],"id":51,"name":"VariableDeclaration","src":"609:14:0"},{"attributes":{"constant":false,"name":"_v","scope":125,"stateVariable":false,"storageLocation":"default","type":"uint8","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint8","type":"uint8"},"id":52,"name":"ElementaryTypeName","src":"625:5:0"}],"id":53,"name":"VariableDeclaration","src":"625:8:0"},{"attributes":{"constant":false,"name":"_r","scope":125,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":54,"name":"ElementaryTypeName","src":"635:7:0"}],"id":55,"name":"VariableDeclaration","src":"635:10:0"},{"attributes":{"constant":false,"name":"_s","scope":125,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":56,"name":"ElementaryTypeName","src":"647:7:0"}],"id":57,"name":"VariableDeclaration","src":"647:10:0"}],"id":58,"name":"ParameterList","src":"556:102:0"},{"attributes":{"parameters":[null]},"children":[],"id":59,"name":"ParameterList","src":"659:0:0"},{"children":[{"attributes":{"assignments":[61]},"children":[{"attributes":{"constant":false,"name":"message","scope":125,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":60,"name":"ElementaryTypeName","src":"667:7:0"}],"id":61,"name":"VariableDeclaration","src":"667:15:0"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":62,"name":"Identifier","src":"685:9:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":47,"type":"uint256","value":"_amount"},"id":63,"name":"Identifier","src":"695:7:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":49,"type":"bytes32","value":"_salt"},"id":64,"name":"Identifier","src":"704:5:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":51,"type":"string memory","value":"_reason"},"id":65,"name":"Identifier","src":"711:7:0"}],"id":66,"name":"FunctionCall","src":"685:34:0"}],"id":67,"name":"VariableDeclarationStatement","src":"667:52:0"},{"attributes":{"assignments":[69]},"children":[{"attributes":{"constant":false,"name":"prefix","scope":125,"stateVariable":false,"storageLocation":"memory","type":"bytes memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes","type":"bytes storage pointer"},"id":68,"name":"ElementaryTypeName","src":"727:5:0"}],"id":69,"name":"VariableDeclaration","src":"727:19:0"},{"attributes":{"argumentTypes":null,"hexvalue":"19457468657265756d205369676e6564204d6573736167653a0a3332","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"\u0019Ethereum Signed Message:\n32\"","value":"\u0019Ethereum Signed Message:\n32"},"id":70,"name":"Literal","src":"749:34:0"}],"id":71,"name":"VariableDeclarationStatement","src":"727:56:0"},{"attributes":{"assignments":[73]},"children":[{"attributes":{"constant":false,"name":"prefixedHash","scope":125,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":72,"name":"ElementaryTypeName","src":"791:7:0"}],"id":73,"name":"VariableDeclaration","src":"791:20:0"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":74,"name":"Identifier","src":"814:9:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":69,"type":"bytes memory","value":"prefix"},"id":75,"name":"Identifier","src":"824:6:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":61,"type":"bytes32","value":"message"},"id":76,"name":"Identifier","src":"832:7:0"}],"id":77,"name":"FunctionCall","src":"814:26:0"}],"id":78,"name":"VariableDeclarationStatement","src":"791:49:0"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"function (bool) pure","value":"require"},"id":79,"name":"Identifier","src":"848:7:0"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"&&","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!","prefix":true,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":28,"type":"mapping(bytes32 => bool)","value":"isUsed"},"id":80,"name":"Identifier","src":"857:6:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":49,"type":"bytes32","value":"_salt"},"id":81,"name":"Identifier","src":"864:5:0"}],"id":82,"name":"IndexAccess","src":"857:13:0"}],"id":83,"name":"UnaryOperation","src":"856:14:0"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_uint8","typeString":"uint8"},{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"overloadedDeclarations":[null],"referencedDeclaration":1224,"type":"function (bytes32,uint8,bytes32,bytes32) pure returns (address)","value":"ecrecover"},"id":84,"name":"Identifier","src":"874:9:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":73,"type":"bytes32","value":"prefixedHash"},"id":85,"name":"Identifier","src":"884:12:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":53,"type":"uint8","value":"_v"},"id":86,"name":"Identifier","src":"898:2:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":55,"type":"bytes32","value":"_r"},"id":87,"name":"Identifier","src":"902:2:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":57,"type":"bytes32","value":"_s"},"id":88,"name":"Identifier","src":"906:2:0"}],"id":89,"name":"FunctionCall","src":"874:35:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":763,"type":"address","value":"owner"},"id":90,"name":"Identifier","src":"913:5:0"}],"id":91,"name":"BinaryOperation","src":"874:44:0"}],"id":92,"name":"BinaryOperation","src":"856:62:0"}],"id":93,"name":"FunctionCall","src":"848:71:0"}],"id":94,"name":"ExpressionStatement","src":"848:71:0"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":28,"type":"mapping(bytes32 => bool)","value":"isUsed"},"id":95,"name":"Identifier","src":"927:6:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":49,"type":"bytes32","value":"_salt"},"id":96,"name":"Identifier","src":"934:5:0"}],"id":97,"name":"IndexAccess","src":"927:13:0"},{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":98,"name":"Literal","src":"943:4:0"}],"id":99,"name":"Assignment","src":"927:20:0"}],"id":100,"name":"ExpressionStatement","src":"927:20:0"},{"attributes":{"assignments":[102]},"children":[{"attributes":{"constant":false,"name":"token","scope":125,"stateVariable":false,"storageLocation":"default","type":"contract ParatiiToken","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"ParatiiToken","referencedDeclaration":262,"type":"contract ParatiiToken"},"id":101,"name":"UserDefinedTypeName","src":"955:12:0"}],"id":102,"name":"VariableDeclaration","src":"955:18:0"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract ParatiiToken","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":262,"type":"type(contract ParatiiToken)","value":"ParatiiToken"},"id":103,"name":"Identifier","src":"976:12:0"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_7631507f3f7bc8a54ae4ffd3c749e7cce6ebb390bbd0a742160abd113aa9ca0c","typeString":"literal_string \"ParatiiToken\""}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getContract","referencedDeclaration":374,"type":"function (string memory) view external returns (address)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":8,"type":"contract Registry","value":"registry"},"id":104,"name":"Identifier","src":"989:8:0"}],"id":105,"name":"MemberAccess","src":"989:20:0"},{"attributes":{"argumentTypes":null,"hexvalue":"50617261746969546f6b656e","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"ParatiiToken\"","value":"ParatiiToken"},"id":106,"name":"Literal","src":"1010:14:0"}],"id":107,"name":"FunctionCall","src":"989:36:0"}],"id":108,"name":"FunctionCall","src":"976:50:0"}],"id":109,"name":"VariableDeclarationStatement","src":"955:71:0"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"function (bool) pure","value":"require"},"id":110,"name":"Identifier","src":"1034:7:0"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"transfer","referencedDeclaration":888,"type":"function (address,uint256) external returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":102,"type":"contract ParatiiToken","value":"token"},"id":111,"name":"Identifier","src":"1042:5:0"}],"id":112,"name":"MemberAccess","src":"1042:14:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":45,"type":"address","value":"_toAddress"},"id":113,"name":"Identifier","src":"1057:10:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":47,"type":"uint256","value":"_amount"},"id":114,"name":"Identifier","src":"1069:7:0"}],"id":115,"name":"FunctionCall","src":"1042:35:0"}],"id":116,"name":"FunctionCall","src":"1034:44:0"}],"id":117,"name":"ExpressionStatement","src":"1034:44:0"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":16,"type":"function (address,uint256,string memory)","value":"LogDistribute"},"id":118,"name":"Identifier","src":"1086:13:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":45,"type":"address","value":"_toAddress"},"id":119,"name":"Identifier","src":"1100:10:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":47,"type":"uint256","value":"_amount"},"id":120,"name":"Identifier","src":"1112:7:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":51,"type":"string memory","value":"_reason"},"id":121,"name":"Identifier","src":"1121:7:0"}],"id":122,"name":"FunctionCall","src":"1086:43:0"}],"id":123,"name":"ExpressionStatement","src":"1086:43:0"}],"id":124,"name":"Block","src":"659:477:0"}],"id":125,"name":"FunctionDefinition","src":"537:599:0"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"checkOwnerPacked","payable":false,"scope":224,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_amount","scope":169,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":126,"name":"ElementaryTypeName","src":"1168:7:0"}],"id":127,"name":"VariableDeclaration","src":"1168:15:0"},{"attributes":{"constant":false,"name":"_salt","scope":169,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":128,"name":"ElementaryTypeName","src":"1185:7:0"}],"id":129,"name":"VariableDeclaration","src":"1185:13:0"},{"attributes":{"constant":false,"name":"_reason","scope":169,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":130,"name":"ElementaryTypeName","src":"1200:6:0"}],"id":131,"name":"VariableDeclaration","src":"1200:14:0"},{"attributes":{"constant":false,"name":"_v","scope":169,"stateVariable":false,"storageLocation":"default","type":"uint8","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint8","type":"uint8"},"id":132,"name":"ElementaryTypeName","src":"1216:5:0"}],"id":133,"name":"VariableDeclaration","src":"1216:8:0"},{"attributes":{"constant":false,"name":"_r","scope":169,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":134,"name":"ElementaryTypeName","src":"1226:7:0"}],"id":135,"name":"VariableDeclaration","src":"1226:10:0"},{"attributes":{"constant":false,"name":"_s","scope":169,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":136,"name":"ElementaryTypeName","src":"1238:7:0"}],"id":137,"name":"VariableDeclaration","src":"1238:10:0"}],"id":138,"name":"ParameterList","src":"1167:82:0"},{"attributes":{"parameters":[null]},"children":[],"id":139,"name":"ParameterList","src":"1250:0:0"},{"children":[{"attributes":{"assignments":[141]},"children":[{"attributes":{"constant":false,"name":"message","scope":169,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":140,"name":"ElementaryTypeName","src":"1258:7:0"}],"id":141,"name":"VariableDeclaration","src":"1258:15:0"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":142,"name":"Identifier","src":"1276:9:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":127,"type":"uint256","value":"_amount"},"id":143,"name":"Identifier","src":"1286:7:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":129,"type":"bytes32","value":"_salt"},"id":144,"name":"Identifier","src":"1295:5:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":131,"type":"string memory","value":"_reason"},"id":145,"name":"Identifier","src":"1302:7:0"}],"id":146,"name":"FunctionCall","src":"1276:34:0"}],"id":147,"name":"VariableDeclarationStatement","src":"1258:52:0"},{"attributes":{"assignments":[149]},"children":[{"attributes":{"constant":false,"name":"prefix","scope":169,"stateVariable":false,"storageLocation":"memory","type":"bytes memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes","type":"bytes storage pointer"},"id":148,"name":"ElementaryTypeName","src":"1318:5:0"}],"id":149,"name":"VariableDeclaration","src":"1318:19:0"},{"attributes":{"argumentTypes":null,"hexvalue":"19457468657265756d205369676e6564204d6573736167653a0a3332","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"\u0019Ethereum Signed Message:\n32\"","value":"\u0019Ethereum Signed Message:\n32"},"id":150,"name":"Literal","src":"1340:34:0"}],"id":151,"name":"VariableDeclarationStatement","src":"1318:56:0"},{"attributes":{"assignments":[153]},"children":[{"attributes":{"constant":false,"name":"prefixedHash","scope":169,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":152,"name":"ElementaryTypeName","src":"1382:7:0"}],"id":153,"name":"VariableDeclaration","src":"1382:20:0"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":154,"name":"Identifier","src":"1405:9:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":149,"type":"bytes memory","value":"prefix"},"id":155,"name":"Identifier","src":"1415:6:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":141,"type":"bytes32","value":"message"},"id":156,"name":"Identifier","src":"1423:7:0"}],"id":157,"name":"FunctionCall","src":"1405:26:0"}],"id":158,"name":"VariableDeclarationStatement","src":"1382:49:0"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":24,"type":"function (address)","value":"LogDebugOwner"},"id":159,"name":"Identifier","src":"1439:13:0"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_uint8","typeString":"uint8"},{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"overloadedDeclarations":[null],"referencedDeclaration":1224,"type":"function (bytes32,uint8,bytes32,bytes32) pure returns (address)","value":"ecrecover"},"id":160,"name":"Identifier","src":"1454:9:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":153,"type":"bytes32","value":"prefixedHash"},"id":161,"name":"Identifier","src":"1464:12:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":133,"type":"uint8","value":"_v"},"id":162,"name":"Identifier","src":"1478:2:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":135,"type":"bytes32","value":"_r"},"id":163,"name":"Identifier","src":"1482:2:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":137,"type":"bytes32","value":"_s"},"id":164,"name":"Identifier","src":"1486:2:0"}],"id":165,"name":"FunctionCall","src":"1454:35:0"}],"id":166,"name":"FunctionCall","src":"1439:52:0"}],"id":167,"name":"ExpressionStatement","src":"1439:52:0"}],"id":168,"name":"Block","src":"1250:248:0"}],"id":169,"name":"FunctionDefinition","src":"1142:356:0"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"checkOwner","payable":false,"scope":224,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_hash","scope":201,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":170,"name":"ElementaryTypeName","src":"1523:7:0"}],"id":171,"name":"VariableDeclaration","src":"1523:13:0"},{"attributes":{"constant":false,"name":"_v","scope":201,"stateVariable":false,"storageLocation":"default","type":"uint8","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint8","type":"uint8"},"id":172,"name":"ElementaryTypeName","src":"1538:5:0"}],"id":173,"name":"VariableDeclaration","src":"1538:8:0"},{"attributes":{"constant":false,"name":"_r","scope":201,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":174,"name":"ElementaryTypeName","src":"1548:7:0"}],"id":175,"name":"VariableDeclaration","src":"1548:10:0"},{"attributes":{"constant":false,"name":"_s","scope":201,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":176,"name":"ElementaryTypeName","src":"1560:7:0"}],"id":177,"name":"VariableDeclaration","src":"1560:10:0"}],"id":178,"name":"ParameterList","src":"1522:49:0"},{"children":[{"attributes":{"constant":false,"name":"","scope":201,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":179,"name":"ElementaryTypeName","src":"1590:7:0"}],"id":180,"name":"VariableDeclaration","src":"1590:7:0"}],"id":181,"name":"ParameterList","src":"1589:9:0"},{"children":[{"attributes":{"assignments":[183]},"children":[{"attributes":{"constant":false,"name":"prefix","scope":201,"stateVariable":false,"storageLocation":"memory","type":"bytes memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes","type":"bytes storage pointer"},"id":182,"name":"ElementaryTypeName","src":"1607:5:0"}],"id":183,"name":"VariableDeclaration","src":"1607:19:0"},{"attributes":{"argumentTypes":null,"hexvalue":"19457468657265756d205369676e6564204d6573736167653a0a3332","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"\u0019Ethereum Signed Message:\n32\"","value":"\u0019Ethereum Signed Message:\n32"},"id":184,"name":"Literal","src":"1629:34:0"}],"id":185,"name":"VariableDeclarationStatement","src":"1607:56:0"},{"attributes":{"assignments":[187]},"children":[{"attributes":{"constant":false,"name":"prefixedHash","scope":201,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":186,"name":"ElementaryTypeName","src":"1671:7:0"}],"id":187,"name":"VariableDeclaration","src":"1671:20:0"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":188,"name":"Identifier","src":"1694:9:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":183,"type":"bytes memory","value":"prefix"},"id":189,"name":"Identifier","src":"1704:6:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":171,"type":"bytes32","value":"_hash"},"id":190,"name":"Identifier","src":"1712:5:0"}],"id":191,"name":"FunctionCall","src":"1694:24:0"}],"id":192,"name":"VariableDeclarationStatement","src":"1671:47:0"},{"attributes":{"functionReturnParameters":181},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_uint8","typeString":"uint8"},{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"overloadedDeclarations":[null],"referencedDeclaration":1224,"type":"function (bytes32,uint8,bytes32,bytes32) pure returns (address)","value":"ecrecover"},"id":193,"name":"Identifier","src":"1733:9:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":187,"type":"bytes32","value":"prefixedHash"},"id":194,"name":"Identifier","src":"1743:12:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":173,"type":"uint8","value":"_v"},"id":195,"name":"Identifier","src":"1757:2:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":175,"type":"bytes32","value":"_r"},"id":196,"name":"Identifier","src":"1761:2:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":177,"type":"bytes32","value":"_s"},"id":197,"name":"Identifier","src":"1765:2:0"}],"id":198,"name":"FunctionCall","src":"1733:35:0"}],"id":199,"name":"Return","src":"1726:42:0"}],"id":200,"name":"Block","src":"1599:176:0"}],"id":201,"name":"FunctionDefinition","src":"1503:272:0"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"checkHashing","payable":false,"scope":224,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_amount","scope":223,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":202,"name":"ElementaryTypeName","src":"1803:7:0"}],"id":203,"name":"VariableDeclaration","src":"1803:15:0"},{"attributes":{"constant":false,"name":"_salt","scope":223,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":204,"name":"ElementaryTypeName","src":"1820:7:0"}],"id":205,"name":"VariableDeclaration","src":"1820:13:0"},{"attributes":{"constant":false,"name":"_reason","scope":223,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":206,"name":"ElementaryTypeName","src":"1835:6:0"}],"id":207,"name":"VariableDeclaration","src":"1835:14:0"}],"id":208,"name":"ParameterList","src":"1802:48:0"},{"attributes":{"parameters":[null]},"children":[],"id":209,"name":"ParameterList","src":"1851:0:0"},{"children":[{"attributes":{"assignments":[211]},"children":[{"attributes":{"constant":false,"name":"hashing","scope":223,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":210,"name":"ElementaryTypeName","src":"1859:7:0"}],"id":211,"name":"VariableDeclaration","src":"1859:15:0"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":212,"name":"Identifier","src":"1877:9:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":203,"type":"uint256","value":"_amount"},"id":213,"name":"Identifier","src":"1887:7:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":205,"type":"bytes32","value":"_salt"},"id":214,"name":"Identifier","src":"1896:5:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":207,"type":"string memory","value":"_reason"},"id":215,"name":"Identifier","src":"1903:7:0"}],"id":216,"name":"FunctionCall","src":"1877:34:0"}],"id":217,"name":"VariableDeclarationStatement","src":"1859:52:0"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"overloadedDeclarations":[null],"referencedDeclaration":20,"type":"function (bytes32)","value":"LogDebug"},"id":218,"name":"Identifier","src":"1919:8:0"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":211,"type":"bytes32","value":"hashing"},"id":219,"name":"Identifier","src":"1929:7:0"}],"id":220,"name":"FunctionCall","src":"1919:19:0"}],"id":221,"name":"ExpressionStatement","src":"1919:19:0"}],"id":222,"name":"Block","src":"1851:94:0"}],"id":223,"name":"FunctionDefinition","src":"1781:164:0"}],"id":224,"name":"ContractDefinition","src":"141:1806:0"}],"id":225,"name":"SourceUnit","src":"0:1948:0"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T14:06:20.128Z"} +module.exports = {"contractName":"PTIDistributor","abi":[{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"isUsed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_toAddress","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"},{"indexed":false,"name":"_reason","type":"string"}],"name":"LogDistribute","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_hashing","type":"bytes32"}],"name":"LogDebug","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_owner","type":"address"}],"name":"LogDebugOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_toAddress","type":"address"},{"name":"_amount","type":"uint256"},{"name":"_salt","type":"bytes32"},{"name":"_reason","type":"string"},{"name":"_v","type":"uint8"},{"name":"_r","type":"bytes32"},{"name":"_s","type":"bytes32"}],"name":"distribute","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"},{"name":"_salt","type":"bytes32"},{"name":"_reason","type":"string"},{"name":"_v","type":"uint8"},{"name":"_r","type":"bytes32"},{"name":"_s","type":"bytes32"}],"name":"checkOwnerPacked","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_hash","type":"bytes32"},{"name":"_v","type":"uint8"},{"name":"_r","type":"bytes32"},{"name":"_s","type":"bytes32"}],"name":"checkOwner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"},{"name":"_salt","type":"bytes32"},{"name":"_reason","type":"string"}],"name":"checkHashing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b506040516020806110ad83398101806040528101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610fa9806101046000396000f30060806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680635c7c6f931461009357806365995335146101145780637b103999146101be5780638da5cb5b14610215578063a88a8e321461026c578063d882044314610336578063f2fde38b146103d0578063fe255a1814610413575b600080fd5b34801561009f57600080fd5b50610112600480360381019080803590602001909291908035600019169060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061045c565b005b34801561012057600080fd5b506101bc600480360381019080803590602001909291908035600019169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080356000191690602001909291908035600019169060200190929190505050610520565b005b3480156101ca57600080fd5b506101d361073e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561022157600080fd5b5061022a610764565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561027857600080fd5b50610334600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035600019169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080356000191690602001909291908035600019169060200190929190505050610789565b005b34801561034257600080fd5b5061038e6004803603810190808035600019169060200190929190803560ff16906020019092919080356000191690602001909291908035600019169060200190929190505050610cc8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103dc57600080fd5b50610411600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e08565b005b34801561041f57600080fd5b506104426004803603810190808035600019169060200190929190505050610f5d565b604051808215151515815260200191505060405180910390f35b600083838360405180848152602001836000191660001916815260200182805190602001908083835b6020831015156104aa5780518252602082019150602081019050602083039250610485565b6001836020036101000a0380198251168184511680821785525050505050509050019350505050604051809103902090507f05e46912c9be87d8a6830598db8544b61884d9d22f3921597a9a6e8a340914b38160405180826000191660001916815260200191505060405180910390a150505050565b60006060600088888860405180848152602001836000191660001916815260200182805190602001908083835b602083101515610572578051825260208201915060208101905060208303925061054d565b6001836020036101000a0380198251168184511680821785525050505050509050019350505050604051809103902092506040805190810160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250915081836040518083805190602001908083835b60208310151561061257805182526020820191506020810190506020830392506105ed565b6001836020036101000a038019825116818451168082178552505050505050905001826000191660001916815260200192505050604051809103902090507ff9af0632ddaf7a690a6486635894cfe799c6b72244b459660893f9f7b95771e8600182888888604051600081526020016040526040518085600019166000191681526020018460ff1660ff1681526020018360001916600019168152602001826000191660001916815260200194505050505060206040516020810390808403906000865af11580156106e8573d6000803e3d6000fd5b50505060206040510351604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1505050505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000606060008089898960405180848152602001836000191660001916815260200182805190602001908083835b6020831015156107dc57805182526020820191506020810190506020830392506107b7565b6001836020036101000a0380198251168184511680821785525050505050509050019350505050604051809103902093506040805190810160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250925082846040518083805190602001908083835b60208310151561087c5780518252602082019150602081019050602083039250610857565b6001836020036101000a03801982511681845116808217855250505050505090500182600019166000191681526020019250505060405180910390209150600260008a6000191660001916815260200190815260200160002060009054906101000a900460ff161580156109bc57506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600183898989604051600081526020016040526040518085600019166000191681526020018460ff1660ff1681526020018360001916600019168152602001826000191660001916815260200194505050505060206040516020810390808403906000865af115801561099a573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff16145b15156109c757600080fd5b6001600260008b6000191660001916815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252600c8152602001807f50617261746969546f6b656e0000000000000000000000000000000000000000815250602001915050602060405180830381600087803b158015610abd57600080fd5b505af1158015610ad1573d6000803e3d6000fd5b505050506040513d6020811015610ae757600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8c8c6040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610b9d57600080fd5b505af1158015610bb1573d6000803e3d6000fd5b505050506040513d6020811015610bc757600080fd5b81019080805190602001909291905050501515610be357600080fd5b7f47c36377eacf5c9bf0b0bffe0f11388976bba76b10c4a87c59a7d6847497205b8b8b8a604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610c7f578082015181840152602081019050610c64565b50505050905090810190601f168015610cac5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15050505050505050505050565b6000606060006040805190810160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250915081876040518083805190602001908083835b602083101515610d3d5780518252602082019150602081019050602083039250610d18565b6001836020036101000a03801982511681845116808217855250505050505090500182600019166000191681526020019250505060405180910390209050600181878787604051600081526020016040526040518085600019166000191681526020018460ff1660ff1681526020018360001916600019168152602001826000191660001916815260200194505050505060206040516020810390808403906000865af1158015610df2573d6000803e3d6000fd5b5050506020604051035192505050949350505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e6357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610e9f57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60026020528060005260406000206000915054906101000a900460ff16815600a165627a7a723058204f79962551c40f2d58af0727a6079e8c157442360aae74a7ecab03924477def10029","deployedBytecode":"0x60806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680635c7c6f931461009357806365995335146101145780637b103999146101be5780638da5cb5b14610215578063a88a8e321461026c578063d882044314610336578063f2fde38b146103d0578063fe255a1814610413575b600080fd5b34801561009f57600080fd5b50610112600480360381019080803590602001909291908035600019169060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061045c565b005b34801561012057600080fd5b506101bc600480360381019080803590602001909291908035600019169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080356000191690602001909291908035600019169060200190929190505050610520565b005b3480156101ca57600080fd5b506101d361073e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561022157600080fd5b5061022a610764565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561027857600080fd5b50610334600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035600019169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803560ff16906020019092919080356000191690602001909291908035600019169060200190929190505050610789565b005b34801561034257600080fd5b5061038e6004803603810190808035600019169060200190929190803560ff16906020019092919080356000191690602001909291908035600019169060200190929190505050610cc8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103dc57600080fd5b50610411600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e08565b005b34801561041f57600080fd5b506104426004803603810190808035600019169060200190929190505050610f5d565b604051808215151515815260200191505060405180910390f35b600083838360405180848152602001836000191660001916815260200182805190602001908083835b6020831015156104aa5780518252602082019150602081019050602083039250610485565b6001836020036101000a0380198251168184511680821785525050505050509050019350505050604051809103902090507f05e46912c9be87d8a6830598db8544b61884d9d22f3921597a9a6e8a340914b38160405180826000191660001916815260200191505060405180910390a150505050565b60006060600088888860405180848152602001836000191660001916815260200182805190602001908083835b602083101515610572578051825260208201915060208101905060208303925061054d565b6001836020036101000a0380198251168184511680821785525050505050509050019350505050604051809103902092506040805190810160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250915081836040518083805190602001908083835b60208310151561061257805182526020820191506020810190506020830392506105ed565b6001836020036101000a038019825116818451168082178552505050505050905001826000191660001916815260200192505050604051809103902090507ff9af0632ddaf7a690a6486635894cfe799c6b72244b459660893f9f7b95771e8600182888888604051600081526020016040526040518085600019166000191681526020018460ff1660ff1681526020018360001916600019168152602001826000191660001916815260200194505050505060206040516020810390808403906000865af11580156106e8573d6000803e3d6000fd5b50505060206040510351604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1505050505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000606060008089898960405180848152602001836000191660001916815260200182805190602001908083835b6020831015156107dc57805182526020820191506020810190506020830392506107b7565b6001836020036101000a0380198251168184511680821785525050505050509050019350505050604051809103902093506040805190810160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250925082846040518083805190602001908083835b60208310151561087c5780518252602082019150602081019050602083039250610857565b6001836020036101000a03801982511681845116808217855250505050505090500182600019166000191681526020019250505060405180910390209150600260008a6000191660001916815260200190815260200160002060009054906101000a900460ff161580156109bc57506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600183898989604051600081526020016040526040518085600019166000191681526020018460ff1660ff1681526020018360001916600019168152602001826000191660001916815260200194505050505060206040516020810390808403906000865af115801561099a573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff16145b15156109c757600080fd5b6001600260008b6000191660001916815260200190815260200160002060006101000a81548160ff021916908315150217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252600c8152602001807f50617261746969546f6b656e0000000000000000000000000000000000000000815250602001915050602060405180830381600087803b158015610abd57600080fd5b505af1158015610ad1573d6000803e3d6000fd5b505050506040513d6020811015610ae757600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8c8c6040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b158015610b9d57600080fd5b505af1158015610bb1573d6000803e3d6000fd5b505050506040513d6020811015610bc757600080fd5b81019080805190602001909291905050501515610be357600080fd5b7f47c36377eacf5c9bf0b0bffe0f11388976bba76b10c4a87c59a7d6847497205b8b8b8a604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610c7f578082015181840152602081019050610c64565b50505050905090810190601f168015610cac5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15050505050505050505050565b6000606060006040805190810160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250915081876040518083805190602001908083835b602083101515610d3d5780518252602082019150602081019050602083039250610d18565b6001836020036101000a03801982511681845116808217855250505050505090500182600019166000191681526020019250505060405180910390209050600181878787604051600081526020016040526040518085600019166000191681526020018460ff1660ff1681526020018360001916600019168152602001826000191660001916815260200194505050505060206040516020810390808403906000865af1158015610df2573d6000803e3d6000fd5b5050506020604051035192505050949350505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e6357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610e9f57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60026020528060005260406000206000915054906101000a900460ff16815600a165627a7a723058204f79962551c40f2d58af0727a6079e8c157442360aae74a7ecab03924477def10029"} /***/ }), /* 893 */ /***/ (function(module, exports) { -module.exports = {"contractName":"ParatiiToken","abi":[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}],"bytecode":"0x60606040526040805190810160405280600781526020017f5061726174696900000000000000000000000000000000000000000000000000815250600390805190602001906200005192919062000115565b506040805190810160405280600381526020017f5054490000000000000000000000000000000000000000000000000000000000815250600490805190602001906200009f92919062000115565b506012600555600554600a0a6301406f40026006553415620000c057600080fd5b600654600081905550600654600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550620001c4565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200015857805160ff191683800117855562000189565b8280016001018555821562000189579182015b82811115620001885782518255916020019190600101906200016b565b5b5090506200019891906200019c565b5090565b620001c191905b80821115620001bd576000816000905550600101620001a3565b5090565b90565b6112d380620001d46000396000f3006060604052600436106100ba576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde03146100bf578063095ea7b31461014d57806318160ddd146101a757806323b872dd146101d05780632ff2e9dc14610249578063313ce56714610272578063661884631461029b57806370a08231146102f557806395d89b4114610342578063a9059cbb146103d0578063d73dd6231461042a578063dd62ed3e14610484575b600080fd5b34156100ca57600080fd5b6100d26104f0565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101125780820151818401526020810190506100f7565b50505050905090810190601f16801561013f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015857600080fd5b61018d600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061058e565b604051808215151515815260200191505060405180910390f35b34156101b257600080fd5b6101ba610680565b6040518082815260200191505060405180910390f35b34156101db57600080fd5b61022f600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610686565b604051808215151515815260200191505060405180910390f35b341561025457600080fd5b61025c610a45565b6040518082815260200191505060405180910390f35b341561027d57600080fd5b610285610a4b565b6040518082815260200191505060405180910390f35b34156102a657600080fd5b6102db600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610a51565b604051808215151515815260200191505060405180910390f35b341561030057600080fd5b61032c600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610ce2565b6040518082815260200191505060405180910390f35b341561034d57600080fd5b610355610d2b565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561039557808201518184015260208101905061037a565b50505050905090810190601f1680156103c25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103db57600080fd5b610410600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610dc9565b604051808215151515815260200191505060405180910390f35b341561043557600080fd5b61046a600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610fed565b604051808215151515815260200191505060405180910390f35b341561048f57600080fd5b6104da600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506111e9565b6040518082815260200191505060405180910390f35b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105865780601f1061055b57610100808354040283529160200191610586565b820191906000526020600020905b81548152906001019060200180831161056957829003601f168201915b505050505081565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60005481565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156106c357600080fd5b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561071157600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561079c57600080fd5b6107ee82600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461127090919063ffffffff16565b600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061088382600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461128990919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061095582600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461127090919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b60065481565b60055481565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905080831115610b62576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610bf6565b610b75838261127090919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610dc15780601f10610d9657610100808354040283529160200191610dc1565b820191906000526020600020905b815481529060010190602001808311610da457829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610e0657600080fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548211151515610e5457600080fd5b610ea682600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461127090919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610f3b82600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461128990919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b600061107e82600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461128990919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600082821115151561127e57fe5b818303905092915050565b600080828401905083811015151561129d57fe5b80915050929150505600a165627a7a7230582017e6da89a6b7a7c9e0508358651f6e3095f7343b929f20d075b0784ed987d4510029","deployedBytecode":"0x6060604052600436106100ba576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde03146100bf578063095ea7b31461014d57806318160ddd146101a757806323b872dd146101d05780632ff2e9dc14610249578063313ce56714610272578063661884631461029b57806370a08231146102f557806395d89b4114610342578063a9059cbb146103d0578063d73dd6231461042a578063dd62ed3e14610484575b600080fd5b34156100ca57600080fd5b6100d26104f0565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101125780820151818401526020810190506100f7565b50505050905090810190601f16801561013f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015857600080fd5b61018d600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061058e565b604051808215151515815260200191505060405180910390f35b34156101b257600080fd5b6101ba610680565b6040518082815260200191505060405180910390f35b34156101db57600080fd5b61022f600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610686565b604051808215151515815260200191505060405180910390f35b341561025457600080fd5b61025c610a45565b6040518082815260200191505060405180910390f35b341561027d57600080fd5b610285610a4b565b6040518082815260200191505060405180910390f35b34156102a657600080fd5b6102db600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610a51565b604051808215151515815260200191505060405180910390f35b341561030057600080fd5b61032c600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610ce2565b6040518082815260200191505060405180910390f35b341561034d57600080fd5b610355610d2b565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561039557808201518184015260208101905061037a565b50505050905090810190601f1680156103c25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156103db57600080fd5b610410600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610dc9565b604051808215151515815260200191505060405180910390f35b341561043557600080fd5b61046a600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610fed565b604051808215151515815260200191505060405180910390f35b341561048f57600080fd5b6104da600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506111e9565b6040518082815260200191505060405180910390f35b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105865780601f1061055b57610100808354040283529160200191610586565b820191906000526020600020905b81548152906001019060200180831161056957829003601f168201915b505050505081565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60005481565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156106c357600080fd5b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561071157600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561079c57600080fd5b6107ee82600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461127090919063ffffffff16565b600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061088382600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461128990919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061095582600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461127090919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b60065481565b60055481565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905080831115610b62576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610bf6565b610b75838261127090919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610dc15780601f10610d9657610100808354040283529160200191610dc1565b820191906000526020600020905b815481529060010190602001808311610da457829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610e0657600080fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548211151515610e5457600080fd5b610ea682600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461127090919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610f3b82600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461128990919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b600061107e82600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461128990919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b600082821115151561127e57fe5b818303905092915050565b600080828401905083811015151561129d57fe5b80915050929150505600a165627a7a7230582017e6da89a6b7a7c9e0508358651f6e3095f7343b929f20d075b0784ed987d4510029","sourceMap":"89:333:1:-;;;135:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;171:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;228:2;205:25;;281:8;;277:2;:12;265:8;:25;236:54;;297:123;;;;;;;;352:14;;338:11;:28;;;;399:14;;376:8;:20;385:10;376:20;;;;;;;;;;;;;;;:37;;;;89:333;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;","deployedSourceMap":"89:333:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1799:183:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;179:26:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;737:439:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;236:54:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;205:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2928:398:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1018:107:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;171:28:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;437:379:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2667:257:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2301:126;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;135:30:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1799:183:9:-;1866:4;1910:6;1878:7;:19;1886:10;1878:19;;;;;;;;;;;;;;;:29;1898:8;1878:29;;;;;;;;;;;;;;;:38;;;;1943:8;1922:38;;1931:10;1922:38;;;1953:6;1922:38;;;;;;;;;;;;;;;;;;1973:4;1966:11;;1799:183;;;;:::o;179:26:8:-;;;;:::o;737:439:9:-;819:4;854:1;839:17;;:3;:17;;;;831:26;;;;;;;;881:8;:15;890:5;881:15;;;;;;;;;;;;;;;;871:6;:25;;863:34;;;;;;;;921:7;:14;929:5;921:14;;;;;;;;;;;;;;;:26;936:10;921:26;;;;;;;;;;;;;;;;911:6;:36;;903:45;;;;;;;;973:27;993:6;973:8;:15;982:5;973:15;;;;;;;;;;;;;;;;:19;;:27;;;;:::i;:::-;955:8;:15;964:5;955:15;;;;;;;;;;;;;;;:45;;;;1022:25;1040:6;1022:8;:13;1031:3;1022:13;;;;;;;;;;;;;;;;:17;;:25;;;;:::i;:::-;1006:8;:13;1015:3;1006:13;;;;;;;;;;;;;;;:41;;;;1082:38;1113:6;1082:7;:14;1090:5;1082:14;;;;;;;;;;;;;;;:26;1097:10;1082:26;;;;;;;;;;;;;;;;:30;;:38;;;;:::i;:::-;1053:7;:14;1061:5;1053:14;;;;;;;;;;;;;;;:26;1068:10;1053:26;;;;;;;;;;;;;;;:67;;;;1142:3;1126:28;;1135:5;1126:28;;;1147:6;1126:28;;;;;;;;;;;;;;;;;;1167:4;1160:11;;737:439;;;;;:::o;236:54:1:-;;;;:::o;205:25::-;;;;:::o;2928:398:9:-;3011:4;3023:13;3039:7;:19;3047:10;3039:19;;;;;;;;;;;;;;;:29;3059:8;3039:29;;;;;;;;;;;;;;;;3023:45;;3097:8;3078:16;:27;3074:164;;;3147:1;3115:7;:19;3123:10;3115:19;;;;;;;;;;;;;;;:29;3135:8;3115:29;;;;;;;;;;;;;;;:33;;;;3074:164;;;3201:30;3214:16;3201:8;:12;;:30;;;;:::i;:::-;3169:7;:19;3177:10;3169:19;;;;;;;;;;;;;;;:29;3189:8;3169:29;;;;;;;;;;;;;;;:62;;;;3074:164;3264:8;3243:61;;3252:10;3243:61;;;3274:7;:19;3282:10;3274:19;;;;;;;;;;;;;;;:29;3294:8;3274:29;;;;;;;;;;;;;;;;3243:61;;;;;;;;;;;;;;;;;;3317:4;3310:11;;2928:398;;;;;:::o;1018:107:6:-;1074:15;1104:8;:16;1113:6;1104:16;;;;;;;;;;;;;;;;1097:23;;1018:107;;;:::o;171:28:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;437:379:6:-;500:4;535:1;520:17;;:3;:17;;;;512:26;;;;;;;;562:8;:20;571:10;562:20;;;;;;;;;;;;;;;;552:6;:30;;544:39;;;;;;;;676:32;701:6;676:8;:20;685:10;676:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;653:8;:20;662:10;653:20;;;;;;;;;;;;;;;:55;;;;730:25;748:6;730:8;:13;739:3;730:13;;;;;;;;;;;;;;;;:17;;:25;;;;:::i;:::-;714:8;:13;723:3;714:13;;;;;;;;;;;;;;;:41;;;;782:3;761:33;;770:10;761:33;;;787:6;761:33;;;;;;;;;;;;;;;;;;807:4;800:11;;437:379;;;;:::o;2667:257:9:-;2745:4;2789:46;2823:11;2789:7;:19;2797:10;2789:19;;;;;;;;;;;;;;;:29;2809:8;2789:29;;;;;;;;;;;;;;;;:33;;:46;;;;:::i;:::-;2757:7;:19;2765:10;2757:19;;;;;;;;;;;;;;;:29;2777:8;2757:29;;;;;;;;;;;;;;;:78;;;;2862:8;2841:61;;2850:10;2841:61;;;2872:7;:19;2880:10;2872:19;;;;;;;;;;;;;;;:29;2892:8;2872:29;;;;;;;;;;;;;;;;2841:61;;;;;;;;;;;;;;;;;;2915:4;2908:11;;2667:257;;;;:::o;2301:126::-;2375:7;2397;:15;2405:6;2397:15;;;;;;;;;;;;;;;:25;2413:8;2397:25;;;;;;;;;;;;;;;;2390:32;;2301:126;;;;:::o;584:110:4:-;642:7;669:1;664;:6;;657:14;;;;;;688:1;684;:5;677:12;;584:110;;;;:::o;698:129::-;756:7;771:9;787:1;783;:5;771:17;;806:1;801;:6;;794:14;;;;;;821:1;814:8;;698:129;;;;;:::o","source":"pragma solidity ^0.4.18;\n\nimport \"zeppelin-solidity/contracts/token/StandardToken.sol\";\n\ncontract ParatiiToken is StandardToken {\n\n string public name = \"Paratii\";\n string public symbol = \"PTI\";\n uint public decimals = 18;\n uint public INITIAL_SUPPLY = 21000000 * (10**decimals);\n\n function ParatiiToken() public {\n totalSupply = INITIAL_SUPPLY;\n balances[msg.sender] = INITIAL_SUPPLY;\n }\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/ParatiiToken.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/ParatiiToken.sol","exportedSymbols":{"ParatiiToken":[262]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":226,"name":"PragmaDirective","src":"0:24:1"},{"attributes":{"SourceUnit":1220,"absolutePath":"zeppelin-solidity/contracts/token/StandardToken.sol","file":"zeppelin-solidity/contracts/token/StandardToken.sol","scope":263,"symbolAliases":[null],"unitAlias":""},"id":227,"name":"ImportDirective","src":"26:61:1"},{"attributes":{"contractDependencies":[901,944,973,1219],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[262,1219,901,944,973],"name":"ParatiiToken","scope":263},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"StandardToken","referencedDeclaration":1219,"type":"contract StandardToken"},"id":228,"name":"UserDefinedTypeName","src":"114:13:1"}],"id":229,"name":"InheritanceSpecifier","src":"114:13:1"},{"attributes":{"constant":false,"name":"name","scope":262,"stateVariable":true,"storageLocation":"default","type":"string storage ref","visibility":"public"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":230,"name":"ElementaryTypeName","src":"135:6:1"},{"attributes":{"argumentTypes":null,"hexvalue":"50617261746969","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"Paratii\"","value":"Paratii"},"id":231,"name":"Literal","src":"156:9:1"}],"id":232,"name":"VariableDeclaration","src":"135:30:1"},{"attributes":{"constant":false,"name":"symbol","scope":262,"stateVariable":true,"storageLocation":"default","type":"string storage ref","visibility":"public"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":233,"name":"ElementaryTypeName","src":"171:6:1"},{"attributes":{"argumentTypes":null,"hexvalue":"505449","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"PTI\"","value":"PTI"},"id":234,"name":"Literal","src":"194:5:1"}],"id":235,"name":"VariableDeclaration","src":"171:28:1"},{"attributes":{"constant":false,"name":"decimals","scope":262,"stateVariable":true,"storageLocation":"default","type":"uint256","visibility":"public"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":236,"name":"ElementaryTypeName","src":"205:4:1"},{"attributes":{"argumentTypes":null,"hexvalue":"3138","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 18","value":"18"},"id":237,"name":"Literal","src":"228:2:1"}],"id":238,"name":"VariableDeclaration","src":"205:25:1"},{"attributes":{"constant":false,"name":"INITIAL_SUPPLY","scope":262,"stateVariable":true,"storageLocation":"default","type":"uint256","visibility":"public"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":239,"name":"ElementaryTypeName","src":"236:4:1"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"3231303030303030","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 21000000","value":"21000000"},"id":240,"name":"Literal","src":"265:8:1"},{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"**","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"3130","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 10","value":"10"},"id":241,"name":"Literal","src":"277:2:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":238,"type":"uint256","value":"decimals"},"id":242,"name":"Identifier","src":"281:8:1"}],"id":243,"name":"BinaryOperation","src":"277:12:1"}],"id":244,"name":"TupleExpression","src":"276:14:1"}],"id":245,"name":"BinaryOperation","src":"265:25:1"}],"id":246,"name":"VariableDeclaration","src":"236:54:1"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"ParatiiToken","payable":false,"scope":262,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":247,"name":"ParameterList","src":"318:2:1"},{"attributes":{"parameters":[null]},"children":[],"id":248,"name":"ParameterList","src":"328:0:1"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":948,"type":"uint256","value":"totalSupply"},"id":249,"name":"Identifier","src":"338:11:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":246,"type":"uint256","value":"INITIAL_SUPPLY"},"id":250,"name":"Identifier","src":"352:14:1"}],"id":251,"name":"Assignment","src":"338:28:1"}],"id":252,"name":"ExpressionStatement","src":"338:28:1"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":828,"type":"mapping(address => uint256)","value":"balances"},"id":253,"name":"Identifier","src":"376:8:1"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":254,"name":"Identifier","src":"385:3:1"}],"id":255,"name":"MemberAccess","src":"385:10:1"}],"id":256,"name":"IndexAccess","src":"376:20:1"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":246,"type":"uint256","value":"INITIAL_SUPPLY"},"id":257,"name":"Identifier","src":"399:14:1"}],"id":258,"name":"Assignment","src":"376:37:1"}],"id":259,"name":"ExpressionStatement","src":"376:37:1"}],"id":260,"name":"Block","src":"328:92:1"}],"id":261,"name":"FunctionDefinition","src":"297:123:1"}],"id":262,"name":"ContractDefinition","src":"89:333:1"}],"id":263,"name":"SourceUnit","src":"0:423:1"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T14:06:20.130Z"} +module.exports = {"contractName":"ParatiiToken","abi":[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"INITIAL_SUPPLY","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}],"bytecode":"0x60806040526040805190810160405280600781526020017f5061726174696900000000000000000000000000000000000000000000000000815250600390805190602001906200005192919062000116565b506040805190810160405280600381526020017f5054490000000000000000000000000000000000000000000000000000000000815250600490805190602001906200009f92919062000116565b506012600555600554600a0a6301406f4002600655348015620000c157600080fd5b506006546001819055506006546000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550620001c5565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200015957805160ff19168380011785556200018a565b828001600101855582156200018a579182015b82811115620001895782518255916020019190600101906200016c565b5b5090506200019991906200019d565b5090565b620001c291905b80821115620001be576000816000905550600101620001a4565b5090565b90565b61132180620001d56000396000f3006080604052600436106100ba576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde03146100bf578063095ea7b31461014f57806318160ddd146101b457806323b872dd146101df5780632ff2e9dc14610264578063313ce5671461028f57806366188463146102ba57806370a082311461031f57806395d89b4114610376578063a9059cbb14610406578063d73dd6231461046b578063dd62ed3e146104d0575b600080fd5b3480156100cb57600080fd5b506100d4610547565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101145780820151818401526020810190506100f9565b50505050905090810190601f1680156101415780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015b57600080fd5b5061019a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506105e5565b604051808215151515815260200191505060405180910390f35b3480156101c057600080fd5b506101c96106d7565b6040518082815260200191505060405180910390f35b3480156101eb57600080fd5b5061024a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506106e1565b604051808215151515815260200191505060405180910390f35b34801561027057600080fd5b50610279610a9b565b6040518082815260200191505060405180910390f35b34801561029b57600080fd5b506102a4610aa1565b6040518082815260200191505060405180910390f35b3480156102c657600080fd5b50610305600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610aa7565b604051808215151515815260200191505060405180910390f35b34801561032b57600080fd5b50610360600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d38565b6040518082815260200191505060405180910390f35b34801561038257600080fd5b5061038b610d80565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103cb5780820151818401526020810190506103b0565b50505050905090810190601f1680156103f85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561041257600080fd5b50610451600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610e1e565b604051808215151515815260200191505060405180910390f35b34801561047757600080fd5b506104b6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061103d565b604051808215151515815260200191505060405180910390f35b3480156104dc57600080fd5b50610531600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611239565b6040518082815260200191505060405180910390f35b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105dd5780601f106105b2576101008083540402835291602001916105dd565b820191906000526020600020905b8154815290600101906020018083116105c057829003601f168201915b505050505081565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b6000600154905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561071e57600080fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561076b57600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156107f657600080fd5b610847826000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112c090919063ffffffff16565b6000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506108da826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112d990919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109ab82600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112c090919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b60065481565b60055481565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905080831115610bb8576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610c4c565b610bcb83826112c090919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e165780601f10610deb57610100808354040283529160200191610e16565b820191906000526020600020905b815481529060010190602001808311610df957829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610e5b57600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548211151515610ea857600080fd5b610ef9826000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112c090919063ffffffff16565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610f8c826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112d990919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b60006110ce82600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112d990919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60008282111515156112ce57fe5b818303905092915050565b600081830190508281101515156112ec57fe5b809050929150505600a165627a7a72305820dac701cf1e34bca174a81a6c5049247d485eb0f8a6f0758ecbef51545eff5c9b0029","deployedBytecode":"0x6080604052600436106100ba576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306fdde03146100bf578063095ea7b31461014f57806318160ddd146101b457806323b872dd146101df5780632ff2e9dc14610264578063313ce5671461028f57806366188463146102ba57806370a082311461031f57806395d89b4114610376578063a9059cbb14610406578063d73dd6231461046b578063dd62ed3e146104d0575b600080fd5b3480156100cb57600080fd5b506100d4610547565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156101145780820151818401526020810190506100f9565b50505050905090810190601f1680156101415780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015b57600080fd5b5061019a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506105e5565b604051808215151515815260200191505060405180910390f35b3480156101c057600080fd5b506101c96106d7565b6040518082815260200191505060405180910390f35b3480156101eb57600080fd5b5061024a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506106e1565b604051808215151515815260200191505060405180910390f35b34801561027057600080fd5b50610279610a9b565b6040518082815260200191505060405180910390f35b34801561029b57600080fd5b506102a4610aa1565b6040518082815260200191505060405180910390f35b3480156102c657600080fd5b50610305600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610aa7565b604051808215151515815260200191505060405180910390f35b34801561032b57600080fd5b50610360600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d38565b6040518082815260200191505060405180910390f35b34801561038257600080fd5b5061038b610d80565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103cb5780820151818401526020810190506103b0565b50505050905090810190601f1680156103f85780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561041257600080fd5b50610451600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610e1e565b604051808215151515815260200191505060405180910390f35b34801561047757600080fd5b506104b6600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061103d565b604051808215151515815260200191505060405180910390f35b3480156104dc57600080fd5b50610531600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611239565b6040518082815260200191505060405180910390f35b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156105dd5780601f106105b2576101008083540402835291602001916105dd565b820191906000526020600020905b8154815290600101906020018083116105c057829003601f168201915b505050505081565b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b6000600154905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561071e57600080fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561076b57600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156107f657600080fd5b610847826000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112c090919063ffffffff16565b6000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506108da826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112d990919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109ab82600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112c090919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b60065481565b60055481565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905080831115610bb8576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610c4c565b610bcb83826112c090919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60048054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e165780601f10610deb57610100808354040283529160200191610e16565b820191906000526020600020905b815481529060010190602001808311610df957829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610e5b57600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548211151515610ea857600080fd5b610ef9826000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112c090919063ffffffff16565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610f8c826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112d990919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b60006110ce82600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546112d990919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b60008282111515156112ce57fe5b818303905092915050565b600081830190508281101515156112ec57fe5b809050929150505600a165627a7a72305820dac701cf1e34bca174a81a6c5049247d485eb0f8a6f0758ecbef51545eff5c9b0029"} /***/ }), /* 894 */ /***/ (function(module, exports) { -module.exports = {"contractName":"Registry","abi":[{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"strings","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"numbers","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"contracts","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_name","type":"string"},{"indexed":false,"name":"_address","type":"address"}],"name":"LogRegisterAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_name","type":"string"}],"name":"LogUnregisterAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_name","type":"string"},{"indexed":false,"name":"_number","type":"uint256"}],"name":"LogRegisterUint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_name","type":"string"}],"name":"LogUnregisterUint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_name","type":"string"},{"indexed":false,"name":"_string","type":"string"}],"name":"LogRegisterString","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_name","type":"string"}],"name":"LogUnregisterString","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_address","type":"address"}],"name":"registerAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"unregisterAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"getContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_number","type":"uint256"}],"name":"registerUint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"unregisterUint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"getUint","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_string","type":"string"}],"name":"registerString","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"unregisterString","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"getString","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506117198061009e6000396000f3006060604052600436106100d0576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806326404c37146100d557806335817773146101325780633708a96b146101cf578063498bff001461022c5780636059936e1461029d57806375b453511461033d5780638da5cb5b146103a357806397d7e807146103f85780639c981fcb14610455578063b13f5f191461052b578063bd935287146105a7578063c724982b14610647578063ec56a37314610682578063f2fde38b146106e9575b600080fd5b34156100e057600080fd5b610130600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610722565b005b341561013d57600080fd5b61018d600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506108bc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101da57600080fd5b61022a600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610963565b005b341561023757600080fd5b610287600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610ade565b6040518082815260200191505060405180910390f35b34156102a857600080fd5b6102c2600480803560001916906020019091905050610b65565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103025780820151818401526020810190506102e7565b50505050905090810190601f16801561032f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561034857600080fd5b6103a1600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091908035906020019091905050610c15565b005b34156103ae57600080fd5b6103b6610d9a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561040357600080fd5b610453600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610dbf565b005b341561046057600080fd5b6104b0600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610f42565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104f05780820151818401526020810190506104d5565b50505050905090810190601f16801561051d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561053657600080fd5b6105a5600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611067565b005b34156105b257600080fd5b610645600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050611252565b005b341561065257600080fd5b61066c60048080356000191690602001909190505061144c565b6040518082815260200191505060405180910390f35b341561068d57600080fd5b6106a7600480803560001916906020019091905050611464565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156106f457600080fd5b610720600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611497565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561077d57600080fd5b60016000826040518082805190602001908083835b6020831015156107b75780518252602082019150602081019050602083039250610792565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690557fa76e7b6e2c26769c731f99243d786a5fa6f8d70201a88db135d7c0bb21d1afc3816040518080602001828103825283818151815260200191508051906020019080838360005b8381101561087f578082015181840152602081019050610864565b50505050905090810190601f1680156108ac5780820380516001836020036101000a031916815260200191505b509250505060405180910390a150565b600060016000836040518082805190602001908083835b6020831015156108f857805182526020820191506020810190506020830392506108d3565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109be57600080fd5b60026000826040518082805190602001908083835b6020831015156109f857805182526020820191506020810190506020830392506109d3565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020600090557fa4de87e6562b1cde60454f2969e0775b4f27f1db0047f106f63c00f4e19a596a816040518080602001828103825283818151815260200191508051906020019080838360005b83811015610aa1578082015181840152602081019050610a86565b50505050905090810190601f168015610ace5780820380516001836020036101000a031916815260200191505b509250505060405180910390a150565b600060026000836040518082805190602001908083835b602083101515610b1a5780518252602082019150602081019050602083039250610af5565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020549050919050565b60036020528060005260406000206000915090508054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610c0d5780601f10610be257610100808354040283529160200191610c0d565b820191906000526020600020905b815481529060010190602001808311610bf057829003601f168201915b505050505081565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c7057600080fd5b8060026000846040518082805190602001908083835b602083101515610cab5780518252602082019150602081019050602083039250610c86565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020819055507f8c8f8f23d981717abe1d63307dea4737664c320ea49169cf2357c32d3eb0459882826040518080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015610d5b578082015181840152602081019050610d40565b50505050905090810190601f168015610d885780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e1a57600080fd5b60036000826040518082805190602001908083835b602083101515610e545780518252602082019150602081019050602083039250610e2f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166000191681526020019081526020016000206000610ea391906115ec565b7fe6e691835b821c75b07b5cb7ae7d383e85d0041e89871368ed5f41a67134482a816040518080602001828103825283818151815260200191508051906020019080838360005b83811015610f05578082015181840152602081019050610eea565b50505050905090810190601f168015610f325780820380516001836020036101000a031916815260200191505b509250505060405180910390a150565b610f4a611634565b60036000836040518082805190602001908083835b602083101515610f845780518252602082019150602081019050602083039250610f5f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166000191681526020019081526020016000208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561105b5780601f106110305761010080835404028352916020019161105b565b820191906000526020600020905b81548152906001019060200180831161103e57829003601f168201915b50505050509050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156110c257600080fd5b8060016000846040518082805190602001908083835b6020831015156110fd57805182526020820191506020810190506020830392506110d8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f2a1a55d7966a6bb6e4f08dcd6fd098b939891c9f7528df549e9770667a8a02ba828260405180806020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828103825284818151815260200191508051906020019080838360005b838110156112135780820151818401526020810190506111f8565b50505050905090810190601f1680156112405780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156112ad57600080fd5b8060036000846040518082805190602001908083835b6020831015156112e857805182526020820191506020810190506020830392506112c3565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020908051906020019061133e929190611648565b507f410eddefb807d899bc8882a95951655391fe0a4d0c444cb6545a5761f3b4aaab8282604051808060200180602001838103835285818151815260200191508051906020019080838360005b838110156113a657808201518184015260208101905061138b565b50505050905090810190601f1680156113d35780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b8381101561140c5780820151818401526020810190506113f1565b50505050905090810190601f1680156114395780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15050565b60026020528060005260406000206000915090505481565b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156114f257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561152e57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b50805460018160011615610100020316600290046000825580601f106116125750611631565b601f01602090049060005260206000209081019061163091906116c8565b5b50565b602060405190810160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061168957805160ff19168380011785556116b7565b828001600101855582156116b7579182015b828111156116b657825182559160200191906001019061169b565b5b5090506116c491906116c8565b5090565b6116ea91905b808211156116e65760008160009055506001016116ce565b5090565b905600a165627a7a72305820a51ec6afd6becd7b00c2558ecffb551320d640a25bc0ee1b6d907f2da7b975c90029","deployedBytecode":"0x6060604052600436106100d0576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806326404c37146100d557806335817773146101325780633708a96b146101cf578063498bff001461022c5780636059936e1461029d57806375b453511461033d5780638da5cb5b146103a357806397d7e807146103f85780639c981fcb14610455578063b13f5f191461052b578063bd935287146105a7578063c724982b14610647578063ec56a37314610682578063f2fde38b146106e9575b600080fd5b34156100e057600080fd5b610130600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610722565b005b341561013d57600080fd5b61018d600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506108bc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101da57600080fd5b61022a600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610963565b005b341561023757600080fd5b610287600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610ade565b6040518082815260200191505060405180910390f35b34156102a857600080fd5b6102c2600480803560001916906020019091905050610b65565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103025780820151818401526020810190506102e7565b50505050905090810190601f16801561032f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561034857600080fd5b6103a1600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091908035906020019091905050610c15565b005b34156103ae57600080fd5b6103b6610d9a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561040357600080fd5b610453600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610dbf565b005b341561046057600080fd5b6104b0600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610f42565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104f05780820151818401526020810190506104d5565b50505050905090810190601f16801561051d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561053657600080fd5b6105a5600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611067565b005b34156105b257600080fd5b610645600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050611252565b005b341561065257600080fd5b61066c60048080356000191690602001909190505061144c565b6040518082815260200191505060405180910390f35b341561068d57600080fd5b6106a7600480803560001916906020019091905050611464565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156106f457600080fd5b610720600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611497565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561077d57600080fd5b60016000826040518082805190602001908083835b6020831015156107b75780518252602082019150602081019050602083039250610792565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690557fa76e7b6e2c26769c731f99243d786a5fa6f8d70201a88db135d7c0bb21d1afc3816040518080602001828103825283818151815260200191508051906020019080838360005b8381101561087f578082015181840152602081019050610864565b50505050905090810190601f1680156108ac5780820380516001836020036101000a031916815260200191505b509250505060405180910390a150565b600060016000836040518082805190602001908083835b6020831015156108f857805182526020820191506020810190506020830392506108d3565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156109be57600080fd5b60026000826040518082805190602001908083835b6020831015156109f857805182526020820191506020810190506020830392506109d3565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020600090557fa4de87e6562b1cde60454f2969e0775b4f27f1db0047f106f63c00f4e19a596a816040518080602001828103825283818151815260200191508051906020019080838360005b83811015610aa1578082015181840152602081019050610a86565b50505050905090810190601f168015610ace5780820380516001836020036101000a031916815260200191505b509250505060405180910390a150565b600060026000836040518082805190602001908083835b602083101515610b1a5780518252602082019150602081019050602083039250610af5565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020549050919050565b60036020528060005260406000206000915090508054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610c0d5780601f10610be257610100808354040283529160200191610c0d565b820191906000526020600020905b815481529060010190602001808311610bf057829003601f168201915b505050505081565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c7057600080fd5b8060026000846040518082805190602001908083835b602083101515610cab5780518252602082019150602081019050602083039250610c86565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020819055507f8c8f8f23d981717abe1d63307dea4737664c320ea49169cf2357c32d3eb0459882826040518080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015610d5b578082015181840152602081019050610d40565b50505050905090810190601f168015610d885780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e1a57600080fd5b60036000826040518082805190602001908083835b602083101515610e545780518252602082019150602081019050602083039250610e2f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166000191681526020019081526020016000206000610ea391906115ec565b7fe6e691835b821c75b07b5cb7ae7d383e85d0041e89871368ed5f41a67134482a816040518080602001828103825283818151815260200191508051906020019080838360005b83811015610f05578082015181840152602081019050610eea565b50505050905090810190601f168015610f325780820380516001836020036101000a031916815260200191505b509250505060405180910390a150565b610f4a611634565b60036000836040518082805190602001908083835b602083101515610f845780518252602082019150602081019050602083039250610f5f565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166000191681526020019081526020016000208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561105b5780601f106110305761010080835404028352916020019161105b565b820191906000526020600020905b81548152906001019060200180831161103e57829003601f168201915b50505050509050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156110c257600080fd5b8060016000846040518082805190602001908083835b6020831015156110fd57805182526020820191506020810190506020830392506110d8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f2a1a55d7966a6bb6e4f08dcd6fd098b939891c9f7528df549e9770667a8a02ba828260405180806020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828103825284818151815260200191508051906020019080838360005b838110156112135780820151818401526020810190506111f8565b50505050905090810190601f1680156112405780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156112ad57600080fd5b8060036000846040518082805190602001908083835b6020831015156112e857805182526020820191506020810190506020830392506112c3565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020908051906020019061133e929190611648565b507f410eddefb807d899bc8882a95951655391fe0a4d0c444cb6545a5761f3b4aaab8282604051808060200180602001838103835285818151815260200191508051906020019080838360005b838110156113a657808201518184015260208101905061138b565b50505050905090810190601f1680156113d35780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b8381101561140c5780820151818401526020810190506113f1565b50505050905090810190601f1680156114395780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15050565b60026020528060005260406000206000915090505481565b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156114f257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561152e57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b50805460018160011615610100020316600290046000825580601f106116125750611631565b601f01602090049060005260206000209081019061163091906116c8565b5b50565b602060405190810160405280600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061168957805160ff19168380011785556116b7565b828001600101855582156116b7579182015b828111156116b657825182559160200191906001019061169b565b5b5090506116c491906116c8565b5090565b6116ea91905b808211156116e65760008160009055506001016116ce565b5090565b905600a165627a7a72305820a51ec6afd6becd7b00c2558ecffb551320d640a25bc0ee1b6d907f2da7b975c90029","sourceMap":"190:1755:2:-;;;658:58;;;;;;;;509:10:5;501:5;;:18;;;;;;;;;;;;;;;;;;701:10:2;693:5;;:18;;;;;;;;;;;;;;;;;;190:1755;;;;;;","deployedSourceMap":"190:1755:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;888:136;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1028:113;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1299:128;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1431:104;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;314:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1145:150:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1699:132:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1835:108;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;720:164:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1539:156;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;272:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;225:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;834:169:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;888:136:2;654:5:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;959:9:2;:27;979:5;969:16;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;959:27:2;;;;;;;;;;;;;;;;;;952:34;;;;;;;;;;;992:27;1013:5;992:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;888:136:2;:::o;1028:113::-;1087:7;1109:9;:27;1129:5;1119:16;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1109:27:2;;;;;;;;;;;;;;;;;;;;;;;;;;;1102:34;;1028:113;;;:::o;1299:128::-;654:5:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;1367:7:2;:25;1385:5;1375:16;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1367:25:2;;;;;;;;;;;;;;;;;1360:32;;;1398:24;1416:5;1398:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1299:128:2;:::o;1431:104::-;1486:4;1505:7;:25;1523:5;1513:16;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1505:25:2;;;;;;;;;;;;;;;;;;1498:32;;1431:104;;;:::o;314:40::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1145:150::-;654:5:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;1246:7:2;1218;:25;1236:5;1226:16;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1218:25:2;;;;;;;;;;;;;;;;;:35;;;;1259:31;1275:5;1282:7;1259:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1145:150:2;;:::o;238:20:5:-;;;;;;;;;;;;;:::o;1699:132:2:-;654:5:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;1769:7:2;:25;1787:5;1777:16;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1769:25:2;;;;;;;;;;;;;;;;;;1762:32;;;;:::i;:::-;1800:26;1820:5;1800:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1699:132:2;:::o;1835:108::-;1892:6;;:::i;:::-;1913:7;:25;1931:5;1921:16;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1913:25:2;;;;;;;;;;;;;;;;;1906:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1835:108;;;:::o;720:164::-;654:5:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;830:8:2;800:9;:27;820:5;810:16;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;800:27:2;;;;;;;;;;;;;;;;;;:38;;;;;;;;;;;;;;;;;;844:35;863:5;870:8;844:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;720:164:2;;:::o;1539:156::-;654:5:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;1644:7:2;1616;:25;1634:5;1624:16;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1616:25:2;;;;;;;;;;;;;;;;;:35;;;;;;;;;;;;:::i;:::-;;1657:33;1675:5;1682:7;1657:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1539:156:2;;:::o;272:38::-;;;;;;;;;;;;;;;;;:::o;225:43::-;;;;;;;;;;;;;;;;;;;;;;:::o;834:169:5:-;654:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;930:1;910:22;;:8;:22;;;;902:31;;;;;;;;967:8;939:37;;960:5;;;;;;;;;;;939:37;;;;;;;;;;;;990:8;982:5;;:16;;;;;;;;;;;;;;;;;;834:169;:::o;190:1755:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o","source":"pragma solidity ^0.4.18;\n\nimport \"zeppelin-solidity/contracts/ownership/Ownable.sol\";\n\n/**\n * @dev the Registry contains settings and addresses of contracts for the Partii Ecosystem\n *\n **/\ncontract Registry is Ownable {\n\n mapping (bytes32=>address) public contracts;\n mapping (bytes32=>uint) public numbers;\n mapping (bytes32=>string) public strings;\n\n event LogRegisterAddress(string _name, address _address);\n event LogUnregisterAddress(string _name);\n event LogRegisterUint(string _name, uint _number);\n event LogUnregisterUint(string _name);\n event LogRegisterString(string _name, string _string);\n event LogUnregisterString(string _name);\n\n function Registry() public {\n owner = msg.sender;\n }\n\n function registerAddress(string _name, address _address) public onlyOwner {\n contracts[keccak256(_name)] = _address;\n LogRegisterAddress(_name, _address);\n }\n\n function unregisterAddress(string _name) public onlyOwner {\n delete contracts[keccak256(_name)];\n LogUnregisterAddress(_name);\n }\n\n function getContract(string _name) public constant returns(address) {\n return contracts[keccak256(_name)];\n }\n\n function registerUint(string _name, uint _number) public onlyOwner {\n numbers[keccak256(_name)] = _number;\n LogRegisterUint(_name, _number);\n }\n\n function unregisterUint(string _name) public onlyOwner {\n delete numbers[keccak256(_name)];\n LogUnregisterUint(_name);\n }\n\n function getUint(string _name) public constant returns(uint) {\n return numbers[keccak256(_name)];\n }\n\n function registerString(string _name, string _string) public onlyOwner {\n strings[keccak256(_name)] = _string;\n LogRegisterString(_name, _string);\n }\n\n function unregisterString(string _name) public onlyOwner {\n delete strings[keccak256(_name)];\n LogUnregisterString(_name);\n }\n\n function getString(string _name) public constant returns(string) {\n return strings[keccak256(_name)];\n }\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Registry.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Registry.sol","exportedSymbols":{"Registry":[487]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":264,"name":"PragmaDirective","src":"0:24:2"},{"attributes":{"SourceUnit":816,"absolutePath":"zeppelin-solidity/contracts/ownership/Ownable.sol","file":"zeppelin-solidity/contracts/ownership/Ownable.sol","scope":488,"symbolAliases":[null],"unitAlias":""},"id":265,"name":"ImportDirective","src":"26:59:2"},{"attributes":{"contractDependencies":[815],"contractKind":"contract","documentation":"@dev the Registry contains settings and addresses of contracts for the Partii Ecosystem\n *","fullyImplemented":true,"linearizedBaseContracts":[487,815],"name":"Registry","scope":488},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"Ownable","referencedDeclaration":815,"type":"contract Ownable"},"id":266,"name":"UserDefinedTypeName","src":"211:7:2"}],"id":267,"name":"InheritanceSpecifier","src":"211:7:2"},{"attributes":{"constant":false,"name":"contracts","scope":487,"stateVariable":true,"storageLocation":"default","type":"mapping(bytes32 => address)","value":null,"visibility":"public"},"children":[{"attributes":{"type":"mapping(bytes32 => address)"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":268,"name":"ElementaryTypeName","src":"234:7:2"},{"attributes":{"name":"address","type":"address"},"id":269,"name":"ElementaryTypeName","src":"243:7:2"}],"id":270,"name":"Mapping","src":"225:26:2"}],"id":271,"name":"VariableDeclaration","src":"225:43:2"},{"attributes":{"constant":false,"name":"numbers","scope":487,"stateVariable":true,"storageLocation":"default","type":"mapping(bytes32 => uint256)","value":null,"visibility":"public"},"children":[{"attributes":{"type":"mapping(bytes32 => uint256)"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":272,"name":"ElementaryTypeName","src":"281:7:2"},{"attributes":{"name":"uint","type":"uint256"},"id":273,"name":"ElementaryTypeName","src":"290:4:2"}],"id":274,"name":"Mapping","src":"272:23:2"}],"id":275,"name":"VariableDeclaration","src":"272:38:2"},{"attributes":{"constant":false,"name":"strings","scope":487,"stateVariable":true,"storageLocation":"default","type":"mapping(bytes32 => string storage ref)","value":null,"visibility":"public"},"children":[{"attributes":{"type":"mapping(bytes32 => string storage ref)"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":276,"name":"ElementaryTypeName","src":"323:7:2"},{"attributes":{"name":"string","type":"string storage pointer"},"id":277,"name":"ElementaryTypeName","src":"332:6:2"}],"id":278,"name":"Mapping","src":"314:25:2"}],"id":279,"name":"VariableDeclaration","src":"314:40:2"},{"attributes":{"anonymous":false,"name":"LogRegisterAddress"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_name","scope":285,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":280,"name":"ElementaryTypeName","src":"384:6:2"}],"id":281,"name":"VariableDeclaration","src":"384:12:2"},{"attributes":{"constant":false,"indexed":false,"name":"_address","scope":285,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":282,"name":"ElementaryTypeName","src":"398:7:2"}],"id":283,"name":"VariableDeclaration","src":"398:16:2"}],"id":284,"name":"ParameterList","src":"383:32:2"}],"id":285,"name":"EventDefinition","src":"359:57:2"},{"attributes":{"anonymous":false,"name":"LogUnregisterAddress"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_name","scope":289,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":286,"name":"ElementaryTypeName","src":"446:6:2"}],"id":287,"name":"VariableDeclaration","src":"446:12:2"}],"id":288,"name":"ParameterList","src":"445:14:2"}],"id":289,"name":"EventDefinition","src":"419:41:2"},{"attributes":{"anonymous":false,"name":"LogRegisterUint"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_name","scope":295,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":290,"name":"ElementaryTypeName","src":"485:6:2"}],"id":291,"name":"VariableDeclaration","src":"485:12:2"},{"attributes":{"constant":false,"indexed":false,"name":"_number","scope":295,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":292,"name":"ElementaryTypeName","src":"499:4:2"}],"id":293,"name":"VariableDeclaration","src":"499:12:2"}],"id":294,"name":"ParameterList","src":"484:28:2"}],"id":295,"name":"EventDefinition","src":"463:50:2"},{"attributes":{"anonymous":false,"name":"LogUnregisterUint"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_name","scope":299,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":296,"name":"ElementaryTypeName","src":"540:6:2"}],"id":297,"name":"VariableDeclaration","src":"540:12:2"}],"id":298,"name":"ParameterList","src":"539:14:2"}],"id":299,"name":"EventDefinition","src":"516:38:2"},{"attributes":{"anonymous":false,"name":"LogRegisterString"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_name","scope":305,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":300,"name":"ElementaryTypeName","src":"581:6:2"}],"id":301,"name":"VariableDeclaration","src":"581:12:2"},{"attributes":{"constant":false,"indexed":false,"name":"_string","scope":305,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":302,"name":"ElementaryTypeName","src":"595:6:2"}],"id":303,"name":"VariableDeclaration","src":"595:14:2"}],"id":304,"name":"ParameterList","src":"580:30:2"}],"id":305,"name":"EventDefinition","src":"557:54:2"},{"attributes":{"anonymous":false,"name":"LogUnregisterString"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_name","scope":309,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":306,"name":"ElementaryTypeName","src":"640:6:2"}],"id":307,"name":"VariableDeclaration","src":"640:12:2"}],"id":308,"name":"ParameterList","src":"639:14:2"}],"id":309,"name":"EventDefinition","src":"614:40:2"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"Registry","payable":false,"scope":487,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":310,"name":"ParameterList","src":"675:2:2"},{"attributes":{"parameters":[null]},"children":[],"id":311,"name":"ParameterList","src":"685:0:2"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":763,"type":"address","value":"owner"},"id":312,"name":"Identifier","src":"693:5:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":313,"name":"Identifier","src":"701:3:2"}],"id":314,"name":"MemberAccess","src":"701:10:2"}],"id":315,"name":"Assignment","src":"693:18:2"}],"id":316,"name":"ExpressionStatement","src":"693:18:2"}],"id":317,"name":"Block","src":"685:31:2"}],"id":318,"name":"FunctionDefinition","src":"658:58:2"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"registerAddress","payable":false,"scope":487,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_name","scope":341,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":319,"name":"ElementaryTypeName","src":"745:6:2"}],"id":320,"name":"VariableDeclaration","src":"745:12:2"},{"attributes":{"constant":false,"name":"_address","scope":341,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":321,"name":"ElementaryTypeName","src":"759:7:2"}],"id":322,"name":"VariableDeclaration","src":"759:16:2"}],"id":323,"name":"ParameterList","src":"744:32:2"},{"attributes":{"parameters":[null]},"children":[],"id":326,"name":"ParameterList","src":"794:0:2"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":789,"type":"modifier ()","value":"onlyOwner"},"id":324,"name":"Identifier","src":"784:9:2"}],"id":325,"name":"ModifierInvocation","src":"784:9:2"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":271,"type":"mapping(bytes32 => address)","value":"contracts"},"id":327,"name":"Identifier","src":"800:9:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":328,"name":"Identifier","src":"810:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":320,"type":"string memory","value":"_name"},"id":329,"name":"Identifier","src":"820:5:2"}],"id":330,"name":"FunctionCall","src":"810:16:2"}],"id":331,"name":"IndexAccess","src":"800:27:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":322,"type":"address","value":"_address"},"id":332,"name":"Identifier","src":"830:8:2"}],"id":333,"name":"Assignment","src":"800:38:2"}],"id":334,"name":"ExpressionStatement","src":"800:38:2"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":285,"type":"function (string memory,address)","value":"LogRegisterAddress"},"id":335,"name":"Identifier","src":"844:18:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":320,"type":"string memory","value":"_name"},"id":336,"name":"Identifier","src":"863:5:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":322,"type":"address","value":"_address"},"id":337,"name":"Identifier","src":"870:8:2"}],"id":338,"name":"FunctionCall","src":"844:35:2"}],"id":339,"name":"ExpressionStatement","src":"844:35:2"}],"id":340,"name":"Block","src":"794:90:2"}],"id":341,"name":"FunctionDefinition","src":"720:164:2"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"unregisterAddress","payable":false,"scope":487,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_name","scope":360,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":342,"name":"ElementaryTypeName","src":"915:6:2"}],"id":343,"name":"VariableDeclaration","src":"915:12:2"}],"id":344,"name":"ParameterList","src":"914:14:2"},{"attributes":{"parameters":[null]},"children":[],"id":347,"name":"ParameterList","src":"946:0:2"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":789,"type":"modifier ()","value":"onlyOwner"},"id":345,"name":"Identifier","src":"936:9:2"}],"id":346,"name":"ModifierInvocation","src":"936:9:2"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"delete","prefix":true,"type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":271,"type":"mapping(bytes32 => address)","value":"contracts"},"id":348,"name":"Identifier","src":"959:9:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":349,"name":"Identifier","src":"969:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":343,"type":"string memory","value":"_name"},"id":350,"name":"Identifier","src":"979:5:2"}],"id":351,"name":"FunctionCall","src":"969:16:2"}],"id":352,"name":"IndexAccess","src":"959:27:2"}],"id":353,"name":"UnaryOperation","src":"952:34:2"}],"id":354,"name":"ExpressionStatement","src":"952:34:2"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":289,"type":"function (string memory)","value":"LogUnregisterAddress"},"id":355,"name":"Identifier","src":"992:20:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":343,"type":"string memory","value":"_name"},"id":356,"name":"Identifier","src":"1013:5:2"}],"id":357,"name":"FunctionCall","src":"992:27:2"}],"id":358,"name":"ExpressionStatement","src":"992:27:2"}],"id":359,"name":"Block","src":"946:78:2"}],"id":360,"name":"FunctionDefinition","src":"888:136:2"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getContract","payable":false,"scope":487,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_name","scope":374,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":361,"name":"ElementaryTypeName","src":"1049:6:2"}],"id":362,"name":"VariableDeclaration","src":"1049:12:2"}],"id":363,"name":"ParameterList","src":"1048:14:2"},{"children":[{"attributes":{"constant":false,"name":"","scope":374,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":364,"name":"ElementaryTypeName","src":"1087:7:2"}],"id":365,"name":"VariableDeclaration","src":"1087:7:2"}],"id":366,"name":"ParameterList","src":"1086:9:2"},{"children":[{"attributes":{"functionReturnParameters":366},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":271,"type":"mapping(bytes32 => address)","value":"contracts"},"id":367,"name":"Identifier","src":"1109:9:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":368,"name":"Identifier","src":"1119:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":362,"type":"string memory","value":"_name"},"id":369,"name":"Identifier","src":"1129:5:2"}],"id":370,"name":"FunctionCall","src":"1119:16:2"}],"id":371,"name":"IndexAccess","src":"1109:27:2"}],"id":372,"name":"Return","src":"1102:34:2"}],"id":373,"name":"Block","src":"1096:45:2"}],"id":374,"name":"FunctionDefinition","src":"1028:113:2"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"registerUint","payable":false,"scope":487,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_name","scope":397,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":375,"name":"ElementaryTypeName","src":"1167:6:2"}],"id":376,"name":"VariableDeclaration","src":"1167:12:2"},{"attributes":{"constant":false,"name":"_number","scope":397,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":377,"name":"ElementaryTypeName","src":"1181:4:2"}],"id":378,"name":"VariableDeclaration","src":"1181:12:2"}],"id":379,"name":"ParameterList","src":"1166:28:2"},{"attributes":{"parameters":[null]},"children":[],"id":382,"name":"ParameterList","src":"1212:0:2"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":789,"type":"modifier ()","value":"onlyOwner"},"id":380,"name":"Identifier","src":"1202:9:2"}],"id":381,"name":"ModifierInvocation","src":"1202:9:2"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":275,"type":"mapping(bytes32 => uint256)","value":"numbers"},"id":383,"name":"Identifier","src":"1218:7:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":384,"name":"Identifier","src":"1226:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":376,"type":"string memory","value":"_name"},"id":385,"name":"Identifier","src":"1236:5:2"}],"id":386,"name":"FunctionCall","src":"1226:16:2"}],"id":387,"name":"IndexAccess","src":"1218:25:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":378,"type":"uint256","value":"_number"},"id":388,"name":"Identifier","src":"1246:7:2"}],"id":389,"name":"Assignment","src":"1218:35:2"}],"id":390,"name":"ExpressionStatement","src":"1218:35:2"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":295,"type":"function (string memory,uint256)","value":"LogRegisterUint"},"id":391,"name":"Identifier","src":"1259:15:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":376,"type":"string memory","value":"_name"},"id":392,"name":"Identifier","src":"1275:5:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":378,"type":"uint256","value":"_number"},"id":393,"name":"Identifier","src":"1282:7:2"}],"id":394,"name":"FunctionCall","src":"1259:31:2"}],"id":395,"name":"ExpressionStatement","src":"1259:31:2"}],"id":396,"name":"Block","src":"1212:83:2"}],"id":397,"name":"FunctionDefinition","src":"1145:150:2"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"unregisterUint","payable":false,"scope":487,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_name","scope":416,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":398,"name":"ElementaryTypeName","src":"1323:6:2"}],"id":399,"name":"VariableDeclaration","src":"1323:12:2"}],"id":400,"name":"ParameterList","src":"1322:14:2"},{"attributes":{"parameters":[null]},"children":[],"id":403,"name":"ParameterList","src":"1354:0:2"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":789,"type":"modifier ()","value":"onlyOwner"},"id":401,"name":"Identifier","src":"1344:9:2"}],"id":402,"name":"ModifierInvocation","src":"1344:9:2"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"delete","prefix":true,"type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":275,"type":"mapping(bytes32 => uint256)","value":"numbers"},"id":404,"name":"Identifier","src":"1367:7:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":405,"name":"Identifier","src":"1375:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":399,"type":"string memory","value":"_name"},"id":406,"name":"Identifier","src":"1385:5:2"}],"id":407,"name":"FunctionCall","src":"1375:16:2"}],"id":408,"name":"IndexAccess","src":"1367:25:2"}],"id":409,"name":"UnaryOperation","src":"1360:32:2"}],"id":410,"name":"ExpressionStatement","src":"1360:32:2"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":299,"type":"function (string memory)","value":"LogUnregisterUint"},"id":411,"name":"Identifier","src":"1398:17:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":399,"type":"string memory","value":"_name"},"id":412,"name":"Identifier","src":"1416:5:2"}],"id":413,"name":"FunctionCall","src":"1398:24:2"}],"id":414,"name":"ExpressionStatement","src":"1398:24:2"}],"id":415,"name":"Block","src":"1354:73:2"}],"id":416,"name":"FunctionDefinition","src":"1299:128:2"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getUint","payable":false,"scope":487,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_name","scope":430,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":417,"name":"ElementaryTypeName","src":"1448:6:2"}],"id":418,"name":"VariableDeclaration","src":"1448:12:2"}],"id":419,"name":"ParameterList","src":"1447:14:2"},{"children":[{"attributes":{"constant":false,"name":"","scope":430,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":420,"name":"ElementaryTypeName","src":"1486:4:2"}],"id":421,"name":"VariableDeclaration","src":"1486:4:2"}],"id":422,"name":"ParameterList","src":"1485:6:2"},{"children":[{"attributes":{"functionReturnParameters":422},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":275,"type":"mapping(bytes32 => uint256)","value":"numbers"},"id":423,"name":"Identifier","src":"1505:7:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":424,"name":"Identifier","src":"1513:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":418,"type":"string memory","value":"_name"},"id":425,"name":"Identifier","src":"1523:5:2"}],"id":426,"name":"FunctionCall","src":"1513:16:2"}],"id":427,"name":"IndexAccess","src":"1505:25:2"}],"id":428,"name":"Return","src":"1498:32:2"}],"id":429,"name":"Block","src":"1492:43:2"}],"id":430,"name":"FunctionDefinition","src":"1431:104:2"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"registerString","payable":false,"scope":487,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_name","scope":453,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":431,"name":"ElementaryTypeName","src":"1563:6:2"}],"id":432,"name":"VariableDeclaration","src":"1563:12:2"},{"attributes":{"constant":false,"name":"_string","scope":453,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":433,"name":"ElementaryTypeName","src":"1577:6:2"}],"id":434,"name":"VariableDeclaration","src":"1577:14:2"}],"id":435,"name":"ParameterList","src":"1562:30:2"},{"attributes":{"parameters":[null]},"children":[],"id":438,"name":"ParameterList","src":"1610:0:2"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":789,"type":"modifier ()","value":"onlyOwner"},"id":436,"name":"Identifier","src":"1600:9:2"}],"id":437,"name":"ModifierInvocation","src":"1600:9:2"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":279,"type":"mapping(bytes32 => string storage ref)","value":"strings"},"id":439,"name":"Identifier","src":"1616:7:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":440,"name":"Identifier","src":"1624:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":432,"type":"string memory","value":"_name"},"id":441,"name":"Identifier","src":"1634:5:2"}],"id":442,"name":"FunctionCall","src":"1624:16:2"}],"id":443,"name":"IndexAccess","src":"1616:25:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":434,"type":"string memory","value":"_string"},"id":444,"name":"Identifier","src":"1644:7:2"}],"id":445,"name":"Assignment","src":"1616:35:2"}],"id":446,"name":"ExpressionStatement","src":"1616:35:2"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":305,"type":"function (string memory,string memory)","value":"LogRegisterString"},"id":447,"name":"Identifier","src":"1657:17:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":432,"type":"string memory","value":"_name"},"id":448,"name":"Identifier","src":"1675:5:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":434,"type":"string memory","value":"_string"},"id":449,"name":"Identifier","src":"1682:7:2"}],"id":450,"name":"FunctionCall","src":"1657:33:2"}],"id":451,"name":"ExpressionStatement","src":"1657:33:2"}],"id":452,"name":"Block","src":"1610:85:2"}],"id":453,"name":"FunctionDefinition","src":"1539:156:2"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"unregisterString","payable":false,"scope":487,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_name","scope":472,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":454,"name":"ElementaryTypeName","src":"1725:6:2"}],"id":455,"name":"VariableDeclaration","src":"1725:12:2"}],"id":456,"name":"ParameterList","src":"1724:14:2"},{"attributes":{"parameters":[null]},"children":[],"id":459,"name":"ParameterList","src":"1756:0:2"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":789,"type":"modifier ()","value":"onlyOwner"},"id":457,"name":"Identifier","src":"1746:9:2"}],"id":458,"name":"ModifierInvocation","src":"1746:9:2"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"delete","prefix":true,"type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":279,"type":"mapping(bytes32 => string storage ref)","value":"strings"},"id":460,"name":"Identifier","src":"1769:7:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":461,"name":"Identifier","src":"1777:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":455,"type":"string memory","value":"_name"},"id":462,"name":"Identifier","src":"1787:5:2"}],"id":463,"name":"FunctionCall","src":"1777:16:2"}],"id":464,"name":"IndexAccess","src":"1769:25:2"}],"id":465,"name":"UnaryOperation","src":"1762:32:2"}],"id":466,"name":"ExpressionStatement","src":"1762:32:2"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":309,"type":"function (string memory)","value":"LogUnregisterString"},"id":467,"name":"Identifier","src":"1800:19:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":455,"type":"string memory","value":"_name"},"id":468,"name":"Identifier","src":"1820:5:2"}],"id":469,"name":"FunctionCall","src":"1800:26:2"}],"id":470,"name":"ExpressionStatement","src":"1800:26:2"}],"id":471,"name":"Block","src":"1756:75:2"}],"id":472,"name":"FunctionDefinition","src":"1699:132:2"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getString","payable":false,"scope":487,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_name","scope":486,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":473,"name":"ElementaryTypeName","src":"1854:6:2"}],"id":474,"name":"VariableDeclaration","src":"1854:12:2"}],"id":475,"name":"ParameterList","src":"1853:14:2"},{"children":[{"attributes":{"constant":false,"name":"","scope":486,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":476,"name":"ElementaryTypeName","src":"1892:6:2"}],"id":477,"name":"VariableDeclaration","src":"1892:6:2"}],"id":478,"name":"ParameterList","src":"1891:8:2"},{"children":[{"attributes":{"functionReturnParameters":478},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":279,"type":"mapping(bytes32 => string storage ref)","value":"strings"},"id":479,"name":"Identifier","src":"1913:7:2"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":480,"name":"Identifier","src":"1921:9:2"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":474,"type":"string memory","value":"_name"},"id":481,"name":"Identifier","src":"1931:5:2"}],"id":482,"name":"FunctionCall","src":"1921:16:2"}],"id":483,"name":"IndexAccess","src":"1913:25:2"}],"id":484,"name":"Return","src":"1906:32:2"}],"id":485,"name":"Block","src":"1900:43:2"}],"id":486,"name":"FunctionDefinition","src":"1835:108:2"}],"id":487,"name":"ContractDefinition","src":"190:1755:2"}],"id":488,"name":"SourceUnit","src":"0:1946:2"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T14:06:20.134Z"} +module.exports = {"contractName":"Registry","abi":[{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"strings","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"numbers","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"contracts","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_name","type":"string"},{"indexed":false,"name":"_address","type":"address"}],"name":"LogRegisterAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_name","type":"string"}],"name":"LogUnregisterAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_name","type":"string"},{"indexed":false,"name":"_number","type":"uint256"}],"name":"LogRegisterUint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_name","type":"string"}],"name":"LogUnregisterUint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_name","type":"string"},{"indexed":false,"name":"_string","type":"string"}],"name":"LogRegisterString","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_name","type":"string"}],"name":"LogUnregisterString","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_address","type":"address"}],"name":"registerAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"unregisterAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"getContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_number","type":"uint256"}],"name":"registerUint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"unregisterUint","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"getUint","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"},{"name":"_string","type":"string"}],"name":"registerString","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"unregisterString","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_name","type":"string"}],"name":"getString","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061179a806100a06000396000f3006080604052600436106100d0576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806326404c37146100d5578063358177731461013e5780633708a96b146101e7578063498bff00146102505780636059936e146102cd57806375b45351146103775780638da5cb5b146103ea57806397d7e807146104415780639c981fcb146104aa578063b13f5f191461058c578063bd93528714610615578063c724982b146106c4578063ec56a37314610709578063f2fde38b1461077a575b600080fd5b3480156100e157600080fd5b5061013c600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506107bd565b005b34801561014a57600080fd5b506101a5600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610957565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101f357600080fd5b5061024e600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506109fe565b005b34801561025c57600080fd5b506102b7600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610b79565b6040518082815260200191505060405180910390f35b3480156102d957600080fd5b506102fc6004803603810190808035600019169060200190929190505050610c00565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561033c578082015181840152602081019050610321565b50505050905090810190601f1680156103695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561038357600080fd5b506103e8600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929080359060200190929190505050610cb0565b005b3480156103f657600080fd5b506103ff610e35565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561044d57600080fd5b506104a8600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e5a565b005b3480156104b657600080fd5b50610511600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610fdd565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610551578082015181840152602081019050610536565b50505050905090810190601f16801561057e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561059857600080fd5b50610613600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110fc565b005b34801561062157600080fd5b506106c2600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506112e7565b005b3480156106d057600080fd5b506106f360048036038101908080356000191690602001909291905050506114e1565b6040518082815260200191505060405180910390f35b34801561071557600080fd5b5061073860048036038101908080356000191690602001909291905050506114f9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561078657600080fd5b506107bb600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061152c565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561081857600080fd5b60016000826040518082805190602001908083835b602083101515610852578051825260208201915060208101905060208303925061082d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690557fa76e7b6e2c26769c731f99243d786a5fa6f8d70201a88db135d7c0bb21d1afc3816040518080602001828103825283818151815260200191508051906020019080838360005b8381101561091a5780820151818401526020810190506108ff565b50505050905090810190601f1680156109475780820380516001836020036101000a031916815260200191505b509250505060405180910390a150565b600060016000836040518082805190602001908083835b602083101515610993578051825260208201915060208101905060208303925061096e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a5957600080fd5b60026000826040518082805190602001908083835b602083101515610a935780518252602082019150602081019050602083039250610a6e565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020600090557fa4de87e6562b1cde60454f2969e0775b4f27f1db0047f106f63c00f4e19a596a816040518080602001828103825283818151815260200191508051906020019080838360005b83811015610b3c578082015181840152602081019050610b21565b50505050905090810190601f168015610b695780820380516001836020036101000a031916815260200191505b509250505060405180910390a150565b600060026000836040518082805190602001908083835b602083101515610bb55780518252602082019150602081019050602083039250610b90565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020549050919050565b60036020528060005260406000206000915090508054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610ca85780601f10610c7d57610100808354040283529160200191610ca8565b820191906000526020600020905b815481529060010190602001808311610c8b57829003601f168201915b505050505081565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d0b57600080fd5b8060026000846040518082805190602001908083835b602083101515610d465780518252602082019150602081019050602083039250610d21565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020819055507f8c8f8f23d981717abe1d63307dea4737664c320ea49169cf2357c32d3eb0459882826040518080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015610df6578082015181840152602081019050610ddb565b50505050905090810190601f168015610e235780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610eb557600080fd5b60036000826040518082805190602001908083835b602083101515610eef5780518252602082019150602081019050602083039250610eca565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166000191681526020019081526020016000206000610f3e9190611681565b7fe6e691835b821c75b07b5cb7ae7d383e85d0041e89871368ed5f41a67134482a816040518080602001828103825283818151815260200191508051906020019080838360005b83811015610fa0578082015181840152602081019050610f85565b50505050905090810190601f168015610fcd5780820380516001836020036101000a031916815260200191505b509250505060405180910390a150565b606060036000836040518082805190602001908083835b6020831015156110195780518252602082019150602081019050602083039250610ff4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166000191681526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156110f05780601f106110c5576101008083540402835291602001916110f0565b820191906000526020600020905b8154815290600101906020018083116110d357829003601f168201915b50505050509050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561115757600080fd5b8060016000846040518082805190602001908083835b602083101515611192578051825260208201915060208101905060208303925061116d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f2a1a55d7966a6bb6e4f08dcd6fd098b939891c9f7528df549e9770667a8a02ba828260405180806020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828103825284818151815260200191508051906020019080838360005b838110156112a857808201518184015260208101905061128d565b50505050905090810190601f1680156112d55780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561134257600080fd5b8060036000846040518082805190602001908083835b60208310151561137d5780518252602082019150602081019050602083039250611358565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002090805190602001906113d39291906116c9565b507f410eddefb807d899bc8882a95951655391fe0a4d0c444cb6545a5761f3b4aaab8282604051808060200180602001838103835285818151815260200191508051906020019080838360005b8381101561143b578082015181840152602081019050611420565b50505050905090810190601f1680156114685780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b838110156114a1578082015181840152602081019050611486565b50505050905090810190601f1680156114ce5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15050565b60026020528060005260406000206000915090505481565b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561158757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156115c357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b50805460018160011615610100020316600290046000825580601f106116a757506116c6565b601f0160209004906000526020600020908101906116c59190611749565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061170a57805160ff1916838001178555611738565b82800160010185558215611738579182015b8281111561173757825182559160200191906001019061171c565b5b5090506117459190611749565b5090565b61176b91905b8082111561176757600081600090555060010161174f565b5090565b905600a165627a7a72305820d8626c9a7621e3425bea3214d0cb47417c4c580b4cdeb0646242777c16fa44760029","deployedBytecode":"0x6080604052600436106100d0576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806326404c37146100d5578063358177731461013e5780633708a96b146101e7578063498bff00146102505780636059936e146102cd57806375b45351146103775780638da5cb5b146103ea57806397d7e807146104415780639c981fcb146104aa578063b13f5f191461058c578063bd93528714610615578063c724982b146106c4578063ec56a37314610709578063f2fde38b1461077a575b600080fd5b3480156100e157600080fd5b5061013c600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506107bd565b005b34801561014a57600080fd5b506101a5600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610957565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101f357600080fd5b5061024e600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506109fe565b005b34801561025c57600080fd5b506102b7600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610b79565b6040518082815260200191505060405180910390f35b3480156102d957600080fd5b506102fc6004803603810190808035600019169060200190929190505050610c00565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561033c578082015181840152602081019050610321565b50505050905090810190601f1680156103695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561038357600080fd5b506103e8600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929080359060200190929190505050610cb0565b005b3480156103f657600080fd5b506103ff610e35565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561044d57600080fd5b506104a8600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e5a565b005b3480156104b657600080fd5b50610511600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610fdd565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610551578082015181840152602081019050610536565b50505050905090810190601f16801561057e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561059857600080fd5b50610613600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506110fc565b005b34801561062157600080fd5b506106c2600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506112e7565b005b3480156106d057600080fd5b506106f360048036038101908080356000191690602001909291905050506114e1565b6040518082815260200191505060405180910390f35b34801561071557600080fd5b5061073860048036038101908080356000191690602001909291905050506114f9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561078657600080fd5b506107bb600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061152c565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561081857600080fd5b60016000826040518082805190602001908083835b602083101515610852578051825260208201915060208101905060208303925061082d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690557fa76e7b6e2c26769c731f99243d786a5fa6f8d70201a88db135d7c0bb21d1afc3816040518080602001828103825283818151815260200191508051906020019080838360005b8381101561091a5780820151818401526020810190506108ff565b50505050905090810190601f1680156109475780820380516001836020036101000a031916815260200191505b509250505060405180910390a150565b600060016000836040518082805190602001908083835b602083101515610993578051825260208201915060208101905060208303925061096e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610a5957600080fd5b60026000826040518082805190602001908083835b602083101515610a935780518252602082019150602081019050602083039250610a6e565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020600090557fa4de87e6562b1cde60454f2969e0775b4f27f1db0047f106f63c00f4e19a596a816040518080602001828103825283818151815260200191508051906020019080838360005b83811015610b3c578082015181840152602081019050610b21565b50505050905090810190601f168015610b695780820380516001836020036101000a031916815260200191505b509250505060405180910390a150565b600060026000836040518082805190602001908083835b602083101515610bb55780518252602082019150602081019050602083039250610b90565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020549050919050565b60036020528060005260406000206000915090508054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610ca85780601f10610c7d57610100808354040283529160200191610ca8565b820191906000526020600020905b815481529060010190602001808311610c8b57829003601f168201915b505050505081565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d0b57600080fd5b8060026000846040518082805190602001908083835b602083101515610d465780518252602082019150602081019050602083039250610d21565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020819055507f8c8f8f23d981717abe1d63307dea4737664c320ea49169cf2357c32d3eb0459882826040518080602001838152602001828103825284818151815260200191508051906020019080838360005b83811015610df6578082015181840152602081019050610ddb565b50505050905090810190601f168015610e235780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610eb557600080fd5b60036000826040518082805190602001908083835b602083101515610eef5780518252602082019150602081019050602083039250610eca565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166000191681526020019081526020016000206000610f3e9190611681565b7fe6e691835b821c75b07b5cb7ae7d383e85d0041e89871368ed5f41a67134482a816040518080602001828103825283818151815260200191508051906020019080838360005b83811015610fa0578082015181840152602081019050610f85565b50505050905090810190601f168015610fcd5780820380516001836020036101000a031916815260200191505b509250505060405180910390a150565b606060036000836040518082805190602001908083835b6020831015156110195780518252602082019150602081019050602083039250610ff4565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166000191681526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156110f05780601f106110c5576101008083540402835291602001916110f0565b820191906000526020600020905b8154815290600101906020018083116110d357829003601f168201915b50505050509050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561115757600080fd5b8060016000846040518082805190602001908083835b602083101515611192578051825260208201915060208101905060208303925061116d565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f2a1a55d7966a6bb6e4f08dcd6fd098b939891c9f7528df549e9770667a8a02ba828260405180806020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828103825284818151815260200191508051906020019080838360005b838110156112a857808201518184015260208101905061128d565b50505050905090810190601f1680156112d55780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561134257600080fd5b8060036000846040518082805190602001908083835b60208310151561137d5780518252602082019150602081019050602083039250611358565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002090805190602001906113d39291906116c9565b507f410eddefb807d899bc8882a95951655391fe0a4d0c444cb6545a5761f3b4aaab8282604051808060200180602001838103835285818151815260200191508051906020019080838360005b8381101561143b578082015181840152602081019050611420565b50505050905090810190601f1680156114685780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b838110156114a1578082015181840152602081019050611486565b50505050905090810190601f1680156114ce5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a15050565b60026020528060005260406000206000915090505481565b60016020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561158757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156115c357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b50805460018160011615610100020316600290046000825580601f106116a757506116c6565b601f0160209004906000526020600020908101906116c59190611749565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061170a57805160ff1916838001178555611738565b82800160010185558215611738579182015b8281111561173757825182559160200191906001019061171c565b5b5090506117459190611749565b5090565b61176b91905b8082111561176757600081600090555060010161174f565b5090565b905600a165627a7a72305820d8626c9a7621e3425bea3214d0cb47417c4c580b4cdeb0646242777c16fa44760029"} /***/ }), /* 895 */ /***/ (function(module, exports) { -module.exports = {"contractName":"SafeMath","abi":[],"bytecode":"0x60606040523415600e57600080fd5b603580601b6000396000f3006060604052600080fd00a165627a7a72305820a3f7032725e35c6fe3b354b9e17f4886dc1137d4ad0ce096013a1e65c2794baa0029","deployedBytecode":"0x6060604052600080fd00a165627a7a72305820a3f7032725e35c6fe3b354b9e17f4886dc1137d4ad0ce096013a1e65c2794baa0029","sourceMap":"117:712:4:-;;;;;;;;;;;;;;;;;","deployedSourceMap":"117:712:4:-;;;;;","source":"pragma solidity ^0.4.18;\n\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that throw on error\n */\nlibrary SafeMath {\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n if (a == 0) {\n return 0;\n }\n uint256 c = a * b;\n assert(c / a == b);\n return c;\n }\n\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n // assert(b > 0); // Solidity automatically throws when dividing by 0\n uint256 c = a / b;\n // assert(a == b * c + a % b); // There is no case in which this doesn't hold\n return c;\n }\n\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n assert(b <= a);\n return a - b;\n }\n\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n assert(c >= a);\n return c;\n }\n}\n","sourcePath":"zeppelin-solidity/contracts/math/SafeMath.sol","ast":{"attributes":{"absolutePath":"zeppelin-solidity/contracts/math/SafeMath.sol","exportedSymbols":{"SafeMath":[759]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":663,"name":"PragmaDirective","src":"0:24:4"},{"attributes":{"baseContracts":[null],"contractDependencies":[null],"contractKind":"library","documentation":"@title SafeMath\n@dev Math operations with safety checks that throw on error","fullyImplemented":true,"linearizedBaseContracts":[759],"name":"SafeMath","scope":760},"children":[{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"mul","payable":false,"scope":759,"stateMutability":"pure","superFunction":null,"visibility":"internal"},"children":[{"children":[{"attributes":{"constant":false,"name":"a","scope":696,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":664,"name":"ElementaryTypeName","src":"151:7:4"}],"id":665,"name":"VariableDeclaration","src":"151:9:4"},{"attributes":{"constant":false,"name":"b","scope":696,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":666,"name":"ElementaryTypeName","src":"162:7:4"}],"id":667,"name":"VariableDeclaration","src":"162:9:4"}],"id":668,"name":"ParameterList","src":"150:22:4"},{"children":[{"attributes":{"constant":false,"name":"","scope":696,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":669,"name":"ElementaryTypeName","src":"196:7:4"}],"id":670,"name":"VariableDeclaration","src":"196:7:4"}],"id":671,"name":"ParameterList","src":"195:9:4"},{"children":[{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":665,"type":"uint256","value":"a"},"id":672,"name":"Identifier","src":"215:1:4"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":673,"name":"Literal","src":"220:1:4"}],"id":674,"name":"BinaryOperation","src":"215:6:4"},{"children":[{"attributes":{"functionReturnParameters":671},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":675,"name":"Literal","src":"238:1:4"}],"id":676,"name":"Return","src":"231:8:4"}],"id":677,"name":"Block","src":"223:23:4"}],"id":678,"name":"IfStatement","src":"211:35:4"},{"attributes":{"assignments":[680]},"children":[{"attributes":{"constant":false,"name":"c","scope":696,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":679,"name":"ElementaryTypeName","src":"251:7:4"}],"id":680,"name":"VariableDeclaration","src":"251:9:4"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"*","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":665,"type":"uint256","value":"a"},"id":681,"name":"Identifier","src":"263:1:4"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":667,"type":"uint256","value":"b"},"id":682,"name":"Identifier","src":"267:1:4"}],"id":683,"name":"BinaryOperation","src":"263:5:4"}],"id":684,"name":"VariableDeclarationStatement","src":"251:17:4"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":1222,"type":"function (bool) pure","value":"assert"},"id":685,"name":"Identifier","src":"274:6:4"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"/","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":680,"type":"uint256","value":"c"},"id":686,"name":"Identifier","src":"281:1:4"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":665,"type":"uint256","value":"a"},"id":687,"name":"Identifier","src":"285:1:4"}],"id":688,"name":"BinaryOperation","src":"281:5:4"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":667,"type":"uint256","value":"b"},"id":689,"name":"Identifier","src":"290:1:4"}],"id":690,"name":"BinaryOperation","src":"281:10:4"}],"id":691,"name":"FunctionCall","src":"274:18:4"}],"id":692,"name":"ExpressionStatement","src":"274:18:4"},{"attributes":{"functionReturnParameters":671},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":680,"type":"uint256","value":"c"},"id":693,"name":"Identifier","src":"305:1:4"}],"id":694,"name":"Return","src":"298:8:4"}],"id":695,"name":"Block","src":"205:106:4"}],"id":696,"name":"FunctionDefinition","src":"138:173:4"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"div","payable":false,"scope":759,"stateMutability":"pure","superFunction":null,"visibility":"internal"},"children":[{"children":[{"attributes":{"constant":false,"name":"a","scope":714,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":697,"name":"ElementaryTypeName","src":"328:7:4"}],"id":698,"name":"VariableDeclaration","src":"328:9:4"},{"attributes":{"constant":false,"name":"b","scope":714,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":699,"name":"ElementaryTypeName","src":"339:7:4"}],"id":700,"name":"VariableDeclaration","src":"339:9:4"}],"id":701,"name":"ParameterList","src":"327:22:4"},{"children":[{"attributes":{"constant":false,"name":"","scope":714,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":702,"name":"ElementaryTypeName","src":"373:7:4"}],"id":703,"name":"VariableDeclaration","src":"373:7:4"}],"id":704,"name":"ParameterList","src":"372:9:4"},{"children":[{"attributes":{"assignments":[706]},"children":[{"attributes":{"constant":false,"name":"c","scope":714,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":705,"name":"ElementaryTypeName","src":"462:7:4"}],"id":706,"name":"VariableDeclaration","src":"462:9:4"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"/","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":698,"type":"uint256","value":"a"},"id":707,"name":"Identifier","src":"474:1:4"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":700,"type":"uint256","value":"b"},"id":708,"name":"Identifier","src":"478:1:4"}],"id":709,"name":"BinaryOperation","src":"474:5:4"}],"id":710,"name":"VariableDeclarationStatement","src":"462:17:4"},{"attributes":{"functionReturnParameters":704},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":706,"type":"uint256","value":"c"},"id":711,"name":"Identifier","src":"574:1:4"}],"id":712,"name":"Return","src":"567:8:4"}],"id":713,"name":"Block","src":"382:198:4"}],"id":714,"name":"FunctionDefinition","src":"315:265:4"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"sub","payable":false,"scope":759,"stateMutability":"pure","superFunction":null,"visibility":"internal"},"children":[{"children":[{"attributes":{"constant":false,"name":"a","scope":734,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":715,"name":"ElementaryTypeName","src":"597:7:4"}],"id":716,"name":"VariableDeclaration","src":"597:9:4"},{"attributes":{"constant":false,"name":"b","scope":734,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":717,"name":"ElementaryTypeName","src":"608:7:4"}],"id":718,"name":"VariableDeclaration","src":"608:9:4"}],"id":719,"name":"ParameterList","src":"596:22:4"},{"children":[{"attributes":{"constant":false,"name":"","scope":734,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":720,"name":"ElementaryTypeName","src":"642:7:4"}],"id":721,"name":"VariableDeclaration","src":"642:7:4"}],"id":722,"name":"ParameterList","src":"641:9:4"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":1222,"type":"function (bool) pure","value":"assert"},"id":723,"name":"Identifier","src":"657:6:4"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":718,"type":"uint256","value":"b"},"id":724,"name":"Identifier","src":"664:1:4"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":716,"type":"uint256","value":"a"},"id":725,"name":"Identifier","src":"669:1:4"}],"id":726,"name":"BinaryOperation","src":"664:6:4"}],"id":727,"name":"FunctionCall","src":"657:14:4"}],"id":728,"name":"ExpressionStatement","src":"657:14:4"},{"attributes":{"functionReturnParameters":722},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"-","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":716,"type":"uint256","value":"a"},"id":729,"name":"Identifier","src":"684:1:4"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":718,"type":"uint256","value":"b"},"id":730,"name":"Identifier","src":"688:1:4"}],"id":731,"name":"BinaryOperation","src":"684:5:4"}],"id":732,"name":"Return","src":"677:12:4"}],"id":733,"name":"Block","src":"651:43:4"}],"id":734,"name":"FunctionDefinition","src":"584:110:4"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"add","payable":false,"scope":759,"stateMutability":"pure","superFunction":null,"visibility":"internal"},"children":[{"children":[{"attributes":{"constant":false,"name":"a","scope":758,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":735,"name":"ElementaryTypeName","src":"711:7:4"}],"id":736,"name":"VariableDeclaration","src":"711:9:4"},{"attributes":{"constant":false,"name":"b","scope":758,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":737,"name":"ElementaryTypeName","src":"722:7:4"}],"id":738,"name":"VariableDeclaration","src":"722:9:4"}],"id":739,"name":"ParameterList","src":"710:22:4"},{"children":[{"attributes":{"constant":false,"name":"","scope":758,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":740,"name":"ElementaryTypeName","src":"756:7:4"}],"id":741,"name":"VariableDeclaration","src":"756:7:4"}],"id":742,"name":"ParameterList","src":"755:9:4"},{"children":[{"attributes":{"assignments":[744]},"children":[{"attributes":{"constant":false,"name":"c","scope":758,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":743,"name":"ElementaryTypeName","src":"771:7:4"}],"id":744,"name":"VariableDeclaration","src":"771:9:4"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"+","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":736,"type":"uint256","value":"a"},"id":745,"name":"Identifier","src":"783:1:4"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":738,"type":"uint256","value":"b"},"id":746,"name":"Identifier","src":"787:1:4"}],"id":747,"name":"BinaryOperation","src":"783:5:4"}],"id":748,"name":"VariableDeclarationStatement","src":"771:17:4"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":1222,"type":"function (bool) pure","value":"assert"},"id":749,"name":"Identifier","src":"794:6:4"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":">=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":744,"type":"uint256","value":"c"},"id":750,"name":"Identifier","src":"801:1:4"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":736,"type":"uint256","value":"a"},"id":751,"name":"Identifier","src":"806:1:4"}],"id":752,"name":"BinaryOperation","src":"801:6:4"}],"id":753,"name":"FunctionCall","src":"794:14:4"}],"id":754,"name":"ExpressionStatement","src":"794:14:4"},{"attributes":{"functionReturnParameters":742},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":744,"type":"uint256","value":"c"},"id":755,"name":"Identifier","src":"821:1:4"}],"id":756,"name":"Return","src":"814:8:4"}],"id":757,"name":"Block","src":"765:62:4"}],"id":758,"name":"FunctionDefinition","src":"698:129:4"}],"id":759,"name":"ContractDefinition","src":"117:712:4"}],"id":760,"name":"SourceUnit","src":"0:830:4"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T14:06:20.131Z"} +module.exports = {"contractName":"SafeMath","abi":[],"bytecode":"0x604c602c600b82828239805160001a60731460008114601c57601e565bfe5b5030600052607381538281f30073000000000000000000000000000000000000000030146080604052600080fd00a165627a7a72305820035c4c4a432664e2290521c691593d532ccc6122afd256f2ace9f5c4274e58980029","deployedBytecode":"0x73000000000000000000000000000000000000000030146080604052600080fd00a165627a7a72305820035c4c4a432664e2290521c691593d532ccc6122afd256f2ace9f5c4274e58980029"} /***/ }), /* 896 */ /***/ (function(module, exports) { -module.exports = {"contractName":"Sales","abi":[{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_buyer","type":"address"},{"indexed":false,"name":"_videoId","type":"string"},{"indexed":false,"name":"_price","type":"uint256"},{"indexed":false,"name":"_ipfsData","type":"string"}],"name":"LogCreateSale","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_buyer","type":"address"},{"indexed":false,"name":"_videoId","type":"string"}],"name":"LogRemoveSale","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_buyer","type":"address"},{"name":"_videoId","type":"string"},{"name":"_price","type":"uint256"},{"name":"_ipfsData","type":"string"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_buyer","type":"address"},{"name":"_videoId","type":"string"}],"name":"remove","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_buyer","type":"address"},{"name":"_videoId","type":"string"}],"name":"get","outputs":[{"name":"","type":"uint256"},{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_buyer","type":"address"},{"name":"_videoId","type":"string"}],"name":"userBoughtVideo","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b60405160208061116b83398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505061106f806100fc6000396000f300606060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806349209fc8146100885780637b103999146101045780638da5cb5b14610159578063abebf126146101ae578063e8e459e014610242578063f2fde38b1461030a578063fc2525ab14610343575b600080fd5b341561009357600080fd5b610102600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190505061043f565b005b341561010f57600080fd5b610117610771565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561016457600080fd5b61016c610797565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101b957600080fd5b610228600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506107bc565b604051808215151515815260200191505060405180910390f35b341561024d57600080fd5b610308600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610891565b005b341561031557600080fd5b610341600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610c74565b005b341561034e57600080fd5b6103bd600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610dc9565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156104035780820151818401526020810190506103e8565b50505050905090810190601f1680156104305780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806105a95750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260058152602001807f53746f7265000000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561055f57600080fd5b6102c65a03f1151561057057600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b15156105b457600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000826040518082805190602001908083835b60208310151561062b5780518252602082019150602081019050602083039250610606565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020600080820160006101000a81549060ff0219169055600182016000905560028201600061069b9190610f42565b50507f83652eb81b824d0e5d35726dc1adb19408af592acb527de2994fa5a4d2d4f8808282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610732578082015181840152602081019050610717565b50505050905090810190601f16801561075f5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b6020831015156108355780518252602082019150602081019050602083039250610810565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060000160009054906101000a900460ff16905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806109fb5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260058152602001807f53746f7265000000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15156109b157600080fd5b6102c65a03f115156109c257600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610a0657600080fd5b60606040519081016040528060011515815260200183815260200182815250600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856040518082805190602001908083835b602083101515610a9c5780518252602082019150602081019050602083039250610a77565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002019080519060200190610b25929190610f8a565b509050507f038378601c4d12a51dc5d62e0763a5950eae787276525db73d68924a3bd6f8aa84848484604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200184815260200180602001838103835286818151815260200191508051906020019080838360005b83811015610bca578082015181840152602081019050610baf565b50505050905090810190601f168015610bf75780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610c30578082015181840152602081019050610c15565b50505050905090810190601f168015610c5d5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a150505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610ccf57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610d0b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610dd361100a565b6000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856040518082805190602001908083835b602083101515610e4c5780518252602082019150602081019050602083039250610e27565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166000191681526020019081526020016000209050806001015481600201808054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f2f5780601f10610f0457610100808354040283529160200191610f2f565b820191906000526020600020905b815481529060010190602001808311610f1257829003601f168201915b5050505050905092509250509250929050565b50805460018160011615610100020316600290046000825580601f10610f685750610f87565b601f016020900490600052602060002090810190610f86919061101e565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610fcb57805160ff1916838001178555610ff9565b82800160010185558215610ff9579182015b82811115610ff8578251825591602001919060010190610fdd565b5b509050611006919061101e565b5090565b602060405190810160405280600081525090565b61104091905b8082111561103c576000816000905550600101611024565b5090565b905600a165627a7a723058202adca22fb209bdaca078d65990f5099817cb9cf7fe748a0952c409c85ef5bb6a0029","deployedBytecode":"0x606060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806349209fc8146100885780637b103999146101045780638da5cb5b14610159578063abebf126146101ae578063e8e459e014610242578063f2fde38b1461030a578063fc2525ab14610343575b600080fd5b341561009357600080fd5b610102600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190505061043f565b005b341561010f57600080fd5b610117610771565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561016457600080fd5b61016c610797565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101b957600080fd5b610228600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506107bc565b604051808215151515815260200191505060405180910390f35b341561024d57600080fd5b610308600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610891565b005b341561031557600080fd5b610341600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610c74565b005b341561034e57600080fd5b6103bd600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610dc9565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156104035780820151818401526020810190506103e8565b50505050905090810190601f1680156104305780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806105a95750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260058152602001807f53746f7265000000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561055f57600080fd5b6102c65a03f1151561057057600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b15156105b457600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000826040518082805190602001908083835b60208310151561062b5780518252602082019150602081019050602083039250610606565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020600080820160006101000a81549060ff0219169055600182016000905560028201600061069b9190610f42565b50507f83652eb81b824d0e5d35726dc1adb19408af592acb527de2994fa5a4d2d4f8808282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610732578082015181840152602081019050610717565b50505050905090810190601f16801561075f5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b6020831015156108355780518252602082019150602081019050602083039250610810565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060000160009054906101000a900460ff16905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806109fb5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260058152602001807f53746f7265000000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15156109b157600080fd5b6102c65a03f115156109c257600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610a0657600080fd5b60606040519081016040528060011515815260200183815260200182815250600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856040518082805190602001908083835b602083101515610a9c5780518252602082019150602081019050602083039250610a77565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002019080519060200190610b25929190610f8a565b509050507f038378601c4d12a51dc5d62e0763a5950eae787276525db73d68924a3bd6f8aa84848484604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200184815260200180602001838103835286818151815260200191508051906020019080838360005b83811015610bca578082015181840152602081019050610baf565b50505050905090810190601f168015610bf75780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610c30578082015181840152602081019050610c15565b50505050905090810190601f168015610c5d5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a150505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610ccf57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610d0b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610dd361100a565b6000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856040518082805190602001908083835b602083101515610e4c5780518252602082019150602081019050602083039250610e27565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166000191681526020019081526020016000209050806001015481600201808054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f2f5780601f10610f0457610100808354040283529160200191610f2f565b820191906000526020600020905b815481529060010190602001808311610f1257829003601f168201915b5050505050905092509250509250929050565b50805460018160011615610100020316600290046000825580601f10610f685750610f87565b601f016020900490600052602060002090810190610f86919061101e565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610fcb57805160ff1916838001178555610ff9565b82800160010185558215610ff9579182015b82811115610ff8578251825591602001919060010190610fdd565b5b509050611006919061101e565b5090565b602060405190810160405280600081525090565b61104091905b8082111561103c576000816000905550600101611024565b5090565b905600a165627a7a723058202adca22fb209bdaca078d65990f5099817cb9cf7fe748a0952c409c85ef5bb6a0029","sourceMap":"168:2278:6:-;;;743:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;509:10:15;501:5;;:18;;;;;;;;;;;;;;;;;;803:10:6;795:5;;:18;;;;;;;;;;;;;;;;;;834:9;823:8;;:20;;;;;;;;;;;;;;;;;;743:107;168:2278;;;;;;","deployedSourceMap":"168:2278:6:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1677:181;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;201:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2283:161:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1291:256;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;834:169:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;2037:240:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1677:181:6;663:5;;;;;;;;;;;649:19;;:10;:19;;;648:70;;;;688:8;;;;;;;;;;;:20;;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;674:43;;:10;:43;;;648:70;640:79;;;;;;;;1775:6;:14;1782:6;1775:14;;;;;;;;;;;;;;;:35;1800:8;1790:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1775:35:6;;;;;;;;;;;;;;;;;;1768:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;1820:31;1834:6;1842:8;1820:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1677:181:6;;:::o;201:24::-;;;;;;;;;;;;;:::o;238:20:15:-;;;;;;;;;;;;;:::o;2283:161:6:-;2365:4;2388:6;:14;2395:6;2388:14;;;;;;;;;;;;;;;:35;2413:8;2403:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;2388:35:6;;;;;;;;;;;;;;;;;:49;;;;;;;;;;;;2381:56;;2283:161;;;;:::o;1291:256::-;663:5;;;;;;;;;;;649:19;;:10;:19;;;648:70;;;;688:8;;;;;;;;;;;:20;;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;674:43;;:10;:43;;;648:70;640:79;;;;;;;;1451:29;;;;;;;;;1456:4;1451:29;;;;;;1462:6;1451:29;;;;1470:9;1451:29;;;1413:6;:14;1420:6;1413:14;;;;;;;;;;;;;;;:35;1438:8;1428:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1413:35:6;;;;;;;;;;;;;;;;;:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;1490:50;1504:6;1512:8;1522:6;1530:9;1490:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1291:256:6;;;;:::o;834:169:15:-;654:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;930:1;910:22;;:8;:22;;;;902:31;;;;;;;;967:8;939:37;;960:5;;;;;;;;;;;939:37;;;;;;;;;;;;990:8;982:5;;:16;;;;;;;;;;;;;;;;;;834:169;:::o;2037:240:6:-;2108:4;2114:6;;:::i;:::-;2132:18;2153:6;:14;2160:6;2153:14;;;;;;;;;;;;;;;:35;2178:8;2168:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;2153:35:6;;;;;;;;;;;;;;;;;2132:56;;2219:5;:12;;;2245:5;:15;;2198:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2037:240;;;;;;:::o;168:2278::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o","source":"pragma solidity ^0.4.18;\n\nimport \"zeppelin-solidity/contracts/ownership/Ownable.sol\";\nimport 'zeppelin-solidity/contracts/math/SafeMath.sol';\nimport './Registry.sol';\n\ncontract Sales is Ownable {\n\n Registry public registry;\n\n struct Data {\n bool _isRegistered;\n uint _price;\n string _ipfsData;\n }\n\n\n // mapping from user addrsses and video ids to booleans\n mapping (address=> mapping (bytes32 => Data)) private _sales;\n\n event LogCreateSale(address _buyer, string _videoId, uint _price, string _ipfsData);\n event LogRemoveSale(address _buyer, string _videoId);\n\n modifier onlyOwnerOrStore() {\n require((msg.sender == owner) || (msg.sender == registry.getContract('Store')));\n _;\n }\n\n function Sales(Registry _registry) public {\n owner = msg.sender;\n registry = _registry;\n }\n\n /**\n * @dev registers a sale of a video\n * Does not do any payments - this call only registers the sale\n * Only the Store contract (as well as the owner) can register a sale\n * @param _videoId the id of the video\n * @param _buyer the buyer of the video (an ethereum address)\n * @param _price the price that was paid for the video\n * @param _ipfsData a reference to further data that can be found on ipfs\n */\n function create(address _buyer, string _videoId, uint _price, string _ipfsData)\n public onlyOwnerOrStore {\n _sales[_buyer][keccak256(_videoId)] = Data(true, _price, _ipfsData);\n LogCreateSale(_buyer, _videoId, _price, _ipfsData);\n }\n\n /**\n * @dev Remove the sale from the registry\n * Only the Store contract or the owner can remove a sale\n */\n function remove(address _buyer, string _videoId)\n public onlyOwnerOrStore {\n delete _sales[_buyer][keccak256(_videoId)];\n LogRemoveSale(_buyer, _videoId);\n }\n\n /**\n * @dev Get information about the sale from the registry\n * Only the Store contract or the owner can remove a sale\n * @return price and ipfsData\n */\n function get(address _buyer, string _videoId) public constant returns(uint, string) {\n Data storage _data = _sales[_buyer][keccak256(_videoId)];\n return (\n _data._price,\n _data._ipfsData\n );\n }\n\n function userBoughtVideo(address _buyer, string _videoId) public constant returns(bool) {\n return _sales[_buyer][keccak256(_videoId)]._isRegistered;\n }\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Sales.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Sales.sol","exportedSymbols":{"Sales":[1037]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":858,"name":"PragmaDirective","src":"0:24:6"},{"attributes":{"SourceUnit":2517,"absolutePath":"zeppelin-solidity/contracts/ownership/Ownable.sol","file":"zeppelin-solidity/contracts/ownership/Ownable.sol","scope":1038,"symbolAliases":[null],"unitAlias":""},"id":859,"name":"ImportDirective","src":"26:59:6"},{"attributes":{"SourceUnit":2461,"absolutePath":"zeppelin-solidity/contracts/math/SafeMath.sol","file":"zeppelin-solidity/contracts/math/SafeMath.sol","scope":1038,"symbolAliases":[null],"unitAlias":""},"id":860,"name":"ImportDirective","src":"86:55:6"},{"attributes":{"SourceUnit":857,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Registry.sol","file":"./Registry.sol","scope":1038,"symbolAliases":[null],"unitAlias":""},"id":861,"name":"ImportDirective","src":"142:24:6"},{"attributes":{"contractDependencies":[2516],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[1037,2516],"name":"Sales","scope":1038},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"Ownable","referencedDeclaration":2516,"type":"contract Ownable"},"id":862,"name":"UserDefinedTypeName","src":"186:7:6"}],"id":863,"name":"InheritanceSpecifier","src":"186:7:6"},{"attributes":{"constant":false,"name":"registry","scope":1037,"stateVariable":true,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"public"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":864,"name":"UserDefinedTypeName","src":"201:8:6"}],"id":865,"name":"VariableDeclaration","src":"201:24:6"},{"attributes":{"canonicalName":"Sales.Data","name":"Data","scope":1037,"visibility":"public"},"children":[{"attributes":{"constant":false,"name":"_isRegistered","scope":872,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":866,"name":"ElementaryTypeName","src":"252:4:6"}],"id":867,"name":"VariableDeclaration","src":"252:18:6"},{"attributes":{"constant":false,"name":"_price","scope":872,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":868,"name":"ElementaryTypeName","src":"278:4:6"}],"id":869,"name":"VariableDeclaration","src":"278:11:6"},{"attributes":{"constant":false,"name":"_ipfsData","scope":872,"stateVariable":false,"storageLocation":"default","type":"string storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":870,"name":"ElementaryTypeName","src":"297:6:6"}],"id":871,"name":"VariableDeclaration","src":"297:16:6"}],"id":872,"name":"StructDefinition","src":"232:88:6"},{"attributes":{"constant":false,"name":"_sales","scope":1037,"stateVariable":true,"storageLocation":"default","type":"mapping(address => mapping(bytes32 => struct Sales.Data storage ref))","value":null,"visibility":"private"},"children":[{"attributes":{"type":"mapping(address => mapping(bytes32 => struct Sales.Data storage ref))"},"children":[{"attributes":{"name":"address","type":"address"},"id":873,"name":"ElementaryTypeName","src":"396:7:6"},{"attributes":{"type":"mapping(bytes32 => struct Sales.Data storage ref)"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":874,"name":"ElementaryTypeName","src":"415:7:6"},{"attributes":{"contractScope":null,"name":"Data","referencedDeclaration":872,"type":"struct Sales.Data storage pointer"},"id":875,"name":"UserDefinedTypeName","src":"426:4:6"}],"id":876,"name":"Mapping","src":"406:25:6"}],"id":877,"name":"Mapping","src":"387:45:6"}],"id":878,"name":"VariableDeclaration","src":"387:60:6"},{"attributes":{"anonymous":false,"name":"LogCreateSale"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_buyer","scope":888,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":879,"name":"ElementaryTypeName","src":"474:7:6"}],"id":880,"name":"VariableDeclaration","src":"474:14:6"},{"attributes":{"constant":false,"indexed":false,"name":"_videoId","scope":888,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":881,"name":"ElementaryTypeName","src":"490:6:6"}],"id":882,"name":"VariableDeclaration","src":"490:15:6"},{"attributes":{"constant":false,"indexed":false,"name":"_price","scope":888,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":883,"name":"ElementaryTypeName","src":"507:4:6"}],"id":884,"name":"VariableDeclaration","src":"507:11:6"},{"attributes":{"constant":false,"indexed":false,"name":"_ipfsData","scope":888,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":885,"name":"ElementaryTypeName","src":"520:6:6"}],"id":886,"name":"VariableDeclaration","src":"520:16:6"}],"id":887,"name":"ParameterList","src":"473:64:6"}],"id":888,"name":"EventDefinition","src":"454:84:6"},{"attributes":{"anonymous":false,"name":"LogRemoveSale"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_buyer","scope":894,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":889,"name":"ElementaryTypeName","src":"563:7:6"}],"id":890,"name":"VariableDeclaration","src":"563:14:6"},{"attributes":{"constant":false,"indexed":false,"name":"_videoId","scope":894,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":891,"name":"ElementaryTypeName","src":"579:6:6"}],"id":892,"name":"VariableDeclaration","src":"579:15:6"}],"id":893,"name":"ParameterList","src":"562:33:6"}],"id":894,"name":"EventDefinition","src":"543:53:6"},{"attributes":{"name":"onlyOwnerOrStore","visibility":"internal"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":895,"name":"ParameterList","src":"627:2:6"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":896,"name":"Identifier","src":"640:7:6"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"||","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":897,"name":"Identifier","src":"649:3:6"}],"id":898,"name":"MemberAccess","src":"649:10:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2464,"type":"address","value":"owner"},"id":899,"name":"Identifier","src":"663:5:6"}],"id":900,"name":"BinaryOperation","src":"649:19:6"}],"id":901,"name":"TupleExpression","src":"648:21:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":902,"name":"Identifier","src":"674:3:6"}],"id":903,"name":"MemberAccess","src":"674:10:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_f9742a6ab27efbeed38a3a36aac403fe0810a4cdb9e8328d15bdcd1c87e76672","typeString":"literal_string \"Store\""}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getContract","referencedDeclaration":743,"type":"function (string memory) view external returns (address)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":865,"type":"contract Registry","value":"registry"},"id":904,"name":"Identifier","src":"688:8:6"}],"id":905,"name":"MemberAccess","src":"688:20:6"},{"attributes":{"argumentTypes":null,"hexvalue":"53746f7265","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"Store\"","value":"Store"},"id":906,"name":"Literal","src":"709:7:6"}],"id":907,"name":"FunctionCall","src":"688:29:6"}],"id":908,"name":"BinaryOperation","src":"674:43:6"}],"id":909,"name":"TupleExpression","src":"673:45:6"}],"id":910,"name":"BinaryOperation","src":"648:70:6"}],"id":911,"name":"FunctionCall","src":"640:79:6"}],"id":912,"name":"ExpressionStatement","src":"640:79:6"},{"id":913,"name":"PlaceholderStatement","src":"729:1:6"}],"id":914,"name":"Block","src":"630:107:6"}],"id":915,"name":"ModifierDefinition","src":"602:135:6"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"Sales","payable":false,"scope":1037,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_registry","scope":930,"stateVariable":false,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":916,"name":"UserDefinedTypeName","src":"758:8:6"}],"id":917,"name":"VariableDeclaration","src":"758:18:6"}],"id":918,"name":"ParameterList","src":"757:20:6"},{"attributes":{"parameters":[null]},"children":[],"id":919,"name":"ParameterList","src":"785:0:6"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2464,"type":"address","value":"owner"},"id":920,"name":"Identifier","src":"795:5:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":921,"name":"Identifier","src":"803:3:6"}],"id":922,"name":"MemberAccess","src":"803:10:6"}],"id":923,"name":"Assignment","src":"795:18:6"}],"id":924,"name":"ExpressionStatement","src":"795:18:6"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"contract Registry"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":865,"type":"contract Registry","value":"registry"},"id":925,"name":"Identifier","src":"823:8:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":917,"type":"contract Registry","value":"_registry"},"id":926,"name":"Identifier","src":"834:9:6"}],"id":927,"name":"Assignment","src":"823:20:6"}],"id":928,"name":"ExpressionStatement","src":"823:20:6"}],"id":929,"name":"Block","src":"785:65:6"}],"id":930,"name":"FunctionDefinition","src":"743:107:6"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"create","payable":false,"scope":1037,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_buyer","scope":965,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":931,"name":"ElementaryTypeName","src":"1307:7:6"}],"id":932,"name":"VariableDeclaration","src":"1307:14:6"},{"attributes":{"constant":false,"name":"_videoId","scope":965,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":933,"name":"ElementaryTypeName","src":"1323:6:6"}],"id":934,"name":"VariableDeclaration","src":"1323:15:6"},{"attributes":{"constant":false,"name":"_price","scope":965,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":935,"name":"ElementaryTypeName","src":"1340:4:6"}],"id":936,"name":"VariableDeclaration","src":"1340:11:6"},{"attributes":{"constant":false,"name":"_ipfsData","scope":965,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":937,"name":"ElementaryTypeName","src":"1353:6:6"}],"id":938,"name":"VariableDeclaration","src":"1353:16:6"}],"id":939,"name":"ParameterList","src":"1306:64:6"},{"attributes":{"parameters":[null]},"children":[],"id":942,"name":"ParameterList","src":"1403:0:6"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":915,"type":"modifier ()","value":"onlyOwnerOrStore"},"id":940,"name":"Identifier","src":"1386:16:6"}],"id":941,"name":"ModifierInvocation","src":"1386:16:6"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"struct Sales.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"struct Sales.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => struct Sales.Data storage ref)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":878,"type":"mapping(address => mapping(bytes32 => struct Sales.Data storage ref))","value":"_sales"},"id":943,"name":"Identifier","src":"1413:6:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":932,"type":"address","value":"_buyer"},"id":944,"name":"Identifier","src":"1420:6:6"}],"id":948,"name":"IndexAccess","src":"1413:14:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":945,"name":"Identifier","src":"1428:9:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":934,"type":"string memory","value":"_videoId"},"id":946,"name":"Identifier","src":"1438:8:6"}],"id":947,"name":"FunctionCall","src":"1428:19:6"}],"id":949,"name":"IndexAccess","src":"1413:35:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":true,"lValueRequested":false,"names":[null],"type":"struct Sales.Data memory","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":872,"type":"type(struct Sales.Data storage pointer)","value":"Data"},"id":950,"name":"Identifier","src":"1451:4:6"},{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":951,"name":"Literal","src":"1456:4:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":936,"type":"uint256","value":"_price"},"id":952,"name":"Identifier","src":"1462:6:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":938,"type":"string memory","value":"_ipfsData"},"id":953,"name":"Identifier","src":"1470:9:6"}],"id":954,"name":"FunctionCall","src":"1451:29:6"}],"id":955,"name":"Assignment","src":"1413:67:6"}],"id":956,"name":"ExpressionStatement","src":"1413:67:6"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":888,"type":"function (address,string memory,uint256,string memory)","value":"LogCreateSale"},"id":957,"name":"Identifier","src":"1490:13:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":932,"type":"address","value":"_buyer"},"id":958,"name":"Identifier","src":"1504:6:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":934,"type":"string memory","value":"_videoId"},"id":959,"name":"Identifier","src":"1512:8:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":936,"type":"uint256","value":"_price"},"id":960,"name":"Identifier","src":"1522:6:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":938,"type":"string memory","value":"_ipfsData"},"id":961,"name":"Identifier","src":"1530:9:6"}],"id":962,"name":"FunctionCall","src":"1490:50:6"}],"id":963,"name":"ExpressionStatement","src":"1490:50:6"}],"id":964,"name":"Block","src":"1403:144:6"}],"id":965,"name":"FunctionDefinition","src":"1291:256:6"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"remove","payable":false,"scope":1037,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_buyer","scope":989,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":966,"name":"ElementaryTypeName","src":"1693:7:6"}],"id":967,"name":"VariableDeclaration","src":"1693:14:6"},{"attributes":{"constant":false,"name":"_videoId","scope":989,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":968,"name":"ElementaryTypeName","src":"1709:6:6"}],"id":969,"name":"VariableDeclaration","src":"1709:15:6"}],"id":970,"name":"ParameterList","src":"1692:33:6"},{"attributes":{"parameters":[null]},"children":[],"id":973,"name":"ParameterList","src":"1758:0:6"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":915,"type":"modifier ()","value":"onlyOwnerOrStore"},"id":971,"name":"Identifier","src":"1741:16:6"}],"id":972,"name":"ModifierInvocation","src":"1741:16:6"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"delete","prefix":true,"type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"struct Sales.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => struct Sales.Data storage ref)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":878,"type":"mapping(address => mapping(bytes32 => struct Sales.Data storage ref))","value":"_sales"},"id":974,"name":"Identifier","src":"1775:6:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":967,"type":"address","value":"_buyer"},"id":975,"name":"Identifier","src":"1782:6:6"}],"id":976,"name":"IndexAccess","src":"1775:14:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":977,"name":"Identifier","src":"1790:9:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":969,"type":"string memory","value":"_videoId"},"id":978,"name":"Identifier","src":"1800:8:6"}],"id":979,"name":"FunctionCall","src":"1790:19:6"}],"id":980,"name":"IndexAccess","src":"1775:35:6"}],"id":981,"name":"UnaryOperation","src":"1768:42:6"}],"id":982,"name":"ExpressionStatement","src":"1768:42:6"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":894,"type":"function (address,string memory)","value":"LogRemoveSale"},"id":983,"name":"Identifier","src":"1820:13:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":967,"type":"address","value":"_buyer"},"id":984,"name":"Identifier","src":"1834:6:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":969,"type":"string memory","value":"_videoId"},"id":985,"name":"Identifier","src":"1842:8:6"}],"id":986,"name":"FunctionCall","src":"1820:31:6"}],"id":987,"name":"ExpressionStatement","src":"1820:31:6"}],"id":988,"name":"Block","src":"1758:100:6"}],"id":989,"name":"FunctionDefinition","src":"1677:181:6"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"get","payable":false,"scope":1037,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_buyer","scope":1017,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":990,"name":"ElementaryTypeName","src":"2050:7:6"}],"id":991,"name":"VariableDeclaration","src":"2050:14:6"},{"attributes":{"constant":false,"name":"_videoId","scope":1017,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":992,"name":"ElementaryTypeName","src":"2066:6:6"}],"id":993,"name":"VariableDeclaration","src":"2066:15:6"}],"id":994,"name":"ParameterList","src":"2049:33:6"},{"children":[{"attributes":{"constant":false,"name":"","scope":1017,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":995,"name":"ElementaryTypeName","src":"2108:4:6"}],"id":996,"name":"VariableDeclaration","src":"2108:4:6"},{"attributes":{"constant":false,"name":"","scope":1017,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":997,"name":"ElementaryTypeName","src":"2114:6:6"}],"id":998,"name":"VariableDeclaration","src":"2114:6:6"}],"id":999,"name":"ParameterList","src":"2107:14:6"},{"children":[{"attributes":{"assignments":[1001]},"children":[{"attributes":{"constant":false,"name":"_data","scope":1017,"stateVariable":false,"storageLocation":"storage","type":"struct Sales.Data storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Data","referencedDeclaration":872,"type":"struct Sales.Data storage pointer"},"id":1000,"name":"UserDefinedTypeName","src":"2132:4:6"}],"id":1001,"name":"VariableDeclaration","src":"2132:18:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct Sales.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => struct Sales.Data storage ref)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":878,"type":"mapping(address => mapping(bytes32 => struct Sales.Data storage ref))","value":"_sales"},"id":1002,"name":"Identifier","src":"2153:6:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":991,"type":"address","value":"_buyer"},"id":1003,"name":"Identifier","src":"2160:6:6"}],"id":1004,"name":"IndexAccess","src":"2153:14:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":1005,"name":"Identifier","src":"2168:9:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":993,"type":"string memory","value":"_videoId"},"id":1006,"name":"Identifier","src":"2178:8:6"}],"id":1007,"name":"FunctionCall","src":"2168:19:6"}],"id":1008,"name":"IndexAccess","src":"2153:35:6"}],"id":1009,"name":"VariableDeclarationStatement","src":"2132:56:6"},{"attributes":{"functionReturnParameters":999},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"tuple(uint256,string storage ref)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"_price","referencedDeclaration":869,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1001,"type":"struct Sales.Data storage pointer","value":"_data"},"id":1010,"name":"Identifier","src":"2219:5:6"}],"id":1011,"name":"MemberAccess","src":"2219:12:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"_ipfsData","referencedDeclaration":871,"type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1001,"type":"struct Sales.Data storage pointer","value":"_data"},"id":1012,"name":"Identifier","src":"2245:5:6"}],"id":1013,"name":"MemberAccess","src":"2245:15:6"}],"id":1014,"name":"TupleExpression","src":"2205:65:6"}],"id":1015,"name":"Return","src":"2198:72:6"}],"id":1016,"name":"Block","src":"2122:155:6"}],"id":1017,"name":"FunctionDefinition","src":"2037:240:6"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"userBoughtVideo","payable":false,"scope":1037,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_buyer","scope":1036,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1018,"name":"ElementaryTypeName","src":"2308:7:6"}],"id":1019,"name":"VariableDeclaration","src":"2308:14:6"},{"attributes":{"constant":false,"name":"_videoId","scope":1036,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1020,"name":"ElementaryTypeName","src":"2324:6:6"}],"id":1021,"name":"VariableDeclaration","src":"2324:15:6"}],"id":1022,"name":"ParameterList","src":"2307:33:6"},{"children":[{"attributes":{"constant":false,"name":"","scope":1036,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":1023,"name":"ElementaryTypeName","src":"2365:4:6"}],"id":1024,"name":"VariableDeclaration","src":"2365:4:6"}],"id":1025,"name":"ParameterList","src":"2364:6:6"},{"children":[{"attributes":{"functionReturnParameters":1025},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"_isRegistered","referencedDeclaration":867,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct Sales.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => struct Sales.Data storage ref)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":878,"type":"mapping(address => mapping(bytes32 => struct Sales.Data storage ref))","value":"_sales"},"id":1026,"name":"Identifier","src":"2388:6:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1019,"type":"address","value":"_buyer"},"id":1027,"name":"Identifier","src":"2395:6:6"}],"id":1028,"name":"IndexAccess","src":"2388:14:6"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":1029,"name":"Identifier","src":"2403:9:6"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1021,"type":"string memory","value":"_videoId"},"id":1030,"name":"Identifier","src":"2413:8:6"}],"id":1031,"name":"FunctionCall","src":"2403:19:6"}],"id":1032,"name":"IndexAccess","src":"2388:35:6"}],"id":1033,"name":"MemberAccess","src":"2388:49:6"}],"id":1034,"name":"Return","src":"2381:56:6"}],"id":1035,"name":"Block","src":"2371:73:6"}],"id":1036,"name":"FunctionDefinition","src":"2283:161:6"}],"id":1037,"name":"ContractDefinition","src":"168:2278:6"}],"id":1038,"name":"SourceUnit","src":"0:2447:6"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T13:59:31.987Z"} +module.exports = {"contractName":"Sales","abi":[{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_buyer","type":"address"},{"indexed":false,"name":"_videoId","type":"string"},{"indexed":false,"name":"_price","type":"uint256"},{"indexed":false,"name":"_ipfsData","type":"string"}],"name":"LogCreateSale","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_buyer","type":"address"},{"indexed":false,"name":"_videoId","type":"string"}],"name":"LogRemoveSale","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_buyer","type":"address"},{"name":"_videoId","type":"string"},{"name":"_price","type":"uint256"},{"name":"_ipfsData","type":"string"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_buyer","type":"address"},{"name":"_videoId","type":"string"}],"name":"remove","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_buyer","type":"address"},{"name":"_videoId","type":"string"}],"name":"get","outputs":[{"name":"","type":"uint256"},{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_buyer","type":"address"},{"name":"_videoId","type":"string"}],"name":"userBoughtVideo","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b506040516020806111cf83398101806040528101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506110cb806101046000396000f300608060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806349209fc8146100885780637b103999146101115780638da5cb5b14610168578063abebf126146101bf578063e8e459e014610260578063f2fde38b14610339578063fc2525ab1461037c575b600080fd5b34801561009457600080fd5b5061010f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610485565b005b34801561011d57600080fd5b506101266107cf565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017457600080fd5b5061017d6107f5565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101cb57600080fd5b50610246600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061081a565b604051808215151515815260200191505060405180910390f35b34801561026c57600080fd5b50610337600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929080359060200190929190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506108ef565b005b34801561034557600080fd5b5061037a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cea565b005b34801561038857600080fd5b50610403600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e3f565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561044957808201518184015260208101905061042e565b50505050905090810190601f1680156104765780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806106075750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260058152602001807f53746f7265000000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15801561059d57600080fd5b505af11580156105b1573d6000803e3d6000fd5b505050506040513d60208110156105c757600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561061257600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000826040518082805190602001908083835b6020831015156106895780518252602082019150602081019050602083039250610664565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020600080820160006101000a81549060ff021916905560018201600090556002820160006106f99190610fb2565b50507f83652eb81b824d0e5d35726dc1adb19408af592acb527de2994fa5a4d2d4f8808282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610790578082015181840152602081019050610775565b50505050905090810190601f1680156107bd5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610893578051825260208201915060208101905060208303925061086e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060000160009054906101000a900460ff16905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610a715750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260058152602001807f53746f7265000000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b158015610a0757600080fd5b505af1158015610a1b573d6000803e3d6000fd5b505050506040513d6020811015610a3157600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610a7c57600080fd5b60606040519081016040528060011515815260200183815260200182815250600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856040518082805190602001908083835b602083101515610b125780518252602082019150602081019050602083039250610aed565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002019080519060200190610b9b929190610ffa565b509050507f038378601c4d12a51dc5d62e0763a5950eae787276525db73d68924a3bd6f8aa84848484604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200184815260200180602001838103835286818151815260200191508051906020019080838360005b83811015610c40578082015181840152602081019050610c25565b50505050905090810190601f168015610c6d5780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610ca6578082015181840152602081019050610c8b565b50505050905090810190601f168015610cd35780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a150505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d4557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610d8157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600060606000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856040518082805190602001908083835b602083101515610ebc5780518252602082019150602081019050602083039250610e97565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166000191681526020019081526020016000209050806001015481600201808054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f9f5780601f10610f7457610100808354040283529160200191610f9f565b820191906000526020600020905b815481529060010190602001808311610f8257829003601f168201915b5050505050905092509250509250929050565b50805460018160011615610100020316600290046000825580601f10610fd85750610ff7565b601f016020900490600052602060002090810190610ff6919061107a565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061103b57805160ff1916838001178555611069565b82800160010185558215611069579182015b8281111561106857825182559160200191906001019061104d565b5b509050611076919061107a565b5090565b61109c91905b80821115611098576000816000905550600101611080565b5090565b905600a165627a7a7230582090f5a9bc804ee04a1bcb9a3eec1ad500ad12a9f25c69604c38612b7c223f79c20029","deployedBytecode":"0x608060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806349209fc8146100885780637b103999146101115780638da5cb5b14610168578063abebf126146101bf578063e8e459e014610260578063f2fde38b14610339578063fc2525ab1461037c575b600080fd5b34801561009457600080fd5b5061010f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610485565b005b34801561011d57600080fd5b506101266107cf565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017457600080fd5b5061017d6107f5565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101cb57600080fd5b50610246600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061081a565b604051808215151515815260200191505060405180910390f35b34801561026c57600080fd5b50610337600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929080359060200190929190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506108ef565b005b34801561034557600080fd5b5061037a600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cea565b005b34801561038857600080fd5b50610403600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e3f565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561044957808201518184015260208101905061042e565b50505050905090810190601f1680156104765780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806106075750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260058152602001807f53746f7265000000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15801561059d57600080fd5b505af11580156105b1573d6000803e3d6000fd5b505050506040513d60208110156105c757600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561061257600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000826040518082805190602001908083835b6020831015156106895780518252602082019150602081019050602083039250610664565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020600080820160006101000a81549060ff021916905560018201600090556002820160006106f99190610fb2565b50507f83652eb81b824d0e5d35726dc1adb19408af592acb527de2994fa5a4d2d4f8808282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610790578082015181840152602081019050610775565b50505050905090810190601f1680156107bd5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610893578051825260208201915060208101905060208303925061086e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060000160009054906101000a900460ff16905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610a715750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260058152602001807f53746f7265000000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b158015610a0757600080fd5b505af1158015610a1b573d6000803e3d6000fd5b505050506040513d6020811015610a3157600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610a7c57600080fd5b60606040519081016040528060011515815260200183815260200182815250600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856040518082805190602001908083835b602083101515610b125780518252602082019150602081019050602083039250610aed565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060008201518160000160006101000a81548160ff021916908315150217905550602082015181600101556040820151816002019080519060200190610b9b929190610ffa565b509050507f038378601c4d12a51dc5d62e0763a5950eae787276525db73d68924a3bd6f8aa84848484604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200184815260200180602001838103835286818151815260200191508051906020019080838360005b83811015610c40578082015181840152602081019050610c25565b50505050905090810190601f168015610c6d5780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610ca6578082015181840152602081019050610c8b565b50505050905090810190601f168015610cd35780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a150505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d4557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610d8157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600060606000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856040518082805190602001908083835b602083101515610ebc5780518252602082019150602081019050602083039250610e97565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020600019166000191681526020019081526020016000209050806001015481600201808054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610f9f5780601f10610f7457610100808354040283529160200191610f9f565b820191906000526020600020905b815481529060010190602001808311610f8257829003601f168201915b5050505050905092509250509250929050565b50805460018160011615610100020316600290046000825580601f10610fd85750610ff7565b601f016020900490600052602060002090810190610ff6919061107a565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061103b57805160ff1916838001178555611069565b82800160010185558215611069579182015b8281111561106857825182559160200191906001019061104d565b5b509050611076919061107a565b5090565b61109c91905b80821115611098576000816000905550600101611080565b5090565b905600a165627a7a7230582090f5a9bc804ee04a1bcb9a3eec1ad500ad12a9f25c69604c38612b7c223f79c20029"} /***/ }), /* 897 */ /***/ (function(module, exports) { -module.exports = {"contractName":"SendEther","abi":[{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"from","type":"address"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"description","type":"string"}],"name":"LogSendEther","type":"event"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_description","type":"string"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b61025e8061001e6000396000f300606060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630988664914610051575b341561004c57600080fd5b600080fd5b6100c0600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506100da565b604051808215151515815260200191505060405180910390f35b60008273ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050151561011c57600080fd5b7fa8da2a10447235381d4a8921c260b89c83b471b8aff2127abc1d434348812e7133843485604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156101eb5780820151818401526020810190506101d0565b50505050905090810190601f1680156102185780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a160019050929150505600a165627a7a7230582073b6826dd7127937bde75ba003654f4e8ce9ad94c0ce3f7c8e5846e2dad429520029","deployedBytecode":"0x606060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630988664914610051575b341561004c57600080fd5b600080fd5b6100c0600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506100da565b604051808215151515815260200191505060405180910390f35b60008273ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050151561011c57600080fd5b7fa8da2a10447235381d4a8921c260b89c83b471b8aff2127abc1d434348812e7133843485604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156101eb5780820151818401526020810190506101d0565b50505050905090810190601f1680156102185780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a160019050929150505600a165627a7a7230582073b6826dd7127937bde75ba003654f4e8ce9ad94c0ce3f7c8e5846e2dad429520029","sourceMap":"133:704:7:-;;;;;;;;;;;;;;;;;","deployedSourceMap":"133:704:7:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;363:8;;;637:197;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;705:4;721:3;:12;;:23;734:9;721:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;753:54;766:10;778:3;783:9;794:12;753:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;823:4:7;816:11;;637:197;;;;:::o","source":"pragma solidity ^0.4.18;\n\n/**\n * @title SendEther\n * @dev A Contract that wraps the native transfer function and logs an event.\n */\n\ncontract SendEther {\n\n event LogSendEther(\n address from,\n address to,\n uint value,\n string description\n );\n\n // If someone accidentally sends ether to this contract, revert;\n function () {\n revert();\n }\n\n /**\n * @dev Transfer ether to address _to, providing a description\n * The only difference with sending ETH directly is that the action is logged\n * @param _to recipient of the ETH\n * @param _description A description to log\n */\n function transfer(address _to, string _description) payable returns(bool) {\n _to.transfer(msg.value);\n LogSendEther(msg.sender, _to, msg.value, _description);\n return true;\n }\n\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/SendEther.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/SendEther.sol","exportedSymbols":{"SendEther":[1085]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":1039,"name":"PragmaDirective","src":"0:24:7"},{"attributes":{"baseContracts":[null],"contractDependencies":[null],"contractKind":"contract","documentation":"@title SendEther\n@dev A Contract that wraps the native transfer function and logs an event.","fullyImplemented":true,"linearizedBaseContracts":[1085],"name":"SendEther","scope":1086},"children":[{"attributes":{"anonymous":false,"name":"LogSendEther"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"from","scope":1049,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1040,"name":"ElementaryTypeName","src":"185:7:7"}],"id":1041,"name":"VariableDeclaration","src":"185:12:7"},{"attributes":{"constant":false,"indexed":false,"name":"to","scope":1049,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1042,"name":"ElementaryTypeName","src":"205:7:7"}],"id":1043,"name":"VariableDeclaration","src":"205:10:7"},{"attributes":{"constant":false,"indexed":false,"name":"value","scope":1049,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1044,"name":"ElementaryTypeName","src":"223:4:7"}],"id":1045,"name":"VariableDeclaration","src":"223:10:7"},{"attributes":{"constant":false,"indexed":false,"name":"description","scope":1049,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1046,"name":"ElementaryTypeName","src":"241:6:7"}],"id":1047,"name":"VariableDeclaration","src":"241:18:7"}],"id":1048,"name":"ParameterList","src":"177:88:7"}],"id":1049,"name":"EventDefinition","src":"159:107:7"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"","payable":false,"scope":1085,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":1050,"name":"ParameterList","src":"350:2:7"},{"attributes":{"parameters":[null]},"children":[],"id":1051,"name":"ParameterList","src":"353:0:7"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"overloadedDeclarations":[null],"referencedDeclaration":2936,"type":"function () pure","value":"revert"},"id":1052,"name":"Identifier","src":"363:6:7"}],"id":1053,"name":"FunctionCall","src":"363:8:7"}],"id":1054,"name":"ExpressionStatement","src":"363:8:7"}],"id":1055,"name":"Block","src":"353:25:7"}],"id":1056,"name":"FunctionDefinition","src":"341:37:7"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"transfer","payable":true,"scope":1085,"stateMutability":"payable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_to","scope":1084,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1057,"name":"ElementaryTypeName","src":"655:7:7"}],"id":1058,"name":"VariableDeclaration","src":"655:11:7"},{"attributes":{"constant":false,"name":"_description","scope":1084,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1059,"name":"ElementaryTypeName","src":"668:6:7"}],"id":1060,"name":"VariableDeclaration","src":"668:19:7"}],"id":1061,"name":"ParameterList","src":"654:34:7"},{"children":[{"attributes":{"constant":false,"name":"","scope":1084,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":1062,"name":"ElementaryTypeName","src":"705:4:7"}],"id":1063,"name":"VariableDeclaration","src":"705:4:7"}],"id":1064,"name":"ParameterList","src":"704:6:7"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"transfer","referencedDeclaration":null,"type":"function (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1058,"type":"address","value":"_to"},"id":1065,"name":"Identifier","src":"721:3:7"}],"id":1067,"name":"MemberAccess","src":"721:12:7"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"value","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1068,"name":"Identifier","src":"734:3:7"}],"id":1069,"name":"MemberAccess","src":"734:9:7"}],"id":1070,"name":"FunctionCall","src":"721:23:7"}],"id":1071,"name":"ExpressionStatement","src":"721:23:7"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1049,"type":"function (address,address,uint256,string memory)","value":"LogSendEther"},"id":1072,"name":"Identifier","src":"753:12:7"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1073,"name":"Identifier","src":"766:3:7"}],"id":1074,"name":"MemberAccess","src":"766:10:7"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1058,"type":"address","value":"_to"},"id":1075,"name":"Identifier","src":"778:3:7"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"value","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1076,"name":"Identifier","src":"783:3:7"}],"id":1077,"name":"MemberAccess","src":"783:9:7"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1060,"type":"string memory","value":"_description"},"id":1078,"name":"Identifier","src":"794:12:7"}],"id":1079,"name":"FunctionCall","src":"753:54:7"}],"id":1080,"name":"ExpressionStatement","src":"753:54:7"},{"attributes":{"functionReturnParameters":1064},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":1081,"name":"Literal","src":"823:4:7"}],"id":1082,"name":"Return","src":"816:11:7"}],"id":1083,"name":"Block","src":"712:122:7"}],"id":1084,"name":"FunctionDefinition","src":"637:197:7"}],"id":1085,"name":"ContractDefinition","src":"133:704:7"}],"id":1086,"name":"SourceUnit","src":"0:838:7"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T13:59:31.985Z"} +module.exports = {"contractName":"SendEther","abi":[{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"from","type":"address"},{"indexed":false,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"},{"indexed":false,"name":"description","type":"string"}],"name":"LogSendEther","type":"event"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_description","type":"string"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b50610272806100206000396000f300608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630988664914610053575b34801561004d57600080fd5b50600080fd5b6100cd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506100e7565b604051808215151515815260200191505060405180910390f35b60008273ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801561012f573d6000803e3d6000fd5b507fa8da2a10447235381d4a8921c260b89c83b471b8aff2127abc1d434348812e7133843485604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156101ff5780820151818401526020810190506101e4565b50505050905090810190601f16801561022c5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a160019050929150505600a165627a7a723058209dd10c9b074fc84521bd34959487ab1de4fbf9ab502d488f28a47345cbf192da0029","deployedBytecode":"0x608060405260043610610041576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630988664914610053575b34801561004d57600080fd5b50600080fd5b6100cd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506100e7565b604051808215151515815260200191505060405180910390f35b60008273ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801561012f573d6000803e3d6000fd5b507fa8da2a10447235381d4a8921c260b89c83b471b8aff2127abc1d434348812e7133843485604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200180602001828103825283818151815260200191508051906020019080838360005b838110156101ff5780820151818401526020810190506101e4565b50505050905090810190601f16801561022c5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a160019050929150505600a165627a7a723058209dd10c9b074fc84521bd34959487ab1de4fbf9ab502d488f28a47345cbf192da0029"} /***/ }), /* 898 */ /***/ (function(module, exports) { -module.exports = {"contractName":"StandardToken","abi":[{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b610ff18061001e6000396000f30060606040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063095ea7b31461009357806318160ddd146100ed57806323b872dd14610116578063661884631461018f57806370a08231146101e9578063a9059cbb14610236578063d73dd62314610290578063dd62ed3e146102ea575b600080fd5b341561009e57600080fd5b6100d3600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610356565b604051808215151515815260200191505060405180910390f35b34156100f857600080fd5b610100610448565b6040518082815260200191505060405180910390f35b341561012157600080fd5b610175600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061044e565b604051808215151515815260200191505060405180910390f35b341561019a57600080fd5b6101cf600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061080d565b604051808215151515815260200191505060405180910390f35b34156101f457600080fd5b610220600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a9e565b6040518082815260200191505060405180910390f35b341561024157600080fd5b610276600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610ae7565b604051808215151515815260200191505060405180910390f35b341561029b57600080fd5b6102d0600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610d0b565b604051808215151515815260200191505060405180910390f35b34156102f557600080fd5b610340600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610f07565b6040518082815260200191505060405180910390f35b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60005481565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561048b57600080fd5b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156104d957600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561056457600080fd5b6105b682600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f8e90919063ffffffff16565b600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061064b82600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fa790919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061071d82600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f8e90919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508083111561091e576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109b2565b6109318382610f8e90919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610b2457600080fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548211151515610b7257600080fd5b610bc482600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f8e90919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610c5982600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fa790919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b6000610d9c82600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fa790919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000828211151515610f9c57fe5b818303905092915050565b6000808284019050838110151515610fbb57fe5b80915050929150505600a165627a7a723058201bcbfd82947670ccb775443e42704e14d3768ede95edb5a9c805ef5583558ba20029","deployedBytecode":"0x60606040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063095ea7b31461009357806318160ddd146100ed57806323b872dd14610116578063661884631461018f57806370a08231146101e9578063a9059cbb14610236578063d73dd62314610290578063dd62ed3e146102ea575b600080fd5b341561009e57600080fd5b6100d3600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610356565b604051808215151515815260200191505060405180910390f35b34156100f857600080fd5b610100610448565b6040518082815260200191505060405180910390f35b341561012157600080fd5b610175600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061044e565b604051808215151515815260200191505060405180910390f35b341561019a57600080fd5b6101cf600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190505061080d565b604051808215151515815260200191505060405180910390f35b34156101f457600080fd5b610220600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a9e565b6040518082815260200191505060405180910390f35b341561024157600080fd5b610276600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610ae7565b604051808215151515815260200191505060405180910390f35b341561029b57600080fd5b6102d0600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610d0b565b604051808215151515815260200191505060405180910390f35b34156102f557600080fd5b610340600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610f07565b6040518082815260200191505060405180910390f35b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b60005481565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415151561048b57600080fd5b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156104d957600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561056457600080fd5b6105b682600160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f8e90919063ffffffff16565b600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061064b82600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fa790919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061071d82600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f8e90919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508083111561091e576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506109b2565b6109318382610f8e90919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610b2457600080fd5b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548211151515610b7257600080fd5b610bc482600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f8e90919063ffffffff16565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610c5982600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fa790919063ffffffff16565b600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b6000610d9c82600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fa790919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000828211151515610f9c57fe5b818303905092915050565b6000808284019050838110151515610fbb57fe5b80915050929150505600a165627a7a723058201bcbfd82947670ccb775443e42704e14d3768ede95edb5a9c805ef5583558ba20029","sourceMap":"345:2984:9:-;;;;;;;;;;;;;;;;;","deployedSourceMap":"345:2984:9:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1799:183;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;179:26:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;737:439:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2928:398;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1018:107:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;437:379;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2667:257:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2301:126;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1799:183;1866:4;1910:6;1878:7;:19;1886:10;1878:19;;;;;;;;;;;;;;;:29;1898:8;1878:29;;;;;;;;;;;;;;;:38;;;;1943:8;1922:38;;1931:10;1922:38;;;1953:6;1922:38;;;;;;;;;;;;;;;;;;1973:4;1966:11;;1799:183;;;;:::o;179:26:8:-;;;;:::o;737:439:9:-;819:4;854:1;839:17;;:3;:17;;;;831:26;;;;;;;;881:8;:15;890:5;881:15;;;;;;;;;;;;;;;;871:6;:25;;863:34;;;;;;;;921:7;:14;929:5;921:14;;;;;;;;;;;;;;;:26;936:10;921:26;;;;;;;;;;;;;;;;911:6;:36;;903:45;;;;;;;;973:27;993:6;973:8;:15;982:5;973:15;;;;;;;;;;;;;;;;:19;;:27;;;;:::i;:::-;955:8;:15;964:5;955:15;;;;;;;;;;;;;;;:45;;;;1022:25;1040:6;1022:8;:13;1031:3;1022:13;;;;;;;;;;;;;;;;:17;;:25;;;;:::i;:::-;1006:8;:13;1015:3;1006:13;;;;;;;;;;;;;;;:41;;;;1082:38;1113:6;1082:7;:14;1090:5;1082:14;;;;;;;;;;;;;;;:26;1097:10;1082:26;;;;;;;;;;;;;;;;:30;;:38;;;;:::i;:::-;1053:7;:14;1061:5;1053:14;;;;;;;;;;;;;;;:26;1068:10;1053:26;;;;;;;;;;;;;;;:67;;;;1142:3;1126:28;;1135:5;1126:28;;;1147:6;1126:28;;;;;;;;;;;;;;;;;;1167:4;1160:11;;737:439;;;;;:::o;2928:398::-;3011:4;3023:13;3039:7;:19;3047:10;3039:19;;;;;;;;;;;;;;;:29;3059:8;3039:29;;;;;;;;;;;;;;;;3023:45;;3097:8;3078:16;:27;3074:164;;;3147:1;3115:7;:19;3123:10;3115:19;;;;;;;;;;;;;;;:29;3135:8;3115:29;;;;;;;;;;;;;;;:33;;;;3074:164;;;3201:30;3214:16;3201:8;:12;;:30;;;;:::i;:::-;3169:7;:19;3177:10;3169:19;;;;;;;;;;;;;;;:29;3189:8;3169:29;;;;;;;;;;;;;;;:62;;;;3074:164;3264:8;3243:61;;3252:10;3243:61;;;3274:7;:19;3282:10;3274:19;;;;;;;;;;;;;;;:29;3294:8;3274:29;;;;;;;;;;;;;;;;3243:61;;;;;;;;;;;;;;;;;;3317:4;3310:11;;2928:398;;;;;:::o;1018:107:6:-;1074:15;1104:8;:16;1113:6;1104:16;;;;;;;;;;;;;;;;1097:23;;1018:107;;;:::o;437:379::-;500:4;535:1;520:17;;:3;:17;;;;512:26;;;;;;;;562:8;:20;571:10;562:20;;;;;;;;;;;;;;;;552:6;:30;;544:39;;;;;;;;676:32;701:6;676:8;:20;685:10;676:20;;;;;;;;;;;;;;;;:24;;:32;;;;:::i;:::-;653:8;:20;662:10;653:20;;;;;;;;;;;;;;;:55;;;;730:25;748:6;730:8;:13;739:3;730:13;;;;;;;;;;;;;;;;:17;;:25;;;;:::i;:::-;714:8;:13;723:3;714:13;;;;;;;;;;;;;;;:41;;;;782:3;761:33;;770:10;761:33;;;787:6;761:33;;;;;;;;;;;;;;;;;;807:4;800:11;;437:379;;;;:::o;2667:257:9:-;2745:4;2789:46;2823:11;2789:7;:19;2797:10;2789:19;;;;;;;;;;;;;;;:29;2809:8;2789:29;;;;;;;;;;;;;;;;:33;;:46;;;;:::i;:::-;2757:7;:19;2765:10;2757:19;;;;;;;;;;;;;;;:29;2777:8;2757:29;;;;;;;;;;;;;;;:78;;;;2862:8;2841:61;;2850:10;2841:61;;;2872:7;:19;2880:10;2872:19;;;;;;;;;;;;;;;:29;2892:8;2872:29;;;;;;;;;;;;;;;;2841:61;;;;;;;;;;;;;;;;;;2915:4;2908:11;;2667:257;;;;:::o;2301:126::-;2375:7;2397;:15;2405:6;2397:15;;;;;;;;;;;;;;;:25;2413:8;2397:25;;;;;;;;;;;;;;;;2390:32;;2301:126;;;;:::o;584:110:4:-;642:7;669:1;664;:6;;657:14;;;;;;688:1;684;:5;677:12;;584:110;;;;:::o;698:129::-;756:7;771:9;787:1;783;:5;771:17;;806:1;801;:6;;794:14;;;;;;821:1;814:8;;698:129;;;;;:::o","source":"pragma solidity ^0.4.18;\n\n\nimport './BasicToken.sol';\nimport './ERC20.sol';\n\n\n/**\n * @title Standard ERC20 token\n *\n * @dev Implementation of the basic standard token.\n * @dev https://github.com/ethereum/EIPs/issues/20\n * @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol\n */\ncontract StandardToken is ERC20, BasicToken {\n\n mapping (address => mapping (address => uint256)) internal allowed;\n\n\n /**\n * @dev Transfer tokens from one address to another\n * @param _from address The address which you want to send tokens from\n * @param _to address The address which you want to transfer to\n * @param _value uint256 the amount of tokens to be transferred\n */\n function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {\n require(_to != address(0));\n require(_value <= balances[_from]);\n require(_value <= allowed[_from][msg.sender]);\n\n balances[_from] = balances[_from].sub(_value);\n balances[_to] = balances[_to].add(_value);\n allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);\n Transfer(_from, _to, _value);\n return true;\n }\n\n /**\n * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.\n *\n * Beware that changing an allowance with this method brings the risk that someone may use both the old\n * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this\n * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\n * @param _spender The address which will spend the funds.\n * @param _value The amount of tokens to be spent.\n */\n function approve(address _spender, uint256 _value) public returns (bool) {\n allowed[msg.sender][_spender] = _value;\n Approval(msg.sender, _spender, _value);\n return true;\n }\n\n /**\n * @dev Function to check the amount of tokens that an owner allowed to a spender.\n * @param _owner address The address which owns the funds.\n * @param _spender address The address which will spend the funds.\n * @return A uint256 specifying the amount of tokens still available for the spender.\n */\n function allowance(address _owner, address _spender) public view returns (uint256) {\n return allowed[_owner][_spender];\n }\n\n /**\n * approve should be called when allowed[_spender] == 0. To increment\n * allowed value is better to use this function to avoid 2 calls (and wait until\n * the first transaction is mined)\n * From MonolithDAO Token.sol\n */\n function increaseApproval(address _spender, uint _addedValue) public returns (bool) {\n allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);\n Approval(msg.sender, _spender, allowed[msg.sender][_spender]);\n return true;\n }\n\n function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {\n uint oldValue = allowed[msg.sender][_spender];\n if (_subtractedValue > oldValue) {\n allowed[msg.sender][_spender] = 0;\n } else {\n allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);\n }\n Approval(msg.sender, _spender, allowed[msg.sender][_spender]);\n return true;\n }\n\n}\n","sourcePath":"zeppelin-solidity/contracts/token/StandardToken.sol","ast":{"attributes":{"absolutePath":"zeppelin-solidity/contracts/token/StandardToken.sol","exportedSymbols":{"StandardToken":[1219]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":975,"name":"PragmaDirective","src":"0:24:9"},{"attributes":{"SourceUnit":902,"absolutePath":"zeppelin-solidity/contracts/token/BasicToken.sol","file":"./BasicToken.sol","scope":1220,"symbolAliases":[null],"unitAlias":""},"id":976,"name":"ImportDirective","src":"27:26:9"},{"attributes":{"SourceUnit":945,"absolutePath":"zeppelin-solidity/contracts/token/ERC20.sol","file":"./ERC20.sol","scope":1220,"symbolAliases":[null],"unitAlias":""},"id":977,"name":"ImportDirective","src":"54:21:9"},{"attributes":{"contractDependencies":[901,944,973],"contractKind":"contract","documentation":"@title Standard ERC20 token\n * @dev Implementation of the basic standard token.\n@dev https://github.com/ethereum/EIPs/issues/20\n@dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol","fullyImplemented":true,"linearizedBaseContracts":[1219,901,944,973],"name":"StandardToken","scope":1220},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"ERC20","referencedDeclaration":944,"type":"contract ERC20"},"id":978,"name":"UserDefinedTypeName","src":"371:5:9"}],"id":979,"name":"InheritanceSpecifier","src":"371:5:9"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"BasicToken","referencedDeclaration":901,"type":"contract BasicToken"},"id":980,"name":"UserDefinedTypeName","src":"378:10:9"}],"id":981,"name":"InheritanceSpecifier","src":"378:10:9"},{"attributes":{"constant":false,"name":"allowed","scope":1219,"stateVariable":true,"storageLocation":"default","type":"mapping(address => mapping(address => uint256))","value":null,"visibility":"internal"},"children":[{"attributes":{"type":"mapping(address => mapping(address => uint256))"},"children":[{"attributes":{"name":"address","type":"address"},"id":982,"name":"ElementaryTypeName","src":"403:7:9"},{"attributes":{"type":"mapping(address => uint256)"},"children":[{"attributes":{"name":"address","type":"address"},"id":983,"name":"ElementaryTypeName","src":"423:7:9"},{"attributes":{"name":"uint256","type":"uint256"},"id":984,"name":"ElementaryTypeName","src":"434:7:9"}],"id":985,"name":"Mapping","src":"414:28:9"}],"id":986,"name":"Mapping","src":"394:49:9"}],"id":987,"name":"VariableDeclaration","src":"394:66:9"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"transferFrom","payable":false,"scope":1219,"stateMutability":"nonpayable","superFunction":926,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_from","scope":1073,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":988,"name":"ElementaryTypeName","src":"759:7:9"}],"id":989,"name":"VariableDeclaration","src":"759:13:9"},{"attributes":{"constant":false,"name":"_to","scope":1073,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":990,"name":"ElementaryTypeName","src":"774:7:9"}],"id":991,"name":"VariableDeclaration","src":"774:11:9"},{"attributes":{"constant":false,"name":"_value","scope":1073,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":992,"name":"ElementaryTypeName","src":"787:7:9"}],"id":993,"name":"VariableDeclaration","src":"787:14:9"}],"id":994,"name":"ParameterList","src":"758:44:9"},{"children":[{"attributes":{"constant":false,"name":"","scope":1073,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":995,"name":"ElementaryTypeName","src":"819:4:9"}],"id":996,"name":"VariableDeclaration","src":"819:4:9"}],"id":997,"name":"ParameterList","src":"818:6:9"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"function (bool) pure","value":"require"},"id":998,"name":"Identifier","src":"831:7:9"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":991,"type":"address","value":"_to"},"id":999,"name":"Identifier","src":"839:3:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":true,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":1000,"name":"ElementaryTypeNameExpression","src":"846:7:9"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":1001,"name":"Literal","src":"854:1:9"}],"id":1002,"name":"FunctionCall","src":"846:10:9"}],"id":1003,"name":"BinaryOperation","src":"839:17:9"}],"id":1004,"name":"FunctionCall","src":"831:26:9"}],"id":1005,"name":"ExpressionStatement","src":"831:26:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"function (bool) pure","value":"require"},"id":1006,"name":"Identifier","src":"863:7:9"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":993,"type":"uint256","value":"_value"},"id":1007,"name":"Identifier","src":"871:6:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":828,"type":"mapping(address => uint256)","value":"balances"},"id":1008,"name":"Identifier","src":"881:8:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":989,"type":"address","value":"_from"},"id":1009,"name":"Identifier","src":"890:5:9"}],"id":1010,"name":"IndexAccess","src":"881:15:9"}],"id":1011,"name":"BinaryOperation","src":"871:25:9"}],"id":1012,"name":"FunctionCall","src":"863:34:9"}],"id":1013,"name":"ExpressionStatement","src":"863:34:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"function (bool) pure","value":"require"},"id":1014,"name":"Identifier","src":"903:7:9"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":993,"type":"uint256","value":"_value"},"id":1015,"name":"Identifier","src":"911:6:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(address => uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":987,"type":"mapping(address => mapping(address => uint256))","value":"allowed"},"id":1016,"name":"Identifier","src":"921:7:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":989,"type":"address","value":"_from"},"id":1017,"name":"Identifier","src":"929:5:9"}],"id":1018,"name":"IndexAccess","src":"921:14:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1019,"name":"Identifier","src":"936:3:9"}],"id":1020,"name":"MemberAccess","src":"936:10:9"}],"id":1021,"name":"IndexAccess","src":"921:26:9"}],"id":1022,"name":"BinaryOperation","src":"911:36:9"}],"id":1023,"name":"FunctionCall","src":"903:45:9"}],"id":1024,"name":"ExpressionStatement","src":"903:45:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":828,"type":"mapping(address => uint256)","value":"balances"},"id":1025,"name":"Identifier","src":"955:8:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":989,"type":"address","value":"_from"},"id":1026,"name":"Identifier","src":"964:5:9"}],"id":1027,"name":"IndexAccess","src":"955:15:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sub","referencedDeclaration":734,"type":"function (uint256,uint256) pure returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":828,"type":"mapping(address => uint256)","value":"balances"},"id":1028,"name":"Identifier","src":"973:8:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":989,"type":"address","value":"_from"},"id":1029,"name":"Identifier","src":"982:5:9"}],"id":1030,"name":"IndexAccess","src":"973:15:9"}],"id":1031,"name":"MemberAccess","src":"973:19:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":993,"type":"uint256","value":"_value"},"id":1032,"name":"Identifier","src":"993:6:9"}],"id":1033,"name":"FunctionCall","src":"973:27:9"}],"id":1034,"name":"Assignment","src":"955:45:9"}],"id":1035,"name":"ExpressionStatement","src":"955:45:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":828,"type":"mapping(address => uint256)","value":"balances"},"id":1036,"name":"Identifier","src":"1006:8:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":991,"type":"address","value":"_to"},"id":1037,"name":"Identifier","src":"1015:3:9"}],"id":1038,"name":"IndexAccess","src":"1006:13:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"add","referencedDeclaration":758,"type":"function (uint256,uint256) pure returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":828,"type":"mapping(address => uint256)","value":"balances"},"id":1039,"name":"Identifier","src":"1022:8:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":991,"type":"address","value":"_to"},"id":1040,"name":"Identifier","src":"1031:3:9"}],"id":1041,"name":"IndexAccess","src":"1022:13:9"}],"id":1042,"name":"MemberAccess","src":"1022:17:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":993,"type":"uint256","value":"_value"},"id":1043,"name":"Identifier","src":"1040:6:9"}],"id":1044,"name":"FunctionCall","src":"1022:25:9"}],"id":1045,"name":"Assignment","src":"1006:41:9"}],"id":1046,"name":"ExpressionStatement","src":"1006:41:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(address => uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":987,"type":"mapping(address => mapping(address => uint256))","value":"allowed"},"id":1047,"name":"Identifier","src":"1053:7:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":989,"type":"address","value":"_from"},"id":1048,"name":"Identifier","src":"1061:5:9"}],"id":1051,"name":"IndexAccess","src":"1053:14:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1049,"name":"Identifier","src":"1068:3:9"}],"id":1050,"name":"MemberAccess","src":"1068:10:9"}],"id":1052,"name":"IndexAccess","src":"1053:26:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sub","referencedDeclaration":734,"type":"function (uint256,uint256) pure returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(address => uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":987,"type":"mapping(address => mapping(address => uint256))","value":"allowed"},"id":1053,"name":"Identifier","src":"1082:7:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":989,"type":"address","value":"_from"},"id":1054,"name":"Identifier","src":"1090:5:9"}],"id":1055,"name":"IndexAccess","src":"1082:14:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1056,"name":"Identifier","src":"1097:3:9"}],"id":1057,"name":"MemberAccess","src":"1097:10:9"}],"id":1058,"name":"IndexAccess","src":"1082:26:9"}],"id":1059,"name":"MemberAccess","src":"1082:30:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":993,"type":"uint256","value":"_value"},"id":1060,"name":"Identifier","src":"1113:6:9"}],"id":1061,"name":"FunctionCall","src":"1082:38:9"}],"id":1062,"name":"Assignment","src":"1053:67:9"}],"id":1063,"name":"ExpressionStatement","src":"1053:67:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":972,"type":"function (address,address,uint256)","value":"Transfer"},"id":1064,"name":"Identifier","src":"1126:8:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":989,"type":"address","value":"_from"},"id":1065,"name":"Identifier","src":"1135:5:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":991,"type":"address","value":"_to"},"id":1066,"name":"Identifier","src":"1142:3:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":993,"type":"uint256","value":"_value"},"id":1067,"name":"Identifier","src":"1147:6:9"}],"id":1068,"name":"FunctionCall","src":"1126:28:9"}],"id":1069,"name":"ExpressionStatement","src":"1126:28:9"},{"attributes":{"functionReturnParameters":997},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":1070,"name":"Literal","src":"1167:4:9"}],"id":1071,"name":"Return","src":"1160:11:9"}],"id":1072,"name":"Block","src":"825:351:9"}],"id":1073,"name":"FunctionDefinition","src":"737:439:9"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"approve","payable":false,"scope":1219,"stateMutability":"nonpayable","superFunction":935,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_spender","scope":1101,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1074,"name":"ElementaryTypeName","src":"1816:7:9"}],"id":1075,"name":"VariableDeclaration","src":"1816:16:9"},{"attributes":{"constant":false,"name":"_value","scope":1101,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":1076,"name":"ElementaryTypeName","src":"1834:7:9"}],"id":1077,"name":"VariableDeclaration","src":"1834:14:9"}],"id":1078,"name":"ParameterList","src":"1815:34:9"},{"children":[{"attributes":{"constant":false,"name":"","scope":1101,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":1079,"name":"ElementaryTypeName","src":"1866:4:9"}],"id":1080,"name":"VariableDeclaration","src":"1866:4:9"}],"id":1081,"name":"ParameterList","src":"1865:6:9"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(address => uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":987,"type":"mapping(address => mapping(address => uint256))","value":"allowed"},"id":1082,"name":"Identifier","src":"1878:7:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1083,"name":"Identifier","src":"1886:3:9"}],"id":1084,"name":"MemberAccess","src":"1886:10:9"}],"id":1086,"name":"IndexAccess","src":"1878:19:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1075,"type":"address","value":"_spender"},"id":1085,"name":"Identifier","src":"1898:8:9"}],"id":1087,"name":"IndexAccess","src":"1878:29:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1077,"type":"uint256","value":"_value"},"id":1088,"name":"Identifier","src":"1910:6:9"}],"id":1089,"name":"Assignment","src":"1878:38:9"}],"id":1090,"name":"ExpressionStatement","src":"1878:38:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":943,"type":"function (address,address,uint256)","value":"Approval"},"id":1091,"name":"Identifier","src":"1922:8:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1092,"name":"Identifier","src":"1931:3:9"}],"id":1093,"name":"MemberAccess","src":"1931:10:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1075,"type":"address","value":"_spender"},"id":1094,"name":"Identifier","src":"1943:8:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1077,"type":"uint256","value":"_value"},"id":1095,"name":"Identifier","src":"1953:6:9"}],"id":1096,"name":"FunctionCall","src":"1922:38:9"}],"id":1097,"name":"ExpressionStatement","src":"1922:38:9"},{"attributes":{"functionReturnParameters":1081},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":1098,"name":"Literal","src":"1973:4:9"}],"id":1099,"name":"Return","src":"1966:11:9"}],"id":1100,"name":"Block","src":"1872:110:9"}],"id":1101,"name":"FunctionDefinition","src":"1799:183:9"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"allowance","payable":false,"scope":1219,"stateMutability":"view","superFunction":915,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_owner","scope":1117,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1102,"name":"ElementaryTypeName","src":"2320:7:9"}],"id":1103,"name":"VariableDeclaration","src":"2320:14:9"},{"attributes":{"constant":false,"name":"_spender","scope":1117,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1104,"name":"ElementaryTypeName","src":"2336:7:9"}],"id":1105,"name":"VariableDeclaration","src":"2336:16:9"}],"id":1106,"name":"ParameterList","src":"2319:34:9"},{"children":[{"attributes":{"constant":false,"name":"","scope":1117,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":1107,"name":"ElementaryTypeName","src":"2375:7:9"}],"id":1108,"name":"VariableDeclaration","src":"2375:7:9"}],"id":1109,"name":"ParameterList","src":"2374:9:9"},{"children":[{"attributes":{"functionReturnParameters":1109},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(address => uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":987,"type":"mapping(address => mapping(address => uint256))","value":"allowed"},"id":1110,"name":"Identifier","src":"2397:7:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1103,"type":"address","value":"_owner"},"id":1111,"name":"Identifier","src":"2405:6:9"}],"id":1112,"name":"IndexAccess","src":"2397:15:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1105,"type":"address","value":"_spender"},"id":1113,"name":"Identifier","src":"2413:8:9"}],"id":1114,"name":"IndexAccess","src":"2397:25:9"}],"id":1115,"name":"Return","src":"2390:32:9"}],"id":1116,"name":"Block","src":"2384:43:9"}],"id":1117,"name":"FunctionDefinition","src":"2301:126:9"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"increaseApproval","payable":false,"scope":1219,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_spender","scope":1158,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1118,"name":"ElementaryTypeName","src":"2693:7:9"}],"id":1119,"name":"VariableDeclaration","src":"2693:16:9"},{"attributes":{"constant":false,"name":"_addedValue","scope":1158,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1120,"name":"ElementaryTypeName","src":"2711:4:9"}],"id":1121,"name":"VariableDeclaration","src":"2711:16:9"}],"id":1122,"name":"ParameterList","src":"2692:36:9"},{"children":[{"attributes":{"constant":false,"name":"","scope":1158,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":1123,"name":"ElementaryTypeName","src":"2745:4:9"}],"id":1124,"name":"VariableDeclaration","src":"2745:4:9"}],"id":1125,"name":"ParameterList","src":"2744:6:9"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(address => uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":987,"type":"mapping(address => mapping(address => uint256))","value":"allowed"},"id":1126,"name":"Identifier","src":"2757:7:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1127,"name":"Identifier","src":"2765:3:9"}],"id":1128,"name":"MemberAccess","src":"2765:10:9"}],"id":1130,"name":"IndexAccess","src":"2757:19:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1119,"type":"address","value":"_spender"},"id":1129,"name":"Identifier","src":"2777:8:9"}],"id":1131,"name":"IndexAccess","src":"2757:29:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"add","referencedDeclaration":758,"type":"function (uint256,uint256) pure returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(address => uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":987,"type":"mapping(address => mapping(address => uint256))","value":"allowed"},"id":1132,"name":"Identifier","src":"2789:7:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1133,"name":"Identifier","src":"2797:3:9"}],"id":1134,"name":"MemberAccess","src":"2797:10:9"}],"id":1135,"name":"IndexAccess","src":"2789:19:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1119,"type":"address","value":"_spender"},"id":1136,"name":"Identifier","src":"2809:8:9"}],"id":1137,"name":"IndexAccess","src":"2789:29:9"}],"id":1138,"name":"MemberAccess","src":"2789:33:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1121,"type":"uint256","value":"_addedValue"},"id":1139,"name":"Identifier","src":"2823:11:9"}],"id":1140,"name":"FunctionCall","src":"2789:46:9"}],"id":1141,"name":"Assignment","src":"2757:78:9"}],"id":1142,"name":"ExpressionStatement","src":"2757:78:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":943,"type":"function (address,address,uint256)","value":"Approval"},"id":1143,"name":"Identifier","src":"2841:8:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1144,"name":"Identifier","src":"2850:3:9"}],"id":1145,"name":"MemberAccess","src":"2850:10:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1119,"type":"address","value":"_spender"},"id":1146,"name":"Identifier","src":"2862:8:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(address => uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":987,"type":"mapping(address => mapping(address => uint256))","value":"allowed"},"id":1147,"name":"Identifier","src":"2872:7:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1148,"name":"Identifier","src":"2880:3:9"}],"id":1149,"name":"MemberAccess","src":"2880:10:9"}],"id":1150,"name":"IndexAccess","src":"2872:19:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1119,"type":"address","value":"_spender"},"id":1151,"name":"Identifier","src":"2892:8:9"}],"id":1152,"name":"IndexAccess","src":"2872:29:9"}],"id":1153,"name":"FunctionCall","src":"2841:61:9"}],"id":1154,"name":"ExpressionStatement","src":"2841:61:9"},{"attributes":{"functionReturnParameters":1125},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":1155,"name":"Literal","src":"2915:4:9"}],"id":1156,"name":"Return","src":"2908:11:9"}],"id":1157,"name":"Block","src":"2751:173:9"}],"id":1158,"name":"FunctionDefinition","src":"2667:257:9"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"decreaseApproval","payable":false,"scope":1219,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_spender","scope":1218,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1159,"name":"ElementaryTypeName","src":"2954:7:9"}],"id":1160,"name":"VariableDeclaration","src":"2954:16:9"},{"attributes":{"constant":false,"name":"_subtractedValue","scope":1218,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1161,"name":"ElementaryTypeName","src":"2972:4:9"}],"id":1162,"name":"VariableDeclaration","src":"2972:21:9"}],"id":1163,"name":"ParameterList","src":"2953:41:9"},{"children":[{"attributes":{"constant":false,"name":"","scope":1218,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":1164,"name":"ElementaryTypeName","src":"3011:4:9"}],"id":1165,"name":"VariableDeclaration","src":"3011:4:9"}],"id":1166,"name":"ParameterList","src":"3010:6:9"},{"children":[{"attributes":{"assignments":[1168]},"children":[{"attributes":{"constant":false,"name":"oldValue","scope":1218,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1167,"name":"ElementaryTypeName","src":"3023:4:9"}],"id":1168,"name":"VariableDeclaration","src":"3023:13:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(address => uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":987,"type":"mapping(address => mapping(address => uint256))","value":"allowed"},"id":1169,"name":"Identifier","src":"3039:7:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1170,"name":"Identifier","src":"3047:3:9"}],"id":1171,"name":"MemberAccess","src":"3047:10:9"}],"id":1172,"name":"IndexAccess","src":"3039:19:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1160,"type":"address","value":"_spender"},"id":1173,"name":"Identifier","src":"3059:8:9"}],"id":1174,"name":"IndexAccess","src":"3039:29:9"}],"id":1175,"name":"VariableDeclarationStatement","src":"3023:45:9"},{"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":">","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1162,"type":"uint256","value":"_subtractedValue"},"id":1176,"name":"Identifier","src":"3078:16:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1168,"type":"uint256","value":"oldValue"},"id":1177,"name":"Identifier","src":"3097:8:9"}],"id":1178,"name":"BinaryOperation","src":"3078:27:9"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(address => uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":987,"type":"mapping(address => mapping(address => uint256))","value":"allowed"},"id":1179,"name":"Identifier","src":"3115:7:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1180,"name":"Identifier","src":"3123:3:9"}],"id":1181,"name":"MemberAccess","src":"3123:10:9"}],"id":1183,"name":"IndexAccess","src":"3115:19:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1160,"type":"address","value":"_spender"},"id":1182,"name":"Identifier","src":"3135:8:9"}],"id":1184,"name":"IndexAccess","src":"3115:29:9"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":1185,"name":"Literal","src":"3147:1:9"}],"id":1186,"name":"Assignment","src":"3115:33:9"}],"id":1187,"name":"ExpressionStatement","src":"3115:33:9"}],"id":1188,"name":"Block","src":"3107:48:9"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(address => uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":987,"type":"mapping(address => mapping(address => uint256))","value":"allowed"},"id":1189,"name":"Identifier","src":"3169:7:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1190,"name":"Identifier","src":"3177:3:9"}],"id":1191,"name":"MemberAccess","src":"3177:10:9"}],"id":1193,"name":"IndexAccess","src":"3169:19:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1160,"type":"address","value":"_spender"},"id":1192,"name":"Identifier","src":"3189:8:9"}],"id":1194,"name":"IndexAccess","src":"3169:29:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sub","referencedDeclaration":734,"type":"function (uint256,uint256) pure returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1168,"type":"uint256","value":"oldValue"},"id":1195,"name":"Identifier","src":"3201:8:9"}],"id":1196,"name":"MemberAccess","src":"3201:12:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1162,"type":"uint256","value":"_subtractedValue"},"id":1197,"name":"Identifier","src":"3214:16:9"}],"id":1198,"name":"FunctionCall","src":"3201:30:9"}],"id":1199,"name":"Assignment","src":"3169:62:9"}],"id":1200,"name":"ExpressionStatement","src":"3169:62:9"}],"id":1201,"name":"Block","src":"3161:77:9"}],"id":1202,"name":"IfStatement","src":"3074:164:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":943,"type":"function (address,address,uint256)","value":"Approval"},"id":1203,"name":"Identifier","src":"3243:8:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1204,"name":"Identifier","src":"3252:3:9"}],"id":1205,"name":"MemberAccess","src":"3252:10:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1160,"type":"address","value":"_spender"},"id":1206,"name":"Identifier","src":"3264:8:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(address => uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":987,"type":"mapping(address => mapping(address => uint256))","value":"allowed"},"id":1207,"name":"Identifier","src":"3274:7:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":1208,"name":"Identifier","src":"3282:3:9"}],"id":1209,"name":"MemberAccess","src":"3282:10:9"}],"id":1210,"name":"IndexAccess","src":"3274:19:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1160,"type":"address","value":"_spender"},"id":1211,"name":"Identifier","src":"3294:8:9"}],"id":1212,"name":"IndexAccess","src":"3274:29:9"}],"id":1213,"name":"FunctionCall","src":"3243:61:9"}],"id":1214,"name":"ExpressionStatement","src":"3243:61:9"},{"attributes":{"functionReturnParameters":1166},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":1215,"name":"Literal","src":"3317:4:9"}],"id":1216,"name":"Return","src":"3310:11:9"}],"id":1217,"name":"Block","src":"3017:309:9"}],"id":1218,"name":"FunctionDefinition","src":"2928:398:9"}],"id":1219,"name":"ContractDefinition","src":"345:2984:9"}],"id":1220,"name":"SourceUnit","src":"0:3330:9"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T14:06:20.136Z"} +module.exports = {"contractName":"StandardToken","abi":[{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b50611037806100206000396000f30060806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063095ea7b31461009357806318160ddd146100f857806323b872dd1461012357806366188463146101a857806370a082311461020d578063a9059cbb14610264578063d73dd623146102c9578063dd62ed3e1461032e575b600080fd5b34801561009f57600080fd5b506100de600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506103a5565b604051808215151515815260200191505060405180910390f35b34801561010457600080fd5b5061010d610497565b6040518082815260200191505060405180910390f35b34801561012f57600080fd5b5061018e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506104a1565b604051808215151515815260200191505060405180910390f35b3480156101b457600080fd5b506101f3600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061085b565b604051808215151515815260200191505060405180910390f35b34801561021957600080fd5b5061024e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610aec565b6040518082815260200191505060405180910390f35b34801561027057600080fd5b506102af600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b34565b604051808215151515815260200191505060405180910390f35b3480156102d557600080fd5b50610314600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d53565b604051808215151515815260200191505060405180910390f35b34801561033a57600080fd5b5061038f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f4f565b6040518082815260200191505060405180910390f35b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b6000600154905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156104de57600080fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561052b57600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156105b657600080fd5b610607826000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fd690919063ffffffff16565b6000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061069a826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fef90919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061076b82600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fd690919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508083111561096c576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610a00565b61097f8382610fd690919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610b7157600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548211151515610bbe57600080fd5b610c0f826000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fd690919063ffffffff16565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610ca2826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fef90919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b6000610de482600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fef90919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000828211151515610fe457fe5b818303905092915050565b6000818301905082811015151561100257fe5b809050929150505600a165627a7a7230582071c8aed37151475403dd8ebb5431b1347acaf2ae1be6ec9336feaacb8ca2fc120029","deployedBytecode":"0x60806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063095ea7b31461009357806318160ddd146100f857806323b872dd1461012357806366188463146101a857806370a082311461020d578063a9059cbb14610264578063d73dd623146102c9578063dd62ed3e1461032e575b600080fd5b34801561009f57600080fd5b506100de600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506103a5565b604051808215151515815260200191505060405180910390f35b34801561010457600080fd5b5061010d610497565b6040518082815260200191505060405180910390f35b34801561012f57600080fd5b5061018e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506104a1565b604051808215151515815260200191505060405180910390f35b3480156101b457600080fd5b506101f3600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061085b565b604051808215151515815260200191505060405180910390f35b34801561021957600080fd5b5061024e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610aec565b6040518082815260200191505060405180910390f35b34801561027057600080fd5b506102af600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610b34565b604051808215151515815260200191505060405180910390f35b3480156102d557600080fd5b50610314600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d53565b604051808215151515815260200191505060405180910390f35b34801561033a57600080fd5b5061038f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f4f565b6040518082815260200191505060405180910390f35b600081600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040518082815260200191505060405180910390a36001905092915050565b6000600154905090565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141515156104de57600080fd5b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054821115151561052b57600080fd5b600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205482111515156105b657600080fd5b610607826000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fd690919063ffffffff16565b6000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061069a826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fef90919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555061076b82600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fd690919063ffffffff16565b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3600190509392505050565b600080600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490508083111561096c576000600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610a00565b61097f8382610fd690919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505b8373ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a3600191505092915050565b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614151515610b7157600080fd5b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548211151515610bbe57600080fd5b610c0f826000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fd690919063ffffffff16565b6000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610ca2826000808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fef90919063ffffffff16565b6000808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a36001905092915050565b6000610de482600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610fef90919063ffffffff16565b600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508273ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600260003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518082815260200191505060405180910390a36001905092915050565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905092915050565b6000828211151515610fe457fe5b818303905092915050565b6000818301905082811015151561100257fe5b809050929150505600a165627a7a7230582071c8aed37151475403dd8ebb5431b1347acaf2ae1be6ec9336feaacb8ca2fc120029"} /***/ }), /* 899 */ /***/ (function(module, exports) { -module.exports = {"contractName":"Store","abi":[{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"sales","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_videoId","type":"string"},{"indexed":false,"name":"_buyer","type":"address"},{"indexed":false,"name":"_price","type":"uint256"}],"name":"LogBuyVideo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"address"}],"name":"LogAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"int256"}],"name":"LogInt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"string"}],"name":"LogString","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"uint256"}],"name":"LogUint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"bytes"}],"name":"LogBytes","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"bytes32"}],"name":"LogBytes32","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"bool"}],"name":"LogBool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"videoId","type":"string"},{"name":"ipfsData","type":"string"}],"name":"buyVideo","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b604051602080610f1183398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610e55806100bc6000396000f30060606040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633560d4c51461007d5780637b103999146101355780638da5cb5b1461018a578063aace52fe146101df578063f2fde38b14610234575b341561007857600080fd5b600080fd5b341561008857600080fd5b61011b600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190505061026d565b604051808215151515815260200191505060405180910390f35b341561014057600080fd5b610148610b08565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561019557600080fd5b61019d610b2e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101ea57600080fd5b6101f2610b53565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561023f57600080fd5b61026b600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610b79565b005b600080600080600080600080600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561034657600080fd5b6102c65a03f1151561035757600080fd5b505050604051805190509850600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f566964656f730000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561042d57600080fd5b6102c65a03f1151561043e57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff1663693ec85e8d600060405160c001526040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b838110156104d85780820151818401526020810190506104bd565b50505050905090810190601f1680156105055780820380516001836020036101000a031916815260200191505b509250505060c060405180830381600087803b151561052357600080fd5b6102c65a03f1151561053457600080fd5b5050506040518051906020018051906020018051906020018051906020018051906020018051905097509750975097509750975061059c670de0b6b3a764000061058e61057f610cce565b8a610dba90919063ffffffff16565b610df590919063ffffffff16565b91508873ffffffffffffffffffffffffffffffffffffffff166323b872dd338b856000604051602001526040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b151561067d57600080fd5b6102c65a03f1151561068e57600080fd5b50505060405180519050506106ac8288610e1090919063ffffffff16565b90508873ffffffffffffffffffffffffffffffffffffffff166323b872dd338a846000604051602001526040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b151561078d57600080fd5b6102c65a03f1151561079e57600080fd5b5050506040518051905050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260058152602001807f53616c6573000000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561087357600080fd5b6102c65a03f1151561088457600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff1663e8e459e0338e8a8f6040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200184815260200180602001838103835286818151815260200191508051906020019080838360005b83811015610954578082015181840152602081019050610939565b50505050905090810190601f1680156109815780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b838110156109ba57808201518184015260208101905061099f565b50505050905090810190601f1680156109e75780820380516001836020036101000a031916815260200191505b509650505050505050600060405180830381600087803b1515610a0957600080fd5b6102c65a03f11515610a1a57600080fd5b5050507ffb16a0cb01447521c51cd70864c5a9fa252ff62fcff41f679b24426dc4793e278c338960405180806020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828103825285818151815260200191508051906020019080838360005b83811015610ab9578082015181840152602081019050610a9e565b50505050905090810190601f168015610ae65780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a16001995050505050505050505092915050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610bd457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610c1057600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663498bff006000604051602001526040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252601c8152602001807f566964656f5265646973747269627574696f6e506f6f6c536861726500000000815250602001915050602060405180830381600087803b1515610d9a57600080fd5b6102c65a03f11515610dab57600080fd5b50505060405180519050905090565b6000806000841415610dcf5760009150610dee565b8284029050828482811515610de057fe5b04141515610dea57fe5b8091505b5092915050565b6000808284811515610e0357fe5b0490508091505092915050565b6000828211151515610e1e57fe5b8183039050929150505600a165627a7a7230582064379455afdb4682ff9f3c2d95a83882916abc3c819bfcb9ef81e0a38dc2f3ed0029","deployedBytecode":"0x60606040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633560d4c51461007d5780637b103999146101355780638da5cb5b1461018a578063aace52fe146101df578063f2fde38b14610234575b341561007857600080fd5b600080fd5b341561008857600080fd5b61011b600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190505061026d565b604051808215151515815260200191505060405180910390f35b341561014057600080fd5b610148610b08565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561019557600080fd5b61019d610b2e565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101ea57600080fd5b6101f2610b53565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561023f57600080fd5b61026b600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610b79565b005b600080600080600080600080600080600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561034657600080fd5b6102c65a03f1151561035757600080fd5b505050604051805190509850600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f566964656f730000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561042d57600080fd5b6102c65a03f1151561043e57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff1663693ec85e8d600060405160c001526040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b838110156104d85780820151818401526020810190506104bd565b50505050905090810190601f1680156105055780820380516001836020036101000a031916815260200191505b509250505060c060405180830381600087803b151561052357600080fd5b6102c65a03f1151561053457600080fd5b5050506040518051906020018051906020018051906020018051906020018051906020018051905097509750975097509750975061059c670de0b6b3a764000061058e61057f610cce565b8a610dba90919063ffffffff16565b610df590919063ffffffff16565b91508873ffffffffffffffffffffffffffffffffffffffff166323b872dd338b856000604051602001526040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b151561067d57600080fd5b6102c65a03f1151561068e57600080fd5b50505060405180519050506106ac8288610e1090919063ffffffff16565b90508873ffffffffffffffffffffffffffffffffffffffff166323b872dd338a846000604051602001526040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b151561078d57600080fd5b6102c65a03f1151561079e57600080fd5b5050506040518051905050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260058152602001807f53616c6573000000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561087357600080fd5b6102c65a03f1151561088457600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff1663e8e459e0338e8a8f6040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200184815260200180602001838103835286818151815260200191508051906020019080838360005b83811015610954578082015181840152602081019050610939565b50505050905090810190601f1680156109815780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b838110156109ba57808201518184015260208101905061099f565b50505050905090810190601f1680156109e75780820380516001836020036101000a031916815260200191505b509650505050505050600060405180830381600087803b1515610a0957600080fd5b6102c65a03f11515610a1a57600080fd5b5050507ffb16a0cb01447521c51cd70864c5a9fa252ff62fcff41f679b24426dc4793e278c338960405180806020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828103825285818151815260200191508051906020019080838360005b83811015610ab9578082015181840152602081019050610a9e565b50505050905090810190601f168015610ae65780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a16001995050505050505050505092915050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610bd457600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610c1057600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663498bff006000604051602001526040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252601c8152602001807f566964656f5265646973747269627574696f6e506f6f6c536861726500000000815250602001915050602060405180830381600087803b1515610d9a57600080fd5b6102c65a03f11515610dab57600080fd5b50505060405180519050905090565b6000806000841415610dcf5760009150610dee565b8284029050828482811515610de057fe5b04141515610dea57fe5b8091505b5092915050565b6000808284811515610e0357fe5b0490508091505092915050565b6000828211151515610e1e57fe5b8183039050929150505600a165627a7a7230582064379455afdb4682ff9f3c2d95a83882916abc3c819bfcb9ef81e0a38dc2f3ed0029","sourceMap":"360:1618:8:-;;;558:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;509:10:15;501:5;;:18;;;;;;;;;;;;;;;;;;619:9:8;608:8;;:20;;;;;;;;;;;;;;;;;;558:77;360:1618;;;;;;","deployedSourceMap":"360:1618:8:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;739:8;;;1015:765;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;457:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;433:18:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;834:169:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;1015:765:8;1081:4;1136:13;1271:5;1278;1285:2;1289:3;1294:2;1298;1364:19;1515:17;1159:8;;;;;;;;;;;:20;;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1136:54;;1311:8;;;;;;;;;;;:20;;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1304:42;;;1347:7;1304:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1266:89:8;;;;;;;;;;;;1386:50;1427:8;1386:36;1396:25;:23;:25::i;:::-;1386:5;:9;;:36;;;;:::i;:::-;:40;;:50;;;;:::i;:::-;1364:72;;1445:6;:19;;;1465:10;1485:6;1494:11;1445:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1535:22;1545:11;1535:5;:9;;:22;;;;:::i;:::-;1515:42;;1566:6;:19;;;1586:10;1598:5;1605:9;1566:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1630:8;;;;;;;;;;;:20;;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1624:43;;;1668:10;1680:7;1689:5;1696:8;1624:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1714:39:8;1726:7;1735:10;1747:5;1714:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1769:4:8;1762:11;;1015:765;;;;;;;;;;;;;:::o;457:24::-;;;;;;;;;;;;;:::o;238:20:15:-;;;;;;;;;;;;;:::o;433:18:8:-;;;;;;;;;;;;;:::o;834:169:15:-;654:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;930:1;910:22;;:8;:22;;;;902:31;;;;;;;;967:8;939:37;;960:5;;;;;;;;;;;939:37;;;;;;;;;;;;990:8;982:5;;:16;;;;;;;;;;;;;;;;;;834:169;:::o;1786:190:8:-;1847:7;1921:8;;;;;;;;;;;:16;;;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1914:55;;1786:190;:::o;138:173:14:-;196:7;251:9;220:1;215;:6;211:35;;;238:1;231:8;;;;211:35;267:1;263;:5;251:17;;290:1;285;281;:5;;;;;;;;:10;274:18;;;;;;305:1;298:8;;138:173;;;;;;:::o;315:265::-;373:7;462:9;478:1;474;:5;;;;;;;;462:17;;574:1;567:8;;315:265;;;;;:::o;584:110::-;642:7;669:1;664;:6;;657:14;;;;;;688:1;684;:5;677:12;;584:110;;;;:::o","source":"pragma solidity ^0.4.18;\n\nimport 'zeppelin-solidity/contracts/math/SafeMath.sol';\nimport './Avatar.sol';\nimport './ParatiiToken.sol';\nimport './Registry.sol';\nimport './Sales.sol';\nimport './Users.sol';\nimport './Videos.sol';\nimport '../debug/Debug.sol';\n\n\n/**\n * @title Store\n * @dev A Contract that wraps the native transfer function and logs an event.\n */\n\ncontract Store is Ownable, Debug {\n\n using SafeMath for uint256;\n\n Sales public sales;\n Registry public registry;\n\n event LogBuyVideo(string _videoId, address _buyer, uint _price);\n\n function Store(Registry _registry) public {\n registry = _registry;\n }\n\n // If someone accidentally sends ether to this contract, revert;\n function () public {\n revert();\n }\n\n /**\n * @dev buyVideo msg.sender buys a video\n * @param videoId the id of the video\n * For the transaction to succeed, the buyer must have approved for the Avatar to transfer\n * the sum to the owner and the redistribution pool.\n */\n function buyVideo(string videoId, string ipfsData) public returns(bool) {\n // get the info about the video\n Avatar avatar = Avatar(registry.getContract('Avatar'));\n /*Videos videos = Videos(registry.getContract('Videos'));*/\n var (owner, price, _3, _4_, _5, _6) = Videos(registry.getContract('Videos')).get(videoId);\n uint256 paratiiPart = price.mul(redistributionPoolShare()).div(10 ** 18);\n avatar.transferFrom(msg.sender, address(avatar), paratiiPart);\n uint256 ownerPart = price.sub(paratiiPart);\n avatar.transferFrom(msg.sender, owner, ownerPart);\n Sales(registry.getContract('Sales')).create(msg.sender, videoId, price, ipfsData);\n LogBuyVideo(videoId, msg.sender, price);\n return true;\n }\n\n function redistributionPoolShare() internal constant returns(uint256) {\n // the \"percentage\" in precision 10**18\n return registry.getUint('VideoRedistributionPoolShare');\n }\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Store.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Store.sol","exportedSymbols":{"Store":[1241]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":1087,"name":"PragmaDirective","src":"0:24:8"},{"attributes":{"SourceUnit":2461,"absolutePath":"zeppelin-solidity/contracts/math/SafeMath.sol","file":"zeppelin-solidity/contracts/math/SafeMath.sol","scope":1242,"symbolAliases":[null],"unitAlias":""},"id":1088,"name":"ImportDirective","src":"26:55:8"},{"attributes":{"SourceUnit":288,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Avatar.sol","file":"./Avatar.sol","scope":1242,"symbolAliases":[null],"unitAlias":""},"id":1089,"name":"ImportDirective","src":"82:22:8"},{"attributes":{"SourceUnit":632,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/ParatiiToken.sol","file":"./ParatiiToken.sol","scope":1242,"symbolAliases":[null],"unitAlias":""},"id":1090,"name":"ImportDirective","src":"105:28:8"},{"attributes":{"SourceUnit":857,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Registry.sol","file":"./Registry.sol","scope":1242,"symbolAliases":[null],"unitAlias":""},"id":1091,"name":"ImportDirective","src":"134:24:8"},{"attributes":{"SourceUnit":1038,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Sales.sol","file":"./Sales.sol","scope":1242,"symbolAliases":[null],"unitAlias":""},"id":1092,"name":"ImportDirective","src":"159:21:8"},{"attributes":{"SourceUnit":1758,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Users.sol","file":"./Users.sol","scope":1242,"symbolAliases":[null],"unitAlias":""},"id":1093,"name":"ImportDirective","src":"181:21:8"},{"attributes":{"SourceUnit":1988,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Videos.sol","file":"./Videos.sol","scope":1242,"symbolAliases":[null],"unitAlias":""},"id":1094,"name":"ImportDirective","src":"203:22:8"},{"attributes":{"SourceUnit":88,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/debug/Debug.sol","file":"../debug/Debug.sol","scope":1242,"symbolAliases":[null],"unitAlias":""},"id":1095,"name":"ImportDirective","src":"226:28:8"},{"attributes":{"contractDependencies":[87,2516],"contractKind":"contract","documentation":"@title Store\n@dev A Contract that wraps the native transfer function and logs an event.","fullyImplemented":true,"linearizedBaseContracts":[1241,87,2516],"name":"Store","scope":1242},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"Ownable","referencedDeclaration":2516,"type":"contract Ownable"},"id":1096,"name":"UserDefinedTypeName","src":"378:7:8"}],"id":1097,"name":"InheritanceSpecifier","src":"378:7:8"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"Debug","referencedDeclaration":87,"type":"contract Debug"},"id":1098,"name":"UserDefinedTypeName","src":"387:5:8"}],"id":1099,"name":"InheritanceSpecifier","src":"387:5:8"},{"children":[{"attributes":{"contractScope":null,"name":"SafeMath","referencedDeclaration":2460,"type":"library SafeMath"},"id":1100,"name":"UserDefinedTypeName","src":"406:8:8"},{"attributes":{"name":"uint256","type":"uint256"},"id":1101,"name":"ElementaryTypeName","src":"419:7:8"}],"id":1102,"name":"UsingForDirective","src":"400:27:8"},{"attributes":{"constant":false,"name":"sales","scope":1241,"stateVariable":true,"storageLocation":"default","type":"contract Sales","value":null,"visibility":"public"},"children":[{"attributes":{"contractScope":null,"name":"Sales","referencedDeclaration":1037,"type":"contract Sales"},"id":1103,"name":"UserDefinedTypeName","src":"433:5:8"}],"id":1104,"name":"VariableDeclaration","src":"433:18:8"},{"attributes":{"constant":false,"name":"registry","scope":1241,"stateVariable":true,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"public"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":1105,"name":"UserDefinedTypeName","src":"457:8:8"}],"id":1106,"name":"VariableDeclaration","src":"457:24:8"},{"attributes":{"anonymous":false,"name":"LogBuyVideo"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_videoId","scope":1114,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1107,"name":"ElementaryTypeName","src":"506:6:8"}],"id":1108,"name":"VariableDeclaration","src":"506:15:8"},{"attributes":{"constant":false,"indexed":false,"name":"_buyer","scope":1114,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1109,"name":"ElementaryTypeName","src":"523:7:8"}],"id":1110,"name":"VariableDeclaration","src":"523:14:8"},{"attributes":{"constant":false,"indexed":false,"name":"_price","scope":1114,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1111,"name":"ElementaryTypeName","src":"539:4:8"}],"id":1112,"name":"VariableDeclaration","src":"539:11:8"}],"id":1113,"name":"ParameterList","src":"505:46:8"}],"id":1114,"name":"EventDefinition","src":"488:64:8"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"Store","payable":false,"scope":1241,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_registry","scope":1124,"stateVariable":false,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":1115,"name":"UserDefinedTypeName","src":"573:8:8"}],"id":1116,"name":"VariableDeclaration","src":"573:18:8"}],"id":1117,"name":"ParameterList","src":"572:20:8"},{"attributes":{"parameters":[null]},"children":[],"id":1118,"name":"ParameterList","src":"600:0:8"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"contract Registry"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1106,"type":"contract Registry","value":"registry"},"id":1119,"name":"Identifier","src":"608:8:8"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1116,"type":"contract Registry","value":"_registry"},"id":1120,"name":"Identifier","src":"619:9:8"}],"id":1121,"name":"Assignment","src":"608:20:8"}],"id":1122,"name":"ExpressionStatement","src":"608:20:8"}],"id":1123,"name":"Block","src":"600:35:8"}],"id":1124,"name":"FunctionDefinition","src":"558:77:8"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"","payable":false,"scope":1241,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":1125,"name":"ParameterList","src":"719:2:8"},{"attributes":{"parameters":[null]},"children":[],"id":1126,"name":"ParameterList","src":"729:0:8"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"overloadedDeclarations":[null],"referencedDeclaration":2936,"type":"function () pure","value":"revert"},"id":1127,"name":"Identifier","src":"739:6:8"}],"id":1128,"name":"FunctionCall","src":"739:8:8"}],"id":1129,"name":"ExpressionStatement","src":"739:8:8"}],"id":1130,"name":"Block","src":"729:25:8"}],"id":1131,"name":"FunctionDefinition","src":"710:44:8"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"buyVideo","payable":false,"scope":1241,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"videoId","scope":1229,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1132,"name":"ElementaryTypeName","src":"1033:6:8"}],"id":1133,"name":"VariableDeclaration","src":"1033:14:8"},{"attributes":{"constant":false,"name":"ipfsData","scope":1229,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1134,"name":"ElementaryTypeName","src":"1049:6:8"}],"id":1135,"name":"VariableDeclaration","src":"1049:15:8"}],"id":1136,"name":"ParameterList","src":"1032:33:8"},{"children":[{"attributes":{"constant":false,"name":"","scope":1229,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":1137,"name":"ElementaryTypeName","src":"1081:4:8"}],"id":1138,"name":"VariableDeclaration","src":"1081:4:8"}],"id":1139,"name":"ParameterList","src":"1080:6:8"},{"children":[{"attributes":{"assignments":[1141]},"children":[{"attributes":{"constant":false,"name":"avatar","scope":1229,"stateVariable":false,"storageLocation":"default","type":"contract Avatar","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Avatar","referencedDeclaration":287,"type":"contract Avatar"},"id":1140,"name":"UserDefinedTypeName","src":"1136:6:8"}],"id":1141,"name":"VariableDeclaration","src":"1136:13:8"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract Avatar","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":287,"type":"type(contract Avatar)","value":"Avatar"},"id":1142,"name":"Identifier","src":"1152:6:8"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_29a36bb22f3c260ddca59a40dffde48863da1d6fba3d1f55dedde5c8e1942577","typeString":"literal_string \"Avatar\""}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getContract","referencedDeclaration":743,"type":"function (string memory) view external returns (address)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1106,"type":"contract Registry","value":"registry"},"id":1143,"name":"Identifier","src":"1159:8:8"}],"id":1144,"name":"MemberAccess","src":"1159:20:8"},{"attributes":{"argumentTypes":null,"hexvalue":"417661746172","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"Avatar\"","value":"Avatar"},"id":1145,"name":"Literal","src":"1180:8:8"}],"id":1146,"name":"FunctionCall","src":"1159:30:8"}],"id":1147,"name":"FunctionCall","src":"1152:38:8"}],"id":1148,"name":"VariableDeclarationStatement","src":"1136:54:8"},{"attributes":{"assignments":[1149,1150,1151,1152,1153,1154]},"children":[{"attributes":{"constant":false,"name":"owner","scope":1229,"stateVariable":false,"storageLocation":"default","type":"address","typeName":null,"value":null,"visibility":"internal"},"children":[],"id":1149,"name":"VariableDeclaration","src":"1271:5:8"},{"attributes":{"constant":false,"name":"price","scope":1229,"stateVariable":false,"storageLocation":"default","type":"uint256","typeName":null,"value":null,"visibility":"internal"},"children":[],"id":1150,"name":"VariableDeclaration","src":"1278:5:8"},{"attributes":{"constant":false,"name":"_3","scope":1229,"stateVariable":false,"storageLocation":"default","type":"inaccessible dynamic type","typeName":null,"value":null,"visibility":"internal"},"children":[],"id":1151,"name":"VariableDeclaration","src":"1285:2:8"},{"attributes":{"constant":false,"name":"_4_","scope":1229,"stateVariable":false,"storageLocation":"default","type":"inaccessible dynamic type","typeName":null,"value":null,"visibility":"internal"},"children":[],"id":1152,"name":"VariableDeclaration","src":"1289:3:8"},{"attributes":{"constant":false,"name":"_5","scope":1229,"stateVariable":false,"storageLocation":"default","type":"inaccessible dynamic type","typeName":null,"value":null,"visibility":"internal"},"children":[],"id":1153,"name":"VariableDeclaration","src":"1294:2:8"},{"attributes":{"constant":false,"name":"_6","scope":1229,"stateVariable":false,"storageLocation":"default","type":"address","typeName":null,"value":null,"visibility":"internal"},"children":[],"id":1154,"name":"VariableDeclaration","src":"1298:2:8"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple(address,uint256,inaccessible dynamic type,inaccessible dynamic type,inaccessible dynamic type,address)","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"get","referencedDeclaration":1986,"type":"function (string memory) view external returns (address,uint256,inaccessible dynamic type,inaccessible dynamic type,inaccessible dynamic type,address)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract Videos","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1987,"type":"type(contract Videos)","value":"Videos"},"id":1155,"name":"Identifier","src":"1304:6:8"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_ed4194c3d3576d84bc54d69a2c6f144769eb2c84e2a06099db4e77e6baf2b598","typeString":"literal_string \"Videos\""}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getContract","referencedDeclaration":743,"type":"function (string memory) view external returns (address)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1106,"type":"contract Registry","value":"registry"},"id":1156,"name":"Identifier","src":"1311:8:8"}],"id":1157,"name":"MemberAccess","src":"1311:20:8"},{"attributes":{"argumentTypes":null,"hexvalue":"566964656f73","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"Videos\"","value":"Videos"},"id":1158,"name":"Literal","src":"1332:8:8"}],"id":1159,"name":"FunctionCall","src":"1311:30:8"}],"id":1160,"name":"FunctionCall","src":"1304:38:8"}],"id":1161,"name":"MemberAccess","src":"1304:42:8"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1133,"type":"string memory","value":"videoId"},"id":1162,"name":"Identifier","src":"1347:7:8"}],"id":1163,"name":"FunctionCall","src":"1304:51:8"}],"id":1164,"name":"VariableDeclarationStatement","src":"1266:89:8"},{"attributes":{"assignments":[1166]},"children":[{"attributes":{"constant":false,"name":"paratiiPart","scope":1229,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":1165,"name":"ElementaryTypeName","src":"1364:7:8"}],"id":1166,"name":"VariableDeclaration","src":"1364:19:8"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_rational_1000000000000000000_by_1","typeString":"int_const 1000000000000000000"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"div","referencedDeclaration":2415,"type":"function (uint256,uint256) pure returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"mul","referencedDeclaration":2397,"type":"function (uint256,uint256) pure returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1150,"type":"uint256","value":"price"},"id":1167,"name":"Identifier","src":"1386:5:8"}],"id":1168,"name":"MemberAccess","src":"1386:9:8"},{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"overloadedDeclarations":[null],"referencedDeclaration":1240,"type":"function () view returns (uint256)","value":"redistributionPoolShare"},"id":1169,"name":"Identifier","src":"1396:23:8"}],"id":1170,"name":"FunctionCall","src":"1396:25:8"}],"id":1171,"name":"FunctionCall","src":"1386:36:8"}],"id":1172,"name":"MemberAccess","src":"1386:40:8"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_rational_1000000000000000000_by_1","typeString":"int_const 1000000000000000000"},"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"operator":"**","type":"int_const 1000000000000000000"},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"3130","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 10","value":"10"},"id":1173,"name":"Literal","src":"1427:2:8"},{"attributes":{"argumentTypes":null,"hexvalue":"3138","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 18","value":"18"},"id":1174,"name":"Literal","src":"1433:2:8"}],"id":1175,"name":"BinaryOperation","src":"1427:8:8"}],"id":1176,"name":"FunctionCall","src":"1386:50:8"}],"id":1177,"name":"VariableDeclarationStatement","src":"1364:72:8"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"transferFrom","referencedDeclaration":286,"type":"function (address,address,uint256) external returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1141,"type":"contract Avatar","value":"avatar"},"id":1178,"name":"Identifier","src":"1445:6:8"}],"id":1180,"name":"MemberAccess","src":"1445:19:8"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1181,"name":"Identifier","src":"1465:3:8"}],"id":1182,"name":"MemberAccess","src":"1465:10:8"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_contract$_Avatar_$287","typeString":"contract Avatar"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":1183,"name":"ElementaryTypeNameExpression","src":"1477:7:8"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1141,"type":"contract Avatar","value":"avatar"},"id":1184,"name":"Identifier","src":"1485:6:8"}],"id":1185,"name":"FunctionCall","src":"1477:15:8"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1166,"type":"uint256","value":"paratiiPart"},"id":1186,"name":"Identifier","src":"1494:11:8"}],"id":1187,"name":"FunctionCall","src":"1445:61:8"}],"id":1188,"name":"ExpressionStatement","src":"1445:61:8"},{"attributes":{"assignments":[1190]},"children":[{"attributes":{"constant":false,"name":"ownerPart","scope":1229,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":1189,"name":"ElementaryTypeName","src":"1515:7:8"}],"id":1190,"name":"VariableDeclaration","src":"1515:17:8"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sub","referencedDeclaration":2435,"type":"function (uint256,uint256) pure returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1150,"type":"uint256","value":"price"},"id":1191,"name":"Identifier","src":"1535:5:8"}],"id":1192,"name":"MemberAccess","src":"1535:9:8"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1166,"type":"uint256","value":"paratiiPart"},"id":1193,"name":"Identifier","src":"1545:11:8"}],"id":1194,"name":"FunctionCall","src":"1535:22:8"}],"id":1195,"name":"VariableDeclarationStatement","src":"1515:42:8"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"transferFrom","referencedDeclaration":286,"type":"function (address,address,uint256) external returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1141,"type":"contract Avatar","value":"avatar"},"id":1196,"name":"Identifier","src":"1566:6:8"}],"id":1198,"name":"MemberAccess","src":"1566:19:8"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1199,"name":"Identifier","src":"1586:3:8"}],"id":1200,"name":"MemberAccess","src":"1586:10:8"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1149,"type":"address","value":"owner"},"id":1201,"name":"Identifier","src":"1598:5:8"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1190,"type":"uint256","value":"ownerPart"},"id":1202,"name":"Identifier","src":"1605:9:8"}],"id":1203,"name":"FunctionCall","src":"1566:49:8"}],"id":1204,"name":"ExpressionStatement","src":"1566:49:8"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"create","referencedDeclaration":965,"type":"function (address,string memory,uint256,string memory) external"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract Sales","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1037,"type":"type(contract Sales)","value":"Sales"},"id":1205,"name":"Identifier","src":"1624:5:8"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_9fb5e9aeb2c8d6aa28d534c68969570c65173eca6ace3f0748a830d3b58d1253","typeString":"literal_string \"Sales\""}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getContract","referencedDeclaration":743,"type":"function (string memory) view external returns (address)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1106,"type":"contract Registry","value":"registry"},"id":1206,"name":"Identifier","src":"1630:8:8"}],"id":1207,"name":"MemberAccess","src":"1630:20:8"},{"attributes":{"argumentTypes":null,"hexvalue":"53616c6573","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"Sales\"","value":"Sales"},"id":1208,"name":"Literal","src":"1651:7:8"}],"id":1209,"name":"FunctionCall","src":"1630:29:8"}],"id":1210,"name":"FunctionCall","src":"1624:36:8"}],"id":1211,"name":"MemberAccess","src":"1624:43:8"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1212,"name":"Identifier","src":"1668:3:8"}],"id":1213,"name":"MemberAccess","src":"1668:10:8"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1133,"type":"string memory","value":"videoId"},"id":1214,"name":"Identifier","src":"1680:7:8"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1150,"type":"uint256","value":"price"},"id":1215,"name":"Identifier","src":"1689:5:8"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1135,"type":"string memory","value":"ipfsData"},"id":1216,"name":"Identifier","src":"1696:8:8"}],"id":1217,"name":"FunctionCall","src":"1624:81:8"}],"id":1218,"name":"ExpressionStatement","src":"1624:81:8"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":1114,"type":"function (string memory,address,uint256)","value":"LogBuyVideo"},"id":1219,"name":"Identifier","src":"1714:11:8"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1133,"type":"string memory","value":"videoId"},"id":1220,"name":"Identifier","src":"1726:7:8"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1221,"name":"Identifier","src":"1735:3:8"}],"id":1222,"name":"MemberAccess","src":"1735:10:8"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1150,"type":"uint256","value":"price"},"id":1223,"name":"Identifier","src":"1747:5:8"}],"id":1224,"name":"FunctionCall","src":"1714:39:8"}],"id":1225,"name":"ExpressionStatement","src":"1714:39:8"},{"attributes":{"functionReturnParameters":1139},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":1226,"name":"Literal","src":"1769:4:8"}],"id":1227,"name":"Return","src":"1762:11:8"}],"id":1228,"name":"Block","src":"1088:692:8"}],"id":1229,"name":"FunctionDefinition","src":"1015:765:8"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"redistributionPoolShare","payable":false,"scope":1241,"stateMutability":"view","superFunction":null,"visibility":"internal"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":1230,"name":"ParameterList","src":"1818:2:8"},{"children":[{"attributes":{"constant":false,"name":"","scope":1240,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":1231,"name":"ElementaryTypeName","src":"1847:7:8"}],"id":1232,"name":"VariableDeclaration","src":"1847:7:8"}],"id":1233,"name":"ParameterList","src":"1846:9:8"},{"children":[{"attributes":{"functionReturnParameters":1233},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"uint256","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_3c910653081477075993249719a0455a01128c4f6e3381bd692d78afd4bbdac3","typeString":"literal_string \"VideoRedistributionPoolShare\""}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getUint","referencedDeclaration":799,"type":"function (string memory) view external returns (uint256)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1106,"type":"contract Registry","value":"registry"},"id":1234,"name":"Identifier","src":"1921:8:8"}],"id":1235,"name":"MemberAccess","src":"1921:16:8"},{"attributes":{"argumentTypes":null,"hexvalue":"566964656f5265646973747269627574696f6e506f6f6c5368617265","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"VideoRedistributionPoolShare\"","value":"VideoRedistributionPoolShare"},"id":1236,"name":"Literal","src":"1938:30:8"}],"id":1237,"name":"FunctionCall","src":"1921:48:8"}],"id":1238,"name":"Return","src":"1914:55:8"}],"id":1239,"name":"Block","src":"1856:120:8"}],"id":1240,"name":"FunctionDefinition","src":"1786:190:8"}],"id":1241,"name":"ContractDefinition","src":"360:1618:8"}],"id":1242,"name":"SourceUnit","src":"0:1979:8"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T13:59:31.986Z"} +module.exports = {"contractName":"Store","abi":[{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"sales","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_videoId","type":"string"},{"indexed":false,"name":"_buyer","type":"address"},{"indexed":false,"name":"_price","type":"uint256"}],"name":"LogBuyVideo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"address"}],"name":"LogAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"int256"}],"name":"LogInt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"string"}],"name":"LogString","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"uint256"}],"name":"LogUint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"bytes"}],"name":"LogBytes","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"bytes32"}],"name":"LogBytes32","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_msg","type":"bool"}],"name":"LogBool","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"videoId","type":"string"},{"name":"ipfsData","type":"string"}],"name":"buyVideo","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b506040516020806110d783398101806040528101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050611013806100c46000396000f30060806040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633560d4c51461007f5780637b103999146101465780638da5cb5b1461019d578063aace52fe146101f4578063f2fde38b1461024b575b34801561007957600080fd5b50600080fd5b34801561008b57600080fd5b5061012c600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061028e565b604051808215151515815260200191505060405180910390f35b34801561015257600080fd5b5061015b610cb6565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101a957600080fd5b506101b2610cdc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561020057600080fd5b50610209610d01565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561025757600080fd5b5061028c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d27565b005b60008060008060608060606000806000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15801561036057600080fd5b505af1158015610374573d6000803e3d6000fd5b505050506040513d602081101561038a57600080fd5b81019080805190602001909291905050509850600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f566964656f730000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15801561045f57600080fd5b505af1158015610473573d6000803e3d6000fd5b505050506040513d602081101561048957600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1663693ec85e8d6040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610521578082015181840152602081019050610506565b50505050905090810190601f16801561054e5780820380516001836020036101000a031916815260200191505b5092505050600060405180830381600087803b15801561056d57600080fd5b505af1158015610581573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525060c08110156105ab57600080fd5b81019080805190602001909291908051906020019092919080516401000000008111156105d757600080fd5b828101905060208101848111156105ed57600080fd5b815185600182028301116401000000008211171561060a57600080fd5b5050929190602001805164010000000081111561062657600080fd5b8281019050602081018481111561063c57600080fd5b815185600182028301116401000000008211171561065957600080fd5b5050929190602001805164010000000081111561067557600080fd5b8281019050602081018481111561068b57600080fd5b81518560018202830111640100000000821117156106a857600080fd5b5050929190602001805190602001909291905050509750975097509750975097506106fd670de0b6b3a76400006106ef6106e0610e7c565b8a610f8090919063ffffffff16565b610fb890919063ffffffff16565b91508873ffffffffffffffffffffffffffffffffffffffff166323b872dd338b856040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156107d657600080fd5b505af11580156107ea573d6000803e3d6000fd5b505050506040513d602081101561080057600080fd5b8101908080519060200190929190505050506108258288610fce90919063ffffffff16565b90508873ffffffffffffffffffffffffffffffffffffffff166323b872dd338a846040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156108fe57600080fd5b505af1158015610912573d6000803e3d6000fd5b505050506040513d602081101561092857600080fd5b810190808051906020019092919050505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260058152602001807f53616c6573000000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b1580156109fc57600080fd5b505af1158015610a10573d6000803e3d6000fd5b505050506040513d6020811015610a2657600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1663e8e459e0338e8a8f6040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200184815260200180602001838103835286818151815260200191508051906020019080838360005b83811015610afd578082015181840152602081019050610ae2565b50505050905090810190601f168015610b2a5780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610b63578082015181840152602081019050610b48565b50505050905090810190601f168015610b905780820380516001836020036101000a031916815260200191505b509650505050505050600060405180830381600087803b158015610bb357600080fd5b505af1158015610bc7573d6000803e3d6000fd5b505050507ffb16a0cb01447521c51cd70864c5a9fa252ff62fcff41f679b24426dc4793e278c338960405180806020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828103825285818151815260200191508051906020019080838360005b83811015610c67578082015181840152602081019050610c4c565b50505050905090810190601f168015610c945780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a16001995050505050505050505092915050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d8257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610dbe57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663498bff006040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252601c8152602001807f566964656f5265646973747269627574696f6e506f6f6c536861726500000000815250602001915050602060405180830381600087803b158015610f4057600080fd5b505af1158015610f54573d6000803e3d6000fd5b505050506040513d6020811015610f6a57600080fd5b8101908080519060200190929190505050905090565b600080831415610f935760009050610fb2565b8183029050818382811515610fa457fe5b04141515610fae57fe5b8090505b92915050565b60008183811515610fc557fe5b04905092915050565b6000828211151515610fdc57fe5b8183039050929150505600a165627a7a72305820191f47581c61a10d63c35968e6f5c1d54947858335f73a77b80e253f2b5ffe960029","deployedBytecode":"0x60806040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680633560d4c51461007f5780637b103999146101465780638da5cb5b1461019d578063aace52fe146101f4578063f2fde38b1461024b575b34801561007957600080fd5b50600080fd5b34801561008b57600080fd5b5061012c600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061028e565b604051808215151515815260200191505060405180910390f35b34801561015257600080fd5b5061015b610cb6565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101a957600080fd5b506101b2610cdc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561020057600080fd5b50610209610d01565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561025757600080fd5b5061028c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d27565b005b60008060008060608060606000806000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15801561036057600080fd5b505af1158015610374573d6000803e3d6000fd5b505050506040513d602081101561038a57600080fd5b81019080805190602001909291905050509850600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f566964656f730000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15801561045f57600080fd5b505af1158015610473573d6000803e3d6000fd5b505050506040513d602081101561048957600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1663693ec85e8d6040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610521578082015181840152602081019050610506565b50505050905090810190601f16801561054e5780820380516001836020036101000a031916815260200191505b5092505050600060405180830381600087803b15801561056d57600080fd5b505af1158015610581573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525060c08110156105ab57600080fd5b81019080805190602001909291908051906020019092919080516401000000008111156105d757600080fd5b828101905060208101848111156105ed57600080fd5b815185600182028301116401000000008211171561060a57600080fd5b5050929190602001805164010000000081111561062657600080fd5b8281019050602081018481111561063c57600080fd5b815185600182028301116401000000008211171561065957600080fd5b5050929190602001805164010000000081111561067557600080fd5b8281019050602081018481111561068b57600080fd5b81518560018202830111640100000000821117156106a857600080fd5b5050929190602001805190602001909291905050509750975097509750975097506106fd670de0b6b3a76400006106ef6106e0610e7c565b8a610f8090919063ffffffff16565b610fb890919063ffffffff16565b91508873ffffffffffffffffffffffffffffffffffffffff166323b872dd338b856040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156107d657600080fd5b505af11580156107ea573d6000803e3d6000fd5b505050506040513d602081101561080057600080fd5b8101908080519060200190929190505050506108258288610fce90919063ffffffff16565b90508873ffffffffffffffffffffffffffffffffffffffff166323b872dd338a846040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1580156108fe57600080fd5b505af1158015610912573d6000803e3d6000fd5b505050506040513d602081101561092857600080fd5b810190808051906020019092919050505050600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260058152602001807f53616c6573000000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b1580156109fc57600080fd5b505af1158015610a10573d6000803e3d6000fd5b505050506040513d6020811015610a2657600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff1663e8e459e0338e8a8f6040518563ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200184815260200180602001838103835286818151815260200191508051906020019080838360005b83811015610afd578082015181840152602081019050610ae2565b50505050905090810190601f168015610b2a5780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610b63578082015181840152602081019050610b48565b50505050905090810190601f168015610b905780820380516001836020036101000a031916815260200191505b509650505050505050600060405180830381600087803b158015610bb357600080fd5b505af1158015610bc7573d6000803e3d6000fd5b505050507ffb16a0cb01447521c51cd70864c5a9fa252ff62fcff41f679b24426dc4793e278c338960405180806020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001838152602001828103825285818151815260200191508051906020019080838360005b83811015610c67578082015181840152602081019050610c4c565b50505050905090810190601f168015610c945780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a16001995050505050505050505092915050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d8257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610dbe57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663498bff006040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252601c8152602001807f566964656f5265646973747269627574696f6e506f6f6c536861726500000000815250602001915050602060405180830381600087803b158015610f4057600080fd5b505af1158015610f54573d6000803e3d6000fd5b505050506040513d6020811015610f6a57600080fd5b8101908080519060200190929190505050905090565b600080831415610f935760009050610fb2565b8183029050818382811515610fa457fe5b04141515610fae57fe5b8090505b92915050565b60008183811515610fc557fe5b04905092915050565b6000828211151515610fdc57fe5b8183039050929150505600a165627a7a72305820191f47581c61a10d63c35968e6f5c1d54947858335f73a77b80e253f2b5ffe960029"} /***/ }), /* 900 */ /***/ (function(module, exports) { -module.exports = {"contractName":"TcrPlaceholder","abi":[{"constant":true,"inputs":[],"name":"minDeposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"applyStageLen","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"listings","outputs":[{"name":"applicationExpiry","type":"uint256"},{"name":"whitelisted","type":"bool"},{"name":"owner","type":"address"},{"name":"unstakedDeposit","type":"uint256"},{"name":"challengeID","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_registry","type":"address"},{"name":"_tokenAddr","type":"address"},{"name":"_minDeposit","type":"uint256"},{"name":"_applyStageLen","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"videoId","type":"string"},{"indexed":false,"name":"deposit","type":"uint256"}],"name":"_Application","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"videoId","type":"string"}],"name":"_NewVideoWhitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"},{"name":"_amount","type":"uint256"}],"name":"apply","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"}],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"}],"name":"removeListing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"}],"name":"updateStatus","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_videoId","type":"string"}],"name":"isWhitelisted","outputs":[{"name":"whitelisted","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_videoId","type":"string"}],"name":"appWasMade","outputs":[{"name":"exists","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_termDate","type":"uint256"}],"name":"isExpired","outputs":[{"name":"expired","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getMinDeposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_videoId","type":"string"}],"name":"canBeWhitelisted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b6040516080806113f683398101604052808051906020019091908051906020019091908051906020019091908051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600381905550806004819055505050505061128d806101696000396000f3006060604052600436106100fc576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630eaad3f1146101015780630f53ba511461012a5780632c2159981461019f5780632e1a7d4d146101fc57806341b3d1851461021f5780635149606e146102485780637b103999146102a55780637f073360146102fa5780638da5cb5b14610323578063b48eea4414610378578063b6b55f25146103ed578063bfa535c714610410578063c18b8db414610447578063c53c614d146104ce578063d9548e5314610543578063e7fb53881461057e578063f2fde38b146105ac578063fc0c546a146105e5575b600080fd5b341561010c57600080fd5b61011461063a565b6040518082815260200191505060405180910390f35b341561013557600080fd5b610185600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610644565b604051808215151515815260200191505060405180910390f35b34156101aa57600080fd5b6101fa600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506106d0565b005b341561020757600080fd5b61021d6004808035906020019091905050610790565b005b341561022a57600080fd5b610232610793565b6040518082815260200191505060405180910390f35b341561025357600080fd5b6102a3600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610799565b005b34156102b057600080fd5b6102b8610800565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561030557600080fd5b61030d610826565b6040518082815260200191505060405180910390f35b341561032e57600080fd5b61033661082c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561038357600080fd5b6103d3600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610851565b604051808215151515815260200191505060405180910390f35b34156103f857600080fd5b61040e60048080359060200190919050506108e8565b005b341561041b57600080fd5b610445600480803590602001908201803590602001919091929080359060200190919050506108eb565b005b341561045257600080fd5b61046c600480803560001916906020019091905050610bc8565b60405180868152602001851515151581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018281526020019550505050505060405180910390f35b34156104d957600080fd5b610529600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610c2b565b604051808215151515815260200191505060405180910390f35b341561054e57600080fd5b6105646004808035906020019091905050610cf6565b604051808215151515815260200191505060405180910390f35b341561058957600080fd5b6105aa60048080359060200190820180359060200191909192905050610d02565b005b34156105b757600080fd5b6105e3600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610e21565b005b34156105f057600080fd5b6105f8610f76565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6000600354905090565b60008060016000846040518082805190602001908083835b602083101515610681578051825260208201915060208101905060208303925061065c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060000154119050919050565b6106d981610c2b565b15610788576106e781610f9c565b7fc92324d3d33d8a562daa770a1055b75689efa4374d7c65f0a9b2f6b9f090d796816040518080602001828103825283818151815260200191508051906020019080838360005b8381101561074957808201518184015260208101905061072e565b50505050905090810190601f1680156107765780820380516001836020036101000a031916815260200191505b509250505060405180910390a161078d565b600080fd5b50565b50565b60035481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156107f457600080fd5b6107fd8161103d565b50565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060016000836040518082805190602001908083835b60208310151561088d5780518252602082019150602081019050602083039250610868565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060010160009054906101000a900460ff169050919050565b50565b600061092884848080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050610851565b15151561093457600080fd5b61096f84848080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050610644565b15151561097b57600080fd5b600354821015151561098c57600080fd5b600160008585604051808383808284378201915050925050506040518091039020600019166000191681526020019081526020016000209050338160010160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8260010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1630856000604051602001526040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1515610b2d57600080fd5b6102c65a03f11515610b3e57600080fd5b505050604051805190501515610b5357600080fd5b600454430181600001819055508181600201819055507f8679b3793e06c33189be2319d77a55df6769e3b9061611d27f1809b3d56d2e6884848460405180806020018381526020018281038252858582818152602001925080828437820191505094505050505060405180910390a150505050565b60016020528060005260406000206000915090508060000154908060010160009054906101000a900460ff16908060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154908060030154905085565b600080826040518082805190602001908083835b602083101515610c645780518252602082019150602081019050602083039250610c3f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050610c9c83610644565b8015610ccb5750610cca60016000836000191660001916815260200190815260200160002060000154610cf6565b5b8015610cdd5750610cdb83610851565b155b15610ceb5760019150610cf0565b600091505b50919050565b60004382109050919050565b60006001600084846040518083838082843782019150509250505060405180910390206000191660001916815260200190815260200160002090508060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d9b57600080fd5b610dd683838080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050610851565b1515610de157600080fd5b610e1c83838080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505061103d565b505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e7c57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610eb857600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000816040518082805190602001908083835b602083101515610fd45780518252602082019150602081019050602083039250610faf565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090506001806000836000191660001916815260200190815260200160002060010160006101000a81548160ff0219169083151502179055505050565b600080826040518082805190602001908083835b6020831015156110765780518252602082019150602081019050602083039250611051565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020915060016000836000191660001916815260200190815260200160002090506000816002015411156111eb57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8260010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600201546000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15156111c457600080fd5b6102c65a03f115156111d557600080fd5b5050506040518051905015156111ea57600080fd5b5b6001600083600019166000191681526020019081526020016000206000808201600090556001820160006101000a81549060ff02191690556001820160016101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556002820160009055600382016000905550505050505600a165627a7a7230582088de85a257a120aa5505244bc2f26a98b9099542d4f953f024bf96a299f789210029","deployedBytecode":"0x6060604052600436106100fc576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630eaad3f1146101015780630f53ba511461012a5780632c2159981461019f5780632e1a7d4d146101fc57806341b3d1851461021f5780635149606e146102485780637b103999146102a55780637f073360146102fa5780638da5cb5b14610323578063b48eea4414610378578063b6b55f25146103ed578063bfa535c714610410578063c18b8db414610447578063c53c614d146104ce578063d9548e5314610543578063e7fb53881461057e578063f2fde38b146105ac578063fc0c546a146105e5575b600080fd5b341561010c57600080fd5b61011461063a565b6040518082815260200191505060405180910390f35b341561013557600080fd5b610185600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610644565b604051808215151515815260200191505060405180910390f35b34156101aa57600080fd5b6101fa600480803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506106d0565b005b341561020757600080fd5b61021d6004808035906020019091905050610790565b005b341561022a57600080fd5b610232610793565b6040518082815260200191505060405180910390f35b341561025357600080fd5b6102a3600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610799565b005b34156102b057600080fd5b6102b8610800565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561030557600080fd5b61030d610826565b6040518082815260200191505060405180910390f35b341561032e57600080fd5b61033661082c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561038357600080fd5b6103d3600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610851565b604051808215151515815260200191505060405180910390f35b34156103f857600080fd5b61040e60048080359060200190919050506108e8565b005b341561041b57600080fd5b610445600480803590602001908201803590602001919091929080359060200190919050506108eb565b005b341561045257600080fd5b61046c600480803560001916906020019091905050610bc8565b60405180868152602001851515151581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018281526020019550505050505060405180910390f35b34156104d957600080fd5b610529600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610c2b565b604051808215151515815260200191505060405180910390f35b341561054e57600080fd5b6105646004808035906020019091905050610cf6565b604051808215151515815260200191505060405180910390f35b341561058957600080fd5b6105aa60048080359060200190820180359060200191909192905050610d02565b005b34156105b757600080fd5b6105e3600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610e21565b005b34156105f057600080fd5b6105f8610f76565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6000600354905090565b60008060016000846040518082805190602001908083835b602083101515610681578051825260208201915060208101905060208303925061065c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060000154119050919050565b6106d981610c2b565b15610788576106e781610f9c565b7fc92324d3d33d8a562daa770a1055b75689efa4374d7c65f0a9b2f6b9f090d796816040518080602001828103825283818151815260200191508051906020019080838360005b8381101561074957808201518184015260208101905061072e565b50505050905090810190601f1680156107765780820380516001836020036101000a031916815260200191505b509250505060405180910390a161078d565b600080fd5b50565b50565b60035481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156107f457600080fd5b6107fd8161103d565b50565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060016000836040518082805190602001908083835b60208310151561088d5780518252602082019150602081019050602083039250610868565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060010160009054906101000a900460ff169050919050565b50565b600061092884848080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050610851565b15151561093457600080fd5b61096f84848080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050610644565b15151561097b57600080fd5b600354821015151561098c57600080fd5b600160008585604051808383808284378201915050925050506040518091039020600019166000191681526020019081526020016000209050338160010160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8260010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1630856000604051602001526040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b1515610b2d57600080fd5b6102c65a03f11515610b3e57600080fd5b505050604051805190501515610b5357600080fd5b600454430181600001819055508181600201819055507f8679b3793e06c33189be2319d77a55df6769e3b9061611d27f1809b3d56d2e6884848460405180806020018381526020018281038252858582818152602001925080828437820191505094505050505060405180910390a150505050565b60016020528060005260406000206000915090508060000154908060010160009054906101000a900460ff16908060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154908060030154905085565b600080826040518082805190602001908083835b602083101515610c645780518252602082019150602081019050602083039250610c3f565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050610c9c83610644565b8015610ccb5750610cca60016000836000191660001916815260200190815260200160002060000154610cf6565b5b8015610cdd5750610cdb83610851565b155b15610ceb5760019150610cf0565b600091505b50919050565b60004382109050919050565b60006001600084846040518083838082843782019150509250505060405180910390206000191660001916815260200190815260200160002090508060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d9b57600080fd5b610dd683838080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050610851565b1515610de157600080fd5b610e1c83838080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505061103d565b505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e7c57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610eb857600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000816040518082805190602001908083835b602083101515610fd45780518252602082019150602081019050602083039250610faf565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090506001806000836000191660001916815260200190815260200160002060010160006101000a81548160ff0219169083151502179055505050565b600080826040518082805190602001908083835b6020831015156110765780518252602082019150602081019050602083039250611051565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020915060016000836000191660001916815260200190815260200160002090506000816002015411156111eb57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8260010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600201546000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15156111c457600080fd5b6102c65a03f115156111d557600080fd5b5050506040518051905015156111ea57600080fd5b5b6001600083600019166000191681526020019081526020016000206000808201600090556001820160006101000a81549060ff02191690556001820160016101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556002820160009055600382016000905550505050505600a165627a7a7230582088de85a257a120aa5505244bc2f26a98b9099542d4f953f024bf96a299f789210029","sourceMap":"237:6020:9:-;;;1067:297;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;509:10:15;501:5;;:18;;;;;;;;;;;;;;;;;;1204:10:9;1196:5;;:18;;;;;;;;;;;;;;;;;;1231:9;1220:8;;:20;;;;;;;;;;;;;;;;;;1267:10;1246:5;;:32;;;;;;;;;;;;;;;;;;1297:11;1284:10;:24;;;;1330:14;1314:13;:30;;;;1067:297;;;;237:6020;;;;;;","deployedSourceMap":"237:6020:9:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5087:84;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4759:144;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3613:200;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2575:46;;;;;;;;;;;;;;;;;;;;;;;;;;860:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3302:90;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;915:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;886:25;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4555:142:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2411:45;;;;;;;;;;;;;;;;;;;;;;;;;;1662:584;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;783:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5342:425;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4967:116;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2756:427;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;834:169:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;831:25:9;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5087:84;5137:4;5156:10;;5149:17;;5087:84;:::o;4759:144::-;4821:11;4897:1;4847:8;:29;4866:8;4856:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;4847:29:9;;;;;;;;;;;;;;;;;:47;;;:51;4840:58;;4759:144;;;:::o;3613:200::-;3669:26;3686:8;3669:16;:26::i;:::-;3665:144;;;3705:30;3726:8;3705:20;:30::i;:::-;3743;3764:8;3743:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3665:144:9;;;3794:8;;;3665:144;3613:200;:::o;2575:46::-;;:::o;860:22::-;;;;:::o;3302:90::-;654:5:15;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;3365:22:9;3378:8;3365:12;:22::i;:::-;3302:90;:::o;915:24::-;;;;;;;;;;;;;:::o;886:25::-;;;;:::o;238:20:15:-;;;;;;;;;;;;;:::o;4555:142:9:-;4620:16;4651:8;:29;4670:8;4660:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;4651:29:9;;;;;;;;;;;;;;;;;:41;;;;;;;;;;;;4644:48;;4555:142;;;:::o;2411:45::-;;:::o;1662:584::-;1852:23;1732;1746:8;;1732:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:13;:23::i;:::-;1731:24;1723:33;;;;;;;;1771:20;1782:8;;1771:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:10;:20::i;:::-;1770:21;1762:30;;;;;;;;1817:10;;1806:7;:21;;1798:30;;;;;;;;1878:8;:29;1897:8;;1887:19;;;;;;;;;;;;;;;;;;;;;;;;;1878:29;;;;;;;;;;;;;;;;;1852:55;;1929:10;1913:7;:13;;;:26;;;;;;;;;;;;;;;;;;2014:5;;;;;;;;;;;:18;;;2033:7;:13;;;;;;;;;;;;2048:4;2054:7;2014:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2006:57;;;;;;;;2151:13;;2136:12;:28;2108:7;:25;;:56;;;;2196:7;2170;:23;;:33;;;;2210:31;2223:8;;2233:7;2210:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1662:584;;;;:::o;783:43::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;5342:425::-;5410:4;5422:17;5452:8;5442:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;5422:39:9;;5605:20;5616:8;5605:10;:20::i;:::-;:80;;;;;5637:48;5647:8;:19;5656:9;5647:19;;;;;;;;;;;;;;;;;:37;;;5637:9;:48::i;:::-;5605:80;:116;;;;;5698:23;5712:8;5698:13;:23::i;:::-;5697:24;5605:116;5592:152;;;5737:4;5730:11;;;;5592:152;5757:5;5750:12;;5342:425;;;;;:::o;4967:116::-;5027:12;5066;5054:9;:24;5047:31;;4967:116;;;:::o;2756:427::-;2802:23;2828:8;:29;2847:8;;2837:19;;;;;;;;;;;;;;;;;;;;;;;;;2828:29;;;;;;;;;;;;;;;;;2802:55;;2886:7;:13;;;;;;;;;;;;2872:27;;:10;:27;;;2864:36;;;;;;;;2914:23;2928:8;;2914:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:13;:23::i;:::-;2906:32;;;;;;;;3156:22;3169:8;;3156:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:12;:22::i;:::-;2756:427;;;:::o;834:169:15:-;654:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;930:1;910:22;;:8;:22;;;;902:31;;;;;;;;967:8;939:37;;960:5;;;;;;;;;;;939:37;;;;;;;;;;;;990:8;982:5;;:16;;;;;;;;;;;;;;;;;;834:169;:::o;831:25:9:-;;;;;;;;;;;;;:::o;4085:150::-;4146:17;4176:8;4166:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;4146:39:9;;4226:4;4192:8;:19;4201:9;4192:19;;;;;;;;;;;;;;;;;:31;;;:38;;;;;;;;;;;;;;;;;;4085:150;;:::o;5905:349::-;5958:17;6003:23;5988:8;5978:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;5958:39:9;;6029:8;:19;6038:9;6029:19;;;;;;;;;;;;;;;;;6003:45;;6142:1;6116:7;:23;;;:27;6112:104;;;6161:5;;;;;;;;;;;:14;;;6176:7;:13;;;;;;;;;;;;6191:7;:23;;;6161:54;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6153:63;;;;;;;;6112:104;6230:8;:19;6239:9;6230:19;;;;;;;;;;;;;;;;;;6223:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5905:349;;;:::o","source":"pragma solidity ^0.4.18;\n\nimport \"zeppelin-solidity/contracts/ownership/Ownable.sol\";\nimport \"./ParatiiToken.sol\";\nimport './Registry.sol';\n\n/// WARNING , NOT PRODUCTION READY, based on ADCHAIN Registry.\n/// THIS IS JUST A PLACEHOLDER..\ncontract TcrPlaceholder is Ownable {\n\n // Events\n // ---------\n\n event _Application(string videoId, uint deposit);\n event _NewVideoWhitelisted(string videoId);\n\n struct Listing {\n uint applicationExpiry; // Expiration date of apply stage\n bool whitelisted; // registration status\n address owner; // Owner of the video.\n uint unstakedDeposit; // Number of tokens in the listing not locked in a challenge\n uint challengeID; // ID of canonical challenge\n }\n\n // Maps of videoId Hashes to listing data.\n mapping(bytes32 => Listing) public listings;\n\n ParatiiToken public token;\n uint public minDeposit;\n uint public applyStageLen;\n Registry public registry;\n\n // ---------------------------------------------------------------------------\n // CONSTRUCTOR\n // ------------------\n\n function TcrPlaceholder(\n Registry _registry,\n address _tokenAddr,\n uint _minDeposit,\n uint _applyStageLen\n ) {\n owner = msg.sender;\n registry = _registry;\n token = ParatiiToken(_tokenAddr);\n minDeposit = _minDeposit;\n applyStageLen = _applyStageLen; // 100 blocks.\n }\n\n // ---------------------------------------------------------------------------\n // Video creator functions\n //------------------------\n\n /**\n * allow video creator to apply for whitelisting for a video.\n * @param _videoId the videoId\n * @param _amount the amount to Stake\n */\n function apply(string _videoId, uint _amount) external {\n require(!isWhitelisted(_videoId));\n require(!appWasMade(_videoId));\n require(_amount >= minDeposit);\n\n // set owner\n Listing storage listing = listings[keccak256(_videoId)];\n listing.owner = msg.sender;\n\n // transfer tokens from user to TcrPlaceholder contract\n require(token.transferFrom(listing.owner, this, _amount));\n\n // sets apply stage and end time.\n listing.applicationExpiry = block.number + applyStageLen;\n listing.unstakedDeposit = _amount;\n\n _Application(_videoId, _amount);\n }\n\n /**\n * deposit an amount of tokens. (unstaked)\n * @param amount the amount to deposit\n * @return {EVENT} returns event log of deposit event.\n */\n function deposit(uint amount) external {\n\n }\n\n /**\n * take out an amount of tokens from the unstaked tokens.\n * @param amount the amount to take out\n */\n function withdraw(uint amount) external {\n\n }\n\n /**\n * allow video creator to remove a video from the listing and return tokens.\n * @param _videoId videoId to remove\n */\n function exit(string _videoId) external {\n Listing storage listing = listings[keccak256(_videoId)];\n\n require(msg.sender == listing.owner);\n require(isWhitelisted(_videoId));\n\n // Cannot exit during ongoing challenge\n /* require(!challenges[listing.challengeID].isInitialized() ||\n challenges[listing.challengeID].isResolved()); */\n\n // Remove domain & return tokens\n resetListing(_videoId);\n }\n\n /**\n * remove a video , Only the TCR owner can do this.\n * @param _videoId id of the video to remove.\n */\n function removeListing(string _videoId) public onlyOwner {\n resetListing(_videoId);\n }\n\n /**\n @notice Updates a videos's status from 'application' to 'listing'\n @notice or resolves a challenge if one exists.\n @param _videoId The videoId whose status is being updated\n */\n function updateStatus(string _videoId) public {\n if (canBeWhitelisted(_videoId)) {\n whitelistApplication(_videoId);\n _NewVideoWhitelisted(_videoId);\n } else {\n revert();\n }\n }\n\n /**\n @dev Called by updateStatus() if the applicationExpiry date passed without a\n challenge being made\n @dev Called by resolveChallenge() if an application/listing beat a challenge.\n @param _videoId The _videoId of an application/listing to be whitelisted\n */\n function whitelistApplication(string _videoId) private {\n bytes32 videoHash = keccak256(_videoId);\n\n listings[videoHash].whitelisted = true;\n }\n\n //----------------------------------------------------------------------------\n // Token HODLers functions\n //--------------------------\n\n // ---------------------------------------------------------------------------\n // Utilities\n //------------------------\n /// @dev returns true if video is whitelisted\n function isWhitelisted(string _videoId) constant public returns (bool whitelisted) {\n return listings[keccak256(_videoId)].whitelisted;\n }\n\n // @dev returns true if apply was called for this video\n function appWasMade(string _videoId) constant public returns (bool exists) {\n return listings[keccak256(_videoId)].applicationExpiry > 0;\n }\n\n /// @dev returns true if the provided termDate has passed\n function isExpired(uint _termDate) constant public returns (bool expired) {\n return _termDate < block.number;\n }\n\n function getMinDeposit() constant public returns (uint) {\n return minDeposit;\n }\n\n /**\n @dev Determines whether the video of an application can be whitelisted.\n @param _videoId The videoId whose status should be examined\n */\n function canBeWhitelisted(string _videoId) constant public returns (bool) {\n bytes32 videoHash = keccak256(_videoId);\n\n // Ensures that the application was made,\n // the application period has ended,\n // the video can be whitelisted,\n if (\n appWasMade(_videoId) &&\n isExpired(listings[videoHash].applicationExpiry) &&\n !isWhitelisted(_videoId)\n ) { return true; }\n\n return false;\n }\n\n /**\n @dev deletes a listing from the whitelist and transfers tokens back to owner\n @param _videoId the videoId to be removed\n */\n function resetListing(string _videoId) private {\n bytes32 videoHash = keccak256(_videoId);\n Listing storage listing = listings[videoHash];\n\n // Transfers any remaining balance back to the owner\n if (listing.unstakedDeposit > 0)\n require(token.transfer(listing.owner, listing.unstakedDeposit));\n\n delete listings[videoHash];\n }\n\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/TcrPlaceholder.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/TcrPlaceholder.sol","exportedSymbols":{"TcrPlaceholder":[1614]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":1243,"name":"PragmaDirective","src":"0:24:9"},{"attributes":{"SourceUnit":2517,"absolutePath":"zeppelin-solidity/contracts/ownership/Ownable.sol","file":"zeppelin-solidity/contracts/ownership/Ownable.sol","scope":1615,"symbolAliases":[null],"unitAlias":""},"id":1244,"name":"ImportDirective","src":"26:59:9"},{"attributes":{"SourceUnit":632,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/ParatiiToken.sol","file":"./ParatiiToken.sol","scope":1615,"symbolAliases":[null],"unitAlias":""},"id":1245,"name":"ImportDirective","src":"86:28:9"},{"attributes":{"SourceUnit":857,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Registry.sol","file":"./Registry.sol","scope":1615,"symbolAliases":[null],"unitAlias":""},"id":1246,"name":"ImportDirective","src":"115:24:9"},{"attributes":{"contractDependencies":[2516],"contractKind":"contract","documentation":"WARNING , NOT PRODUCTION READY, based on ADCHAIN Registry.\n THIS IS JUST A PLACEHOLDER..","fullyImplemented":true,"linearizedBaseContracts":[1614,2516],"name":"TcrPlaceholder","scope":1615},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"Ownable","referencedDeclaration":2516,"type":"contract Ownable"},"id":1247,"name":"UserDefinedTypeName","src":"264:7:9"}],"id":1248,"name":"InheritanceSpecifier","src":"264:7:9"},{"attributes":{"anonymous":false,"name":"_Application"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"videoId","scope":1254,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1249,"name":"ElementaryTypeName","src":"324:6:9"}],"id":1250,"name":"VariableDeclaration","src":"324:14:9"},{"attributes":{"constant":false,"indexed":false,"name":"deposit","scope":1254,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1251,"name":"ElementaryTypeName","src":"340:4:9"}],"id":1252,"name":"VariableDeclaration","src":"340:12:9"}],"id":1253,"name":"ParameterList","src":"323:30:9"}],"id":1254,"name":"EventDefinition","src":"305:49:9"},{"attributes":{"anonymous":false,"name":"_NewVideoWhitelisted"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"videoId","scope":1258,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1255,"name":"ElementaryTypeName","src":"384:6:9"}],"id":1256,"name":"VariableDeclaration","src":"384:14:9"}],"id":1257,"name":"ParameterList","src":"383:16:9"}],"id":1258,"name":"EventDefinition","src":"357:43:9"},{"attributes":{"canonicalName":"TcrPlaceholder.Listing","name":"Listing","scope":1614,"visibility":"public"},"children":[{"attributes":{"constant":false,"name":"applicationExpiry","scope":1269,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1259,"name":"ElementaryTypeName","src":"425:4:9"}],"id":1260,"name":"VariableDeclaration","src":"425:22:9"},{"attributes":{"constant":false,"name":"whitelisted","scope":1269,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":1261,"name":"ElementaryTypeName","src":"487:4:9"}],"id":1262,"name":"VariableDeclaration","src":"487:16:9"},{"attributes":{"constant":false,"name":"owner","scope":1269,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1263,"name":"ElementaryTypeName","src":"538:7:9"}],"id":1264,"name":"VariableDeclaration","src":"538:13:9"},{"attributes":{"constant":false,"name":"unstakedDeposit","scope":1269,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1265,"name":"ElementaryTypeName","src":"589:4:9"}],"id":1266,"name":"VariableDeclaration","src":"589:20:9"},{"attributes":{"constant":false,"name":"challengeID","scope":1269,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1267,"name":"ElementaryTypeName","src":"678:4:9"}],"id":1268,"name":"VariableDeclaration","src":"678:16:9"}],"id":1269,"name":"StructDefinition","src":"404:330:9"},{"attributes":{"constant":false,"name":"listings","scope":1614,"stateVariable":true,"storageLocation":"default","type":"mapping(bytes32 => struct TcrPlaceholder.Listing storage ref)","value":null,"visibility":"public"},"children":[{"attributes":{"type":"mapping(bytes32 => struct TcrPlaceholder.Listing storage ref)"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":1270,"name":"ElementaryTypeName","src":"791:7:9"},{"attributes":{"contractScope":null,"name":"Listing","referencedDeclaration":1269,"type":"struct TcrPlaceholder.Listing storage pointer"},"id":1271,"name":"UserDefinedTypeName","src":"802:7:9"}],"id":1272,"name":"Mapping","src":"783:27:9"}],"id":1273,"name":"VariableDeclaration","src":"783:43:9"},{"attributes":{"constant":false,"name":"token","scope":1614,"stateVariable":true,"storageLocation":"default","type":"contract ParatiiToken","value":null,"visibility":"public"},"children":[{"attributes":{"contractScope":null,"name":"ParatiiToken","referencedDeclaration":631,"type":"contract ParatiiToken"},"id":1274,"name":"UserDefinedTypeName","src":"831:12:9"}],"id":1275,"name":"VariableDeclaration","src":"831:25:9"},{"attributes":{"constant":false,"name":"minDeposit","scope":1614,"stateVariable":true,"storageLocation":"default","type":"uint256","value":null,"visibility":"public"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1276,"name":"ElementaryTypeName","src":"860:4:9"}],"id":1277,"name":"VariableDeclaration","src":"860:22:9"},{"attributes":{"constant":false,"name":"applyStageLen","scope":1614,"stateVariable":true,"storageLocation":"default","type":"uint256","value":null,"visibility":"public"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1278,"name":"ElementaryTypeName","src":"886:4:9"}],"id":1279,"name":"VariableDeclaration","src":"886:25:9"},{"attributes":{"constant":false,"name":"registry","scope":1614,"stateVariable":true,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"public"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":1280,"name":"UserDefinedTypeName","src":"915:8:9"}],"id":1281,"name":"VariableDeclaration","src":"915:24:9"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"TcrPlaceholder","payable":false,"scope":1614,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_registry","scope":1316,"stateVariable":false,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":1282,"name":"UserDefinedTypeName","src":"1096:8:9"}],"id":1283,"name":"VariableDeclaration","src":"1096:18:9"},{"attributes":{"constant":false,"name":"_tokenAddr","scope":1316,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1284,"name":"ElementaryTypeName","src":"1120:7:9"}],"id":1285,"name":"VariableDeclaration","src":"1120:18:9"},{"attributes":{"constant":false,"name":"_minDeposit","scope":1316,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1286,"name":"ElementaryTypeName","src":"1144:4:9"}],"id":1287,"name":"VariableDeclaration","src":"1144:16:9"},{"attributes":{"constant":false,"name":"_applyStageLen","scope":1316,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1288,"name":"ElementaryTypeName","src":"1166:4:9"}],"id":1289,"name":"VariableDeclaration","src":"1166:19:9"}],"id":1290,"name":"ParameterList","src":"1090:99:9"},{"attributes":{"parameters":[null]},"children":[],"id":1291,"name":"ParameterList","src":"1190:0:9"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2464,"type":"address","value":"owner"},"id":1292,"name":"Identifier","src":"1196:5:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1293,"name":"Identifier","src":"1204:3:9"}],"id":1294,"name":"MemberAccess","src":"1204:10:9"}],"id":1295,"name":"Assignment","src":"1196:18:9"}],"id":1296,"name":"ExpressionStatement","src":"1196:18:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"contract Registry"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1281,"type":"contract Registry","value":"registry"},"id":1297,"name":"Identifier","src":"1220:8:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1283,"type":"contract Registry","value":"_registry"},"id":1298,"name":"Identifier","src":"1231:9:9"}],"id":1299,"name":"Assignment","src":"1220:20:9"}],"id":1300,"name":"ExpressionStatement","src":"1220:20:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"contract ParatiiToken"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1275,"type":"contract ParatiiToken","value":"token"},"id":1301,"name":"Identifier","src":"1246:5:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract ParatiiToken","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":631,"type":"type(contract ParatiiToken)","value":"ParatiiToken"},"id":1302,"name":"Identifier","src":"1254:12:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1285,"type":"address","value":"_tokenAddr"},"id":1303,"name":"Identifier","src":"1267:10:9"}],"id":1304,"name":"FunctionCall","src":"1254:24:9"}],"id":1305,"name":"Assignment","src":"1246:32:9"}],"id":1306,"name":"ExpressionStatement","src":"1246:32:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1277,"type":"uint256","value":"minDeposit"},"id":1307,"name":"Identifier","src":"1284:10:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1287,"type":"uint256","value":"_minDeposit"},"id":1308,"name":"Identifier","src":"1297:11:9"}],"id":1309,"name":"Assignment","src":"1284:24:9"}],"id":1310,"name":"ExpressionStatement","src":"1284:24:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1279,"type":"uint256","value":"applyStageLen"},"id":1311,"name":"Identifier","src":"1314:13:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1289,"type":"uint256","value":"_applyStageLen"},"id":1312,"name":"Identifier","src":"1330:14:9"}],"id":1313,"name":"Assignment","src":"1314:30:9"}],"id":1314,"name":"ExpressionStatement","src":"1314:30:9"}],"id":1315,"name":"Block","src":"1190:174:9"}],"id":1316,"name":"FunctionDefinition","src":"1067:297:9"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"apply","payable":false,"scope":1614,"stateMutability":"nonpayable","superFunction":null,"visibility":"external"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":1389,"stateVariable":false,"storageLocation":"default","type":"string calldata","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1317,"name":"ElementaryTypeName","src":"1677:6:9"}],"id":1318,"name":"VariableDeclaration","src":"1677:15:9"},{"attributes":{"constant":false,"name":"_amount","scope":1389,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1319,"name":"ElementaryTypeName","src":"1694:4:9"}],"id":1320,"name":"VariableDeclaration","src":"1694:12:9"}],"id":1321,"name":"ParameterList","src":"1676:31:9"},{"attributes":{"parameters":[null]},"children":[],"id":1322,"name":"ParameterList","src":"1717:0:9"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":1323,"name":"Identifier","src":"1723:7:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!","prefix":true,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_calldata_ptr","typeString":"string calldata"}],"overloadedDeclarations":[null],"referencedDeclaration":1502,"type":"function (string memory) view returns (bool)","value":"isWhitelisted"},"id":1324,"name":"Identifier","src":"1732:13:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1318,"type":"string calldata","value":"_videoId"},"id":1325,"name":"Identifier","src":"1746:8:9"}],"id":1326,"name":"FunctionCall","src":"1732:23:9"}],"id":1327,"name":"UnaryOperation","src":"1731:24:9"}],"id":1328,"name":"FunctionCall","src":"1723:33:9"}],"id":1329,"name":"ExpressionStatement","src":"1723:33:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":1330,"name":"Identifier","src":"1762:7:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!","prefix":true,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_calldata_ptr","typeString":"string calldata"}],"overloadedDeclarations":[null],"referencedDeclaration":1519,"type":"function (string memory) view returns (bool)","value":"appWasMade"},"id":1331,"name":"Identifier","src":"1771:10:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1318,"type":"string calldata","value":"_videoId"},"id":1332,"name":"Identifier","src":"1782:8:9"}],"id":1333,"name":"FunctionCall","src":"1771:20:9"}],"id":1334,"name":"UnaryOperation","src":"1770:21:9"}],"id":1335,"name":"FunctionCall","src":"1762:30:9"}],"id":1336,"name":"ExpressionStatement","src":"1762:30:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":1337,"name":"Identifier","src":"1798:7:9"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":">=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1320,"type":"uint256","value":"_amount"},"id":1338,"name":"Identifier","src":"1806:7:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1277,"type":"uint256","value":"minDeposit"},"id":1339,"name":"Identifier","src":"1817:10:9"}],"id":1340,"name":"BinaryOperation","src":"1806:21:9"}],"id":1341,"name":"FunctionCall","src":"1798:30:9"}],"id":1342,"name":"ExpressionStatement","src":"1798:30:9"},{"attributes":{"assignments":[1344]},"children":[{"attributes":{"constant":false,"name":"listing","scope":1389,"stateVariable":false,"storageLocation":"storage","type":"struct TcrPlaceholder.Listing storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Listing","referencedDeclaration":1269,"type":"struct TcrPlaceholder.Listing storage pointer"},"id":1343,"name":"UserDefinedTypeName","src":"1852:7:9"}],"id":1344,"name":"VariableDeclaration","src":"1852:23:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct TcrPlaceholder.Listing storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1273,"type":"mapping(bytes32 => struct TcrPlaceholder.Listing storage ref)","value":"listings"},"id":1345,"name":"Identifier","src":"1878:8:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_calldata_ptr","typeString":"string calldata"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":1346,"name":"Identifier","src":"1887:9:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1318,"type":"string calldata","value":"_videoId"},"id":1347,"name":"Identifier","src":"1897:8:9"}],"id":1348,"name":"FunctionCall","src":"1887:19:9"}],"id":1349,"name":"IndexAccess","src":"1878:29:9"}],"id":1350,"name":"VariableDeclarationStatement","src":"1852:55:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"member_name":"owner","referencedDeclaration":1264,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1344,"type":"struct TcrPlaceholder.Listing storage pointer","value":"listing"},"id":1351,"name":"Identifier","src":"1913:7:9"}],"id":1353,"name":"MemberAccess","src":"1913:13:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1354,"name":"Identifier","src":"1929:3:9"}],"id":1355,"name":"MemberAccess","src":"1929:10:9"}],"id":1356,"name":"Assignment","src":"1913:26:9"}],"id":1357,"name":"ExpressionStatement","src":"1913:26:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":1358,"name":"Identifier","src":"2006:7:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_contract$_TcrPlaceholder_$1614","typeString":"contract TcrPlaceholder"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"transferFrom","referencedDeclaration":2774,"type":"function (address,address,uint256) external returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1275,"type":"contract ParatiiToken","value":"token"},"id":1359,"name":"Identifier","src":"2014:5:9"}],"id":1360,"name":"MemberAccess","src":"2014:18:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"owner","referencedDeclaration":1264,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1344,"type":"struct TcrPlaceholder.Listing storage pointer","value":"listing"},"id":1361,"name":"Identifier","src":"2033:7:9"}],"id":1362,"name":"MemberAccess","src":"2033:13:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2977,"type":"contract TcrPlaceholder","value":"this"},"id":1363,"name":"Identifier","src":"2048:4:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1320,"type":"uint256","value":"_amount"},"id":1364,"name":"Identifier","src":"2054:7:9"}],"id":1365,"name":"FunctionCall","src":"2014:48:9"}],"id":1366,"name":"FunctionCall","src":"2006:57:9"}],"id":1367,"name":"ExpressionStatement","src":"2006:57:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"member_name":"applicationExpiry","referencedDeclaration":1260,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1344,"type":"struct TcrPlaceholder.Listing storage pointer","value":"listing"},"id":1368,"name":"Identifier","src":"2108:7:9"}],"id":1370,"name":"MemberAccess","src":"2108:25:9"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"+","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"number","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2924,"type":"block","value":"block"},"id":1371,"name":"Identifier","src":"2136:5:9"}],"id":1372,"name":"MemberAccess","src":"2136:12:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1279,"type":"uint256","value":"applyStageLen"},"id":1373,"name":"Identifier","src":"2151:13:9"}],"id":1374,"name":"BinaryOperation","src":"2136:28:9"}],"id":1375,"name":"Assignment","src":"2108:56:9"}],"id":1376,"name":"ExpressionStatement","src":"2108:56:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"member_name":"unstakedDeposit","referencedDeclaration":1266,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1344,"type":"struct TcrPlaceholder.Listing storage pointer","value":"listing"},"id":1377,"name":"Identifier","src":"2170:7:9"}],"id":1379,"name":"MemberAccess","src":"2170:23:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1320,"type":"uint256","value":"_amount"},"id":1380,"name":"Identifier","src":"2196:7:9"}],"id":1381,"name":"Assignment","src":"2170:33:9"}],"id":1382,"name":"ExpressionStatement","src":"2170:33:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_calldata_ptr","typeString":"string calldata"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":1254,"type":"function (string memory,uint256)","value":"_Application"},"id":1383,"name":"Identifier","src":"2210:12:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1318,"type":"string calldata","value":"_videoId"},"id":1384,"name":"Identifier","src":"2223:8:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1320,"type":"uint256","value":"_amount"},"id":1385,"name":"Identifier","src":"2233:7:9"}],"id":1386,"name":"FunctionCall","src":"2210:31:9"}],"id":1387,"name":"ExpressionStatement","src":"2210:31:9"}],"id":1388,"name":"Block","src":"1717:529:9"}],"id":1389,"name":"FunctionDefinition","src":"1662:584:9"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"deposit","payable":false,"scope":1614,"stateMutability":"nonpayable","superFunction":null,"visibility":"external"},"children":[{"children":[{"attributes":{"constant":false,"name":"amount","scope":1395,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1390,"name":"ElementaryTypeName","src":"2428:4:9"}],"id":1391,"name":"VariableDeclaration","src":"2428:11:9"}],"id":1392,"name":"ParameterList","src":"2427:13:9"},{"attributes":{"parameters":[null]},"children":[],"id":1393,"name":"ParameterList","src":"2450:0:9"},{"attributes":{"statements":[null]},"children":[],"id":1394,"name":"Block","src":"2450:6:9"}],"id":1395,"name":"FunctionDefinition","src":"2411:45:9"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"withdraw","payable":false,"scope":1614,"stateMutability":"nonpayable","superFunction":null,"visibility":"external"},"children":[{"children":[{"attributes":{"constant":false,"name":"amount","scope":1401,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1396,"name":"ElementaryTypeName","src":"2593:4:9"}],"id":1397,"name":"VariableDeclaration","src":"2593:11:9"}],"id":1398,"name":"ParameterList","src":"2592:13:9"},{"attributes":{"parameters":[null]},"children":[],"id":1399,"name":"ParameterList","src":"2615:0:9"},{"attributes":{"statements":[null]},"children":[],"id":1400,"name":"Block","src":"2615:6:9"}],"id":1401,"name":"FunctionDefinition","src":"2575:46:9"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"exit","payable":false,"scope":1614,"stateMutability":"nonpayable","superFunction":null,"visibility":"external"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":1433,"stateVariable":false,"storageLocation":"default","type":"string calldata","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1402,"name":"ElementaryTypeName","src":"2770:6:9"}],"id":1403,"name":"VariableDeclaration","src":"2770:15:9"}],"id":1404,"name":"ParameterList","src":"2769:17:9"},{"attributes":{"parameters":[null]},"children":[],"id":1405,"name":"ParameterList","src":"2796:0:9"},{"children":[{"attributes":{"assignments":[1407]},"children":[{"attributes":{"constant":false,"name":"listing","scope":1433,"stateVariable":false,"storageLocation":"storage","type":"struct TcrPlaceholder.Listing storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Listing","referencedDeclaration":1269,"type":"struct TcrPlaceholder.Listing storage pointer"},"id":1406,"name":"UserDefinedTypeName","src":"2802:7:9"}],"id":1407,"name":"VariableDeclaration","src":"2802:23:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct TcrPlaceholder.Listing storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1273,"type":"mapping(bytes32 => struct TcrPlaceholder.Listing storage ref)","value":"listings"},"id":1408,"name":"Identifier","src":"2828:8:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_calldata_ptr","typeString":"string calldata"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":1409,"name":"Identifier","src":"2837:9:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1403,"type":"string calldata","value":"_videoId"},"id":1410,"name":"Identifier","src":"2847:8:9"}],"id":1411,"name":"FunctionCall","src":"2837:19:9"}],"id":1412,"name":"IndexAccess","src":"2828:29:9"}],"id":1413,"name":"VariableDeclarationStatement","src":"2802:55:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":1414,"name":"Identifier","src":"2864:7:9"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1415,"name":"Identifier","src":"2872:3:9"}],"id":1416,"name":"MemberAccess","src":"2872:10:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"owner","referencedDeclaration":1264,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1407,"type":"struct TcrPlaceholder.Listing storage pointer","value":"listing"},"id":1417,"name":"Identifier","src":"2886:7:9"}],"id":1418,"name":"MemberAccess","src":"2886:13:9"}],"id":1419,"name":"BinaryOperation","src":"2872:27:9"}],"id":1420,"name":"FunctionCall","src":"2864:36:9"}],"id":1421,"name":"ExpressionStatement","src":"2864:36:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":1422,"name":"Identifier","src":"2906:7:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_calldata_ptr","typeString":"string calldata"}],"overloadedDeclarations":[null],"referencedDeclaration":1502,"type":"function (string memory) view returns (bool)","value":"isWhitelisted"},"id":1423,"name":"Identifier","src":"2914:13:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1403,"type":"string calldata","value":"_videoId"},"id":1424,"name":"Identifier","src":"2928:8:9"}],"id":1425,"name":"FunctionCall","src":"2914:23:9"}],"id":1426,"name":"FunctionCall","src":"2906:32:9"}],"id":1427,"name":"ExpressionStatement","src":"2906:32:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_calldata_ptr","typeString":"string calldata"}],"overloadedDeclarations":[null],"referencedDeclaration":1613,"type":"function (string memory)","value":"resetListing"},"id":1428,"name":"Identifier","src":"3156:12:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1403,"type":"string calldata","value":"_videoId"},"id":1429,"name":"Identifier","src":"3169:8:9"}],"id":1430,"name":"FunctionCall","src":"3156:22:9"}],"id":1431,"name":"ExpressionStatement","src":"3156:22:9"}],"id":1432,"name":"Block","src":"2796:387:9"}],"id":1433,"name":"FunctionDefinition","src":"2756:427:9"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"removeListing","payable":false,"scope":1614,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":1445,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1434,"name":"ElementaryTypeName","src":"3325:6:9"}],"id":1435,"name":"VariableDeclaration","src":"3325:15:9"}],"id":1436,"name":"ParameterList","src":"3324:17:9"},{"attributes":{"parameters":[null]},"children":[],"id":1439,"name":"ParameterList","src":"3359:0:9"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2490,"type":"modifier ()","value":"onlyOwner"},"id":1437,"name":"Identifier","src":"3349:9:9"}],"id":1438,"name":"ModifierInvocation","src":"3349:9:9"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1613,"type":"function (string memory)","value":"resetListing"},"id":1440,"name":"Identifier","src":"3365:12:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1435,"type":"string memory","value":"_videoId"},"id":1441,"name":"Identifier","src":"3378:8:9"}],"id":1442,"name":"FunctionCall","src":"3365:22:9"}],"id":1443,"name":"ExpressionStatement","src":"3365:22:9"}],"id":1444,"name":"Block","src":"3359:33:9"}],"id":1445,"name":"FunctionDefinition","src":"3302:90:9"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"updateStatus","payable":false,"scope":1614,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":1468,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1446,"name":"ElementaryTypeName","src":"3635:6:9"}],"id":1447,"name":"VariableDeclaration","src":"3635:15:9"}],"id":1448,"name":"ParameterList","src":"3634:17:9"},{"attributes":{"parameters":[null]},"children":[],"id":1449,"name":"ParameterList","src":"3659:0:9"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1575,"type":"function (string memory) view returns (bool)","value":"canBeWhitelisted"},"id":1450,"name":"Identifier","src":"3669:16:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1447,"type":"string memory","value":"_videoId"},"id":1451,"name":"Identifier","src":"3686:8:9"}],"id":1452,"name":"FunctionCall","src":"3669:26:9"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1487,"type":"function (string memory)","value":"whitelistApplication"},"id":1453,"name":"Identifier","src":"3705:20:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1447,"type":"string memory","value":"_videoId"},"id":1454,"name":"Identifier","src":"3726:8:9"}],"id":1455,"name":"FunctionCall","src":"3705:30:9"}],"id":1456,"name":"ExpressionStatement","src":"3705:30:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1258,"type":"function (string memory)","value":"_NewVideoWhitelisted"},"id":1457,"name":"Identifier","src":"3743:20:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1447,"type":"string memory","value":"_videoId"},"id":1458,"name":"Identifier","src":"3764:8:9"}],"id":1459,"name":"FunctionCall","src":"3743:30:9"}],"id":1460,"name":"ExpressionStatement","src":"3743:30:9"}],"id":1461,"name":"Block","src":"3697:83:9"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"arguments":[null],"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[null],"overloadedDeclarations":[null],"referencedDeclaration":2936,"type":"function () pure","value":"revert"},"id":1462,"name":"Identifier","src":"3794:6:9"}],"id":1463,"name":"FunctionCall","src":"3794:8:9"}],"id":1464,"name":"ExpressionStatement","src":"3794:8:9"}],"id":1465,"name":"Block","src":"3786:23:9"}],"id":1466,"name":"IfStatement","src":"3665:144:9"}],"id":1467,"name":"Block","src":"3659:154:9"}],"id":1468,"name":"FunctionDefinition","src":"3613:200:9"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"whitelistApplication","payable":false,"scope":1614,"stateMutability":"nonpayable","superFunction":null,"visibility":"private"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":1487,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1469,"name":"ElementaryTypeName","src":"4115:6:9"}],"id":1470,"name":"VariableDeclaration","src":"4115:15:9"}],"id":1471,"name":"ParameterList","src":"4114:17:9"},{"attributes":{"parameters":[null]},"children":[],"id":1472,"name":"ParameterList","src":"4140:0:9"},{"children":[{"attributes":{"assignments":[1474]},"children":[{"attributes":{"constant":false,"name":"videoHash","scope":1487,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":1473,"name":"ElementaryTypeName","src":"4146:7:9"}],"id":1474,"name":"VariableDeclaration","src":"4146:17:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":1475,"name":"Identifier","src":"4166:9:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1470,"type":"string memory","value":"_videoId"},"id":1476,"name":"Identifier","src":"4176:8:9"}],"id":1477,"name":"FunctionCall","src":"4166:19:9"}],"id":1478,"name":"VariableDeclarationStatement","src":"4146:39:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"member_name":"whitelisted","referencedDeclaration":1262,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct TcrPlaceholder.Listing storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1273,"type":"mapping(bytes32 => struct TcrPlaceholder.Listing storage ref)","value":"listings"},"id":1479,"name":"Identifier","src":"4192:8:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1474,"type":"bytes32","value":"videoHash"},"id":1480,"name":"Identifier","src":"4201:9:9"}],"id":1481,"name":"IndexAccess","src":"4192:19:9"}],"id":1482,"name":"MemberAccess","src":"4192:31:9"},{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":1483,"name":"Literal","src":"4226:4:9"}],"id":1484,"name":"Assignment","src":"4192:38:9"}],"id":1485,"name":"ExpressionStatement","src":"4192:38:9"}],"id":1486,"name":"Block","src":"4140:95:9"}],"id":1487,"name":"FunctionDefinition","src":"4085:150:9"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"isWhitelisted","payable":false,"scope":1614,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":1502,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1488,"name":"ElementaryTypeName","src":"4578:6:9"}],"id":1489,"name":"VariableDeclaration","src":"4578:15:9"}],"id":1490,"name":"ParameterList","src":"4577:17:9"},{"children":[{"attributes":{"constant":false,"name":"whitelisted","scope":1502,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":1491,"name":"ElementaryTypeName","src":"4620:4:9"}],"id":1492,"name":"VariableDeclaration","src":"4620:16:9"}],"id":1493,"name":"ParameterList","src":"4619:18:9"},{"children":[{"attributes":{"functionReturnParameters":1493},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"whitelisted","referencedDeclaration":1262,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct TcrPlaceholder.Listing storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1273,"type":"mapping(bytes32 => struct TcrPlaceholder.Listing storage ref)","value":"listings"},"id":1494,"name":"Identifier","src":"4651:8:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":1495,"name":"Identifier","src":"4660:9:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1489,"type":"string memory","value":"_videoId"},"id":1496,"name":"Identifier","src":"4670:8:9"}],"id":1497,"name":"FunctionCall","src":"4660:19:9"}],"id":1498,"name":"IndexAccess","src":"4651:29:9"}],"id":1499,"name":"MemberAccess","src":"4651:41:9"}],"id":1500,"name":"Return","src":"4644:48:9"}],"id":1501,"name":"Block","src":"4638:59:9"}],"id":1502,"name":"FunctionDefinition","src":"4555:142:9"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"appWasMade","payable":false,"scope":1614,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":1519,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1503,"name":"ElementaryTypeName","src":"4779:6:9"}],"id":1504,"name":"VariableDeclaration","src":"4779:15:9"}],"id":1505,"name":"ParameterList","src":"4778:17:9"},{"children":[{"attributes":{"constant":false,"name":"exists","scope":1519,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":1506,"name":"ElementaryTypeName","src":"4821:4:9"}],"id":1507,"name":"VariableDeclaration","src":"4821:11:9"}],"id":1508,"name":"ParameterList","src":"4820:13:9"},{"children":[{"attributes":{"functionReturnParameters":1508},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":">","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"applicationExpiry","referencedDeclaration":1260,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct TcrPlaceholder.Listing storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1273,"type":"mapping(bytes32 => struct TcrPlaceholder.Listing storage ref)","value":"listings"},"id":1509,"name":"Identifier","src":"4847:8:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":1510,"name":"Identifier","src":"4856:9:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1504,"type":"string memory","value":"_videoId"},"id":1511,"name":"Identifier","src":"4866:8:9"}],"id":1512,"name":"FunctionCall","src":"4856:19:9"}],"id":1513,"name":"IndexAccess","src":"4847:29:9"}],"id":1514,"name":"MemberAccess","src":"4847:47:9"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":1515,"name":"Literal","src":"4897:1:9"}],"id":1516,"name":"BinaryOperation","src":"4847:51:9"}],"id":1517,"name":"Return","src":"4840:58:9"}],"id":1518,"name":"Block","src":"4834:69:9"}],"id":1519,"name":"FunctionDefinition","src":"4759:144:9"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"isExpired","payable":false,"scope":1614,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_termDate","scope":1532,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1520,"name":"ElementaryTypeName","src":"4986:4:9"}],"id":1521,"name":"VariableDeclaration","src":"4986:14:9"}],"id":1522,"name":"ParameterList","src":"4985:16:9"},{"children":[{"attributes":{"constant":false,"name":"expired","scope":1532,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":1523,"name":"ElementaryTypeName","src":"5027:4:9"}],"id":1524,"name":"VariableDeclaration","src":"5027:12:9"}],"id":1525,"name":"ParameterList","src":"5026:14:9"},{"children":[{"attributes":{"functionReturnParameters":1525},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"<","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1521,"type":"uint256","value":"_termDate"},"id":1526,"name":"Identifier","src":"5054:9:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"number","referencedDeclaration":null,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2924,"type":"block","value":"block"},"id":1527,"name":"Identifier","src":"5066:5:9"}],"id":1528,"name":"MemberAccess","src":"5066:12:9"}],"id":1529,"name":"BinaryOperation","src":"5054:24:9"}],"id":1530,"name":"Return","src":"5047:31:9"}],"id":1531,"name":"Block","src":"5041:42:9"}],"id":1532,"name":"FunctionDefinition","src":"4967:116:9"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"getMinDeposit","payable":false,"scope":1614,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":1533,"name":"ParameterList","src":"5109:2:9"},{"children":[{"attributes":{"constant":false,"name":"","scope":1540,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1534,"name":"ElementaryTypeName","src":"5137:4:9"}],"id":1535,"name":"VariableDeclaration","src":"5137:4:9"}],"id":1536,"name":"ParameterList","src":"5136:6:9"},{"children":[{"attributes":{"functionReturnParameters":1536},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1277,"type":"uint256","value":"minDeposit"},"id":1537,"name":"Identifier","src":"5156:10:9"}],"id":1538,"name":"Return","src":"5149:17:9"}],"id":1539,"name":"Block","src":"5143:28:9"}],"id":1540,"name":"FunctionDefinition","src":"5087:84:9"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"canBeWhitelisted","payable":false,"scope":1614,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":1575,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1541,"name":"ElementaryTypeName","src":"5368:6:9"}],"id":1542,"name":"VariableDeclaration","src":"5368:15:9"}],"id":1543,"name":"ParameterList","src":"5367:17:9"},{"children":[{"attributes":{"constant":false,"name":"","scope":1575,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":1544,"name":"ElementaryTypeName","src":"5410:4:9"}],"id":1545,"name":"VariableDeclaration","src":"5410:4:9"}],"id":1546,"name":"ParameterList","src":"5409:6:9"},{"children":[{"attributes":{"assignments":[1548]},"children":[{"attributes":{"constant":false,"name":"videoHash","scope":1575,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":1547,"name":"ElementaryTypeName","src":"5422:7:9"}],"id":1548,"name":"VariableDeclaration","src":"5422:17:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":1549,"name":"Identifier","src":"5442:9:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1542,"type":"string memory","value":"_videoId"},"id":1550,"name":"Identifier","src":"5452:8:9"}],"id":1551,"name":"FunctionCall","src":"5442:19:9"}],"id":1552,"name":"VariableDeclarationStatement","src":"5422:39:9"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"&&","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"&&","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1519,"type":"function (string memory) view returns (bool)","value":"appWasMade"},"id":1553,"name":"Identifier","src":"5605:10:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1542,"type":"string memory","value":"_videoId"},"id":1554,"name":"Identifier","src":"5616:8:9"}],"id":1555,"name":"FunctionCall","src":"5605:20:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":1532,"type":"function (uint256) view returns (bool)","value":"isExpired"},"id":1556,"name":"Identifier","src":"5637:9:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"applicationExpiry","referencedDeclaration":1260,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct TcrPlaceholder.Listing storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1273,"type":"mapping(bytes32 => struct TcrPlaceholder.Listing storage ref)","value":"listings"},"id":1557,"name":"Identifier","src":"5647:8:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1548,"type":"bytes32","value":"videoHash"},"id":1558,"name":"Identifier","src":"5656:9:9"}],"id":1559,"name":"IndexAccess","src":"5647:19:9"}],"id":1560,"name":"MemberAccess","src":"5647:37:9"}],"id":1561,"name":"FunctionCall","src":"5637:48:9"}],"id":1562,"name":"BinaryOperation","src":"5605:80:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"!","prefix":true,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1502,"type":"function (string memory) view returns (bool)","value":"isWhitelisted"},"id":1563,"name":"Identifier","src":"5698:13:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1542,"type":"string memory","value":"_videoId"},"id":1564,"name":"Identifier","src":"5712:8:9"}],"id":1565,"name":"FunctionCall","src":"5698:23:9"}],"id":1566,"name":"UnaryOperation","src":"5697:24:9"}],"id":1567,"name":"BinaryOperation","src":"5605:116:9"},{"children":[{"attributes":{"functionReturnParameters":1546},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":1568,"name":"Literal","src":"5737:4:9"}],"id":1569,"name":"Return","src":"5730:11:9"}],"id":1570,"name":"Block","src":"5728:16:9"}],"id":1571,"name":"IfStatement","src":"5592:152:9"},{"attributes":{"functionReturnParameters":1546},"children":[{"attributes":{"argumentTypes":null,"hexvalue":"66616c7365","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"false"},"id":1572,"name":"Literal","src":"5757:5:9"}],"id":1573,"name":"Return","src":"5750:12:9"}],"id":1574,"name":"Block","src":"5416:351:9"}],"id":1575,"name":"FunctionDefinition","src":"5342:425:9"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"resetListing","payable":false,"scope":1614,"stateMutability":"nonpayable","superFunction":null,"visibility":"private"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":1613,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1576,"name":"ElementaryTypeName","src":"5927:6:9"}],"id":1577,"name":"VariableDeclaration","src":"5927:15:9"}],"id":1578,"name":"ParameterList","src":"5926:17:9"},{"attributes":{"parameters":[null]},"children":[],"id":1579,"name":"ParameterList","src":"5952:0:9"},{"children":[{"attributes":{"assignments":[1581]},"children":[{"attributes":{"constant":false,"name":"videoHash","scope":1613,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":1580,"name":"ElementaryTypeName","src":"5958:7:9"}],"id":1581,"name":"VariableDeclaration","src":"5958:17:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":1582,"name":"Identifier","src":"5978:9:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1577,"type":"string memory","value":"_videoId"},"id":1583,"name":"Identifier","src":"5988:8:9"}],"id":1584,"name":"FunctionCall","src":"5978:19:9"}],"id":1585,"name":"VariableDeclarationStatement","src":"5958:39:9"},{"attributes":{"assignments":[1587]},"children":[{"attributes":{"constant":false,"name":"listing","scope":1613,"stateVariable":false,"storageLocation":"storage","type":"struct TcrPlaceholder.Listing storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Listing","referencedDeclaration":1269,"type":"struct TcrPlaceholder.Listing storage pointer"},"id":1586,"name":"UserDefinedTypeName","src":"6003:7:9"}],"id":1587,"name":"VariableDeclaration","src":"6003:23:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct TcrPlaceholder.Listing storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1273,"type":"mapping(bytes32 => struct TcrPlaceholder.Listing storage ref)","value":"listings"},"id":1588,"name":"Identifier","src":"6029:8:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1581,"type":"bytes32","value":"videoHash"},"id":1589,"name":"Identifier","src":"6038:9:9"}],"id":1590,"name":"IndexAccess","src":"6029:19:9"}],"id":1591,"name":"VariableDeclarationStatement","src":"6003:45:9"},{"attributes":{"falseBody":null},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":">","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"unstakedDeposit","referencedDeclaration":1266,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1587,"type":"struct TcrPlaceholder.Listing storage pointer","value":"listing"},"id":1592,"name":"Identifier","src":"6116:7:9"}],"id":1593,"name":"MemberAccess","src":"6116:23:9"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":1594,"name":"Literal","src":"6142:1:9"}],"id":1595,"name":"BinaryOperation","src":"6116:27:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":1596,"name":"Identifier","src":"6153:7:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"transfer","referencedDeclaration":2589,"type":"function (address,uint256) external returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1275,"type":"contract ParatiiToken","value":"token"},"id":1597,"name":"Identifier","src":"6161:5:9"}],"id":1598,"name":"MemberAccess","src":"6161:14:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"owner","referencedDeclaration":1264,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1587,"type":"struct TcrPlaceholder.Listing storage pointer","value":"listing"},"id":1599,"name":"Identifier","src":"6176:7:9"}],"id":1600,"name":"MemberAccess","src":"6176:13:9"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"unstakedDeposit","referencedDeclaration":1266,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1587,"type":"struct TcrPlaceholder.Listing storage pointer","value":"listing"},"id":1601,"name":"Identifier","src":"6191:7:9"}],"id":1602,"name":"MemberAccess","src":"6191:23:9"}],"id":1603,"name":"FunctionCall","src":"6161:54:9"}],"id":1604,"name":"FunctionCall","src":"6153:63:9"}],"id":1605,"name":"ExpressionStatement","src":"6153:63:9"}],"id":1606,"name":"IfStatement","src":"6112:104:9"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"delete","prefix":true,"type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"struct TcrPlaceholder.Listing storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1273,"type":"mapping(bytes32 => struct TcrPlaceholder.Listing storage ref)","value":"listings"},"id":1607,"name":"Identifier","src":"6230:8:9"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1581,"type":"bytes32","value":"videoHash"},"id":1608,"name":"Identifier","src":"6239:9:9"}],"id":1609,"name":"IndexAccess","src":"6230:19:9"}],"id":1610,"name":"UnaryOperation","src":"6223:26:9"}],"id":1611,"name":"ExpressionStatement","src":"6223:26:9"}],"id":1612,"name":"Block","src":"5952:302:9"}],"id":1613,"name":"FunctionDefinition","src":"5905:349:9"}],"id":1614,"name":"ContractDefinition","src":"237:6020:9"}],"id":1615,"name":"SourceUnit","src":"0:6258:9"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T13:59:31.989Z"} +module.exports = {"contractName":"TcrPlaceholder","abi":[{"constant":true,"inputs":[],"name":"minDeposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"applyStageLen","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"listings","outputs":[{"name":"applicationExpiry","type":"uint256"},{"name":"whitelisted","type":"bool"},{"name":"owner","type":"address"},{"name":"unstakedDeposit","type":"uint256"},{"name":"challengeID","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_registry","type":"address"},{"name":"_tokenAddr","type":"address"},{"name":"_minDeposit","type":"uint256"},{"name":"_applyStageLen","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"videoId","type":"string"},{"indexed":false,"name":"deposit","type":"uint256"}],"name":"_Application","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"videoId","type":"string"}],"name":"_NewVideoWhitelisted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"},{"name":"_amount","type":"uint256"}],"name":"apply","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"deposit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"}],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"}],"name":"removeListing","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"}],"name":"updateStatus","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_videoId","type":"string"}],"name":"isWhitelisted","outputs":[{"name":"whitelisted","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_videoId","type":"string"}],"name":"appWasMade","outputs":[{"name":"exists","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_termDate","type":"uint256"}],"name":"isExpired","outputs":[{"name":"expired","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getMinDeposit","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_videoId","type":"string"}],"name":"canBeWhitelisted","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b506040516080806114c683398101806040528101908080519060200190929190805190602001909291908051906020019092919080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550816003819055508060048190555050505050611352806101746000396000f3006080604052600436106100fc576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630eaad3f1146101015780630f53ba511461012c5780632c215998146101ad5780632e1a7d4d1461021657806341b3d185146102435780635149606e1461026e5780637b103999146102d75780637f0733601461032e5780638da5cb5b14610359578063b48eea44146103b0578063b6b55f2514610431578063bfa535c71461045e578063c18b8db4146104a3578063c53c614d14610534578063d9548e53146105b5578063e7fb5388146105fa578063f2fde38b14610635578063fc0c546a14610678575b600080fd5b34801561010d57600080fd5b506101166106cf565b6040518082815260200191505060405180910390f35b34801561013857600080fd5b50610193600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506106d9565b604051808215151515815260200191505060405180910390f35b3480156101b957600080fd5b50610214600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610765565b005b34801561022257600080fd5b5061024160048036038101908080359060200190929190505050610825565b005b34801561024f57600080fd5b50610258610828565b6040518082815260200191505060405180910390f35b34801561027a57600080fd5b506102d5600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061082e565b005b3480156102e357600080fd5b506102ec610895565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561033a57600080fd5b506103436108bb565b6040518082815260200191505060405180910390f35b34801561036557600080fd5b5061036e6108c1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103bc57600080fd5b50610417600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506108e6565b604051808215151515815260200191505060405180910390f35b34801561043d57600080fd5b5061045c6004803603810190808035906020019092919050505061097d565b005b34801561046a57600080fd5b506104a160048036038101908080359060200190820180359060200191909192939192939080359060200190929190505050610980565b005b3480156104af57600080fd5b506104d26004803603810190808035600019169060200190929190505050610c75565b60405180868152602001851515151581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018281526020019550505050505060405180910390f35b34801561054057600080fd5b5061059b600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610cd8565b604051808215151515815260200191505060405180910390f35b3480156105c157600080fd5b506105e060048036038101908080359060200190929190505050610da3565b604051808215151515815260200191505060405180910390f35b34801561060657600080fd5b50610633600480360381019080803590602001908201803590602001919091929391929390505050610daf565b005b34801561064157600080fd5b50610676600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ece565b005b34801561068457600080fd5b5061068d611023565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6000600354905090565b60008060016000846040518082805190602001908083835b60208310151561071657805182526020820191506020810190506020830392506106f1565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060000154119050919050565b61076e81610cd8565b1561081d5761077c81611049565b7fc92324d3d33d8a562daa770a1055b75689efa4374d7c65f0a9b2f6b9f090d796816040518080602001828103825283818151815260200191508051906020019080838360005b838110156107de5780820151818401526020810190506107c3565b50505050905090810190601f16801561080b5780820380516001836020036101000a031916815260200191505b509250505060405180910390a1610822565b600080fd5b50565b50565b60035481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561088957600080fd5b610892816110ea565b50565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060016000836040518082805190602001908083835b60208310151561092257805182526020820191506020810190506020830392506108fd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060010160009054906101000a900460ff169050919050565b50565b60006109bd84848080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050506108e6565b1515156109c957600080fd5b610a0484848080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050506106d9565b151515610a1057600080fd5b6003548210151515610a2157600080fd5b600160008585604051808383808284378201915050925050506040518091039020600019166000191681526020019081526020016000209050338160010160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8260010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1630856040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610bba57600080fd5b505af1158015610bce573d6000803e3d6000fd5b505050506040513d6020811015610be457600080fd5b81019080805190602001909291905050501515610c0057600080fd5b600454430181600001819055508181600201819055507f8679b3793e06c33189be2319d77a55df6769e3b9061611d27f1809b3d56d2e6884848460405180806020018381526020018281038252858582818152602001925080828437820191505094505050505060405180910390a150505050565b60016020528060005260406000206000915090508060000154908060010160009054906101000a900460ff16908060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154908060030154905085565b600080826040518082805190602001908083835b602083101515610d115780518252602082019150602081019050602083039250610cec565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050610d49836106d9565b8015610d785750610d7760016000836000191660001916815260200190815260200160002060000154610da3565b5b8015610d8a5750610d88836108e6565b155b15610d985760019150610d9d565b600091505b50919050565b60004382109050919050565b60006001600084846040518083838082843782019150509250505060405180910390206000191660001916815260200190815260200160002090508060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e4857600080fd5b610e8383838080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050506108e6565b1515610e8e57600080fd5b610ec983838080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050506110ea565b505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f2957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610f6557600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000816040518082805190602001908083835b602083101515611081578051825260208201915060208101905060208303925061105c565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090506001806000836000191660001916815260200190815260200160002060010160006101000a81548160ff0219169083151502179055505050565b600080826040518082805190602001908083835b60208310151561112357805182526020820191506020810190506020830392506110fe565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020915060016000836000191660001916815260200190815260200160002090506000816002015411156112b057600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8260010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600201546040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561126957600080fd5b505af115801561127d573d6000803e3d6000fd5b505050506040513d602081101561129357600080fd5b810190808051906020019092919050505015156112af57600080fd5b5b6001600083600019166000191681526020019081526020016000206000808201600090556001820160006101000a81549060ff02191690556001820160016101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556002820160009055600382016000905550505050505600a165627a7a72305820f0ff1ee3ec0b3ef0d806f806fa589e6c161e5a2ecbe907e6131a079973a3d7120029","deployedBytecode":"0x6080604052600436106100fc576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630eaad3f1146101015780630f53ba511461012c5780632c215998146101ad5780632e1a7d4d1461021657806341b3d185146102435780635149606e1461026e5780637b103999146102d75780637f0733601461032e5780638da5cb5b14610359578063b48eea44146103b0578063b6b55f2514610431578063bfa535c71461045e578063c18b8db4146104a3578063c53c614d14610534578063d9548e53146105b5578063e7fb5388146105fa578063f2fde38b14610635578063fc0c546a14610678575b600080fd5b34801561010d57600080fd5b506101166106cf565b6040518082815260200191505060405180910390f35b34801561013857600080fd5b50610193600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506106d9565b604051808215151515815260200191505060405180910390f35b3480156101b957600080fd5b50610214600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610765565b005b34801561022257600080fd5b5061024160048036038101908080359060200190929190505050610825565b005b34801561024f57600080fd5b50610258610828565b6040518082815260200191505060405180910390f35b34801561027a57600080fd5b506102d5600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061082e565b005b3480156102e357600080fd5b506102ec610895565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561033a57600080fd5b506103436108bb565b6040518082815260200191505060405180910390f35b34801561036557600080fd5b5061036e6108c1565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156103bc57600080fd5b50610417600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506108e6565b604051808215151515815260200191505060405180910390f35b34801561043d57600080fd5b5061045c6004803603810190808035906020019092919050505061097d565b005b34801561046a57600080fd5b506104a160048036038101908080359060200190820180359060200191909192939192939080359060200190929190505050610980565b005b3480156104af57600080fd5b506104d26004803603810190808035600019169060200190929190505050610c75565b60405180868152602001851515151581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018381526020018281526020019550505050505060405180910390f35b34801561054057600080fd5b5061059b600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610cd8565b604051808215151515815260200191505060405180910390f35b3480156105c157600080fd5b506105e060048036038101908080359060200190929190505050610da3565b604051808215151515815260200191505060405180910390f35b34801561060657600080fd5b50610633600480360381019080803590602001908201803590602001919091929391929390505050610daf565b005b34801561064157600080fd5b50610676600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ece565b005b34801561068457600080fd5b5061068d611023565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6000600354905090565b60008060016000846040518082805190602001908083835b60208310151561071657805182526020820191506020810190506020830392506106f1565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060000154119050919050565b61076e81610cd8565b1561081d5761077c81611049565b7fc92324d3d33d8a562daa770a1055b75689efa4374d7c65f0a9b2f6b9f090d796816040518080602001828103825283818151815260200191508051906020019080838360005b838110156107de5780820151818401526020810190506107c3565b50505050905090810190601f16801561080b5780820380516001836020036101000a031916815260200191505b509250505060405180910390a1610822565b600080fd5b50565b50565b60035481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561088957600080fd5b610892816110ea565b50565b600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60045481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600060016000836040518082805190602001908083835b60208310151561092257805182526020820191506020810190506020830392506108fd565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060010160009054906101000a900460ff169050919050565b50565b60006109bd84848080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050506108e6565b1515156109c957600080fd5b610a0484848080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050506106d9565b151515610a1057600080fd5b6003548210151515610a2157600080fd5b600160008585604051808383808284378201915050925050506040518091039020600019166000191681526020019081526020016000209050338160010160016101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd8260010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1630856040518463ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019350505050602060405180830381600087803b158015610bba57600080fd5b505af1158015610bce573d6000803e3d6000fd5b505050506040513d6020811015610be457600080fd5b81019080805190602001909291905050501515610c0057600080fd5b600454430181600001819055508181600201819055507f8679b3793e06c33189be2319d77a55df6769e3b9061611d27f1809b3d56d2e6884848460405180806020018381526020018281038252858582818152602001925080828437820191505094505050505060405180910390a150505050565b60016020528060005260406000206000915090508060000154908060010160009054906101000a900460ff16908060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060020154908060030154905085565b600080826040518082805190602001908083835b602083101515610d115780518252602082019150602081019050602083039250610cec565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050610d49836106d9565b8015610d785750610d7760016000836000191660001916815260200190815260200160002060000154610da3565b5b8015610d8a5750610d88836108e6565b155b15610d985760019150610d9d565b600091505b50919050565b60004382109050919050565b60006001600084846040518083838082843782019150509250505060405180910390206000191660001916815260200190815260200160002090508060010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e4857600080fd5b610e8383838080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050506108e6565b1515610e8e57600080fd5b610ec983838080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050506110ea565b505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610f2957600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610f6557600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000816040518082805190602001908083835b602083101515611081578051825260208201915060208101905060208303925061105c565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902090506001806000836000191660001916815260200190815260200160002060010160006101000a81548160ff0219169083151502179055505050565b600080826040518082805190602001908083835b60208310151561112357805182526020820191506020810190506020830392506110fe565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020915060016000836000191660001916815260200190815260200160002090506000816002015411156112b057600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a9059cbb8260010160019054906101000a900473ffffffffffffffffffffffffffffffffffffffff1683600201546040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561126957600080fd5b505af115801561127d573d6000803e3d6000fd5b505050506040513d602081101561129357600080fd5b810190808051906020019092919050505015156112af57600080fd5b5b6001600083600019166000191681526020019081526020016000206000808201600090556001820160006101000a81549060ff02191690556001820160016101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556002820160009055600382016000905550505050505600a165627a7a72305820f0ff1ee3ec0b3ef0d806f806fa589e6c161e5a2ecbe907e6131a079973a3d7120029"} /***/ }), /* 901 */ /***/ (function(module, exports) { -module.exports = {"contractName":"Users","abi":[{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"users","outputs":[{"name":"name","type":"string"},{"name":"email","type":"string"},{"name":"ipfsData","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_address","type":"address"},{"indexed":false,"name":"_name","type":"string"},{"indexed":false,"name":"_email","type":"string"},{"indexed":false,"name":"_ipfsData","type":"string"}],"name":"LogCreateUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_address","type":"address"}],"name":"LogRemoveUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_address","type":"address"},{"name":"_name","type":"string"},{"name":"_email","type":"string"},{"name":"_ipfsData","type":"string"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"remove","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"get","outputs":[{"name":"","type":"string"},{"name":"","type":"string"},{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b604051602080610fea83398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610eee806100fc6000396000f300606060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806329092d0e1461007d57806358192547146100b65780638da5cb5b146101b8578063a87430ba1461020d578063c2bc2efc146103ee578063f2fde38b14610578575b600080fd5b341561008857600080fd5b6100b4600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105b1565b005b34156100c157600080fd5b6101b6600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506106fc565b005b34156101c357600080fd5b6101cb6109d7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561021857600080fd5b610244600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506109fc565b604051808060200180602001806020018481038452878181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156102d55780601f106102aa576101008083540402835291602001916102d5565b820191906000526020600020905b8154815290600101906020018083116102b857829003601f168201915b50508481038352868181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156103585780601f1061032d57610100808354040283529160200191610358565b820191906000526020600020905b81548152906001019060200180831161033b57829003601f168201915b50508481038252858181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156103db5780601f106103b0576101008083540402835291602001916103db565b820191906000526020600020905b8154815290600101906020018083116103be57829003601f168201915b5050965050505050505060405180910390f35b34156103f957600080fd5b610425600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a23565b60405180806020018060200180602001848103845287818151815260200191508051906020019080838360005b8381101561046d578082015181840152602081019050610452565b50505050905090810190601f16801561049a5780820380516001836020036101000a031916815260200191505b50848103835286818151815260200191508051906020019080838360005b838110156104d35780820151818401526020810190506104b8565b50505050905090810190601f1680156105005780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019080838360005b8381101561053957808201518184015260208101905061051e565b50505050905090810190601f1680156105665780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b341561058357600080fd5b6105af600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610c6c565b005b806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061063857508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561064357600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006106939190610dc1565b6001820160006106a39190610dc1565b6002820160006106b39190610dc1565b50508173ffffffffffffffffffffffffffffffffffffffff167f55851df80c45c1f97f20eea833f78ef3d130c5a10c8fc9c7ee1c7f1612b5c5b160405160405180910390a25050565b836000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061078357508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561078e57600080fd5b60606040519081016040528085815260200184815260200183815250600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000019080519060200190610805929190610e09565b506020820151816001019080519060200190610822929190610e09565b50604082015181600201908051906020019061083f929190610e09565b509050508473ffffffffffffffffffffffffffffffffffffffff167fba99562563f525f7262c85e26d4cc59ed7bc12b61f8c070b57cb400fa8e6a9b885858560405180806020018060200180602001848103845287818151815260200191508051906020019080838360005b838110156108c65780820151818401526020810190506108ab565b50505050905090810190601f1680156108f35780820380516001836020036101000a031916815260200191505b50848103835286818151815260200191508051906020019080838360005b8381101561092c578082015181840152602081019050610911565b50505050905090810190601f1680156109595780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019080838360005b83811015610992578082015181840152602081019050610977565b50505050905090810190601f1680156109bf5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a25050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026020528060005260406000206000915090508060000190806001019080600201905083565b610a2b610e89565b610a33610e89565b610a3b610e89565b6000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050806000018160010182600201828054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b1f5780601f10610af457610100808354040283529160200191610b1f565b820191906000526020600020905b815481529060010190602001808311610b0257829003601f168201915b50505050509250818054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610bbb5780601f10610b9057610100808354040283529160200191610bbb565b820191906000526020600020905b815481529060010190602001808311610b9e57829003601f168201915b50505050509150808054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610c575780601f10610c2c57610100808354040283529160200191610c57565b820191906000526020600020905b815481529060010190602001808311610c3a57829003601f168201915b50505050509050935093509350509193909250565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610cc757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610d0357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b50805460018160011615610100020316600290046000825580601f10610de75750610e06565b601f016020900490600052602060002090810190610e059190610e9d565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610e4a57805160ff1916838001178555610e78565b82800160010185558215610e78579182015b82811115610e77578251825591602001919060010190610e5c565b5b509050610e859190610e9d565b5090565b602060405190810160405280600081525090565b610ebf91905b80821115610ebb576000816000905550600101610ea3565b5090565b905600a165627a7a723058205f1b646a12bd0d0b7cf72a9b02c1077275471042604f84c211b17d8fc49bf5eb0029","deployedBytecode":"0x606060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806329092d0e1461007d57806358192547146100b65780638da5cb5b146101b8578063a87430ba1461020d578063c2bc2efc146103ee578063f2fde38b14610578575b600080fd5b341561008857600080fd5b6100b4600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506105b1565b005b34156100c157600080fd5b6101b6600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919050506106fc565b005b34156101c357600080fd5b6101cb6109d7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561021857600080fd5b610244600480803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506109fc565b604051808060200180602001806020018481038452878181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156102d55780601f106102aa576101008083540402835291602001916102d5565b820191906000526020600020905b8154815290600101906020018083116102b857829003601f168201915b50508481038352868181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156103585780601f1061032d57610100808354040283529160200191610358565b820191906000526020600020905b81548152906001019060200180831161033b57829003601f168201915b50508481038252858181546001816001161561010002031660029004815260200191508054600181600116156101000203166002900480156103db5780601f106103b0576101008083540402835291602001916103db565b820191906000526020600020905b8154815290600101906020018083116103be57829003601f168201915b5050965050505050505060405180910390f35b34156103f957600080fd5b610425600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610a23565b60405180806020018060200180602001848103845287818151815260200191508051906020019080838360005b8381101561046d578082015181840152602081019050610452565b50505050905090810190601f16801561049a5780820380516001836020036101000a031916815260200191505b50848103835286818151815260200191508051906020019080838360005b838110156104d35780820151818401526020810190506104b8565b50505050905090810190601f1680156105005780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019080838360005b8381101561053957808201518184015260208101905061051e565b50505050905090810190601f1680156105665780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b341561058357600080fd5b6105af600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610c6c565b005b806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061063857508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561064357600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006106939190610dc1565b6001820160006106a39190610dc1565b6002820160006106b39190610dc1565b50508173ffffffffffffffffffffffffffffffffffffffff167f55851df80c45c1f97f20eea833f78ef3d130c5a10c8fc9c7ee1c7f1612b5c5b160405160405180910390a25050565b836000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061078357508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561078e57600080fd5b60606040519081016040528085815260200184815260200183815250600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000820151816000019080519060200190610805929190610e09565b506020820151816001019080519060200190610822929190610e09565b50604082015181600201908051906020019061083f929190610e09565b509050508473ffffffffffffffffffffffffffffffffffffffff167fba99562563f525f7262c85e26d4cc59ed7bc12b61f8c070b57cb400fa8e6a9b885858560405180806020018060200180602001848103845287818151815260200191508051906020019080838360005b838110156108c65780820151818401526020810190506108ab565b50505050905090810190601f1680156108f35780820380516001836020036101000a031916815260200191505b50848103835286818151815260200191508051906020019080838360005b8381101561092c578082015181840152602081019050610911565b50505050905090810190601f1680156109595780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019080838360005b83811015610992578082015181840152602081019050610977565b50505050905090810190601f1680156109bf5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a25050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60026020528060005260406000206000915090508060000190806001019080600201905083565b610a2b610e89565b610a33610e89565b610a3b610e89565b6000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050806000018160010182600201828054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b1f5780601f10610af457610100808354040283529160200191610b1f565b820191906000526020600020905b815481529060010190602001808311610b0257829003601f168201915b50505050509250818054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610bbb5780601f10610b9057610100808354040283529160200191610bbb565b820191906000526020600020905b815481529060010190602001808311610b9e57829003601f168201915b50505050509150808054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610c575780601f10610c2c57610100808354040283529160200191610c57565b820191906000526020600020905b815481529060010190602001808311610c3a57829003601f168201915b50505050509050935093509350509193909250565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610cc757600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610d0357600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b50805460018160011615610100020316600290046000825580601f10610de75750610e06565b601f016020900490600052602060002090810190610e059190610e9d565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610e4a57805160ff1916838001178555610e78565b82800160010185558215610e78579182015b82811115610e77578251825591602001919060010190610e5c565b5b509050610e859190610e9d565b5090565b602060405190810160405280600081525090565b610ebf91905b80821115610ebb576000816000905550600101610ea3565b5090565b905600a165627a7a723058205f1b646a12bd0d0b7cf72a9b02c1077275471042604f84c211b17d8fc49bf5eb0029","sourceMap":"112:1894:10:-;;;615:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;509:10:15;501:5;;:18;;;;;;;;;;;;;;;;;;675:10:10;667:5;;:18;;;;;;;;;;;;;;;;;;706:9;695:8;;:20;;;;;;;;;;;;;;;;;;615:107;112:1894;;;;;;","deployedSourceMap":"112:1894:10:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1501:139;;;;;;;;;;;;;;;;;;;;;;;;;;;;1003:333;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;260:40:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1802:202;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;834:169:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;1501:139:10;1558:8;561:5;;;;;;;;;;;547:19;;:10;:19;;;:45;;;;584:8;570:22;;:10;:22;;;547:45;539:54;;;;;;;;1585:5;:15;1591:8;1585:15;;;;;;;;;;;;;;;;1578:22;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;1624:8;1610:23;;;;;;;;;;;;1501:139;;:::o;1003:333::-;1137:8;561:5;;;;;;;;;;;547:19;;:10;:19;;;:45;;;;584:8;570:22;;:10;:22;;;547:45;539:54;;;;;;;;1174:97;;;;;;;;;1201:5;1174:97;;;;1225:6;1174:97;;;;1253:9;1174:97;;;1155:5;:15;1161:8;1155:15;;;;;;;;;;;;;;;:116;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;1294:8;1280:49;;;1304:5;1311:6;1319:9;1280:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1003:333:10;;;;;:::o;238:20:15:-;;;;;;;;;;;;;:::o;260:40:10:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1802:202::-;1857:6;;:::i;:::-;1865;;:::i;:::-;1873;;:::i;:::-;1889:25;1917:5;:15;1923:8;1917:15;;;;;;;;;;;;;;;1889:43;;1948:8;:13;;1963:8;:14;;1979:8;:17;;1940:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1802:202;;;;;;:::o;834:169:15:-;654:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;930:1;910:22;;:8;:22;;;;902:31;;;;;;;;967:8;939:37;;960:5;;;;;;;;;;;939:37;;;;;;;;;;;;990:8;982:5;;:16;;;;;;;;;;;;;;;;;;834:169;:::o;112:1894:10:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o","source":"pragma solidity ^0.4.18;\n\nimport \"zeppelin-solidity/contracts/ownership/Ownable.sol\";\nimport './Registry.sol';\n\ncontract Users is Ownable {\n\n Registry registry;\n\n struct UserInfo {\n string name;\n string email;\n string ipfsData;\n }\n\n mapping (address=>UserInfo) public users;\n\n event LogCreateUser(\n address indexed _address,\n string _name,\n string _email,\n string _ipfsData\n );\n\n event LogRemoveUser(address indexed _address);\n\n modifier onlyOwnerOrUser(address _address) {\n require(msg.sender == owner || msg.sender == _address);\n _;\n }\n\n function Users(Registry _registry) public {\n owner = msg.sender;\n registry = _registry;\n }\n\n /**\n * @dev Register a new user\n * @param _address - the ethereum address of the user\n * @param _name - the name of the user\n * @param _email - the email address of the user\n * @param _ipfsData - the hash of a JSON file with data of the video\n */\n function create(\n address _address,\n string _name,\n string _email,\n string _ipfsData\n ) public onlyOwnerOrUser(_address) {\n users[_address] = UserInfo({\n name: _name,\n email: _email,\n ipfsData: _ipfsData\n });\n\n LogCreateUser(_address, _name, _email, _ipfsData);\n }\n\n /**\n * @dev unregister a User\n * Deletes the data of the user from users\n * @param _address the address of the user to be unregistered\n */\n function remove(address _address) public onlyOwnerOrUser(_address) {\n delete users[_address];\n LogRemoveUser(_address);\n }\n\n /**\n * @dev return information about the user\n * @param _address the address of the user\n * @return a tuple (name, email, ipfsData)\n */\n function get(address _address) public constant returns(string, string, string) {\n UserInfo storage userInfo = users[_address];\n return (userInfo.name, userInfo.email, userInfo.ipfsData);\n }\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Users.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Users.sol","exportedSymbols":{"Users":[1757]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":1616,"name":"PragmaDirective","src":"0:24:10"},{"attributes":{"SourceUnit":2517,"absolutePath":"zeppelin-solidity/contracts/ownership/Ownable.sol","file":"zeppelin-solidity/contracts/ownership/Ownable.sol","scope":1758,"symbolAliases":[null],"unitAlias":""},"id":1617,"name":"ImportDirective","src":"26:59:10"},{"attributes":{"SourceUnit":857,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Registry.sol","file":"./Registry.sol","scope":1758,"symbolAliases":[null],"unitAlias":""},"id":1618,"name":"ImportDirective","src":"86:24:10"},{"attributes":{"contractDependencies":[2516],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[1757,2516],"name":"Users","scope":1758},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"Ownable","referencedDeclaration":2516,"type":"contract Ownable"},"id":1619,"name":"UserDefinedTypeName","src":"130:7:10"}],"id":1620,"name":"InheritanceSpecifier","src":"130:7:10"},{"attributes":{"constant":false,"name":"registry","scope":1757,"stateVariable":true,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":1621,"name":"UserDefinedTypeName","src":"145:8:10"}],"id":1622,"name":"VariableDeclaration","src":"145:17:10"},{"attributes":{"canonicalName":"Users.UserInfo","name":"UserInfo","scope":1757,"visibility":"public"},"children":[{"attributes":{"constant":false,"name":"name","scope":1629,"stateVariable":false,"storageLocation":"default","type":"string storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1623,"name":"ElementaryTypeName","src":"193:6:10"}],"id":1624,"name":"VariableDeclaration","src":"193:11:10"},{"attributes":{"constant":false,"name":"email","scope":1629,"stateVariable":false,"storageLocation":"default","type":"string storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1625,"name":"ElementaryTypeName","src":"212:6:10"}],"id":1626,"name":"VariableDeclaration","src":"212:12:10"},{"attributes":{"constant":false,"name":"ipfsData","scope":1629,"stateVariable":false,"storageLocation":"default","type":"string storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1627,"name":"ElementaryTypeName","src":"232:6:10"}],"id":1628,"name":"VariableDeclaration","src":"232:15:10"}],"id":1629,"name":"StructDefinition","src":"169:85:10"},{"attributes":{"constant":false,"name":"users","scope":1757,"stateVariable":true,"storageLocation":"default","type":"mapping(address => struct Users.UserInfo storage ref)","value":null,"visibility":"public"},"children":[{"attributes":{"type":"mapping(address => struct Users.UserInfo storage ref)"},"children":[{"attributes":{"name":"address","type":"address"},"id":1630,"name":"ElementaryTypeName","src":"269:7:10"},{"attributes":{"contractScope":null,"name":"UserInfo","referencedDeclaration":1629,"type":"struct Users.UserInfo storage pointer"},"id":1631,"name":"UserDefinedTypeName","src":"278:8:10"}],"id":1632,"name":"Mapping","src":"260:27:10"}],"id":1633,"name":"VariableDeclaration","src":"260:40:10"},{"attributes":{"anonymous":false,"name":"LogCreateUser"},"children":[{"children":[{"attributes":{"constant":false,"indexed":true,"name":"_address","scope":1643,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1634,"name":"ElementaryTypeName","src":"334:7:10"}],"id":1635,"name":"VariableDeclaration","src":"334:24:10"},{"attributes":{"constant":false,"indexed":false,"name":"_name","scope":1643,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1636,"name":"ElementaryTypeName","src":"366:6:10"}],"id":1637,"name":"VariableDeclaration","src":"366:12:10"},{"attributes":{"constant":false,"indexed":false,"name":"_email","scope":1643,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1638,"name":"ElementaryTypeName","src":"386:6:10"}],"id":1639,"name":"VariableDeclaration","src":"386:13:10"},{"attributes":{"constant":false,"indexed":false,"name":"_ipfsData","scope":1643,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1640,"name":"ElementaryTypeName","src":"407:6:10"}],"id":1641,"name":"VariableDeclaration","src":"407:16:10"}],"id":1642,"name":"ParameterList","src":"326:103:10"}],"id":1643,"name":"EventDefinition","src":"307:123:10"},{"attributes":{"anonymous":false,"name":"LogRemoveUser"},"children":[{"children":[{"attributes":{"constant":false,"indexed":true,"name":"_address","scope":1647,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1644,"name":"ElementaryTypeName","src":"456:7:10"}],"id":1645,"name":"VariableDeclaration","src":"456:24:10"}],"id":1646,"name":"ParameterList","src":"455:26:10"}],"id":1647,"name":"EventDefinition","src":"436:46:10"},{"attributes":{"name":"onlyOwnerOrUser","visibility":"internal"},"children":[{"children":[{"attributes":{"constant":false,"name":"_address","scope":1665,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1648,"name":"ElementaryTypeName","src":"513:7:10"}],"id":1649,"name":"VariableDeclaration","src":"513:16:10"}],"id":1650,"name":"ParameterList","src":"512:18:10"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":1651,"name":"Identifier","src":"539:7:10"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"||","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1652,"name":"Identifier","src":"547:3:10"}],"id":1653,"name":"MemberAccess","src":"547:10:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2464,"type":"address","value":"owner"},"id":1654,"name":"Identifier","src":"561:5:10"}],"id":1655,"name":"BinaryOperation","src":"547:19:10"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1656,"name":"Identifier","src":"570:3:10"}],"id":1657,"name":"MemberAccess","src":"570:10:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1649,"type":"address","value":"_address"},"id":1658,"name":"Identifier","src":"584:8:10"}],"id":1659,"name":"BinaryOperation","src":"570:22:10"}],"id":1660,"name":"BinaryOperation","src":"547:45:10"}],"id":1661,"name":"FunctionCall","src":"539:54:10"}],"id":1662,"name":"ExpressionStatement","src":"539:54:10"},{"id":1663,"name":"PlaceholderStatement","src":"601:1:10"}],"id":1664,"name":"Block","src":"531:78:10"}],"id":1665,"name":"ModifierDefinition","src":"488:121:10"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"Users","payable":false,"scope":1757,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_registry","scope":1680,"stateVariable":false,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":1666,"name":"UserDefinedTypeName","src":"630:8:10"}],"id":1667,"name":"VariableDeclaration","src":"630:18:10"}],"id":1668,"name":"ParameterList","src":"629:20:10"},{"attributes":{"parameters":[null]},"children":[],"id":1669,"name":"ParameterList","src":"657:0:10"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2464,"type":"address","value":"owner"},"id":1670,"name":"Identifier","src":"667:5:10"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1671,"name":"Identifier","src":"675:3:10"}],"id":1672,"name":"MemberAccess","src":"675:10:10"}],"id":1673,"name":"Assignment","src":"667:18:10"}],"id":1674,"name":"ExpressionStatement","src":"667:18:10"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"contract Registry"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1622,"type":"contract Registry","value":"registry"},"id":1675,"name":"Identifier","src":"695:8:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1667,"type":"contract Registry","value":"_registry"},"id":1676,"name":"Identifier","src":"706:9:10"}],"id":1677,"name":"Assignment","src":"695:20:10"}],"id":1678,"name":"ExpressionStatement","src":"695:20:10"}],"id":1679,"name":"Block","src":"657:65:10"}],"id":1680,"name":"FunctionDefinition","src":"615:107:10"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"create","payable":false,"scope":1757,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_address","scope":1712,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1681,"name":"ElementaryTypeName","src":"1026:7:10"}],"id":1682,"name":"VariableDeclaration","src":"1026:16:10"},{"attributes":{"constant":false,"name":"_name","scope":1712,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1683,"name":"ElementaryTypeName","src":"1050:6:10"}],"id":1684,"name":"VariableDeclaration","src":"1050:12:10"},{"attributes":{"constant":false,"name":"_email","scope":1712,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1685,"name":"ElementaryTypeName","src":"1070:6:10"}],"id":1686,"name":"VariableDeclaration","src":"1070:13:10"},{"attributes":{"constant":false,"name":"_ipfsData","scope":1712,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1687,"name":"ElementaryTypeName","src":"1091:6:10"}],"id":1688,"name":"VariableDeclaration","src":"1091:16:10"}],"id":1689,"name":"ParameterList","src":"1018:95:10"},{"attributes":{"parameters":[null]},"children":[],"id":1693,"name":"ParameterList","src":"1147:0:10"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1665,"type":"modifier (address)","value":"onlyOwnerOrUser"},"id":1690,"name":"Identifier","src":"1121:15:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1682,"type":"address","value":"_address"},"id":1691,"name":"Identifier","src":"1137:8:10"}],"id":1692,"name":"ModifierInvocation","src":"1121:25:10"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"struct Users.UserInfo storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"struct Users.UserInfo storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1633,"type":"mapping(address => struct Users.UserInfo storage ref)","value":"users"},"id":1694,"name":"Identifier","src":"1155:5:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1682,"type":"address","value":"_address"},"id":1695,"name":"Identifier","src":"1161:8:10"}],"id":1696,"name":"IndexAccess","src":"1155:15:10"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":true,"lValueRequested":false,"names":["name","email","ipfsData"],"type":"struct Users.UserInfo memory","type_conversion":false},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1629,"type":"type(struct Users.UserInfo storage pointer)","value":"UserInfo"},"id":1697,"name":"Identifier","src":"1174:8:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1684,"type":"string memory","value":"_name"},"id":1698,"name":"Identifier","src":"1201:5:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1686,"type":"string memory","value":"_email"},"id":1699,"name":"Identifier","src":"1225:6:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1688,"type":"string memory","value":"_ipfsData"},"id":1700,"name":"Identifier","src":"1253:9:10"}],"id":1701,"name":"FunctionCall","src":"1174:97:10"}],"id":1702,"name":"Assignment","src":"1155:116:10"}],"id":1703,"name":"ExpressionStatement","src":"1155:116:10"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1643,"type":"function (address,string memory,string memory,string memory)","value":"LogCreateUser"},"id":1704,"name":"Identifier","src":"1280:13:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1682,"type":"address","value":"_address"},"id":1705,"name":"Identifier","src":"1294:8:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1684,"type":"string memory","value":"_name"},"id":1706,"name":"Identifier","src":"1304:5:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1686,"type":"string memory","value":"_email"},"id":1707,"name":"Identifier","src":"1311:6:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1688,"type":"string memory","value":"_ipfsData"},"id":1708,"name":"Identifier","src":"1319:9:10"}],"id":1709,"name":"FunctionCall","src":"1280:49:10"}],"id":1710,"name":"ExpressionStatement","src":"1280:49:10"}],"id":1711,"name":"Block","src":"1147:189:10"}],"id":1712,"name":"FunctionDefinition","src":"1003:333:10"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"remove","payable":false,"scope":1757,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_address","scope":1730,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1713,"name":"ElementaryTypeName","src":"1517:7:10"}],"id":1714,"name":"VariableDeclaration","src":"1517:16:10"}],"id":1715,"name":"ParameterList","src":"1516:18:10"},{"attributes":{"parameters":[null]},"children":[],"id":1719,"name":"ParameterList","src":"1568:0:10"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1665,"type":"modifier (address)","value":"onlyOwnerOrUser"},"id":1716,"name":"Identifier","src":"1542:15:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1714,"type":"address","value":"_address"},"id":1717,"name":"Identifier","src":"1558:8:10"}],"id":1718,"name":"ModifierInvocation","src":"1542:25:10"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"delete","prefix":true,"type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"struct Users.UserInfo storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1633,"type":"mapping(address => struct Users.UserInfo storage ref)","value":"users"},"id":1720,"name":"Identifier","src":"1585:5:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1714,"type":"address","value":"_address"},"id":1721,"name":"Identifier","src":"1591:8:10"}],"id":1722,"name":"IndexAccess","src":"1585:15:10"}],"id":1723,"name":"UnaryOperation","src":"1578:22:10"}],"id":1724,"name":"ExpressionStatement","src":"1578:22:10"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1647,"type":"function (address)","value":"LogRemoveUser"},"id":1725,"name":"Identifier","src":"1610:13:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1714,"type":"address","value":"_address"},"id":1726,"name":"Identifier","src":"1624:8:10"}],"id":1727,"name":"FunctionCall","src":"1610:23:10"}],"id":1728,"name":"ExpressionStatement","src":"1610:23:10"}],"id":1729,"name":"Block","src":"1568:72:10"}],"id":1730,"name":"FunctionDefinition","src":"1501:139:10"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"get","payable":false,"scope":1757,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_address","scope":1756,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1731,"name":"ElementaryTypeName","src":"1815:7:10"}],"id":1732,"name":"VariableDeclaration","src":"1815:16:10"}],"id":1733,"name":"ParameterList","src":"1814:18:10"},{"children":[{"attributes":{"constant":false,"name":"","scope":1756,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1734,"name":"ElementaryTypeName","src":"1857:6:10"}],"id":1735,"name":"VariableDeclaration","src":"1857:6:10"},{"attributes":{"constant":false,"name":"","scope":1756,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1736,"name":"ElementaryTypeName","src":"1865:6:10"}],"id":1737,"name":"VariableDeclaration","src":"1865:6:10"},{"attributes":{"constant":false,"name":"","scope":1756,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1738,"name":"ElementaryTypeName","src":"1873:6:10"}],"id":1739,"name":"VariableDeclaration","src":"1873:6:10"}],"id":1740,"name":"ParameterList","src":"1856:24:10"},{"children":[{"attributes":{"assignments":[1742]},"children":[{"attributes":{"constant":false,"name":"userInfo","scope":1756,"stateVariable":false,"storageLocation":"storage","type":"struct Users.UserInfo storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"UserInfo","referencedDeclaration":1629,"type":"struct Users.UserInfo storage pointer"},"id":1741,"name":"UserDefinedTypeName","src":"1889:8:10"}],"id":1742,"name":"VariableDeclaration","src":"1889:25:10"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct Users.UserInfo storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1633,"type":"mapping(address => struct Users.UserInfo storage ref)","value":"users"},"id":1743,"name":"Identifier","src":"1917:5:10"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1732,"type":"address","value":"_address"},"id":1744,"name":"Identifier","src":"1923:8:10"}],"id":1745,"name":"IndexAccess","src":"1917:15:10"}],"id":1746,"name":"VariableDeclarationStatement","src":"1889:43:10"},{"attributes":{"functionReturnParameters":1740},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"tuple(string storage ref,string storage ref,string storage ref)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"name","referencedDeclaration":1624,"type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1742,"type":"struct Users.UserInfo storage pointer","value":"userInfo"},"id":1747,"name":"Identifier","src":"1948:8:10"}],"id":1748,"name":"MemberAccess","src":"1948:13:10"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"email","referencedDeclaration":1626,"type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1742,"type":"struct Users.UserInfo storage pointer","value":"userInfo"},"id":1749,"name":"Identifier","src":"1963:8:10"}],"id":1750,"name":"MemberAccess","src":"1963:14:10"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"ipfsData","referencedDeclaration":1628,"type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1742,"type":"struct Users.UserInfo storage pointer","value":"userInfo"},"id":1751,"name":"Identifier","src":"1979:8:10"}],"id":1752,"name":"MemberAccess","src":"1979:17:10"}],"id":1753,"name":"TupleExpression","src":"1947:50:10"}],"id":1754,"name":"Return","src":"1940:57:10"}],"id":1755,"name":"Block","src":"1881:123:10"}],"id":1756,"name":"FunctionDefinition","src":"1802:202:10"}],"id":1757,"name":"ContractDefinition","src":"112:1894:10"}],"id":1758,"name":"SourceUnit","src":"0:2007:10"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T13:59:31.988Z"} +module.exports = {"contractName":"Users","abi":[{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"users","outputs":[{"name":"name","type":"string"},{"name":"email","type":"string"},{"name":"ipfsData","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_address","type":"address"},{"indexed":false,"name":"_name","type":"string"},{"indexed":false,"name":"_email","type":"string"},{"indexed":false,"name":"_ipfsData","type":"string"}],"name":"LogCreateUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_address","type":"address"}],"name":"LogRemoveUser","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_address","type":"address"},{"name":"_name","type":"string"},{"name":"_email","type":"string"},{"name":"_ipfsData","type":"string"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"remove","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"get","outputs":[{"name":"","type":"string"},{"name":"","type":"string"},{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b5060405160208061117c83398101806040528101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050611078806101046000396000f300608060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806329092d0e1461007d57806358192547146100c05780638da5cb5b146101d5578063a87430ba1461022c578063c2bc2efc146103c0578063f2fde38b14610554575b600080fd5b34801561008957600080fd5b506100be600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610597565b005b3480156100cc57600080fd5b506101d3600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506106e2565b005b3480156101e157600080fd5b506101ea6109bd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561023857600080fd5b5061026d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109e2565b60405180806020018060200180602001848103845287818151815260200191508051906020019080838360005b838110156102b557808201518184015260208101905061029a565b50505050905090810190601f1680156102e25780820380516001836020036101000a031916815260200191505b50848103835286818151815260200191508051906020019080838360005b8381101561031b578082015181840152602081019050610300565b50505050905090810190601f1680156103485780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019080838360005b83811015610381578082015181840152602081019050610366565b50505050905090810190601f1680156103ae5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b3480156103cc57600080fd5b50610401600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bd4565b60405180806020018060200180602001848103845287818151815260200191508051906020019080838360005b8381101561044957808201518184015260208101905061042e565b50505050905090810190601f1680156104765780820380516001836020036101000a031916815260200191505b50848103835286818151815260200191508051906020019080838360005b838110156104af578082015181840152602081019050610494565b50505050905090810190601f1680156104dc5780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019080838360005b838110156105155780820151818401526020810190506104fa565b50505050905090810190601f1680156105425780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b34801561056057600080fd5b50610595600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e0a565b005b806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061061e57508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561062957600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006106799190610f5f565b6001820160006106899190610f5f565b6002820160006106999190610f5f565b50508173ffffffffffffffffffffffffffffffffffffffff167f55851df80c45c1f97f20eea833f78ef3d130c5a10c8fc9c7ee1c7f1612b5c5b160405160405180910390a25050565b836000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061076957508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561077457600080fd5b60606040519081016040528085815260200184815260200183815250600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000190805190602001906107eb929190610fa7565b506020820151816001019080519060200190610808929190610fa7565b506040820151816002019080519060200190610825929190610fa7565b509050508473ffffffffffffffffffffffffffffffffffffffff167fba99562563f525f7262c85e26d4cc59ed7bc12b61f8c070b57cb400fa8e6a9b885858560405180806020018060200180602001848103845287818151815260200191508051906020019080838360005b838110156108ac578082015181840152602081019050610891565b50505050905090810190601f1680156108d95780820380516001836020036101000a031916815260200191505b50848103835286818151815260200191508051906020019080838360005b838110156109125780820151818401526020810190506108f7565b50505050905090810190601f16801561093f5780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019080838360005b8381101561097857808201518184015260208101905061095d565b50505050905090810190601f1680156109a55780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a25050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002602052806000526040600020600091509050806000018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a8e5780601f10610a6357610100808354040283529160200191610a8e565b820191906000526020600020905b815481529060010190602001808311610a7157829003601f168201915b505050505090806001018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b2c5780601f10610b0157610100808354040283529160200191610b2c565b820191906000526020600020905b815481529060010190602001808311610b0f57829003601f168201915b505050505090806002018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610bca5780601f10610b9f57610100808354040283529160200191610bca565b820191906000526020600020905b815481529060010190602001808311610bad57829003601f168201915b5050505050905083565b60608060606000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050806000018160010182600201828054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610cbd5780601f10610c9257610100808354040283529160200191610cbd565b820191906000526020600020905b815481529060010190602001808311610ca057829003601f168201915b50505050509250818054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d595780601f10610d2e57610100808354040283529160200191610d59565b820191906000526020600020905b815481529060010190602001808311610d3c57829003601f168201915b50505050509150808054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610df55780601f10610dca57610100808354040283529160200191610df5565b820191906000526020600020905b815481529060010190602001808311610dd857829003601f168201915b50505050509050935093509350509193909250565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e6557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610ea157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b50805460018160011615610100020316600290046000825580601f10610f855750610fa4565b601f016020900490600052602060002090810190610fa39190611027565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610fe857805160ff1916838001178555611016565b82800160010185558215611016579182015b82811115611015578251825591602001919060010190610ffa565b5b5090506110239190611027565b5090565b61104991905b8082111561104557600081600090555060010161102d565b5090565b905600a165627a7a723058201f24dd6b6342451806805212c11c03f3a29b6ba44397ba07e67e403c3e2673910029","deployedBytecode":"0x608060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806329092d0e1461007d57806358192547146100c05780638da5cb5b146101d5578063a87430ba1461022c578063c2bc2efc146103c0578063f2fde38b14610554575b600080fd5b34801561008957600080fd5b506100be600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610597565b005b3480156100cc57600080fd5b506101d3600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506106e2565b005b3480156101e157600080fd5b506101ea6109bd565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561023857600080fd5b5061026d600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109e2565b60405180806020018060200180602001848103845287818151815260200191508051906020019080838360005b838110156102b557808201518184015260208101905061029a565b50505050905090810190601f1680156102e25780820380516001836020036101000a031916815260200191505b50848103835286818151815260200191508051906020019080838360005b8381101561031b578082015181840152602081019050610300565b50505050905090810190601f1680156103485780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019080838360005b83811015610381578082015181840152602081019050610366565b50505050905090810190601f1680156103ae5780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b3480156103cc57600080fd5b50610401600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bd4565b60405180806020018060200180602001848103845287818151815260200191508051906020019080838360005b8381101561044957808201518184015260208101905061042e565b50505050905090810190601f1680156104765780820380516001836020036101000a031916815260200191505b50848103835286818151815260200191508051906020019080838360005b838110156104af578082015181840152602081019050610494565b50505050905090810190601f1680156104dc5780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019080838360005b838110156105155780820151818401526020810190506104fa565b50505050905090810190601f1680156105425780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390f35b34801561056057600080fd5b50610595600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e0a565b005b806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061061e57508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561062957600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600080820160006106799190610f5f565b6001820160006106899190610f5f565b6002820160006106999190610f5f565b50508173ffffffffffffffffffffffffffffffffffffffff167f55851df80c45c1f97f20eea833f78ef3d130c5a10c8fc9c7ee1c7f1612b5c5b160405160405180910390a25050565b836000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061076957508073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561077457600080fd5b60606040519081016040528085815260200184815260200183815250600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008201518160000190805190602001906107eb929190610fa7565b506020820151816001019080519060200190610808929190610fa7565b506040820151816002019080519060200190610825929190610fa7565b509050508473ffffffffffffffffffffffffffffffffffffffff167fba99562563f525f7262c85e26d4cc59ed7bc12b61f8c070b57cb400fa8e6a9b885858560405180806020018060200180602001848103845287818151815260200191508051906020019080838360005b838110156108ac578082015181840152602081019050610891565b50505050905090810190601f1680156108d95780820380516001836020036101000a031916815260200191505b50848103835286818151815260200191508051906020019080838360005b838110156109125780820151818401526020810190506108f7565b50505050905090810190601f16801561093f5780820380516001836020036101000a031916815260200191505b50848103825285818151815260200191508051906020019080838360005b8381101561097857808201518184015260208101905061095d565b50505050905090810190601f1680156109a55780820380516001836020036101000a031916815260200191505b50965050505050505060405180910390a25050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002602052806000526040600020600091509050806000018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a8e5780601f10610a6357610100808354040283529160200191610a8e565b820191906000526020600020905b815481529060010190602001808311610a7157829003601f168201915b505050505090806001018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610b2c5780601f10610b0157610100808354040283529160200191610b2c565b820191906000526020600020905b815481529060010190602001808311610b0f57829003601f168201915b505050505090806002018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610bca5780601f10610b9f57610100808354040283529160200191610bca565b820191906000526020600020905b815481529060010190602001808311610bad57829003601f168201915b5050505050905083565b60608060606000600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209050806000018160010182600201828054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610cbd5780601f10610c9257610100808354040283529160200191610cbd565b820191906000526020600020905b815481529060010190602001808311610ca057829003601f168201915b50505050509250818054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d595780601f10610d2e57610100808354040283529160200191610d59565b820191906000526020600020905b815481529060010190602001808311610d3c57829003601f168201915b50505050509150808054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610df55780601f10610dca57610100808354040283529160200191610df5565b820191906000526020600020905b815481529060010190602001808311610dd857829003601f168201915b50505050509050935093509350509193909250565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e6557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610ea157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b50805460018160011615610100020316600290046000825580601f10610f855750610fa4565b601f016020900490600052602060002090810190610fa39190611027565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610fe857805160ff1916838001178555611016565b82800160010185558215611016579182015b82811115611015578251825591602001919060010190610ffa565b5b5090506110239190611027565b5090565b61104991905b8082111561104557600081600090555060010161102d565b5090565b905600a165627a7a723058201f24dd6b6342451806805212c11c03f3a29b6ba44397ba07e67e403c3e2673910029"} /***/ }), /* 902 */ /***/ (function(module, exports) { -module.exports = {"contractName":"Videos","abi":[{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paratiiRegistry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_paratiiRegistry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"videoId","type":"string"},{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"price","type":"uint256"},{"indexed":false,"name":"ipfsHashOrig","type":"string"},{"indexed":false,"name":"ipfsHash","type":"string"},{"indexed":false,"name":"ipfsData","type":"string"},{"indexed":false,"name":"registrar","type":"address"}],"name":"LogCreateVideo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"videoId","type":"string"}],"name":"LogRemoveVideo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"},{"name":"_owner","type":"address"},{"name":"_price","type":"uint256"},{"name":"_ipfsHashOrig","type":"string"},{"name":"_ipfsHash","type":"string"},{"name":"_ipfsData","type":"string"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"}],"name":"remove","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_videoId","type":"string"}],"name":"get","outputs":[{"name":"","type":"address"},{"name":"","type":"uint256"},{"name":"","type":"string"},{"name":"","type":"string"},{"name":"","type":"string"},{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b6040516020806114ce83398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506113d2806100fc6000396000f300606060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630b9d64b61461007d578063693ec85e146101cb57806380599e4b146103e65780638da5cb5b146104435780639e20f78914610498578063f2fde38b146104ed575b600080fd5b341561008857600080fd5b6101c9600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610526565b005b34156101d657600080fd5b610226600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610aed565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018681526020018060200180602001806020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848103845288818151815260200191508051906020019080838360005b838110156102d85780820151818401526020810190506102bd565b50505050905090810190601f1680156103055780820380516001836020036101000a031916815260200191505b50848103835287818151815260200191508051906020019080838360005b8381101561033e578082015181840152602081019050610323565b50505050905090810190601f16801561036b5780820380516001836020036101000a031916815260200191505b50848103825286818151815260200191508051906020019080838360005b838110156103a4578082015181840152602081019050610389565b50505050905090810190601f1680156103d15780820380516001836020036101000a031916815260200191505b50995050505050505050505060405180910390f35b34156103f157600080fd5b610441600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610dcf565b005b341561044e57600080fd5b610456611105565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156104a357600080fd5b6104ab61112a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156104f857600080fd5b610524600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611150565b005b600086600080826040518082805190602001908083835b602083101515610562578051825260208201915060208101905060208303925061053d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020915060016000836000191660001916815260200190815260200160002090506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061069d575060008160060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061069c57508060060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b5b15156106a857600080fd5b896040518082805190602001908083835b6020831015156106de57805182526020820191506020810190506020830392506106b9565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020935060e060405190810160405280856000191681526020018881526020018781526020018681526020018981526020018a73ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff168152506001600086600019166000191681526020019081526020016000206000820151816000019060001916905560208201518160010190805190602001906107b89291906112a5565b5060408201518160020190805190602001906107d59291906112a5565b5060608201518160030190805190602001906107f29291906112a5565b506080820151816004015560a08201518160050160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060c08201518160060160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050507f36c65780b27428d759ce656fa342f6c1ceee6d63f4ab799527453d0209ef6e228a8a8a8a8a8a3360405180806020018873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018060200180602001806020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200185810385528c818151815260200191508051906020019080838360005b8381101561096c578082015181840152602081019050610951565b50505050905090810190601f1680156109995780820380516001836020036101000a031916815260200191505b50858103845289818151815260200191508051906020019080838360005b838110156109d25780820151818401526020810190506109b7565b50505050905090810190601f1680156109ff5780820380516001836020036101000a031916815260200191505b50858103835288818151815260200191508051906020019080838360005b83811015610a38578082015181840152602081019050610a1d565b50505050905090810190601f168015610a655780820380516001836020036101000a031916815260200191505b50858103825287818151815260200191508051906020019080838360005b83811015610a9e578082015181840152602081019050610a83565b50505050905090810190601f168015610acb5780820380516001836020036101000a031916815260200191505b509b50505050505050505050505060405180910390a150505050505050505050565b600080610af8611325565b610b00611325565b610b08611325565b60008060016000896040518082805190602001908083835b602083101515610b455780518252602082019150602081019050602083039250610b20565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002090508060050160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600401548260010183600201846003018560060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610c7a5780601f10610c4f57610100808354040283529160200191610c7a565b820191906000526020600020905b815481529060010190602001808311610c5d57829003601f168201915b50505050509350828054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d165780601f10610ceb57610100808354040283529160200191610d16565b820191906000526020600020905b815481529060010190602001808311610cf957829003601f168201915b50505050509250818054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610db25780601f10610d8757610100808354040283529160200191610db2565b820191906000526020600020905b815481529060010190602001808311610d9557829003601f168201915b505050505091509650965096509650965096505091939550919395565b600081600080826040518082805190602001908083835b602083101515610e0b5780518252602082019150602081019050602083039250610de6565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020915060016000836000191660001916815260200190815260200160002090506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f46575060008160060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480610f4557508060060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b5b1515610f5157600080fd5b846040518082805190602001908083835b602083101515610f875780518252602082019150602081019050602083039250610f62565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209350600160008560001916600019168152602001908152602001600020600080820160009055600182016000610fea9190611339565b600282016000610ffa9190611339565b60038201600061100a9190611339565b60048201600090556005820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556006820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550507f592a19ecda39f9bdfc71b1f128f024319cff48402f55ccf171b0878d5b69b7d5856040518080602001828103825283818151815260200191508051906020019080838360005b838110156110c45780820151818401526020810190506110a9565b50505050905090810190601f1680156110f15780820380516001836020036101000a031916815260200191505b509250505060405180910390a15050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156111ab57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156111e757600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106112e657805160ff1916838001178555611314565b82800160010185558215611314579182015b828111156113135782518255916020019190600101906112f8565b5b5090506113219190611381565b5090565b602060405190810160405280600081525090565b50805460018160011615610100020316600290046000825580601f1061135f575061137e565b601f01602090049060005260206000209081019061137d9190611381565b5b50565b6113a391905b8082111561139f576000816000905550600101611387565b5090565b905600a165627a7a72305820e2983cdad40170c5e4573b7925e3f0f54315eaee0d2f6ac09aff074d8c5e1d6c0029","deployedBytecode":"0x606060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630b9d64b61461007d578063693ec85e146101cb57806380599e4b146103e65780638da5cb5b146104435780639e20f78914610498578063f2fde38b146104ed575b600080fd5b341561008857600080fd5b6101c9600480803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610526565b005b34156101d657600080fd5b610226600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610aed565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018681526020018060200180602001806020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848103845288818151815260200191508051906020019080838360005b838110156102d85780820151818401526020810190506102bd565b50505050905090810190601f1680156103055780820380516001836020036101000a031916815260200191505b50848103835287818151815260200191508051906020019080838360005b8381101561033e578082015181840152602081019050610323565b50505050905090810190601f16801561036b5780820380516001836020036101000a031916815260200191505b50848103825286818151815260200191508051906020019080838360005b838110156103a4578082015181840152602081019050610389565b50505050905090810190601f1680156103d15780820380516001836020036101000a031916815260200191505b50995050505050505050505060405180910390f35b34156103f157600080fd5b610441600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610dcf565b005b341561044e57600080fd5b610456611105565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156104a357600080fd5b6104ab61112a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156104f857600080fd5b610524600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611150565b005b600086600080826040518082805190602001908083835b602083101515610562578051825260208201915060208101905060208303925061053d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020915060016000836000191660001916815260200190815260200160002090506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16148061069d575060008160060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16148061069c57508060060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b5b15156106a857600080fd5b896040518082805190602001908083835b6020831015156106de57805182526020820191506020810190506020830392506106b9565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020935060e060405190810160405280856000191681526020018881526020018781526020018681526020018981526020018a73ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff168152506001600086600019166000191681526020019081526020016000206000820151816000019060001916905560208201518160010190805190602001906107b89291906112a5565b5060408201518160020190805190602001906107d59291906112a5565b5060608201518160030190805190602001906107f29291906112a5565b506080820151816004015560a08201518160050160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060c08201518160060160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050507f36c65780b27428d759ce656fa342f6c1ceee6d63f4ab799527453d0209ef6e228a8a8a8a8a8a3360405180806020018873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018060200180602001806020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200185810385528c818151815260200191508051906020019080838360005b8381101561096c578082015181840152602081019050610951565b50505050905090810190601f1680156109995780820380516001836020036101000a031916815260200191505b50858103845289818151815260200191508051906020019080838360005b838110156109d25780820151818401526020810190506109b7565b50505050905090810190601f1680156109ff5780820380516001836020036101000a031916815260200191505b50858103835288818151815260200191508051906020019080838360005b83811015610a38578082015181840152602081019050610a1d565b50505050905090810190601f168015610a655780820380516001836020036101000a031916815260200191505b50858103825287818151815260200191508051906020019080838360005b83811015610a9e578082015181840152602081019050610a83565b50505050905090810190601f168015610acb5780820380516001836020036101000a031916815260200191505b509b50505050505050505050505060405180910390a150505050505050505050565b600080610af8611325565b610b00611325565b610b08611325565b60008060016000896040518082805190602001908083835b602083101515610b455780518252602082019150602081019050602083039250610b20565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002090508060050160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600401548260010183600201846003018560060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610c7a5780601f10610c4f57610100808354040283529160200191610c7a565b820191906000526020600020905b815481529060010190602001808311610c5d57829003601f168201915b50505050509350828054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d165780601f10610ceb57610100808354040283529160200191610d16565b820191906000526020600020905b815481529060010190602001808311610cf957829003601f168201915b50505050509250818054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610db25780601f10610d8757610100808354040283529160200191610db2565b820191906000526020600020905b815481529060010190602001808311610d9557829003601f168201915b505050505091509650965096509650965096505091939550919395565b600081600080826040518082805190602001908083835b602083101515610e0b5780518252602082019150602081019050602083039250610de6565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020915060016000836000191660001916815260200190815260200160002090506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f46575060008160060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480610f4557508060060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b5b1515610f5157600080fd5b846040518082805190602001908083835b602083101515610f875780518252602082019150602081019050602083039250610f62565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209350600160008560001916600019168152602001908152602001600020600080820160009055600182016000610fea9190611339565b600282016000610ffa9190611339565b60038201600061100a9190611339565b60048201600090556005820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556006820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550507f592a19ecda39f9bdfc71b1f128f024319cff48402f55ccf171b0878d5b69b7d5856040518080602001828103825283818151815260200191508051906020019080838360005b838110156110c45780820151818401526020810190506110a9565b50505050905090810190601f1680156110f15780820380516001836020036101000a031916815260200191505b509250505060405180910390a15050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156111ab57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156111e757600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106112e657805160ff1916838001178555611314565b82800160010185558215611314579182015b828111156113135782518255916020019190600101906112f8565b5b5090506113219190611381565b5090565b602060405190810160405280600081525090565b50805460018160011615610100020316600290046000825580601f1061135f575061137e565b601f01602090049060005260206000209081019061137d9190611381565b5b50565b6113a391905b8082111561139f576000816000905550600101611387565b5090565b905600a165627a7a72305820e2983cdad40170c5e4573b7925e3f0f54315eaee0d2f6ac09aff074d8c5e1d6c0029","sourceMap":"168:4024:11:-;;;1368:129;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;509:10:15;501:5;;:18;;;;;;;;;;;;;;;;;;1436:10:11;1428:5;;:18;;;;;;;;;;;;;;;;;;1474:16;1456:15;;:34;;;;;;;;;;;;;;;;;;1368:129;168:4024;;;;;;","deployedSourceMap":"168:4024:11:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1945:630;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2912:321;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2581:182:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;702:31:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;834:169:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;1945:630:11;2172:10;2144:8;1163:10;1203:27;1186:8;1176:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1163:32:11;;1233:6;:10;1240:2;1233:10;;;;;;;;;;;;;;;;;1203:40;;1273:5;;;;;;;;;;;1259:19;;:10;:19;;;:86;;;;1306:1;1283:9;:19;;;;;;;;;;;;:24;;;:61;;;;1325:9;:19;;;;;;;;;;;;1311:33;;:10;:33;;;1283:61;1259:86;1251:95;;;;;;;;2195:8;2185:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;2172:32:11;;2228:240;;;;;;;;;2257:2;2228:240;;;;;;;2341:13;2228:240;;;;2378:9;2228:240;;;;2411:9;2228:240;;;;2280:6;2228:240;;;;2307:6;2228:240;;;;;;2445:10;2228:240;;;;;2215:6;:10;2222:2;2215:10;;;;;;;;;;;;;;;;;:253;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2479:89;2494:8;2504:6;2512;2520:13;2535:9;2546;2557:10;2479:89;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1945:630:11;;;;;;;;;;:::o;2912:321::-;2972:7;2981;2990:6;;:::i;:::-;2998;;:::i;:::-;3006;;:::i;:::-;3014:7;3035:27;3065:6;:27;3082:8;3072:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;3065:27:11;;;;;;;;;;;;;;;;;3035:57;;3108:9;:15;;;;;;;;;;;;3125:9;:15;;;3142:9;:22;;3166:9;:18;;3186:9;:18;;3206:9;:19;;;;;;;;;;;;3100:126;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2912:321;;;;;;;;:::o;2581:182::-;2663:10;2643:8;1163:10;1203:27;1186:8;1176:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1163:32:11;;1233:6;:10;1240:2;1233:10;;;;;;;;;;;;;;;;;1203:40;;1273:5;;;;;;;;;;;1259:19;;:10;:19;;;:86;;;;1306:1;1283:9;:19;;;;;;;;;;;;:24;;;:61;;;;1325:9;:19;;;;;;;;;;;;1311:33;;:10;:33;;;1283:61;1259:86;1251:95;;;;;;;;2686:8;2676:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;2663:32:11;;2712:6;:10;2719:2;2712:10;;;;;;;;;;;;;;;;;;2705:17;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2732:24;2747:8;2732:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2581:182:11;;;;;:::o;238:20:15:-;;;;;;;;;;;;;:::o;702:31:11:-;;;;;;;;;;;;;:::o;834:169:15:-;654:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;930:1;910:22;;:8;:22;;;;902:31;;;;;;;;967:8;939:37;;960:5;;;;;;;;;;;939:37;;;;;;;;;;;;990:8;982:5;;:16;;;;;;;;;;;;;;;;;;834:169;:::o;168:4024:11:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o","source":"pragma solidity ^0.4.18;\n\nimport \"zeppelin-solidity/contracts/ownership/Ownable.sol\";\nimport 'zeppelin-solidity/contracts/math/SafeMath.sol';\nimport './Registry.sol';\n\ncontract Videos is Ownable {\n\n struct VideoInfo {\n bytes32 _id;\n string ipfsHashOrig; // the hash of the original file on IPFS\n string ipfsHash; // the hash of the streamable (transcoded) file on IPFS\n string ipfsData; // optional addition data about this video, stored in IPFS\n uint256 price; // price in PTI-wei\n address owner; // the owner\n address registrar; // the account that has registered this video and can update and delete the info\n }\n\n mapping (bytes32=>VideoInfo) videos;\n Registry public paratiiRegistry;\n\n event LogCreateVideo(\n string videoId,\n address owner,\n uint price,\n string ipfsHashOrig,\n string ipfsHash,\n string ipfsData,\n address registrar\n );\n\n event LogRemoveVideo(string videoId);\n\n // ???\n modifier onlyUserRegistry() {\n require(msg.sender == paratiiRegistry.getContract('Users'));\n _;\n }\n\n modifier onlyRegistrarOrAvatar(string _videoId) {\n bytes32 id = keccak256(_videoId);\n VideoInfo storage videoInfo = videos[id];\n require(msg.sender == owner || (videoInfo.registrar == 0 || msg.sender == videoInfo.registrar));\n _;\n }\n\n function Videos(Registry _paratiiRegistry) public {\n owner = msg.sender;\n paratiiRegistry = _paratiiRegistry;\n }\n\n /**\n * @dev Register a video\n * @param _videoId id of the video, can be any string\n * @param _owner the address of the owner of this video\n * @param _price the price in wei of this video\n * @param _ipfsHashOrig the hash of the original file on IPFS\n * @param _ipfsHash the hash of the streamable (transcoded) file on IPFS\n * @param _ipfsData optional additional data about this video, stored in IPFS\n **/\n\n function create(\n string _videoId,\n address _owner,\n uint256 _price,\n string _ipfsHashOrig,\n string _ipfsHash,\n string _ipfsData\n ) onlyRegistrarOrAvatar(_videoId) public {\n\n bytes32 id = keccak256(_videoId);\n\n videos[id] = VideoInfo({\n _id: id,\n price: _price,\n owner: _owner,\n ipfsHashOrig: _ipfsHashOrig,\n ipfsHash: _ipfsHash,\n ipfsData: _ipfsData,\n registrar: msg.sender\n });\n\n LogCreateVideo(_videoId, _owner, _price, _ipfsHashOrig, _ipfsHash, _ipfsData, msg.sender);\n }\n\n function remove(string _videoId) public onlyRegistrarOrAvatar(_videoId) {\n bytes32 id = keccak256(_videoId);\n delete videos[id];\n LogRemoveVideo(_videoId);\n }\n\n /**\n * @dev return information about video\n * @return a tuple (owner, price, ipfsHashOrig, ipfsHash, ipfsData, registrar)\n */\n\n function get(string _videoId) public constant\n returns(address, uint256, string, string, string, address)\n {\n VideoInfo storage videoInfo = videos[keccak256(_videoId)];\n return (videoInfo.owner, videoInfo.price, videoInfo.ipfsHashOrig, videoInfo.ipfsHash, videoInfo.ipfsData, videoInfo.registrar);\n }\n/*\n function likeVideo(string _videoId, bool changed_opinion) public onlyUserRegistry {\n VideoInfo storage videoInfo = videos[keccak256(_videoId)];\n videoInfo.stats.likes = videoInfo.stats.likes + 1;\n\n if (changed_opinion) {\n videoInfo.stats.dislikes = videoInfo.stats.dislikes - 1;\n }\n }\n\n function dislikeVideo(string _videoId, bool changed_opinion) public onlyUserRegistry {\n VideoInfo storage videoInfo = videos[keccak256(_videoId)];\n videoInfo.stats.dislikes = videoInfo.stats.dislikes + 1;\n\n if (changed_opinion) {\n videoInfo.stats.likes = videoInfo.stats.likes - 1;\n }\n }\n\n function getStats(string _videoId) public constant returns (uint256, uint256, uint256) {\n VideoInfo storage videoInfo = videos[keccak256(_videoId)];\n Stats storage stats = videoInfo.stats;\n return (stats.views, stats.likes, stats.dislikes);\n }*/\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Videos.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Videos.sol","exportedSymbols":{"Videos":[1987]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":1759,"name":"PragmaDirective","src":"0:24:11"},{"attributes":{"SourceUnit":2517,"absolutePath":"zeppelin-solidity/contracts/ownership/Ownable.sol","file":"zeppelin-solidity/contracts/ownership/Ownable.sol","scope":1988,"symbolAliases":[null],"unitAlias":""},"id":1760,"name":"ImportDirective","src":"26:59:11"},{"attributes":{"SourceUnit":2461,"absolutePath":"zeppelin-solidity/contracts/math/SafeMath.sol","file":"zeppelin-solidity/contracts/math/SafeMath.sol","scope":1988,"symbolAliases":[null],"unitAlias":""},"id":1761,"name":"ImportDirective","src":"86:55:11"},{"attributes":{"SourceUnit":857,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Registry.sol","file":"./Registry.sol","scope":1988,"symbolAliases":[null],"unitAlias":""},"id":1762,"name":"ImportDirective","src":"142:24:11"},{"attributes":{"contractDependencies":[2516],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[1987,2516],"name":"Videos","scope":1988},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"Ownable","referencedDeclaration":2516,"type":"contract Ownable"},"id":1763,"name":"UserDefinedTypeName","src":"187:7:11"}],"id":1764,"name":"InheritanceSpecifier","src":"187:7:11"},{"attributes":{"canonicalName":"Videos.VideoInfo","name":"VideoInfo","scope":1987,"visibility":"public"},"children":[{"attributes":{"constant":false,"name":"_id","scope":1779,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":1765,"name":"ElementaryTypeName","src":"227:7:11"}],"id":1766,"name":"VariableDeclaration","src":"227:11:11"},{"attributes":{"constant":false,"name":"ipfsHashOrig","scope":1779,"stateVariable":false,"storageLocation":"default","type":"string storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1767,"name":"ElementaryTypeName","src":"246:6:11"}],"id":1768,"name":"VariableDeclaration","src":"246:19:11"},{"attributes":{"constant":false,"name":"ipfsHash","scope":1779,"stateVariable":false,"storageLocation":"default","type":"string storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1769,"name":"ElementaryTypeName","src":"314:6:11"}],"id":1770,"name":"VariableDeclaration","src":"314:15:11"},{"attributes":{"constant":false,"name":"ipfsData","scope":1779,"stateVariable":false,"storageLocation":"default","type":"string storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1771,"name":"ElementaryTypeName","src":"393:6:11"}],"id":1772,"name":"VariableDeclaration","src":"393:15:11"},{"attributes":{"constant":false,"name":"price","scope":1779,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":1773,"name":"ElementaryTypeName","src":"475:7:11"}],"id":1774,"name":"VariableDeclaration","src":"475:13:11"},{"attributes":{"constant":false,"name":"owner","scope":1779,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1775,"name":"ElementaryTypeName","src":"516:7:11"}],"id":1776,"name":"VariableDeclaration","src":"516:13:11"},{"attributes":{"constant":false,"name":"registrar","scope":1779,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1777,"name":"ElementaryTypeName","src":"550:7:11"}],"id":1778,"name":"VariableDeclaration","src":"550:17:11"}],"id":1779,"name":"StructDefinition","src":"202:453:11"},{"attributes":{"constant":false,"name":"videos","scope":1987,"stateVariable":true,"storageLocation":"default","type":"mapping(bytes32 => struct Videos.VideoInfo storage ref)","value":null,"visibility":"internal"},"children":[{"attributes":{"type":"mapping(bytes32 => struct Videos.VideoInfo storage ref)"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":1780,"name":"ElementaryTypeName","src":"670:7:11"},{"attributes":{"contractScope":null,"name":"VideoInfo","referencedDeclaration":1779,"type":"struct Videos.VideoInfo storage pointer"},"id":1781,"name":"UserDefinedTypeName","src":"679:9:11"}],"id":1782,"name":"Mapping","src":"661:28:11"}],"id":1783,"name":"VariableDeclaration","src":"661:35:11"},{"attributes":{"constant":false,"name":"paratiiRegistry","scope":1987,"stateVariable":true,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"public"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":1784,"name":"UserDefinedTypeName","src":"702:8:11"}],"id":1785,"name":"VariableDeclaration","src":"702:31:11"},{"attributes":{"anonymous":false,"name":"LogCreateVideo"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"videoId","scope":1801,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1786,"name":"ElementaryTypeName","src":"768:6:11"}],"id":1787,"name":"VariableDeclaration","src":"768:14:11"},{"attributes":{"constant":false,"indexed":false,"name":"owner","scope":1801,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1788,"name":"ElementaryTypeName","src":"790:7:11"}],"id":1789,"name":"VariableDeclaration","src":"790:13:11"},{"attributes":{"constant":false,"indexed":false,"name":"price","scope":1801,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":1790,"name":"ElementaryTypeName","src":"811:4:11"}],"id":1791,"name":"VariableDeclaration","src":"811:10:11"},{"attributes":{"constant":false,"indexed":false,"name":"ipfsHashOrig","scope":1801,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1792,"name":"ElementaryTypeName","src":"829:6:11"}],"id":1793,"name":"VariableDeclaration","src":"829:19:11"},{"attributes":{"constant":false,"indexed":false,"name":"ipfsHash","scope":1801,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1794,"name":"ElementaryTypeName","src":"856:6:11"}],"id":1795,"name":"VariableDeclaration","src":"856:15:11"},{"attributes":{"constant":false,"indexed":false,"name":"ipfsData","scope":1801,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1796,"name":"ElementaryTypeName","src":"879:6:11"}],"id":1797,"name":"VariableDeclaration","src":"879:15:11"},{"attributes":{"constant":false,"indexed":false,"name":"registrar","scope":1801,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1798,"name":"ElementaryTypeName","src":"902:7:11"}],"id":1799,"name":"VariableDeclaration","src":"902:17:11"}],"id":1800,"name":"ParameterList","src":"760:165:11"}],"id":1801,"name":"EventDefinition","src":"740:186:11"},{"attributes":{"anonymous":false,"name":"LogRemoveVideo"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"videoId","scope":1805,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1802,"name":"ElementaryTypeName","src":"953:6:11"}],"id":1803,"name":"VariableDeclaration","src":"953:14:11"}],"id":1804,"name":"ParameterList","src":"952:16:11"}],"id":1805,"name":"EventDefinition","src":"932:37:11"},{"attributes":{"name":"onlyUserRegistry","visibility":"internal"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":1806,"name":"ParameterList","src":"1011:2:11"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":1807,"name":"Identifier","src":"1024:7:11"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1808,"name":"Identifier","src":"1032:3:11"}],"id":1809,"name":"MemberAccess","src":"1032:10:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_2dea1ebefab48650b6eee6e1807b6a41fa486c586e7b781e65b0d2434ef7ebc6","typeString":"literal_string \"Users\""}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getContract","referencedDeclaration":743,"type":"function (string memory) view external returns (address)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1785,"type":"contract Registry","value":"paratiiRegistry"},"id":1810,"name":"Identifier","src":"1046:15:11"}],"id":1811,"name":"MemberAccess","src":"1046:27:11"},{"attributes":{"argumentTypes":null,"hexvalue":"5573657273","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"Users\"","value":"Users"},"id":1812,"name":"Literal","src":"1074:7:11"}],"id":1813,"name":"FunctionCall","src":"1046:36:11"}],"id":1814,"name":"BinaryOperation","src":"1032:50:11"}],"id":1815,"name":"FunctionCall","src":"1024:59:11"}],"id":1816,"name":"ExpressionStatement","src":"1024:59:11"},{"id":1817,"name":"PlaceholderStatement","src":"1093:1:11"}],"id":1818,"name":"Block","src":"1014:87:11"}],"id":1819,"name":"ModifierDefinition","src":"986:115:11"},{"attributes":{"name":"onlyRegistrarOrAvatar","visibility":"internal"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":1856,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1820,"name":"ElementaryTypeName","src":"1138:6:11"}],"id":1821,"name":"VariableDeclaration","src":"1138:15:11"}],"id":1822,"name":"ParameterList","src":"1137:17:11"},{"children":[{"attributes":{"assignments":[1824]},"children":[{"attributes":{"constant":false,"name":"id","scope":1856,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":1823,"name":"ElementaryTypeName","src":"1163:7:11"}],"id":1824,"name":"VariableDeclaration","src":"1163:10:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":1825,"name":"Identifier","src":"1176:9:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1821,"type":"string memory","value":"_videoId"},"id":1826,"name":"Identifier","src":"1186:8:11"}],"id":1827,"name":"FunctionCall","src":"1176:19:11"}],"id":1828,"name":"VariableDeclarationStatement","src":"1163:32:11"},{"attributes":{"assignments":[1830]},"children":[{"attributes":{"constant":false,"name":"videoInfo","scope":1856,"stateVariable":false,"storageLocation":"storage","type":"struct Videos.VideoInfo storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"VideoInfo","referencedDeclaration":1779,"type":"struct Videos.VideoInfo storage pointer"},"id":1829,"name":"UserDefinedTypeName","src":"1203:9:11"}],"id":1830,"name":"VariableDeclaration","src":"1203:27:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct Videos.VideoInfo storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1783,"type":"mapping(bytes32 => struct Videos.VideoInfo storage ref)","value":"videos"},"id":1831,"name":"Identifier","src":"1233:6:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1824,"type":"bytes32","value":"id"},"id":1832,"name":"Identifier","src":"1240:2:11"}],"id":1833,"name":"IndexAccess","src":"1233:10:11"}],"id":1834,"name":"VariableDeclarationStatement","src":"1203:40:11"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":1835,"name":"Identifier","src":"1251:7:11"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"||","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1836,"name":"Identifier","src":"1259:3:11"}],"id":1837,"name":"MemberAccess","src":"1259:10:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2464,"type":"address","value":"owner"},"id":1838,"name":"Identifier","src":"1273:5:11"}],"id":1839,"name":"BinaryOperation","src":"1259:19:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"||","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"registrar","referencedDeclaration":1778,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1830,"type":"struct Videos.VideoInfo storage pointer","value":"videoInfo"},"id":1840,"name":"Identifier","src":"1283:9:11"}],"id":1841,"name":"MemberAccess","src":"1283:19:11"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":1842,"name":"Literal","src":"1306:1:11"}],"id":1843,"name":"BinaryOperation","src":"1283:24:11"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1844,"name":"Identifier","src":"1311:3:11"}],"id":1845,"name":"MemberAccess","src":"1311:10:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"registrar","referencedDeclaration":1778,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1830,"type":"struct Videos.VideoInfo storage pointer","value":"videoInfo"},"id":1846,"name":"Identifier","src":"1325:9:11"}],"id":1847,"name":"MemberAccess","src":"1325:19:11"}],"id":1848,"name":"BinaryOperation","src":"1311:33:11"}],"id":1849,"name":"BinaryOperation","src":"1283:61:11"}],"id":1850,"name":"TupleExpression","src":"1282:63:11"}],"id":1851,"name":"BinaryOperation","src":"1259:86:11"}],"id":1852,"name":"FunctionCall","src":"1251:95:11"}],"id":1853,"name":"ExpressionStatement","src":"1251:95:11"},{"id":1854,"name":"PlaceholderStatement","src":"1354:1:11"}],"id":1855,"name":"Block","src":"1155:207:11"}],"id":1856,"name":"ModifierDefinition","src":"1107:255:11"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"Videos","payable":false,"scope":1987,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_paratiiRegistry","scope":1871,"stateVariable":false,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":1857,"name":"UserDefinedTypeName","src":"1384:8:11"}],"id":1858,"name":"VariableDeclaration","src":"1384:25:11"}],"id":1859,"name":"ParameterList","src":"1383:27:11"},{"attributes":{"parameters":[null]},"children":[],"id":1860,"name":"ParameterList","src":"1418:0:11"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2464,"type":"address","value":"owner"},"id":1861,"name":"Identifier","src":"1428:5:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1862,"name":"Identifier","src":"1436:3:11"}],"id":1863,"name":"MemberAccess","src":"1436:10:11"}],"id":1864,"name":"Assignment","src":"1428:18:11"}],"id":1865,"name":"ExpressionStatement","src":"1428:18:11"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"contract Registry"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1785,"type":"contract Registry","value":"paratiiRegistry"},"id":1866,"name":"Identifier","src":"1456:15:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1858,"type":"contract Registry","value":"_paratiiRegistry"},"id":1867,"name":"Identifier","src":"1474:16:11"}],"id":1868,"name":"Assignment","src":"1456:34:11"}],"id":1869,"name":"ExpressionStatement","src":"1456:34:11"}],"id":1870,"name":"Block","src":"1418:79:11"}],"id":1871,"name":"FunctionDefinition","src":"1368:129:11"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"create","payable":false,"scope":1987,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":1922,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1872,"name":"ElementaryTypeName","src":"1970:6:11"}],"id":1873,"name":"VariableDeclaration","src":"1970:15:11"},{"attributes":{"constant":false,"name":"_owner","scope":1922,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1874,"name":"ElementaryTypeName","src":"1995:7:11"}],"id":1875,"name":"VariableDeclaration","src":"1995:14:11"},{"attributes":{"constant":false,"name":"_price","scope":1922,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":1876,"name":"ElementaryTypeName","src":"2019:7:11"}],"id":1877,"name":"VariableDeclaration","src":"2019:14:11"},{"attributes":{"constant":false,"name":"_ipfsHashOrig","scope":1922,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1878,"name":"ElementaryTypeName","src":"2043:6:11"}],"id":1879,"name":"VariableDeclaration","src":"2043:20:11"},{"attributes":{"constant":false,"name":"_ipfsHash","scope":1922,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1880,"name":"ElementaryTypeName","src":"2073:6:11"}],"id":1881,"name":"VariableDeclaration","src":"2073:16:11"},{"attributes":{"constant":false,"name":"_ipfsData","scope":1922,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1882,"name":"ElementaryTypeName","src":"2099:6:11"}],"id":1883,"name":"VariableDeclaration","src":"2099:16:11"}],"id":1884,"name":"ParameterList","src":"1960:161:11"},{"attributes":{"parameters":[null]},"children":[],"id":1888,"name":"ParameterList","src":"2161:0:11"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1856,"type":"modifier (string memory)","value":"onlyRegistrarOrAvatar"},"id":1885,"name":"Identifier","src":"2122:21:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1873,"type":"string memory","value":"_videoId"},"id":1886,"name":"Identifier","src":"2144:8:11"}],"id":1887,"name":"ModifierInvocation","src":"2122:31:11"},{"children":[{"attributes":{"assignments":[1890]},"children":[{"attributes":{"constant":false,"name":"id","scope":1922,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":1889,"name":"ElementaryTypeName","src":"2172:7:11"}],"id":1890,"name":"VariableDeclaration","src":"2172:10:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":1891,"name":"Identifier","src":"2185:9:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1873,"type":"string memory","value":"_videoId"},"id":1892,"name":"Identifier","src":"2195:8:11"}],"id":1893,"name":"FunctionCall","src":"2185:19:11"}],"id":1894,"name":"VariableDeclarationStatement","src":"2172:32:11"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"struct Videos.VideoInfo storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"struct Videos.VideoInfo storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1783,"type":"mapping(bytes32 => struct Videos.VideoInfo storage ref)","value":"videos"},"id":1895,"name":"Identifier","src":"2215:6:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1890,"type":"bytes32","value":"id"},"id":1896,"name":"Identifier","src":"2222:2:11"}],"id":1897,"name":"IndexAccess","src":"2215:10:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":true,"lValueRequested":false,"names":["_id","price","owner","ipfsHashOrig","ipfsHash","ipfsData","registrar"],"type":"struct Videos.VideoInfo memory","type_conversion":false},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1779,"type":"type(struct Videos.VideoInfo storage pointer)","value":"VideoInfo"},"id":1898,"name":"Identifier","src":"2228:9:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1890,"type":"bytes32","value":"id"},"id":1899,"name":"Identifier","src":"2257:2:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1877,"type":"uint256","value":"_price"},"id":1900,"name":"Identifier","src":"2280:6:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1875,"type":"address","value":"_owner"},"id":1901,"name":"Identifier","src":"2307:6:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1879,"type":"string memory","value":"_ipfsHashOrig"},"id":1902,"name":"Identifier","src":"2341:13:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1881,"type":"string memory","value":"_ipfsHash"},"id":1903,"name":"Identifier","src":"2378:9:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1883,"type":"string memory","value":"_ipfsData"},"id":1904,"name":"Identifier","src":"2411:9:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1905,"name":"Identifier","src":"2445:3:11"}],"id":1906,"name":"MemberAccess","src":"2445:10:11"}],"id":1907,"name":"FunctionCall","src":"2228:240:11"}],"id":1908,"name":"Assignment","src":"2215:253:11"}],"id":1909,"name":"ExpressionStatement","src":"2215:253:11"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":1801,"type":"function (string memory,address,uint256,string memory,string memory,string memory,address)","value":"LogCreateVideo"},"id":1910,"name":"Identifier","src":"2479:14:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1873,"type":"string memory","value":"_videoId"},"id":1911,"name":"Identifier","src":"2494:8:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1875,"type":"address","value":"_owner"},"id":1912,"name":"Identifier","src":"2504:6:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1877,"type":"uint256","value":"_price"},"id":1913,"name":"Identifier","src":"2512:6:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1879,"type":"string memory","value":"_ipfsHashOrig"},"id":1914,"name":"Identifier","src":"2520:13:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1881,"type":"string memory","value":"_ipfsHash"},"id":1915,"name":"Identifier","src":"2535:9:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1883,"type":"string memory","value":"_ipfsData"},"id":1916,"name":"Identifier","src":"2546:9:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":1917,"name":"Identifier","src":"2557:3:11"}],"id":1918,"name":"MemberAccess","src":"2557:10:11"}],"id":1919,"name":"FunctionCall","src":"2479:89:11"}],"id":1920,"name":"ExpressionStatement","src":"2479:89:11"}],"id":1921,"name":"Block","src":"2161:414:11"}],"id":1922,"name":"FunctionDefinition","src":"1945:630:11"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"remove","payable":false,"scope":1987,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":1946,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1923,"name":"ElementaryTypeName","src":"2597:6:11"}],"id":1924,"name":"VariableDeclaration","src":"2597:15:11"}],"id":1925,"name":"ParameterList","src":"2596:17:11"},{"attributes":{"parameters":[null]},"children":[],"id":1929,"name":"ParameterList","src":"2653:0:11"},{"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1856,"type":"modifier (string memory)","value":"onlyRegistrarOrAvatar"},"id":1926,"name":"Identifier","src":"2621:21:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1924,"type":"string memory","value":"_videoId"},"id":1927,"name":"Identifier","src":"2643:8:11"}],"id":1928,"name":"ModifierInvocation","src":"2621:31:11"},{"children":[{"attributes":{"assignments":[1931]},"children":[{"attributes":{"constant":false,"name":"id","scope":1946,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":1930,"name":"ElementaryTypeName","src":"2663:7:11"}],"id":1931,"name":"VariableDeclaration","src":"2663:10:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":1932,"name":"Identifier","src":"2676:9:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1924,"type":"string memory","value":"_videoId"},"id":1933,"name":"Identifier","src":"2686:8:11"}],"id":1934,"name":"FunctionCall","src":"2676:19:11"}],"id":1935,"name":"VariableDeclarationStatement","src":"2663:32:11"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"delete","prefix":true,"type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"struct Videos.VideoInfo storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1783,"type":"mapping(bytes32 => struct Videos.VideoInfo storage ref)","value":"videos"},"id":1936,"name":"Identifier","src":"2712:6:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1931,"type":"bytes32","value":"id"},"id":1937,"name":"Identifier","src":"2719:2:11"}],"id":1938,"name":"IndexAccess","src":"2712:10:11"}],"id":1939,"name":"UnaryOperation","src":"2705:17:11"}],"id":1940,"name":"ExpressionStatement","src":"2705:17:11"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1805,"type":"function (string memory)","value":"LogRemoveVideo"},"id":1941,"name":"Identifier","src":"2732:14:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1924,"type":"string memory","value":"_videoId"},"id":1942,"name":"Identifier","src":"2747:8:11"}],"id":1943,"name":"FunctionCall","src":"2732:24:11"}],"id":1944,"name":"ExpressionStatement","src":"2732:24:11"}],"id":1945,"name":"Block","src":"2653:110:11"}],"id":1946,"name":"FunctionDefinition","src":"2581:182:11"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"get","payable":false,"scope":1987,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_videoId","scope":1986,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1947,"name":"ElementaryTypeName","src":"2925:6:11"}],"id":1948,"name":"VariableDeclaration","src":"2925:15:11"}],"id":1949,"name":"ParameterList","src":"2924:17:11"},{"children":[{"attributes":{"constant":false,"name":"","scope":1986,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1950,"name":"ElementaryTypeName","src":"2972:7:11"}],"id":1951,"name":"VariableDeclaration","src":"2972:7:11"},{"attributes":{"constant":false,"name":"","scope":1986,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint256","type":"uint256"},"id":1952,"name":"ElementaryTypeName","src":"2981:7:11"}],"id":1953,"name":"VariableDeclaration","src":"2981:7:11"},{"attributes":{"constant":false,"name":"","scope":1986,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1954,"name":"ElementaryTypeName","src":"2990:6:11"}],"id":1955,"name":"VariableDeclaration","src":"2990:6:11"},{"attributes":{"constant":false,"name":"","scope":1986,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1956,"name":"ElementaryTypeName","src":"2998:6:11"}],"id":1957,"name":"VariableDeclaration","src":"2998:6:11"},{"attributes":{"constant":false,"name":"","scope":1986,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":1958,"name":"ElementaryTypeName","src":"3006:6:11"}],"id":1959,"name":"VariableDeclaration","src":"3006:6:11"},{"attributes":{"constant":false,"name":"","scope":1986,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":1960,"name":"ElementaryTypeName","src":"3014:7:11"}],"id":1961,"name":"VariableDeclaration","src":"3014:7:11"}],"id":1962,"name":"ParameterList","src":"2971:51:11"},{"children":[{"attributes":{"assignments":[1964]},"children":[{"attributes":{"constant":false,"name":"videoInfo","scope":1986,"stateVariable":false,"storageLocation":"storage","type":"struct Videos.VideoInfo storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"VideoInfo","referencedDeclaration":1779,"type":"struct Videos.VideoInfo storage pointer"},"id":1963,"name":"UserDefinedTypeName","src":"3035:9:11"}],"id":1964,"name":"VariableDeclaration","src":"3035:27:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct Videos.VideoInfo storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1783,"type":"mapping(bytes32 => struct Videos.VideoInfo storage ref)","value":"videos"},"id":1965,"name":"Identifier","src":"3065:6:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":1966,"name":"Identifier","src":"3072:9:11"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1948,"type":"string memory","value":"_videoId"},"id":1967,"name":"Identifier","src":"3082:8:11"}],"id":1968,"name":"FunctionCall","src":"3072:19:11"}],"id":1969,"name":"IndexAccess","src":"3065:27:11"}],"id":1970,"name":"VariableDeclarationStatement","src":"3035:57:11"},{"attributes":{"functionReturnParameters":1962},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"tuple(address,uint256,string storage ref,string storage ref,string storage ref,address)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"owner","referencedDeclaration":1776,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1964,"type":"struct Videos.VideoInfo storage pointer","value":"videoInfo"},"id":1971,"name":"Identifier","src":"3108:9:11"}],"id":1972,"name":"MemberAccess","src":"3108:15:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"price","referencedDeclaration":1774,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1964,"type":"struct Videos.VideoInfo storage pointer","value":"videoInfo"},"id":1973,"name":"Identifier","src":"3125:9:11"}],"id":1974,"name":"MemberAccess","src":"3125:15:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"ipfsHashOrig","referencedDeclaration":1768,"type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1964,"type":"struct Videos.VideoInfo storage pointer","value":"videoInfo"},"id":1975,"name":"Identifier","src":"3142:9:11"}],"id":1976,"name":"MemberAccess","src":"3142:22:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"ipfsHash","referencedDeclaration":1770,"type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1964,"type":"struct Videos.VideoInfo storage pointer","value":"videoInfo"},"id":1977,"name":"Identifier","src":"3166:9:11"}],"id":1978,"name":"MemberAccess","src":"3166:18:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"ipfsData","referencedDeclaration":1772,"type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1964,"type":"struct Videos.VideoInfo storage pointer","value":"videoInfo"},"id":1979,"name":"Identifier","src":"3186:9:11"}],"id":1980,"name":"MemberAccess","src":"3186:18:11"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"registrar","referencedDeclaration":1778,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1964,"type":"struct Videos.VideoInfo storage pointer","value":"videoInfo"},"id":1981,"name":"Identifier","src":"3206:9:11"}],"id":1982,"name":"MemberAccess","src":"3206:19:11"}],"id":1983,"name":"TupleExpression","src":"3107:119:11"}],"id":1984,"name":"Return","src":"3100:126:11"}],"id":1985,"name":"Block","src":"3027:206:11"}],"id":1986,"name":"FunctionDefinition","src":"2912:321:11"}],"id":1987,"name":"ContractDefinition","src":"168:4024:11"}],"id":1988,"name":"SourceUnit","src":"0:4193:11"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T13:59:31.990Z"} +module.exports = {"contractName":"Videos","abi":[{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paratiiRegistry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_paratiiRegistry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"videoId","type":"string"},{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"price","type":"uint256"},{"indexed":false,"name":"ipfsHashOrig","type":"string"},{"indexed":false,"name":"ipfsHash","type":"string"},{"indexed":false,"name":"ipfsData","type":"string"},{"indexed":false,"name":"registrar","type":"address"}],"name":"LogCreateVideo","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"videoId","type":"string"}],"name":"LogRemoveVideo","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"},{"name":"_owner","type":"address"},{"name":"_price","type":"uint256"},{"name":"_ipfsHashOrig","type":"string"},{"name":"_ipfsHash","type":"string"},{"name":"_ipfsData","type":"string"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_videoId","type":"string"}],"name":"remove","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_videoId","type":"string"}],"name":"get","outputs":[{"name":"","type":"address"},{"name":"","type":"uint256"},{"name":"","type":"string"},{"name":"","type":"string"},{"name":"","type":"string"},{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b506040516020806114ec83398101806040528101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506113e8806101046000396000f300608060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630b9d64b61461007d578063693ec85e146101e257806380599e4b146104095780638da5cb5b146104725780639e20f789146104c9578063f2fde38b14610520575b600080fd5b34801561008957600080fd5b506101e0600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610563565b005b3480156101ee57600080fd5b50610249600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610b2a565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018681526020018060200180602001806020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848103845288818151815260200191508051906020019080838360005b838110156102fb5780820151818401526020810190506102e0565b50505050905090810190601f1680156103285780820380516001836020036101000a031916815260200191505b50848103835287818151815260200191508051906020019080838360005b83811015610361578082015181840152602081019050610346565b50505050905090810190601f16801561038e5780820380516001836020036101000a031916815260200191505b50848103825286818151815260200191508051906020019080838360005b838110156103c75780820151818401526020810190506103ac565b50505050905090810190601f1680156103f45780820380516001836020036101000a031916815260200191505b50995050505050505050505060405180910390f35b34801561041557600080fd5b50610470600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610df9565b005b34801561047e57600080fd5b5061048761112f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104d557600080fd5b506104de611154565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561052c57600080fd5b50610561600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061117a565b005b600086600080826040518082805190602001908083835b60208310151561059f578051825260208201915060208101905060208303925061057a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020915060016000836000191660001916815260200190815260200160002090506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806106da575060008160060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806106d957508060060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b5b15156106e557600080fd5b896040518082805190602001908083835b60208310151561071b57805182526020820191506020810190506020830392506106f6565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020935060e060405190810160405280856000191681526020018881526020018781526020018681526020018981526020018a73ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff168152506001600086600019166000191681526020019081526020016000206000820151816000019060001916905560208201518160010190805190602001906107f59291906112cf565b5060408201518160020190805190602001906108129291906112cf565b50606082015181600301908051906020019061082f9291906112cf565b506080820151816004015560a08201518160050160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060c08201518160060160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050507f36c65780b27428d759ce656fa342f6c1ceee6d63f4ab799527453d0209ef6e228a8a8a8a8a8a3360405180806020018873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018060200180602001806020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200185810385528c818151815260200191508051906020019080838360005b838110156109a957808201518184015260208101905061098e565b50505050905090810190601f1680156109d65780820380516001836020036101000a031916815260200191505b50858103845289818151815260200191508051906020019080838360005b83811015610a0f5780820151818401526020810190506109f4565b50505050905090810190601f168015610a3c5780820380516001836020036101000a031916815260200191505b50858103835288818151815260200191508051906020019080838360005b83811015610a75578082015181840152602081019050610a5a565b50505050905090810190601f168015610aa25780820380516001836020036101000a031916815260200191505b50858103825287818151815260200191508051906020019080838360005b83811015610adb578082015181840152602081019050610ac0565b50505050905090810190601f168015610b085780820380516001836020036101000a031916815260200191505b509b50505050505050505050505060405180910390a150505050505050505050565b600080606080606060008060016000896040518082805190602001908083835b602083101515610b6f5780518252602082019150602081019050602083039250610b4a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002090508060050160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600401548260010183600201846003018560060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610ca45780601f10610c7957610100808354040283529160200191610ca4565b820191906000526020600020905b815481529060010190602001808311610c8757829003601f168201915b50505050509350828054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d405780601f10610d1557610100808354040283529160200191610d40565b820191906000526020600020905b815481529060010190602001808311610d2357829003601f168201915b50505050509250818054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610ddc5780601f10610db157610100808354040283529160200191610ddc565b820191906000526020600020905b815481529060010190602001808311610dbf57829003601f168201915b505050505091509650965096509650965096505091939550919395565b600081600080826040518082805190602001908083835b602083101515610e355780518252602082019150602081019050602083039250610e10565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020915060016000836000191660001916815260200190815260200160002090506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f70575060008160060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480610f6f57508060060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b5b1515610f7b57600080fd5b846040518082805190602001908083835b602083101515610fb15780518252602082019150602081019050602083039250610f8c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209350600160008560001916600019168152602001908152602001600020600080820160009055600182016000611014919061134f565b600282016000611024919061134f565b600382016000611034919061134f565b60048201600090556005820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556006820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550507f592a19ecda39f9bdfc71b1f128f024319cff48402f55ccf171b0878d5b69b7d5856040518080602001828103825283818151815260200191508051906020019080838360005b838110156110ee5780820151818401526020810190506110d3565b50505050905090810190601f16801561111b5780820380516001836020036101000a031916815260200191505b509250505060405180910390a15050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156111d557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561121157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061131057805160ff191683800117855561133e565b8280016001018555821561133e579182015b8281111561133d578251825591602001919060010190611322565b5b50905061134b9190611397565b5090565b50805460018160011615610100020316600290046000825580601f106113755750611394565b601f0160209004906000526020600020908101906113939190611397565b5b50565b6113b991905b808211156113b557600081600090555060010161139d565b5090565b905600a165627a7a72305820dbcaa4ec8caa1cf9cb15d5974b6db543d183966f0e08846a1f302698827d3e580029","deployedBytecode":"0x608060405260043610610078576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630b9d64b61461007d578063693ec85e146101e257806380599e4b146104095780638da5cb5b146104725780639e20f789146104c9578063f2fde38b14610520575b600080fd5b34801561008957600080fd5b506101e0600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610563565b005b3480156101ee57600080fd5b50610249600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610b2a565b604051808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018681526020018060200180602001806020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848103845288818151815260200191508051906020019080838360005b838110156102fb5780820151818401526020810190506102e0565b50505050905090810190601f1680156103285780820380516001836020036101000a031916815260200191505b50848103835287818151815260200191508051906020019080838360005b83811015610361578082015181840152602081019050610346565b50505050905090810190601f16801561038e5780820380516001836020036101000a031916815260200191505b50848103825286818151815260200191508051906020019080838360005b838110156103c75780820151818401526020810190506103ac565b50505050905090810190601f1680156103f45780820380516001836020036101000a031916815260200191505b50995050505050505050505060405180910390f35b34801561041557600080fd5b50610470600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610df9565b005b34801561047e57600080fd5b5061048761112f565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104d557600080fd5b506104de611154565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561052c57600080fd5b50610561600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061117a565b005b600086600080826040518082805190602001908083835b60208310151561059f578051825260208201915060208101905060208303925061057a565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020915060016000836000191660001916815260200190815260200160002090506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806106da575060008160060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614806106d957508060060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b5b15156106e557600080fd5b896040518082805190602001908083835b60208310151561071b57805182526020820191506020810190506020830392506106f6565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020935060e060405190810160405280856000191681526020018881526020018781526020018681526020018981526020018a73ffffffffffffffffffffffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff168152506001600086600019166000191681526020019081526020016000206000820151816000019060001916905560208201518160010190805190602001906107f59291906112cf565b5060408201518160020190805190602001906108129291906112cf565b50606082015181600301908051906020019061082f9291906112cf565b506080820151816004015560a08201518160050160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060c08201518160060160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050507f36c65780b27428d759ce656fa342f6c1ceee6d63f4ab799527453d0209ef6e228a8a8a8a8a8a3360405180806020018873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018781526020018060200180602001806020018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200185810385528c818151815260200191508051906020019080838360005b838110156109a957808201518184015260208101905061098e565b50505050905090810190601f1680156109d65780820380516001836020036101000a031916815260200191505b50858103845289818151815260200191508051906020019080838360005b83811015610a0f5780820151818401526020810190506109f4565b50505050905090810190601f168015610a3c5780820380516001836020036101000a031916815260200191505b50858103835288818151815260200191508051906020019080838360005b83811015610a75578082015181840152602081019050610a5a565b50505050905090810190601f168015610aa25780820380516001836020036101000a031916815260200191505b50858103825287818151815260200191508051906020019080838360005b83811015610adb578082015181840152602081019050610ac0565b50505050905090810190601f168015610b085780820380516001836020036101000a031916815260200191505b509b50505050505050505050505060405180910390a150505050505050505050565b600080606080606060008060016000896040518082805190602001908083835b602083101515610b6f5780518252602082019150602081019050602083039250610b4a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002090508060050160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681600401548260010183600201846003018560060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16838054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610ca45780601f10610c7957610100808354040283529160200191610ca4565b820191906000526020600020905b815481529060010190602001808311610c8757829003601f168201915b50505050509350828054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d405780601f10610d1557610100808354040283529160200191610d40565b820191906000526020600020905b815481529060010190602001808311610d2357829003601f168201915b50505050509250818054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610ddc5780601f10610db157610100808354040283529160200191610ddc565b820191906000526020600020905b815481529060010190602001808311610dbf57829003601f168201915b505050505091509650965096509650965096505091939550919395565b600081600080826040518082805190602001908083835b602083101515610e355780518252602082019150602081019050602083039250610e10565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020915060016000836000191660001916815260200190815260200160002090506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f70575060008160060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161480610f6f57508060060160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b5b1515610f7b57600080fd5b846040518082805190602001908083835b602083101515610fb15780518252602082019150602081019050602083039250610f8c565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209350600160008560001916600019168152602001908152602001600020600080820160009055600182016000611014919061134f565b600282016000611024919061134f565b600382016000611034919061134f565b60048201600090556005820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556006820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550507f592a19ecda39f9bdfc71b1f128f024319cff48402f55ccf171b0878d5b69b7d5856040518080602001828103825283818151815260200191508051906020019080838360005b838110156110ee5780820151818401526020810190506110d3565b50505050905090810190601f16801561111b5780820380516001836020036101000a031916815260200191505b509250505060405180910390a15050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156111d557600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415151561121157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061131057805160ff191683800117855561133e565b8280016001018555821561133e579182015b8281111561133d578251825591602001919060010190611322565b5b50905061134b9190611397565b5090565b50805460018160011615610100020316600290046000825580601f106113755750611394565b601f0160209004906000526020600020908101906113939190611397565b5b50565b6113b991905b808211156113b557600081600090555060010161139d565b5090565b905600a165627a7a72305820dbcaa4ec8caa1cf9cb15d5974b6db543d183966f0e08846a1f302698827d3e580029"} /***/ }), /* 903 */ /***/ (function(module, exports) { -module.exports = {"contractName":"Views","abi":[{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_address","type":"address"},{"indexed":false,"name":"_videoId","type":"string"},{"indexed":false,"name":"_ipfsData","type":"string"}],"name":"LogCreateView","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_address","type":"address"},{"indexed":false,"name":"_videoId","type":"string"}],"name":"LogRemoveView","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_viewer","type":"address"},{"name":"_videoId","type":"string"},{"name":"_ipfsData","type":"string"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_viewer","type":"address"},{"name":"_videoId","type":"string"}],"name":"remove","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_viewer","type":"address"},{"name":"_videoId","type":"string"}],"name":"get","outputs":[{"name":"","type":"bool"},{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_viewer","type":"address"},{"name":"_videoId","type":"string"}],"name":"userViewedVideo","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b6040516020806112c683398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506111ca806100fc6000396000f300606060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806349209fc814610088578063796d5836146101045780637b103999146101c35780638da5cb5b146102185780638fe001a51461026d578063f2fde38b14610301578063fc2525ab1461033a575b600080fd5b341561009357600080fd5b610102600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190505061043a565b005b341561010f57600080fd5b6101c1600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610764565b005b34156101ce57600080fd5b6101d6610b2d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561022357600080fd5b61022b610b53565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561027857600080fd5b6102e7600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610b78565b604051808215151515815260200191505060405180910390f35b341561030c57600080fd5b610338600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610c4d565b005b341561034557600080fd5b6103b4600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610da2565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b838110156103fe5780820151818401526020810190506103e3565b50505050905090810190601f16801561042b5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806105a45750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561055a57600080fd5b6102c65a03f1151561056b57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b15156105af57600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000826040518082805190602001908083835b6020831015156106265780518252602082019150602081019050602083039250610601565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020600080820160006101000a81549060ff021916905560018201600061068e919061109d565b50507f7ed2574507414d87ae20434a5bae56eef5c81885cd02fc205ce20d24356542328282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561072557808201518184015260208101905061070a565b50505050905090810190601f1680156107525780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806108ce5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561088457600080fd5b6102c65a03f1151561089557600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b15156108d957600080fd5b604080519081016040528060011515815260200182815250600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000846040518082805190602001908083835b6020831015156109685780518252602082019150602081019050602083039250610943565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160010190805190602001906109e79291906110e5565b509050507f73b2750ccaf84fc0cce582f3529304dc9e0b4b3b7e84ca44757a6abbfb9a2d81838383604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015610a85578082015181840152602081019050610a6a565b50505050905090810190601f168015610ab25780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610aeb578082015181840152602081019050610ad0565b50505050905090810190601f168015610b185780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610bf15780518252602082019150602081019050602083039250610bcc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060000160009054906101000a900460ff16905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610ca857600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610ce457600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610dac611165565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f185750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b1515610ece57600080fd5b6102c65a03f11515610edf57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610f2357600080fd5b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856040518082805190602001908083835b602083101515610f9a5780518252602082019150602081019050602083039250610f75565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002090508060000160009054906101000a900460ff1681600101808054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561108a5780601f1061105f5761010080835404028352916020019161108a565b820191906000526020600020905b81548152906001019060200180831161106d57829003601f168201915b5050505050905092509250509250929050565b50805460018160011615610100020316600290046000825580601f106110c357506110e2565b601f0160209004906000526020600020908101906110e19190611179565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061112657805160ff1916838001178555611154565b82800160010185558215611154579182015b82811115611153578251825591602001919060010190611138565b5b5090506111619190611179565b5090565b602060405190810160405280600081525090565b61119b91905b8082111561119757600081600090555060010161117f565b5090565b905600a165627a7a723058203e079fffe8a95854bad7800e746b969d97e677d60abc632340fa2cc13befdd2f0029","deployedBytecode":"0x606060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806349209fc814610088578063796d5836146101045780637b103999146101c35780638da5cb5b146102185780638fe001a51461026d578063f2fde38b14610301578063fc2525ab1461033a575b600080fd5b341561009357600080fd5b610102600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190505061043a565b005b341561010f57600080fd5b6101c1600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610764565b005b34156101ce57600080fd5b6101d6610b2d565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561022357600080fd5b61022b610b53565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561027857600080fd5b6102e7600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610b78565b604051808215151515815260200191505060405180910390f35b341561030c57600080fd5b610338600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610c4d565b005b341561034557600080fd5b6103b4600480803573ffffffffffffffffffffffffffffffffffffffff1690602001909190803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610da2565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b838110156103fe5780820151818401526020810190506103e3565b50505050905090810190601f16801561042b5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806105a45750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561055a57600080fd5b6102c65a03f1151561056b57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b15156105af57600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000826040518082805190602001908083835b6020831015156106265780518252602082019150602081019050602083039250610601565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020600080820160006101000a81549060ff021916905560018201600061068e919061109d565b50507f7ed2574507414d87ae20434a5bae56eef5c81885cd02fc205ce20d24356542328282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561072557808201518184015260208101905061070a565b50505050905090810190601f1680156107525780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806108ce5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561088457600080fd5b6102c65a03f1151561089557600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b15156108d957600080fd5b604080519081016040528060011515815260200182815250600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000846040518082805190602001908083835b6020831015156109685780518252602082019150602081019050602083039250610943565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060008201518160000160006101000a81548160ff02191690831515021790555060208201518160010190805190602001906109e79291906110e5565b509050507f73b2750ccaf84fc0cce582f3529304dc9e0b4b3b7e84ca44757a6abbfb9a2d81838383604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015610a85578082015181840152602081019050610a6a565b50505050905090810190601f168015610ab25780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610aeb578082015181840152602081019050610ad0565b50505050905090810190601f168015610b185780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610bf15780518252602082019150602081019050602083039250610bcc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060000160009054906101000a900460ff16905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610ca857600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610ce457600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000610dac611165565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f185750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b1515610ece57600080fd5b6102c65a03f11515610edf57600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610f2357600080fd5b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856040518082805190602001908083835b602083101515610f9a5780518252602082019150602081019050602083039250610f75565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002090508060000160009054906101000a900460ff1681600101808054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561108a5780601f1061105f5761010080835404028352916020019161108a565b820191906000526020600020905b81548152906001019060200180831161106d57829003601f168201915b5050505050905092509250509250929050565b50805460018160011615610100020316600290046000825580601f106110c357506110e2565b601f0160209004906000526020600020908101906110e19190611179565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061112657805160ff1916838001178555611154565b82800160010185558215611154579182015b82811115611153578251825591602001919060010190611138565b5b5090506111619190611179565b5090565b602060405190810160405280600081525090565b61119b91905b8082111561119757600081600090555060010161117f565b5090565b905600a165627a7a723058203e079fffe8a95854bad7800e746b969d97e677d60abc632340fa2cc13befdd2f0029","sourceMap":"112:1457:3:-;;;660:107;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;509:10:5;501:5;;:18;;;;;;;;;;;;;;;;;;720:10:3;712:5;;:18;;;;;;;;;;;;;;;;;;751:9;740:8;;:20;;;;;;;;;;;;;;;;;;660:107;112:1457;;;;;;","deployedSourceMap":"112:1457:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1000:175;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;773:221;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;145:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1406:161:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;834:169:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;1181:219:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1000:175:3;579:5;;;;;;;;;;;565:19;;:10;:19;;;564:71;;;;604:8;;;;;;;;;;;:20;;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;590:44;;:10;:44;;;564:71;556:80;;;;;;;;1091:6;:15;1098:7;1091:15;;;;;;;;;;;;;;;:36;1117:8;1107:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1091:36:3;;;;;;;;;;;;;;;;;;1084:43;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;1136:32;1150:7;1159:8;1136:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1000:175:3;;:::o;773:221::-;579:5;;;;;;;;;;;565:19;;:10;:19;;;564:71;;;;604:8;;;;;;;;;;;:20;;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;590:44;;:10;:44;;;564:71;556:80;;;;;;;;914:21;;;;;;;;;919:4;914:21;;;;;;925:9;914:21;;;875:6;:15;882:7;875:15;;;;;;;;;;;;;;;:36;901:8;891:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;875:36:3;;;;;;;;;;;;;;;;;:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;944:43;958:7;967:8;977:9;944:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;773:221:3;;;:::o;145:24::-;;;;;;;;;;;;;:::o;238:20:5:-;;;;;;;;;;;;;:::o;1406:161:3:-;1489:4;1510:6;:15;1517:7;1510:15;;;;;;;;;;;;;;;:36;1536:8;1526:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1510:36:3;;;;;;;;;;;;;;;;;:50;;;;;;;;;;;;1503:57;;1406:161;;;;:::o;834:169:5:-;654:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;930:1;910:22;;:8;:22;;;;902:31;;;;;;;;967:8;939:37;;960:5;;;;;;;;;;;939:37;;;;;;;;;;;;990:8;982:5;;:16;;;;;;;;;;;;;;;;;;834:169;:::o;1181:219:3:-;1270:4;1276:6;;:::i;:::-;1293:9;579:5;;;;;;;;;;;565:19;;:10;:19;;;564:71;;;;604:8;;;;;;;;;;;:20;;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;590:44;;:10;:44;;;564:71;556:80;;;;;;;;1305:6;:15;1312:7;1305:15;;;;;;;;;;;;;;;:36;1331:8;1321:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1305:36:3;;;;;;;;;;;;;;;;;1293:48;;1358:4;:18;;;;;;;;;;;;1378:4;:14;;1350:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1181:219;;;;;;:::o;112:1457::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o","source":"pragma solidity ^0.4.18;\n\nimport \"zeppelin-solidity/contracts/ownership/Ownable.sol\";\nimport './Registry.sol';\n\ncontract Views is Ownable {\n\n Registry public registry;\n\n struct Data {\n bool _isRegistered;\n string _ipfsData;\n }\n\n // mapping from user addrsses and video ids to booleans\n mapping (address=> mapping (bytes32 => Data)) private _views;\n\n event LogCreateView(address _address, string _videoId, string _ipfsData);\n event LogRemoveView(address _address, string _videoId);\n\n modifier onlyOwnerOrAvatar() {\n require((msg.sender == owner) || (msg.sender == registry.getContract('Avatar')));\n _;\n }\n\n function Views(Registry _registry) public {\n owner = msg.sender;\n registry = _registry;\n }\n\n function create(address _viewer, string _videoId, string _ipfsData) public onlyOwnerOrAvatar {\n _views[_viewer][keccak256(_videoId)] = Data(true, _ipfsData);\n LogCreateView(_viewer, _videoId, _ipfsData);\n }\n\n function remove(address _viewer, string _videoId) public onlyOwnerOrAvatar {\n delete _views[_viewer][keccak256(_videoId)];\n LogRemoveView(_viewer, _videoId);\n }\n\n function get(address _viewer, string _videoId) public constant onlyOwnerOrAvatar returns(bool, string) {\n Data data = _views[_viewer][keccak256(_videoId)];\n return (data._isRegistered, data._ipfsData);\n }\n\n function userViewedVideo(address _viewer, string _videoId) public constant returns(bool) {\n return _views[_viewer][keccak256(_videoId)]._isRegistered;\n }\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Views.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Views.sol","exportedSymbols":{"Views":[661]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":489,"name":"PragmaDirective","src":"0:24:3"},{"attributes":{"SourceUnit":816,"absolutePath":"zeppelin-solidity/contracts/ownership/Ownable.sol","file":"zeppelin-solidity/contracts/ownership/Ownable.sol","scope":662,"symbolAliases":[null],"unitAlias":""},"id":490,"name":"ImportDirective","src":"26:59:3"},{"attributes":{"SourceUnit":488,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Registry.sol","file":"./Registry.sol","scope":662,"symbolAliases":[null],"unitAlias":""},"id":491,"name":"ImportDirective","src":"86:24:3"},{"attributes":{"contractDependencies":[815],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[661,815],"name":"Views","scope":662},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"Ownable","referencedDeclaration":815,"type":"contract Ownable"},"id":492,"name":"UserDefinedTypeName","src":"130:7:3"}],"id":493,"name":"InheritanceSpecifier","src":"130:7:3"},{"attributes":{"constant":false,"name":"registry","scope":661,"stateVariable":true,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"public"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":487,"type":"contract Registry"},"id":494,"name":"UserDefinedTypeName","src":"145:8:3"}],"id":495,"name":"VariableDeclaration","src":"145:24:3"},{"attributes":{"canonicalName":"Views.Data","name":"Data","scope":661,"visibility":"public"},"children":[{"attributes":{"constant":false,"name":"_isRegistered","scope":500,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":496,"name":"ElementaryTypeName","src":"196:4:3"}],"id":497,"name":"VariableDeclaration","src":"196:18:3"},{"attributes":{"constant":false,"name":"_ipfsData","scope":500,"stateVariable":false,"storageLocation":"default","type":"string storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":498,"name":"ElementaryTypeName","src":"222:6:3"}],"id":499,"name":"VariableDeclaration","src":"222:16:3"}],"id":500,"name":"StructDefinition","src":"176:69:3"},{"attributes":{"constant":false,"name":"_views","scope":661,"stateVariable":true,"storageLocation":"default","type":"mapping(address => mapping(bytes32 => struct Views.Data storage ref))","value":null,"visibility":"private"},"children":[{"attributes":{"type":"mapping(address => mapping(bytes32 => struct Views.Data storage ref))"},"children":[{"attributes":{"name":"address","type":"address"},"id":501,"name":"ElementaryTypeName","src":"320:7:3"},{"attributes":{"type":"mapping(bytes32 => struct Views.Data storage ref)"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":502,"name":"ElementaryTypeName","src":"339:7:3"},{"attributes":{"contractScope":null,"name":"Data","referencedDeclaration":500,"type":"struct Views.Data storage pointer"},"id":503,"name":"UserDefinedTypeName","src":"350:4:3"}],"id":504,"name":"Mapping","src":"330:25:3"}],"id":505,"name":"Mapping","src":"311:45:3"}],"id":506,"name":"VariableDeclaration","src":"311:60:3"},{"attributes":{"anonymous":false,"name":"LogCreateView"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_address","scope":514,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":507,"name":"ElementaryTypeName","src":"398:7:3"}],"id":508,"name":"VariableDeclaration","src":"398:16:3"},{"attributes":{"constant":false,"indexed":false,"name":"_videoId","scope":514,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":509,"name":"ElementaryTypeName","src":"416:6:3"}],"id":510,"name":"VariableDeclaration","src":"416:15:3"},{"attributes":{"constant":false,"indexed":false,"name":"_ipfsData","scope":514,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":511,"name":"ElementaryTypeName","src":"433:6:3"}],"id":512,"name":"VariableDeclaration","src":"433:16:3"}],"id":513,"name":"ParameterList","src":"397:53:3"}],"id":514,"name":"EventDefinition","src":"378:73:3"},{"attributes":{"anonymous":false,"name":"LogRemoveView"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_address","scope":520,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":515,"name":"ElementaryTypeName","src":"476:7:3"}],"id":516,"name":"VariableDeclaration","src":"476:16:3"},{"attributes":{"constant":false,"indexed":false,"name":"_videoId","scope":520,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":517,"name":"ElementaryTypeName","src":"494:6:3"}],"id":518,"name":"VariableDeclaration","src":"494:15:3"}],"id":519,"name":"ParameterList","src":"475:35:3"}],"id":520,"name":"EventDefinition","src":"456:55:3"},{"attributes":{"name":"onlyOwnerOrAvatar","visibility":"internal"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":521,"name":"ParameterList","src":"543:2:3"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":1234,"type":"function (bool) pure","value":"require"},"id":522,"name":"Identifier","src":"556:7:3"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"||","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":523,"name":"Identifier","src":"565:3:3"}],"id":524,"name":"MemberAccess","src":"565:10:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":763,"type":"address","value":"owner"},"id":525,"name":"Identifier","src":"579:5:3"}],"id":526,"name":"BinaryOperation","src":"565:19:3"}],"id":527,"name":"TupleExpression","src":"564:21:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":528,"name":"Identifier","src":"590:3:3"}],"id":529,"name":"MemberAccess","src":"590:10:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_29a36bb22f3c260ddca59a40dffde48863da1d6fba3d1f55dedde5c8e1942577","typeString":"literal_string \"Avatar\""}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getContract","referencedDeclaration":374,"type":"function (string memory) view external returns (address)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":495,"type":"contract Registry","value":"registry"},"id":530,"name":"Identifier","src":"604:8:3"}],"id":531,"name":"MemberAccess","src":"604:20:3"},{"attributes":{"argumentTypes":null,"hexvalue":"417661746172","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"Avatar\"","value":"Avatar"},"id":532,"name":"Literal","src":"625:8:3"}],"id":533,"name":"FunctionCall","src":"604:30:3"}],"id":534,"name":"BinaryOperation","src":"590:44:3"}],"id":535,"name":"TupleExpression","src":"589:46:3"}],"id":536,"name":"BinaryOperation","src":"564:71:3"}],"id":537,"name":"FunctionCall","src":"556:80:3"}],"id":538,"name":"ExpressionStatement","src":"556:80:3"},{"id":539,"name":"PlaceholderStatement","src":"646:1:3"}],"id":540,"name":"Block","src":"546:108:3"}],"id":541,"name":"ModifierDefinition","src":"517:137:3"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"Views","payable":false,"scope":661,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_registry","scope":556,"stateVariable":false,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":487,"type":"contract Registry"},"id":542,"name":"UserDefinedTypeName","src":"675:8:3"}],"id":543,"name":"VariableDeclaration","src":"675:18:3"}],"id":544,"name":"ParameterList","src":"674:20:3"},{"attributes":{"parameters":[null]},"children":[],"id":545,"name":"ParameterList","src":"702:0:3"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":763,"type":"address","value":"owner"},"id":546,"name":"Identifier","src":"712:5:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":1231,"type":"msg","value":"msg"},"id":547,"name":"Identifier","src":"720:3:3"}],"id":548,"name":"MemberAccess","src":"720:10:3"}],"id":549,"name":"Assignment","src":"712:18:3"}],"id":550,"name":"ExpressionStatement","src":"712:18:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"contract Registry"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":495,"type":"contract Registry","value":"registry"},"id":551,"name":"Identifier","src":"740:8:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":543,"type":"contract Registry","value":"_registry"},"id":552,"name":"Identifier","src":"751:9:3"}],"id":553,"name":"Assignment","src":"740:20:3"}],"id":554,"name":"ExpressionStatement","src":"740:20:3"}],"id":555,"name":"Block","src":"702:65:3"}],"id":556,"name":"FunctionDefinition","src":"660:107:3"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"create","payable":false,"scope":661,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_viewer","scope":587,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":557,"name":"ElementaryTypeName","src":"789:7:3"}],"id":558,"name":"VariableDeclaration","src":"789:15:3"},{"attributes":{"constant":false,"name":"_videoId","scope":587,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":559,"name":"ElementaryTypeName","src":"806:6:3"}],"id":560,"name":"VariableDeclaration","src":"806:15:3"},{"attributes":{"constant":false,"name":"_ipfsData","scope":587,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":561,"name":"ElementaryTypeName","src":"823:6:3"}],"id":562,"name":"VariableDeclaration","src":"823:16:3"}],"id":563,"name":"ParameterList","src":"788:52:3"},{"attributes":{"parameters":[null]},"children":[],"id":566,"name":"ParameterList","src":"866:0:3"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":541,"type":"modifier ()","value":"onlyOwnerOrAvatar"},"id":564,"name":"Identifier","src":"848:17:3"}],"id":565,"name":"ModifierInvocation","src":"848:17:3"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"struct Views.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"struct Views.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => struct Views.Data storage ref)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":506,"type":"mapping(address => mapping(bytes32 => struct Views.Data storage ref))","value":"_views"},"id":567,"name":"Identifier","src":"875:6:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"address","value":"_viewer"},"id":568,"name":"Identifier","src":"882:7:3"}],"id":572,"name":"IndexAccess","src":"875:15:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":569,"name":"Identifier","src":"891:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":560,"type":"string memory","value":"_videoId"},"id":570,"name":"Identifier","src":"901:8:3"}],"id":571,"name":"FunctionCall","src":"891:19:3"}],"id":573,"name":"IndexAccess","src":"875:36:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":true,"lValueRequested":false,"names":[null],"type":"struct Views.Data memory","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":500,"type":"type(struct Views.Data storage pointer)","value":"Data"},"id":574,"name":"Identifier","src":"914:4:3"},{"attributes":{"argumentTypes":null,"hexvalue":"74727565","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"bool","type":"bool","value":"true"},"id":575,"name":"Literal","src":"919:4:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":562,"type":"string memory","value":"_ipfsData"},"id":576,"name":"Identifier","src":"925:9:3"}],"id":577,"name":"FunctionCall","src":"914:21:3"}],"id":578,"name":"Assignment","src":"875:60:3"}],"id":579,"name":"ExpressionStatement","src":"875:60:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":514,"type":"function (address,string memory,string memory)","value":"LogCreateView"},"id":580,"name":"Identifier","src":"944:13:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":558,"type":"address","value":"_viewer"},"id":581,"name":"Identifier","src":"958:7:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":560,"type":"string memory","value":"_videoId"},"id":582,"name":"Identifier","src":"967:8:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":562,"type":"string memory","value":"_ipfsData"},"id":583,"name":"Identifier","src":"977:9:3"}],"id":584,"name":"FunctionCall","src":"944:43:3"}],"id":585,"name":"ExpressionStatement","src":"944:43:3"}],"id":586,"name":"Block","src":"866:128:3"}],"id":587,"name":"FunctionDefinition","src":"773:221:3"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"remove","payable":false,"scope":661,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_viewer","scope":611,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":588,"name":"ElementaryTypeName","src":"1016:7:3"}],"id":589,"name":"VariableDeclaration","src":"1016:15:3"},{"attributes":{"constant":false,"name":"_videoId","scope":611,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":590,"name":"ElementaryTypeName","src":"1033:6:3"}],"id":591,"name":"VariableDeclaration","src":"1033:15:3"}],"id":592,"name":"ParameterList","src":"1015:34:3"},{"attributes":{"parameters":[null]},"children":[],"id":595,"name":"ParameterList","src":"1075:0:3"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":541,"type":"modifier ()","value":"onlyOwnerOrAvatar"},"id":593,"name":"Identifier","src":"1057:17:3"}],"id":594,"name":"ModifierInvocation","src":"1057:17:3"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"delete","prefix":true,"type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"struct Views.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => struct Views.Data storage ref)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":506,"type":"mapping(address => mapping(bytes32 => struct Views.Data storage ref))","value":"_views"},"id":596,"name":"Identifier","src":"1091:6:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":589,"type":"address","value":"_viewer"},"id":597,"name":"Identifier","src":"1098:7:3"}],"id":598,"name":"IndexAccess","src":"1091:15:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":599,"name":"Identifier","src":"1107:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":591,"type":"string memory","value":"_videoId"},"id":600,"name":"Identifier","src":"1117:8:3"}],"id":601,"name":"FunctionCall","src":"1107:19:3"}],"id":602,"name":"IndexAccess","src":"1091:36:3"}],"id":603,"name":"UnaryOperation","src":"1084:43:3"}],"id":604,"name":"ExpressionStatement","src":"1084:43:3"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":520,"type":"function (address,string memory)","value":"LogRemoveView"},"id":605,"name":"Identifier","src":"1136:13:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":589,"type":"address","value":"_viewer"},"id":606,"name":"Identifier","src":"1150:7:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":591,"type":"string memory","value":"_videoId"},"id":607,"name":"Identifier","src":"1159:8:3"}],"id":608,"name":"FunctionCall","src":"1136:32:3"}],"id":609,"name":"ExpressionStatement","src":"1136:32:3"}],"id":610,"name":"Block","src":"1075:100:3"}],"id":611,"name":"FunctionDefinition","src":"1000:175:3"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"name":"get","payable":false,"scope":661,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_viewer","scope":641,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":612,"name":"ElementaryTypeName","src":"1194:7:3"}],"id":613,"name":"VariableDeclaration","src":"1194:15:3"},{"attributes":{"constant":false,"name":"_videoId","scope":641,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":614,"name":"ElementaryTypeName","src":"1211:6:3"}],"id":615,"name":"VariableDeclaration","src":"1211:15:3"}],"id":616,"name":"ParameterList","src":"1193:34:3"},{"children":[{"attributes":{"constant":false,"name":"","scope":641,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":619,"name":"ElementaryTypeName","src":"1270:4:3"}],"id":620,"name":"VariableDeclaration","src":"1270:4:3"},{"attributes":{"constant":false,"name":"","scope":641,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":621,"name":"ElementaryTypeName","src":"1276:6:3"}],"id":622,"name":"VariableDeclaration","src":"1276:6:3"}],"id":623,"name":"ParameterList","src":"1269:14:3"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":541,"type":"modifier ()","value":"onlyOwnerOrAvatar"},"id":617,"name":"Identifier","src":"1244:17:3"}],"id":618,"name":"ModifierInvocation","src":"1244:17:3"},{"children":[{"attributes":{"assignments":[625]},"children":[{"attributes":{"constant":false,"name":"data","scope":641,"stateVariable":false,"storageLocation":"default","type":"struct Views.Data storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Data","referencedDeclaration":500,"type":"struct Views.Data storage pointer"},"id":624,"name":"UserDefinedTypeName","src":"1293:4:3"}],"id":625,"name":"VariableDeclaration","src":"1293:9:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct Views.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => struct Views.Data storage ref)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":506,"type":"mapping(address => mapping(bytes32 => struct Views.Data storage ref))","value":"_views"},"id":626,"name":"Identifier","src":"1305:6:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":613,"type":"address","value":"_viewer"},"id":627,"name":"Identifier","src":"1312:7:3"}],"id":628,"name":"IndexAccess","src":"1305:15:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":629,"name":"Identifier","src":"1321:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":615,"type":"string memory","value":"_videoId"},"id":630,"name":"Identifier","src":"1331:8:3"}],"id":631,"name":"FunctionCall","src":"1321:19:3"}],"id":632,"name":"IndexAccess","src":"1305:36:3"}],"id":633,"name":"VariableDeclarationStatement","src":"1293:48:3"},{"attributes":{"functionReturnParameters":623},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"tuple(bool,string storage ref)"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"_isRegistered","referencedDeclaration":497,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":625,"type":"struct Views.Data storage pointer","value":"data"},"id":634,"name":"Identifier","src":"1358:4:3"}],"id":635,"name":"MemberAccess","src":"1358:18:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"_ipfsData","referencedDeclaration":499,"type":"string storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":625,"type":"struct Views.Data storage pointer","value":"data"},"id":636,"name":"Identifier","src":"1378:4:3"}],"id":637,"name":"MemberAccess","src":"1378:14:3"}],"id":638,"name":"TupleExpression","src":"1357:36:3"}],"id":639,"name":"Return","src":"1350:43:3"}],"id":640,"name":"Block","src":"1284:116:3"}],"id":641,"name":"FunctionDefinition","src":"1181:219:3"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"userViewedVideo","payable":false,"scope":661,"stateMutability":"view","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_viewer","scope":660,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":642,"name":"ElementaryTypeName","src":"1431:7:3"}],"id":643,"name":"VariableDeclaration","src":"1431:15:3"},{"attributes":{"constant":false,"name":"_videoId","scope":660,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":644,"name":"ElementaryTypeName","src":"1448:6:3"}],"id":645,"name":"VariableDeclaration","src":"1448:15:3"}],"id":646,"name":"ParameterList","src":"1430:34:3"},{"children":[{"attributes":{"constant":false,"name":"","scope":660,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":647,"name":"ElementaryTypeName","src":"1489:4:3"}],"id":648,"name":"VariableDeclaration","src":"1489:4:3"}],"id":649,"name":"ParameterList","src":"1488:6:3"},{"children":[{"attributes":{"functionReturnParameters":649},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"_isRegistered","referencedDeclaration":497,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct Views.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"mapping(bytes32 => struct Views.Data storage ref)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":506,"type":"mapping(address => mapping(bytes32 => struct Views.Data storage ref))","value":"_views"},"id":650,"name":"Identifier","src":"1510:6:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":643,"type":"address","value":"_viewer"},"id":651,"name":"Identifier","src":"1517:7:3"}],"id":652,"name":"IndexAccess","src":"1510:15:3"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":1225,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":653,"name":"Identifier","src":"1526:9:3"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":645,"type":"string memory","value":"_videoId"},"id":654,"name":"Identifier","src":"1536:8:3"}],"id":655,"name":"FunctionCall","src":"1526:19:3"}],"id":656,"name":"IndexAccess","src":"1510:36:3"}],"id":657,"name":"MemberAccess","src":"1510:50:3"}],"id":658,"name":"Return","src":"1503:57:3"}],"id":659,"name":"Block","src":"1495:72:3"}],"id":660,"name":"FunctionDefinition","src":"1406:161:3"}],"id":661,"name":"ContractDefinition","src":"112:1457:3"}],"id":662,"name":"SourceUnit","src":"0:1570:3"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T14:06:20.132Z"} +module.exports = {"contractName":"Views","abi":[{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_address","type":"address"},{"indexed":false,"name":"_videoId","type":"string"},{"indexed":false,"name":"_ipfsData","type":"string"}],"name":"LogCreateView","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_address","type":"address"},{"indexed":false,"name":"_videoId","type":"string"}],"name":"LogRemoveView","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_viewer","type":"address"},{"name":"_videoId","type":"string"},{"name":"_ipfsData","type":"string"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_viewer","type":"address"},{"name":"_videoId","type":"string"}],"name":"remove","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_viewer","type":"address"},{"name":"_videoId","type":"string"}],"name":"get","outputs":[{"name":"","type":"bool"},{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_viewer","type":"address"},{"name":"_videoId","type":"string"}],"name":"userViewedVideo","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b5060405160208061134183398101806040528101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505061123d806101046000396000f300608060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806349209fc814610088578063796d5836146101115780637b103999146101e05780638da5cb5b146102375780638fe001a51461028e578063f2fde38b1461032f578063fc2525ab14610372575b600080fd5b34801561009457600080fd5b5061010f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061047f565b005b34801561011d57600080fd5b506101de600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506107c1565b005b3480156101ec57600080fd5b506101f5610ba2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561024357600080fd5b5061024c610bc8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561029a57600080fd5b50610315600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610bed565b604051808215151515815260200191505060405180910390f35b34801561033b57600080fd5b50610370600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cc2565b005b34801561037e57600080fd5b506103f9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e17565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610443578082015181840152602081019050610428565b50505050905090810190601f1680156104705780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806106015750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15801561059757600080fd5b505af11580156105ab573d6000803e3d6000fd5b505050506040513d60208110156105c157600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561060c57600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000826040518082805190602001908083835b602083101515610683578051825260208201915060208101905060208303925061065e565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020600080820160006101000a81549060ff02191690556001820160006106eb9190611124565b50507f7ed2574507414d87ae20434a5bae56eef5c81885cd02fc205ce20d24356542328282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610782578082015181840152602081019050610767565b50505050905090810190601f1680156107af5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806109435750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b1580156108d957600080fd5b505af11580156108ed573d6000803e3d6000fd5b505050506040513d602081101561090357600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561094e57600080fd5b604080519081016040528060011515815260200182815250600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000846040518082805190602001908083835b6020831015156109dd57805182526020820191506020810190506020830392506109b8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001019080519060200190610a5c92919061116c565b509050507f73b2750ccaf84fc0cce582f3529304dc9e0b4b3b7e84ca44757a6abbfb9a2d81838383604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015610afa578082015181840152602081019050610adf565b50505050905090810190601f168015610b275780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610b60578082015181840152602081019050610b45565b50505050905090810190601f168015610b8d5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610c665780518252602082019150602081019050602083039250610c41565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060000160009054906101000a900460ff16905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d1d57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610d5957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000606060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f9f5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b158015610f3557600080fd5b505af1158015610f49573d6000803e3d6000fd5b505050506040513d6020811015610f5f57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610faa57600080fd5b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856040518082805190602001908083835b6020831015156110215780518252602082019150602081019050602083039250610ffc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002090508060000160009054906101000a900460ff1681600101808054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111115780601f106110e657610100808354040283529160200191611111565b820191906000526020600020905b8154815290600101906020018083116110f457829003601f168201915b5050505050905092509250509250929050565b50805460018160011615610100020316600290046000825580601f1061114a5750611169565b601f01602090049060005260206000209081019061116891906111ec565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106111ad57805160ff19168380011785556111db565b828001600101855582156111db579182015b828111156111da5782518255916020019190600101906111bf565b5b5090506111e891906111ec565b5090565b61120e91905b8082111561120a5760008160009055506001016111f2565b5090565b905600a165627a7a72305820983d159123709cf5517bd0de2f57ed7bb07e30182593c210a2615287a1dcbdd90029","deployedBytecode":"0x608060405260043610610083576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806349209fc814610088578063796d5836146101115780637b103999146101e05780638da5cb5b146102375780638fe001a51461028e578063f2fde38b1461032f578063fc2525ab14610372575b600080fd5b34801561009457600080fd5b5061010f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061047f565b005b34801561011d57600080fd5b506101de600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506107c1565b005b3480156101ec57600080fd5b506101f5610ba2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561024357600080fd5b5061024c610bc8565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561029a57600080fd5b50610315600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610bed565b604051808215151515815260200191505060405180910390f35b34801561033b57600080fd5b50610370600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cc2565b005b34801561037e57600080fd5b506103f9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e17565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610443578082015181840152602081019050610428565b50505050905090810190601f1680156104705780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806106015750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15801561059757600080fd5b505af11580156105ab573d6000803e3d6000fd5b505050506040513d60208110156105c157600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561060c57600080fd5b600260008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000826040518082805190602001908083835b602083101515610683578051825260208201915060208101905060208303925061065e565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051809103902060001916600019168152602001908152602001600020600080820160006101000a81549060ff02191690556001820160006106eb9190611124565b50507f7ed2574507414d87ae20434a5bae56eef5c81885cd02fc205ce20d24356542328282604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610782578082015181840152602081019050610767565b50505050905090810190601f1680156107af5780820380516001836020036101000a031916815260200191505b50935050505060405180910390a15050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806109435750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b1580156108d957600080fd5b505af11580156108ed573d6000803e3d6000fd5b505050506040513d602081101561090357600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b151561094e57600080fd5b604080519081016040528060011515815260200182815250600260008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000846040518082805190602001908083835b6020831015156109dd57805182526020820191506020810190506020830392506109b8565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001019080519060200190610a5c92919061116c565b509050507f73b2750ccaf84fc0cce582f3529304dc9e0b4b3b7e84ca44757a6abbfb9a2d81838383604051808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018060200180602001838103835285818151815260200191508051906020019080838360005b83811015610afa578082015181840152602081019050610adf565b50505050905090810190601f168015610b275780820380516001836020036101000a031916815260200191505b50838103825284818151815260200191508051906020019080838360005b83811015610b60578082015181840152602081019050610b45565b50505050905090810190601f168015610b8d5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000836040518082805190602001908083835b602083101515610c665780518252602082019150602081019050602083039250610c41565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002060000160009054906101000a900460ff16905092915050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610d1d57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610d5957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000606060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610f9f5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b158015610f3557600080fd5b505af1158015610f49573d6000803e3d6000fd5b505050506040513d6020811015610f5f57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610faa57600080fd5b600260008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000856040518082805190602001908083835b6020831015156110215780518252602082019150602081019050602083039250610ffc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390206000191660001916815260200190815260200160002090508060000160009054906101000a900460ff1681600101808054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156111115780601f106110e657610100808354040283529160200191611111565b820191906000526020600020905b8154815290600101906020018083116110f457829003601f168201915b5050505050905092509250509250929050565b50805460018160011615610100020316600290046000825580601f1061114a5750611169565b601f01602090049060005260206000209081019061116891906111ec565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106111ad57805160ff19168380011785556111db565b828001600101855582156111db579182015b828111156111da5782518255916020019190600101906111bf565b5b5090506111e891906111ec565b5090565b61120e91905b8082111561120a5760008160009055506001016111f2565b5090565b905600a165627a7a72305820983d159123709cf5517bd0de2f57ed7bb07e30182593c210a2615287a1dcbdd90029"} /***/ }), /* 904 */ /***/ (function(module, exports) { -module.exports = {"contractName":"Vouchers","abi":[{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"vouchers","outputs":[{"name":"_claimant","type":"address"},{"name":"_amount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_hashedVoucher","type":"bytes32"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"LogCreateVoucher","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_hashedVoucher","type":"bytes32"}],"name":"LogRemoveVoucher","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_hashedVoucher","type":"bytes32"},{"indexed":false,"name":"_voucher","type":"string"},{"indexed":false,"name":"_amount","type":"uint256"},{"indexed":false,"name":"_claimant","type":"address"}],"name":"LogRedeemVoucher","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_hashedVoucher","type":"bytes32"},{"name":"_amount","type":"uint256"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_hashedVoucher","type":"bytes32"}],"name":"remove","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_voucher","type":"string"}],"name":"hashVoucher","outputs":[{"name":"_hashedVoucher","type":"bytes32"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"_voucher","type":"string"}],"name":"redeem","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x6060604052341561000f57600080fd5b604051602080610eaf83398101604052808051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610db3806100fc6000396000f30060606040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306810649146100905780631222c25a146101095780637b1039991461017e5780638da5cb5b146101d357806395bc267314610228578063a042c1321461024f578063e4c96ac41461027f578063f2fde38b146102ed575b005b341561009b57600080fd5b6100eb600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610326565b60405180826000191660001916815260200191505060405180910390f35b341561011457600080fd5b610164600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610392565b604051808215151515815260200191505060405180910390f35b341561018957600080fd5b610191610735565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101de57600080fd5b6101e661075b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561023357600080fd5b61024d600480803560001916906020019091905050610780565b005b341561025a57600080fd5b61027d600480803560001916906020019091908035906020019091905050610984565b005b341561028a57600080fd5b6102a4600480803560001916906020019091905050610bee565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b34156102f857600080fd5b610324600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610c32565b005b6000816040518082805190602001908083835b60208310151561035e5780518252602082019150602081019050602083039250610339565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050919050565b6000806000806103a185610326565b92506002600084600019166000191681526020019081526020016000209150600082600101541115156103d357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561043257600080fd5b3360026000856000191660001916815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252600c8152602001807f50617261746969546f6b656e0000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561055957600080fd5b6102c65a03f1151561056a57600080fd5b5050506040518051905090508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3384600101546000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561062557600080fd5b6102c65a03f1151561063657600080fd5b50505060405180519050507f2eaff7d7b1644e86930213c456e12bfdad67722d421620a44206c51cc08209398386846001015433604051808560001916600019168152602001806020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828103825285818151815260200191508051906020019080838360005b838110156106f05780820151818401526020810190506106d5565b50505050905090810190601f16801561071d5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1505050919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806108ea5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15156108a057600080fd5b6102c65a03f115156108b157600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b15156108f557600080fd5b600260008260001916600019168152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905550507f14e1cb1f041e31ab0914847975c8ea1e84618c1b2f051b668e413a18a78601cf8160405180826000191660001916815260200191505060405180910390a150565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610aee5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b1515610aa457600080fd5b6102c65a03f11515610ab557600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610af957600080fd5b600081111515610b0857600080fd5b6040805190810160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020018281525060026000846000191660001916815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101559050507f53dea2f832632fad149738c97762fd3c519858d023692f10c21ea406b857a77882826040518083600019166000191681526020018281526020019250505060405180910390a15050565b60026020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c8d57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610cc957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a723058207c94060461af44da78e43dbe398e1c74a38113c9105ea2c9544fc5a1ab18102f0029","deployedBytecode":"0x60606040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306810649146100905780631222c25a146101095780637b1039991461017e5780638da5cb5b146101d357806395bc267314610228578063a042c1321461024f578063e4c96ac41461027f578063f2fde38b146102ed575b005b341561009b57600080fd5b6100eb600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610326565b60405180826000191660001916815260200191505060405180910390f35b341561011457600080fd5b610164600480803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091905050610392565b604051808215151515815260200191505060405180910390f35b341561018957600080fd5b610191610735565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101de57600080fd5b6101e661075b565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561023357600080fd5b61024d600480803560001916906020019091905050610780565b005b341561025a57600080fd5b61027d600480803560001916906020019091908035906020019091905050610984565b005b341561028a57600080fd5b6102a4600480803560001916906020019091905050610bee565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b34156102f857600080fd5b610324600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610c32565b005b6000816040518082805190602001908083835b60208310151561035e5780518252602082019150602081019050602083039250610339565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050919050565b6000806000806103a185610326565b92506002600084600019166000191681526020019081526020016000209150600082600101541115156103d357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561043257600080fd5b3360026000856000191660001916815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252600c8152602001807f50617261746969546f6b656e0000000000000000000000000000000000000000815250602001915050602060405180830381600087803b151561055957600080fd5b6102c65a03f1151561056a57600080fd5b5050506040518051905090508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3384600101546000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b151561062557600080fd5b6102c65a03f1151561063657600080fd5b50505060405180519050507f2eaff7d7b1644e86930213c456e12bfdad67722d421620a44206c51cc08209398386846001015433604051808560001916600019168152602001806020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828103825285818151815260200191508051906020019080838360005b838110156106f05780820151818401526020810190506106d5565b50505050905090810190601f16801561071d5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1505050919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614806108ea5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15156108a057600080fd5b6102c65a03f115156108b157600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b15156108f557600080fd5b600260008260001916600019168152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905550507f14e1cb1f041e31ab0914847975c8ea1e84618c1b2f051b668e413a18a78601cf8160405180826000191660001916815260200191505060405180910390a150565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610aee5750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736000604051602001526040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b1515610aa457600080fd5b6102c65a03f11515610ab557600080fd5b5050506040518051905073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610af957600080fd5b600081111515610b0857600080fd5b6040805190810160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020018281525060026000846000191660001916815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101559050507f53dea2f832632fad149738c97762fd3c519858d023692f10c21ea406b857a77882826040518083600019166000191681526020018281526020019250505060405180910390a15050565b60026020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610c8d57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610cc957600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a723058207c94060461af44da78e43dbe398e1c74a38113c9105ea2c9544fc5a1ab18102f0029","sourceMap":"141:2256:13:-;;;690:110;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;509:10:15;501:5;;:18;;;;;;;;;;;;;;;;;;753:10:13;745:5;;:18;;;;;;;;;;;;;;;;;;784:9;773:8;;:20;;;;;;;;;;;;;;;;;;690:110;141:2256;;;;;;","deployedSourceMap":"141:2256:13:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1349:123;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1674:721;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;177:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;238:20:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1110:153:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;875:229;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;278:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;834:169:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;1349:123:13;1407:22;1456:8;1446:19;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:2;51:6;36:153;;;182:3;176:5;171:3;164:6;98:2;93:3;89;82:19;;123:2;118:3;114;107:19;;148:2;143:3;139;132:19;;36:153;;;274:1;267:3;263:2;259:3;254;250;246;315:4;311:3;305;299:5;295:3;356:4;350:3;344:5;340:3;389:7;380;377:2;372:3;365:6;3:399;;;;;;;;;;;;;;;;;;;1439:26:13;;1349:123;;;:::o;1674:721::-;1722:4;1805:21;1860:20;2184:18;1829:21;1841:8;1829:11;:21::i;:::-;1805:45;;1883:8;:23;1892:13;1883:23;;;;;;;;;;;;;;;;;1860:46;;1942:1;1924:7;:15;;;:19;1916:28;;;;;;;;1991:1;1962:31;;:7;:17;;;;;;;;;;;;:31;;;1954:40;;;;;;;;2108:10;2072:8;:23;2081:13;2072:23;;;;;;;;;;;;;;;;;:33;;;:46;;;;;;;;;;;;;;;;;;2218:8;;;;;;;;;;;:20;;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2184:71;;2265:5;:14;;;2280:10;2292:7;:15;;;2265:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2318:70;2335:13;2350:8;2360:7;:15;;;2377:10;2318:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:2;8:100;;;99:1;94:3;90;84:5;80:1;75:3;71;64:6;52:2;49:1;45:3;40:15;;8:100;;;12:14;3:109;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1674:721:13;;;;;;:::o;177:24::-;;;;;;;;;;;;;:::o;238:20:15:-;;;;;;;;;;;;;:::o;1110:153:13:-;609:5;;;;;;;;;;;595:19;;:10;:19;;;594:71;;;;634:8;;;;;;;;;;;:20;;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;620:44;;:10;:44;;;594:71;586:80;;;;;;;;1191:8;:24;1200:14;1191:24;;;;;;;;;;;;;;;;;;1184:31;;;;;;;;;;;;;;;;;;;;;;;1224:32;1241:14;1224:32;;;;;;;;;;;;;;;;;;;;;;;;1110:153;:::o;875:229::-;609:5;;;;;;;;;;;595:19;;:10;:19;;;594:71;;;;634:8;;;;;;;;;;;:20;;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;620:44;;:10;:44;;;594:71;586:80;;;;;;;;982:1;972:7;:11;964:20;;;;;;;;1021:25;;;;;;;;;1034:1;1021:25;;;;;;1038:7;1021:25;;;994:8;:24;1003:14;994:24;;;;;;;;;;;;;;;;;:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1056:41;1073:14;1089:7;1056:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;875:229;;:::o;278:41::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;834:169:15:-;654:5;;;;;;;;;;;640:19;;:10;:19;;;632:28;;;;;;;;930:1;910:22;;:8;:22;;;;902:31;;;;;;;;967:8;939:37;;960:5;;;;;;;;;;;939:37;;;;;;;;;;;;990:8;982:5;;:16;;;;;;;;;;;;;;;;;;834:169;:::o","source":"pragma solidity ^0.4.18;\n\nimport \"zeppelin-solidity/contracts/ownership/Ownable.sol\";\nimport './ParatiiToken.sol';\nimport './Registry.sol';\n\ncontract Vouchers is Ownable {\n\n Registry public registry;\n\n struct Data {\n address _claimant;\n uint _amount;\n }\n\n mapping (bytes32 => Data) public vouchers;\n\n event LogCreateVoucher(bytes32 _hashedVoucher, uint _amount);\n event LogRemoveVoucher(bytes32 _hashedVoucher);\n event LogRedeemVoucher(bytes32 _hashedVoucher, string _voucher, uint _amount, address _claimant);\n\n modifier onlyOwnerOrAvatar() {\n require((msg.sender == owner) || (msg.sender == registry.getContract('Avatar')));\n _;\n }\n\n function Vouchers(Registry _registry) public {\n owner = msg.sender;\n registry = _registry;\n }\n\n // make this contract payable\n function() public payable { }\n\n function create(bytes32 _hashedVoucher, uint _amount) public onlyOwnerOrAvatar {\n require(_amount > 0);\n vouchers[_hashedVoucher] = Data(address(0), _amount);\n LogCreateVoucher(_hashedVoucher, _amount);\n }\n\n function remove(bytes32 _hashedVoucher) public onlyOwnerOrAvatar {\n delete vouchers[_hashedVoucher];\n LogRemoveVoucher(_hashedVoucher);\n }\n\n /* A convenience function that hashes teh voucher, to be call'ed locally */\n function hashVoucher(string _voucher) public pure returns(bytes32 _hashedVoucher) {\n return keccak256(_voucher);\n }\n\n /*\n * redeem the Voucher\n * NOTE: This _is_ vulnerable to front-running attacks (the attacker can intercept the transaction,\n extract the voucher, and redeem it himself)\n */\n function redeem(string _voucher) public returns(bool) {\n // the voucher must exist and not have been redeemed (yet)\n bytes32 hashedVoucher = hashVoucher(_voucher);\n Data storage voucher = vouchers[hashedVoucher];\n require(voucher._amount > 0);\n require(voucher._claimant == address(0));\n // invalidate the voucher, and send the money to the sender\n vouchers[hashedVoucher]._claimant = msg.sender;\n // get the pti token contract from the registry\n ParatiiToken token = ParatiiToken(registry.getContract('ParatiiToken'));\n token.transfer(msg.sender, voucher._amount);\n LogRedeemVoucher(hashedVoucher, _voucher, voucher._amount, msg.sender);\n }\n}\n","sourcePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Vouchers.sol","ast":{"attributes":{"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Vouchers.sol","exportedSymbols":{"Vouchers":[2362]}},"children":[{"attributes":{"literals":["solidity","^","0.4",".18"]},"id":2153,"name":"PragmaDirective","src":"0:24:13"},{"attributes":{"SourceUnit":2517,"absolutePath":"zeppelin-solidity/contracts/ownership/Ownable.sol","file":"zeppelin-solidity/contracts/ownership/Ownable.sol","scope":2363,"symbolAliases":[null],"unitAlias":""},"id":2154,"name":"ImportDirective","src":"26:59:13"},{"attributes":{"SourceUnit":632,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/ParatiiToken.sol","file":"./ParatiiToken.sol","scope":2363,"symbolAliases":[null],"unitAlias":""},"id":2155,"name":"ImportDirective","src":"86:28:13"},{"attributes":{"SourceUnit":857,"absolutePath":"/home/enrico/paratii/paratii-contracts/contracts/paratii/Registry.sol","file":"./Registry.sol","scope":2363,"symbolAliases":[null],"unitAlias":""},"id":2156,"name":"ImportDirective","src":"115:24:13"},{"attributes":{"contractDependencies":[2516],"contractKind":"contract","documentation":null,"fullyImplemented":true,"linearizedBaseContracts":[2362,2516],"name":"Vouchers","scope":2363},"children":[{"attributes":{"arguments":[null]},"children":[{"attributes":{"contractScope":null,"name":"Ownable","referencedDeclaration":2516,"type":"contract Ownable"},"id":2157,"name":"UserDefinedTypeName","src":"162:7:13"}],"id":2158,"name":"InheritanceSpecifier","src":"162:7:13"},{"attributes":{"constant":false,"name":"registry","scope":2362,"stateVariable":true,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"public"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":2159,"name":"UserDefinedTypeName","src":"177:8:13"}],"id":2160,"name":"VariableDeclaration","src":"177:24:13"},{"attributes":{"canonicalName":"Vouchers.Data","name":"Data","scope":2362,"visibility":"public"},"children":[{"attributes":{"constant":false,"name":"_claimant","scope":2165,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2161,"name":"ElementaryTypeName","src":"228:7:13"}],"id":2162,"name":"VariableDeclaration","src":"228:17:13"},{"attributes":{"constant":false,"name":"_amount","scope":2165,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2163,"name":"ElementaryTypeName","src":"253:4:13"}],"id":2164,"name":"VariableDeclaration","src":"253:12:13"}],"id":2165,"name":"StructDefinition","src":"208:64:13"},{"attributes":{"constant":false,"name":"vouchers","scope":2362,"stateVariable":true,"storageLocation":"default","type":"mapping(bytes32 => struct Vouchers.Data storage ref)","value":null,"visibility":"public"},"children":[{"attributes":{"type":"mapping(bytes32 => struct Vouchers.Data storage ref)"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":2166,"name":"ElementaryTypeName","src":"287:7:13"},{"attributes":{"contractScope":null,"name":"Data","referencedDeclaration":2165,"type":"struct Vouchers.Data storage pointer"},"id":2167,"name":"UserDefinedTypeName","src":"298:4:13"}],"id":2168,"name":"Mapping","src":"278:25:13"}],"id":2169,"name":"VariableDeclaration","src":"278:41:13"},{"attributes":{"anonymous":false,"name":"LogCreateVoucher"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_hashedVoucher","scope":2175,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":2170,"name":"ElementaryTypeName","src":"349:7:13"}],"id":2171,"name":"VariableDeclaration","src":"349:22:13"},{"attributes":{"constant":false,"indexed":false,"name":"_amount","scope":2175,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2172,"name":"ElementaryTypeName","src":"373:4:13"}],"id":2173,"name":"VariableDeclaration","src":"373:12:13"}],"id":2174,"name":"ParameterList","src":"348:38:13"}],"id":2175,"name":"EventDefinition","src":"326:61:13"},{"attributes":{"anonymous":false,"name":"LogRemoveVoucher"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_hashedVoucher","scope":2179,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":2176,"name":"ElementaryTypeName","src":"415:7:13"}],"id":2177,"name":"VariableDeclaration","src":"415:22:13"}],"id":2178,"name":"ParameterList","src":"414:24:13"}],"id":2179,"name":"EventDefinition","src":"392:47:13"},{"attributes":{"anonymous":false,"name":"LogRedeemVoucher"},"children":[{"children":[{"attributes":{"constant":false,"indexed":false,"name":"_hashedVoucher","scope":2189,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":2180,"name":"ElementaryTypeName","src":"467:7:13"}],"id":2181,"name":"VariableDeclaration","src":"467:22:13"},{"attributes":{"constant":false,"indexed":false,"name":"_voucher","scope":2189,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":2182,"name":"ElementaryTypeName","src":"491:6:13"}],"id":2183,"name":"VariableDeclaration","src":"491:15:13"},{"attributes":{"constant":false,"indexed":false,"name":"_amount","scope":2189,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2184,"name":"ElementaryTypeName","src":"508:4:13"}],"id":2185,"name":"VariableDeclaration","src":"508:12:13"},{"attributes":{"constant":false,"indexed":false,"name":"_claimant","scope":2189,"stateVariable":false,"storageLocation":"default","type":"address","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"address","type":"address"},"id":2186,"name":"ElementaryTypeName","src":"522:7:13"}],"id":2187,"name":"VariableDeclaration","src":"522:17:13"}],"id":2188,"name":"ParameterList","src":"466:74:13"}],"id":2189,"name":"EventDefinition","src":"444:97:13"},{"attributes":{"name":"onlyOwnerOrAvatar","visibility":"internal"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2190,"name":"ParameterList","src":"573:2:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":2191,"name":"Identifier","src":"586:7:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"||","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":2192,"name":"Identifier","src":"595:3:13"}],"id":2193,"name":"MemberAccess","src":"595:10:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2464,"type":"address","value":"owner"},"id":2194,"name":"Identifier","src":"609:5:13"}],"id":2195,"name":"BinaryOperation","src":"595:19:13"}],"id":2196,"name":"TupleExpression","src":"594:21:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"type":"bool"},"children":[{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":2197,"name":"Identifier","src":"620:3:13"}],"id":2198,"name":"MemberAccess","src":"620:10:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_29a36bb22f3c260ddca59a40dffde48863da1d6fba3d1f55dedde5c8e1942577","typeString":"literal_string \"Avatar\""}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getContract","referencedDeclaration":743,"type":"function (string memory) view external returns (address)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2160,"type":"contract Registry","value":"registry"},"id":2199,"name":"Identifier","src":"634:8:13"}],"id":2200,"name":"MemberAccess","src":"634:20:13"},{"attributes":{"argumentTypes":null,"hexvalue":"417661746172","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"Avatar\"","value":"Avatar"},"id":2201,"name":"Literal","src":"655:8:13"}],"id":2202,"name":"FunctionCall","src":"634:30:13"}],"id":2203,"name":"BinaryOperation","src":"620:44:13"}],"id":2204,"name":"TupleExpression","src":"619:46:13"}],"id":2205,"name":"BinaryOperation","src":"594:71:13"}],"id":2206,"name":"FunctionCall","src":"586:80:13"}],"id":2207,"name":"ExpressionStatement","src":"586:80:13"},{"id":2208,"name":"PlaceholderStatement","src":"676:1:13"}],"id":2209,"name":"Block","src":"576:108:13"}],"id":2210,"name":"ModifierDefinition","src":"547:137:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":true,"modifiers":[null],"name":"Vouchers","payable":false,"scope":2362,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_registry","scope":2225,"stateVariable":false,"storageLocation":"default","type":"contract Registry","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Registry","referencedDeclaration":856,"type":"contract Registry"},"id":2211,"name":"UserDefinedTypeName","src":"708:8:13"}],"id":2212,"name":"VariableDeclaration","src":"708:18:13"}],"id":2213,"name":"ParameterList","src":"707:20:13"},{"attributes":{"parameters":[null]},"children":[],"id":2214,"name":"ParameterList","src":"735:0:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2464,"type":"address","value":"owner"},"id":2215,"name":"Identifier","src":"745:5:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":2216,"name":"Identifier","src":"753:3:13"}],"id":2217,"name":"MemberAccess","src":"753:10:13"}],"id":2218,"name":"Assignment","src":"745:18:13"}],"id":2219,"name":"ExpressionStatement","src":"745:18:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"contract Registry"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2160,"type":"contract Registry","value":"registry"},"id":2220,"name":"Identifier","src":"773:8:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2212,"type":"contract Registry","value":"_registry"},"id":2221,"name":"Identifier","src":"784:9:13"}],"id":2222,"name":"Assignment","src":"773:20:13"}],"id":2223,"name":"ExpressionStatement","src":"773:20:13"}],"id":2224,"name":"Block","src":"735:65:13"}],"id":2225,"name":"FunctionDefinition","src":"690:110:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"","payable":true,"scope":2362,"stateMutability":"payable","superFunction":null,"visibility":"public"},"children":[{"attributes":{"parameters":[null]},"children":[],"id":2226,"name":"ParameterList","src":"848:2:13"},{"attributes":{"parameters":[null]},"children":[],"id":2227,"name":"ParameterList","src":"866:0:13"},{"attributes":{"statements":[null]},"children":[],"id":2228,"name":"Block","src":"866:3:13"}],"id":2229,"name":"FunctionDefinition","src":"840:29:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"create","payable":false,"scope":2362,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_hashedVoucher","scope":2261,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":2230,"name":"ElementaryTypeName","src":"891:7:13"}],"id":2231,"name":"VariableDeclaration","src":"891:22:13"},{"attributes":{"constant":false,"name":"_amount","scope":2261,"stateVariable":false,"storageLocation":"default","type":"uint256","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"uint","type":"uint256"},"id":2232,"name":"ElementaryTypeName","src":"915:4:13"}],"id":2233,"name":"VariableDeclaration","src":"915:12:13"}],"id":2234,"name":"ParameterList","src":"890:38:13"},{"attributes":{"parameters":[null]},"children":[],"id":2237,"name":"ParameterList","src":"954:0:13"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2210,"type":"modifier ()","value":"onlyOwnerOrAvatar"},"id":2235,"name":"Identifier","src":"936:17:13"}],"id":2236,"name":"ModifierInvocation","src":"936:17:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":2238,"name":"Identifier","src":"964:7:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":">","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2233,"type":"uint256","value":"_amount"},"id":2239,"name":"Identifier","src":"972:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2240,"name":"Literal","src":"982:1:13"}],"id":2241,"name":"BinaryOperation","src":"972:11:13"}],"id":2242,"name":"FunctionCall","src":"964:20:13"}],"id":2243,"name":"ExpressionStatement","src":"964:20:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"struct Vouchers.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"struct Vouchers.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2169,"type":"mapping(bytes32 => struct Vouchers.Data storage ref)","value":"vouchers"},"id":2244,"name":"Identifier","src":"994:8:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2231,"type":"bytes32","value":"_hashedVoucher"},"id":2245,"name":"Identifier","src":"1003:14:13"}],"id":2246,"name":"IndexAccess","src":"994:24:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":true,"lValueRequested":false,"names":[null],"type":"struct Vouchers.Data memory","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":2165,"type":"type(struct Vouchers.Data storage pointer)","value":"Data"},"id":2247,"name":"Identifier","src":"1021:4:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":true,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":2248,"name":"ElementaryTypeNameExpression","src":"1026:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2249,"name":"Literal","src":"1034:1:13"}],"id":2250,"name":"FunctionCall","src":"1026:10:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2233,"type":"uint256","value":"_amount"},"id":2251,"name":"Identifier","src":"1038:7:13"}],"id":2252,"name":"FunctionCall","src":"1021:25:13"}],"id":2253,"name":"Assignment","src":"994:52:13"}],"id":2254,"name":"ExpressionStatement","src":"994:52:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"overloadedDeclarations":[null],"referencedDeclaration":2175,"type":"function (bytes32,uint256)","value":"LogCreateVoucher"},"id":2255,"name":"Identifier","src":"1056:16:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2231,"type":"bytes32","value":"_hashedVoucher"},"id":2256,"name":"Identifier","src":"1073:14:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2233,"type":"uint256","value":"_amount"},"id":2257,"name":"Identifier","src":"1089:7:13"}],"id":2258,"name":"FunctionCall","src":"1056:41:13"}],"id":2259,"name":"ExpressionStatement","src":"1056:41:13"}],"id":2260,"name":"Block","src":"954:150:13"}],"id":2261,"name":"FunctionDefinition","src":"875:229:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"name":"remove","payable":false,"scope":2362,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_hashedVoucher","scope":2278,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":2262,"name":"ElementaryTypeName","src":"1126:7:13"}],"id":2263,"name":"VariableDeclaration","src":"1126:22:13"}],"id":2264,"name":"ParameterList","src":"1125:24:13"},{"attributes":{"parameters":[null]},"children":[],"id":2267,"name":"ParameterList","src":"1175:0:13"},{"attributes":{"arguments":[null]},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2210,"type":"modifier ()","value":"onlyOwnerOrAvatar"},"id":2265,"name":"Identifier","src":"1157:17:13"}],"id":2266,"name":"ModifierInvocation","src":"1157:17:13"},{"children":[{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"delete","prefix":true,"type":"tuple()"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"type":"struct Vouchers.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2169,"type":"mapping(bytes32 => struct Vouchers.Data storage ref)","value":"vouchers"},"id":2268,"name":"Identifier","src":"1191:8:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2263,"type":"bytes32","value":"_hashedVoucher"},"id":2269,"name":"Identifier","src":"1200:14:13"}],"id":2270,"name":"IndexAccess","src":"1191:24:13"}],"id":2271,"name":"UnaryOperation","src":"1184:31:13"}],"id":2272,"name":"ExpressionStatement","src":"1184:31:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"overloadedDeclarations":[null],"referencedDeclaration":2179,"type":"function (bytes32)","value":"LogRemoveVoucher"},"id":2273,"name":"Identifier","src":"1224:16:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2263,"type":"bytes32","value":"_hashedVoucher"},"id":2274,"name":"Identifier","src":"1241:14:13"}],"id":2275,"name":"FunctionCall","src":"1224:32:13"}],"id":2276,"name":"ExpressionStatement","src":"1224:32:13"}],"id":2277,"name":"Block","src":"1175:88:13"}],"id":2278,"name":"FunctionDefinition","src":"1110:153:13"},{"attributes":{"constant":true,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"hashVoucher","payable":false,"scope":2362,"stateMutability":"pure","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_voucher","scope":2290,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":2279,"name":"ElementaryTypeName","src":"1370:6:13"}],"id":2280,"name":"VariableDeclaration","src":"1370:15:13"}],"id":2281,"name":"ParameterList","src":"1369:17:13"},{"children":[{"attributes":{"constant":false,"name":"_hashedVoucher","scope":2290,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":2282,"name":"ElementaryTypeName","src":"1407:7:13"}],"id":2283,"name":"VariableDeclaration","src":"1407:22:13"}],"id":2284,"name":"ParameterList","src":"1406:24:13"},{"children":[{"attributes":{"functionReturnParameters":2284},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2926,"type":"function () pure returns (bytes32)","value":"keccak256"},"id":2285,"name":"Identifier","src":"1446:9:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2280,"type":"string memory","value":"_voucher"},"id":2286,"name":"Identifier","src":"1456:8:13"}],"id":2287,"name":"FunctionCall","src":"1446:19:13"}],"id":2288,"name":"Return","src":"1439:26:13"}],"id":2289,"name":"Block","src":"1431:41:13"}],"id":2290,"name":"FunctionDefinition","src":"1349:123:13"},{"attributes":{"constant":false,"implemented":true,"isConstructor":false,"modifiers":[null],"name":"redeem","payable":false,"scope":2362,"stateMutability":"nonpayable","superFunction":null,"visibility":"public"},"children":[{"children":[{"attributes":{"constant":false,"name":"_voucher","scope":2361,"stateVariable":false,"storageLocation":"default","type":"string memory","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"string","type":"string storage pointer"},"id":2291,"name":"ElementaryTypeName","src":"1690:6:13"}],"id":2292,"name":"VariableDeclaration","src":"1690:15:13"}],"id":2293,"name":"ParameterList","src":"1689:17:13"},{"children":[{"attributes":{"constant":false,"name":"","scope":2361,"stateVariable":false,"storageLocation":"default","type":"bool","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bool","type":"bool"},"id":2294,"name":"ElementaryTypeName","src":"1722:4:13"}],"id":2295,"name":"VariableDeclaration","src":"1722:4:13"}],"id":2296,"name":"ParameterList","src":"1721:6:13"},{"children":[{"attributes":{"assignments":[2298]},"children":[{"attributes":{"constant":false,"name":"hashedVoucher","scope":2361,"stateVariable":false,"storageLocation":"default","type":"bytes32","value":null,"visibility":"internal"},"children":[{"attributes":{"name":"bytes32","type":"bytes32"},"id":2297,"name":"ElementaryTypeName","src":"1805:7:13"}],"id":2298,"name":"VariableDeclaration","src":"1805:21:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bytes32","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}],"overloadedDeclarations":[null],"referencedDeclaration":2290,"type":"function (string memory) pure returns (bytes32)","value":"hashVoucher"},"id":2299,"name":"Identifier","src":"1829:11:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2292,"type":"string memory","value":"_voucher"},"id":2300,"name":"Identifier","src":"1841:8:13"}],"id":2301,"name":"FunctionCall","src":"1829:21:13"}],"id":2302,"name":"VariableDeclarationStatement","src":"1805:45:13"},{"attributes":{"assignments":[2304]},"children":[{"attributes":{"constant":false,"name":"voucher","scope":2361,"stateVariable":false,"storageLocation":"storage","type":"struct Vouchers.Data storage pointer","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"Data","referencedDeclaration":2165,"type":"struct Vouchers.Data storage pointer"},"id":2303,"name":"UserDefinedTypeName","src":"1860:4:13"}],"id":2304,"name":"VariableDeclaration","src":"1860:20:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct Vouchers.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2169,"type":"mapping(bytes32 => struct Vouchers.Data storage ref)","value":"vouchers"},"id":2305,"name":"Identifier","src":"1883:8:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2298,"type":"bytes32","value":"hashedVoucher"},"id":2306,"name":"Identifier","src":"1892:13:13"}],"id":2307,"name":"IndexAccess","src":"1883:23:13"}],"id":2308,"name":"VariableDeclarationStatement","src":"1860:46:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":2309,"name":"Identifier","src":"1916:7:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":">","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"_amount","referencedDeclaration":2164,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2304,"type":"struct Vouchers.Data storage pointer","value":"voucher"},"id":2310,"name":"Identifier","src":"1924:7:13"}],"id":2311,"name":"MemberAccess","src":"1924:15:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2312,"name":"Literal","src":"1942:1:13"}],"id":2313,"name":"BinaryOperation","src":"1924:19:13"}],"id":2314,"name":"FunctionCall","src":"1916:28:13"}],"id":2315,"name":"ExpressionStatement","src":"1916:28:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"overloadedDeclarations":[null],"referencedDeclaration":2935,"type":"function (bool) pure","value":"require"},"id":2316,"name":"Identifier","src":"1954:7:13"},{"attributes":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"==","type":"bool"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"_claimant","referencedDeclaration":2162,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2304,"type":"struct Vouchers.Data storage pointer","value":"voucher"},"id":2317,"name":"Identifier","src":"1962:7:13"}],"id":2318,"name":"MemberAccess","src":"1962:17:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":true,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"type":"type(address)","value":"address"},"id":2319,"name":"ElementaryTypeNameExpression","src":"1983:7:13"},{"attributes":{"argumentTypes":null,"hexvalue":"30","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"number","type":"int_const 0","value":"0"},"id":2320,"name":"Literal","src":"1991:1:13"}],"id":2321,"name":"FunctionCall","src":"1983:10:13"}],"id":2322,"name":"BinaryOperation","src":"1962:31:13"}],"id":2323,"name":"FunctionCall","src":"1954:40:13"}],"id":2324,"name":"ExpressionStatement","src":"1954:40:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"operator":"=","type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"member_name":"_claimant","referencedDeclaration":2162,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"type":"struct Vouchers.Data storage ref"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2169,"type":"mapping(bytes32 => struct Vouchers.Data storage ref)","value":"vouchers"},"id":2325,"name":"Identifier","src":"2072:8:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2298,"type":"bytes32","value":"hashedVoucher"},"id":2326,"name":"Identifier","src":"2081:13:13"}],"id":2327,"name":"IndexAccess","src":"2072:23:13"}],"id":2328,"name":"MemberAccess","src":"2072:33:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":2329,"name":"Identifier","src":"2108:3:13"}],"id":2330,"name":"MemberAccess","src":"2108:10:13"}],"id":2331,"name":"Assignment","src":"2072:46:13"}],"id":2332,"name":"ExpressionStatement","src":"2072:46:13"},{"attributes":{"assignments":[2334]},"children":[{"attributes":{"constant":false,"name":"token","scope":2361,"stateVariable":false,"storageLocation":"default","type":"contract ParatiiToken","value":null,"visibility":"internal"},"children":[{"attributes":{"contractScope":null,"name":"ParatiiToken","referencedDeclaration":631,"type":"contract ParatiiToken"},"id":2333,"name":"UserDefinedTypeName","src":"2184:12:13"}],"id":2334,"name":"VariableDeclaration","src":"2184:18:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"contract ParatiiToken","type_conversion":true},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":631,"type":"type(contract ParatiiToken)","value":"ParatiiToken"},"id":2335,"name":"Identifier","src":"2205:12:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"address","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_stringliteral_7631507f3f7bc8a54ae4ffd3c749e7cce6ebb390bbd0a742160abd113aa9ca0c","typeString":"literal_string \"ParatiiToken\""}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"getContract","referencedDeclaration":743,"type":"function (string memory) view external returns (address)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2160,"type":"contract Registry","value":"registry"},"id":2336,"name":"Identifier","src":"2218:8:13"}],"id":2337,"name":"MemberAccess","src":"2218:20:13"},{"attributes":{"argumentTypes":null,"hexvalue":"50617261746969546f6b656e","isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"subdenomination":null,"token":"string","type":"literal_string \"ParatiiToken\"","value":"ParatiiToken"},"id":2338,"name":"Literal","src":"2239:14:13"}],"id":2339,"name":"FunctionCall","src":"2218:36:13"}],"id":2340,"name":"FunctionCall","src":"2205:50:13"}],"id":2341,"name":"VariableDeclarationStatement","src":"2184:71:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"bool","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"transfer","referencedDeclaration":2589,"type":"function (address,uint256) external returns (bool)"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2334,"type":"contract ParatiiToken","value":"token"},"id":2342,"name":"Identifier","src":"2265:5:13"}],"id":2344,"name":"MemberAccess","src":"2265:14:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":2345,"name":"Identifier","src":"2280:3:13"}],"id":2346,"name":"MemberAccess","src":"2280:10:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"_amount","referencedDeclaration":2164,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2304,"type":"struct Vouchers.Data storage pointer","value":"voucher"},"id":2347,"name":"Identifier","src":"2292:7:13"}],"id":2348,"name":"MemberAccess","src":"2292:15:13"}],"id":2349,"name":"FunctionCall","src":"2265:43:13"}],"id":2350,"name":"ExpressionStatement","src":"2265:43:13"},{"children":[{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"isStructConstructorCall":false,"lValueRequested":false,"names":[null],"type":"tuple()","type_conversion":false},"children":[{"attributes":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_address","typeString":"address"}],"overloadedDeclarations":[null],"referencedDeclaration":2189,"type":"function (bytes32,string memory,uint256,address)","value":"LogRedeemVoucher"},"id":2351,"name":"Identifier","src":"2318:16:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2298,"type":"bytes32","value":"hashedVoucher"},"id":2352,"name":"Identifier","src":"2335:13:13"},{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2292,"type":"string memory","value":"_voucher"},"id":2353,"name":"Identifier","src":"2350:8:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"member_name":"_amount","referencedDeclaration":2164,"type":"uint256"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2304,"type":"struct Vouchers.Data storage pointer","value":"voucher"},"id":2354,"name":"Identifier","src":"2360:7:13"}],"id":2355,"name":"MemberAccess","src":"2360:15:13"},{"attributes":{"argumentTypes":null,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"member_name":"sender","referencedDeclaration":null,"type":"address"},"children":[{"attributes":{"argumentTypes":null,"overloadedDeclarations":[null],"referencedDeclaration":2932,"type":"msg","value":"msg"},"id":2356,"name":"Identifier","src":"2377:3:13"}],"id":2357,"name":"MemberAccess","src":"2377:10:13"}],"id":2358,"name":"FunctionCall","src":"2318:70:13"}],"id":2359,"name":"ExpressionStatement","src":"2318:70:13"}],"id":2360,"name":"Block","src":"1728:667:13"}],"id":2361,"name":"FunctionDefinition","src":"1674:721:13"}],"id":2362,"name":"ContractDefinition","src":"141:2256:13"}],"id":2363,"name":"SourceUnit","src":"0:2398:13"},"compiler":{"name":"solc","version":"0.4.19+commit.c4cbbb05.Emscripten.clang"},"networks":{},"schemaVersion":"1.0.1","updatedAt":"2018-05-17T13:59:31.992Z"} +module.exports = {"contractName":"Vouchers","abi":[{"constant":true,"inputs":[],"name":"registry","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"vouchers","outputs":[{"name":"_claimant","type":"address"},{"name":"_amount","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_registry","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_hashedVoucher","type":"bytes32"},{"indexed":false,"name":"_amount","type":"uint256"}],"name":"LogCreateVoucher","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_hashedVoucher","type":"bytes32"}],"name":"LogRemoveVoucher","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_hashedVoucher","type":"bytes32"},{"indexed":false,"name":"_voucher","type":"string"},{"indexed":false,"name":"_amount","type":"uint256"},{"indexed":false,"name":"_claimant","type":"address"}],"name":"LogRedeemVoucher","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"msg","type":"string"}],"name":"LogString","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":false,"inputs":[{"name":"_hashedVoucher","type":"bytes32"},{"name":"_amount","type":"uint256"}],"name":"create","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_hashedVoucher","type":"bytes32"}],"name":"remove","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_voucher","type":"string"}],"name":"hashVoucher","outputs":[{"name":"_hashedVoucher","type":"bytes32"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"_voucher","type":"string"}],"name":"redeem","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x608060405234801561001057600080fd5b5060405160208061102c83398101806040528101908080519060200190929190505050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610f28806101046000396000f30060806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306810649146100905780631222c25a146101155780637b103999146101965780638da5cb5b146101ed57806395bc267314610244578063a042c13214610275578063e4c96ac4146102b0578063f2fde38b14610328575b005b34801561009c57600080fd5b506100f7600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061036b565b60405180826000191660001916815260200191505060405180910390f35b34801561012157600080fd5b5061017c600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506103d7565b604051808215151515815260200191505060405180910390f35b3480156101a257600080fd5b506101ab61087a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101f957600080fd5b506102026108a0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561025057600080fd5b5061027360048036038101908080356000191690602001909291905050506108c5565b005b34801561028157600080fd5b506102ae600480360381019080803560001916906020019092919080359060200190929190505050610ae1565b005b3480156102bc57600080fd5b506102df6004803603810190808035600019169060200190929190505050610d63565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b34801561033457600080fd5b50610369600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610da7565b005b6000816040518082805190602001908083835b6020831015156103a3578051825260208201915060208101905060208303925061037e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050919050565b6000806000807fa95e6e2a182411e7a6f9ed114a85c3761d87f9b8f453d842c71235aa64fff99f6040518080602001828103825260058152602001807f706173736100000000000000000000000000000000000000000000000000000081525060200191505060405180910390a161044e8561036b565b925060026000846000191660001916815260200190815260200160002091506000826001015411151561048057600080fd5b7fa95e6e2a182411e7a6f9ed114a85c3761d87f9b8f453d842c71235aa64fff99f6040518080602001828103825260058152602001807f706173736100000000000000000000000000000000000000000000000000000081525060200191505060405180910390a1600073ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561054757600080fd5b3360026000856000191660001916815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252600c8152602001807f50617261746969546f6b656e0000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15801561066657600080fd5b505af115801561067a573d6000803e3d6000fd5b505050506040513d602081101561069057600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3384600101546040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561074a57600080fd5b505af115801561075e573d6000803e3d6000fd5b505050506040513d602081101561077457600080fd5b8101908080519060200190929190505050507f2eaff7d7b1644e86930213c456e12bfdad67722d421620a44206c51cc08209398386846001015433604051808560001916600019168152602001806020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828103825285818151815260200191508051906020019080838360005b8381101561083557808201518184015260208101905061081a565b50505050905090810190601f1680156108625780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1505050919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610a475750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b1580156109dd57600080fd5b505af11580156109f1573d6000803e3d6000fd5b505050506040513d6020811015610a0757600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610a5257600080fd5b600260008260001916600019168152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905550507f14e1cb1f041e31ab0914847975c8ea1e84618c1b2f051b668e413a18a78601cf8160405180826000191660001916815260200191505060405180910390a150565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610c635750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b158015610bf957600080fd5b505af1158015610c0d573d6000803e3d6000fd5b505050506040513d6020811015610c2357600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610c6e57600080fd5b600081111515610c7d57600080fd5b6040805190810160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020018281525060026000846000191660001916815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101559050507f53dea2f832632fad149738c97762fd3c519858d023692f10c21ea406b857a77882826040518083600019166000191681526020018281526020019250505060405180910390a15050565b60026020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e0257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610e3e57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a723058209908ffa42533ad795facdc4f175df16ce6c0fbe35c132d3fc6759d95d057dcb40029","deployedBytecode":"0x60806040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806306810649146100905780631222c25a146101155780637b103999146101965780638da5cb5b146101ed57806395bc267314610244578063a042c13214610275578063e4c96ac4146102b0578063f2fde38b14610328575b005b34801561009c57600080fd5b506100f7600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061036b565b60405180826000191660001916815260200191505060405180910390f35b34801561012157600080fd5b5061017c600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506103d7565b604051808215151515815260200191505060405180910390f35b3480156101a257600080fd5b506101ab61087a565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156101f957600080fd5b506102026108a0565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561025057600080fd5b5061027360048036038101908080356000191690602001909291905050506108c5565b005b34801561028157600080fd5b506102ae600480360381019080803560001916906020019092919080359060200190929190505050610ae1565b005b3480156102bc57600080fd5b506102df6004803603810190808035600019169060200190929190505050610d63565b604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390f35b34801561033457600080fd5b50610369600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610da7565b005b6000816040518082805190602001908083835b6020831015156103a3578051825260208201915060208101905060208303925061037e565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405180910390209050919050565b6000806000807fa95e6e2a182411e7a6f9ed114a85c3761d87f9b8f453d842c71235aa64fff99f6040518080602001828103825260058152602001807f706173736100000000000000000000000000000000000000000000000000000081525060200191505060405180910390a161044e8561036b565b925060026000846000191660001916815260200190815260200160002091506000826001015411151561048057600080fd5b7fa95e6e2a182411e7a6f9ed114a85c3761d87f9b8f453d842c71235aa64fff99f6040518080602001828103825260058152602001807f706173736100000000000000000000000000000000000000000000000000000081525060200191505060405180910390a1600073ffffffffffffffffffffffffffffffffffffffff168260000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614151561054757600080fd5b3360026000856000191660001916815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180806020018281038252600c8152602001807f50617261746969546f6b656e0000000000000000000000000000000000000000815250602001915050602060405180830381600087803b15801561066657600080fd5b505af115801561067a573d6000803e3d6000fd5b505050506040513d602081101561069057600080fd5b810190808051906020019092919050505090508073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb3384600101546040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561074a57600080fd5b505af115801561075e573d6000803e3d6000fd5b505050506040513d602081101561077457600080fd5b8101908080519060200190929190505050507f2eaff7d7b1644e86930213c456e12bfdad67722d421620a44206c51cc08209398386846001015433604051808560001916600019168152602001806020018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001828103825285818151815260200191508051906020019080838360005b8381101561083557808201518184015260208101905061081a565b50505050905090810190601f1680156108625780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1505050919050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610a475750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b1580156109dd57600080fd5b505af11580156109f1573d6000803e3d6000fd5b505050506040513d6020811015610a0757600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610a5257600080fd5b600260008260001916600019168152602001908152602001600020600080820160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055600182016000905550507f14e1cb1f041e31ab0914847975c8ea1e84618c1b2f051b668e413a18a78601cf8160405180826000191660001916815260200191505060405180910390a150565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480610c635750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663358177736040518163ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018080602001828103825260068152602001807f4176617461720000000000000000000000000000000000000000000000000000815250602001915050602060405180830381600087803b158015610bf957600080fd5b505af1158015610c0d573d6000803e3d6000fd5b505050506040513d6020811015610c2357600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b1515610c6e57600080fd5b600081111515610c7d57600080fd5b6040805190810160405280600073ffffffffffffffffffffffffffffffffffffffff1681526020018281525060026000846000191660001916815260200190815260200160002060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550602082015181600101559050507f53dea2f832632fad149738c97762fd3c519858d023692f10c21ea406b857a77882826040518083600019166000191681526020018281526020019250505060405180910390a15050565b60026020528060005260406000206000915090508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16908060010154905082565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e0257600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610e3e57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505600a165627a7a723058209908ffa42533ad795facdc4f175df16ce6c0fbe35c132d3fc6759d95d057dcb40029"} /***/ }), /* 905 */ diff --git a/package-lock.json b/package-lock.json index 8b6d26c..a3ce4c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2488,7 +2488,6 @@ "requires": { "anymatch": "1.3.2", "async-each": "1.0.1", - "fsevents": "1.2.4", "glob-parent": "2.0.0", "inherits": "2.0.3", "is-binary-path": "1.0.1", @@ -5312,468 +5311,6 @@ "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, - "fsevents": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", - "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", - "optional": true, - "requires": { - "nan": "2.10.0", - "node-pre-gyp": "0.10.0" - }, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "bundled": true, - "optional": true - }, - "ansi-regex": { - "version": "2.1.1", - "bundled": true - }, - "aproba": { - "version": "1.2.0", - "bundled": true, - "optional": true - }, - "are-we-there-yet": { - "version": "1.1.4", - "bundled": true, - "optional": true, - "requires": { - "delegates": "1.0.0", - "readable-stream": "2.3.6" - } - }, - "balanced-match": { - "version": "1.0.0", - "bundled": true - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "requires": { - "balanced-match": "1.0.0", - "concat-map": "0.0.1" - } - }, - "chownr": { - "version": "1.0.1", - "bundled": true, - "optional": true - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true - }, - "concat-map": { - "version": "0.0.1", - "bundled": true - }, - "console-control-strings": { - "version": "1.1.0", - "bundled": true - }, - "core-util-is": { - "version": "1.0.2", - "bundled": true, - "optional": true - }, - "debug": { - "version": "2.6.9", - "bundled": true, - "optional": true, - "requires": { - "ms": "2.0.0" - } - }, - "deep-extend": { - "version": "0.5.1", - "bundled": true, - "optional": true - }, - "delegates": { - "version": "1.0.0", - "bundled": true, - "optional": true - }, - "detect-libc": { - "version": "1.0.3", - "bundled": true, - "optional": true - }, - "fs-minipass": { - "version": "1.2.5", - "bundled": true, - "optional": true, - "requires": { - "minipass": "2.2.4" - } - }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true, - "optional": true - }, - "gauge": { - "version": "2.7.4", - "bundled": true, - "optional": true, - "requires": { - "aproba": "1.2.0", - "console-control-strings": "1.1.0", - "has-unicode": "2.0.1", - "object-assign": "4.1.1", - "signal-exit": "3.0.2", - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wide-align": "1.1.2" - } - }, - "glob": { - "version": "7.1.2", - "bundled": true, - "optional": true, - "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" - } - }, - "has-unicode": { - "version": "2.0.1", - "bundled": true, - "optional": true - }, - "iconv-lite": { - "version": "0.4.21", - "bundled": true, - "optional": true, - "requires": { - "safer-buffer": "2.1.2" - } - }, - "ignore-walk": { - "version": "3.0.1", - "bundled": true, - "optional": true, - "requires": { - "minimatch": "3.0.4" - } - }, - "inflight": { - "version": "1.0.6", - "bundled": true, - "optional": true, - "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" - } - }, - "inherits": { - "version": "2.0.3", - "bundled": true - }, - "ini": { - "version": "1.3.5", - "bundled": true, - "optional": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, - "requires": { - "number-is-nan": "1.0.1" - } - }, - "isarray": { - "version": "1.0.0", - "bundled": true, - "optional": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "requires": { - "brace-expansion": "1.1.11" - } - }, - "minimist": { - "version": "0.0.8", - "bundled": true - }, - "minipass": { - "version": "2.2.4", - "bundled": true, - "requires": { - "safe-buffer": "5.1.1", - "yallist": "3.0.2" - } - }, - "minizlib": { - "version": "1.1.0", - "bundled": true, - "optional": true, - "requires": { - "minipass": "2.2.4" - } - }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.0.0", - "bundled": true, - "optional": true - }, - "needle": { - "version": "2.2.0", - "bundled": true, - "optional": true, - "requires": { - "debug": "2.6.9", - "iconv-lite": "0.4.21", - "sax": "1.2.4" - } - }, - "node-pre-gyp": { - "version": "0.10.0", - "bundled": true, - "optional": true, - "requires": { - "detect-libc": "1.0.3", - "mkdirp": "0.5.1", - "needle": "2.2.0", - "nopt": "4.0.1", - "npm-packlist": "1.1.10", - "npmlog": "4.1.2", - "rc": "1.2.7", - "rimraf": "2.6.2", - "semver": "5.5.0", - "tar": "4.4.1" - } - }, - "nopt": { - "version": "4.0.1", - "bundled": true, - "optional": true, - "requires": { - "abbrev": "1.1.1", - "osenv": "0.1.5" - } - }, - "npm-bundled": { - "version": "1.0.3", - "bundled": true, - "optional": true - }, - "npm-packlist": { - "version": "1.1.10", - "bundled": true, - "optional": true, - "requires": { - "ignore-walk": "3.0.1", - "npm-bundled": "1.0.3" - } - }, - "npmlog": { - "version": "4.1.2", - "bundled": true, - "optional": true, - "requires": { - "are-we-there-yet": "1.1.4", - "console-control-strings": "1.1.0", - "gauge": "2.7.4", - "set-blocking": "2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true, - "optional": true - }, - "once": { - "version": "1.4.0", - "bundled": true, - "requires": { - "wrappy": "1.0.2" - } - }, - "os-homedir": { - "version": "1.0.2", - "bundled": true, - "optional": true - }, - "os-tmpdir": { - "version": "1.0.2", - "bundled": true, - "optional": true - }, - "osenv": { - "version": "0.1.5", - "bundled": true, - "optional": true, - "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true, - "optional": true - }, - "process-nextick-args": { - "version": "2.0.0", - "bundled": true, - "optional": true - }, - "rc": { - "version": "1.2.7", - "bundled": true, - "optional": true, - "requires": { - "deep-extend": "0.5.1", - "ini": "1.3.5", - "minimist": "1.2.0", - "strip-json-comments": "2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "bundled": true, - "optional": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "optional": true, - "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.1.1", - "util-deprecate": "1.0.2" - } - }, - "rimraf": { - "version": "2.6.2", - "bundled": true, - "optional": true, - "requires": { - "glob": "7.1.2" - } - }, - "safe-buffer": { - "version": "5.1.1", - "bundled": true - }, - "safer-buffer": { - "version": "2.1.2", - "bundled": true, - "optional": true - }, - "sax": { - "version": "1.2.4", - "bundled": true, - "optional": true - }, - "semver": { - "version": "5.5.0", - "bundled": true, - "optional": true - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true, - "optional": true - }, - "signal-exit": { - "version": "3.0.2", - "bundled": true, - "optional": true - }, - "string-width": { - "version": "1.0.2", - "bundled": true, - "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "optional": true, - "requires": { - "safe-buffer": "5.1.1" - } - }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "bundled": true, - "optional": true - }, - "tar": { - "version": "4.4.1", - "bundled": true, - "optional": true, - "requires": { - "chownr": "1.0.1", - "fs-minipass": "1.2.5", - "minipass": "2.2.4", - "minizlib": "1.1.0", - "mkdirp": "0.5.1", - "safe-buffer": "5.1.1", - "yallist": "3.0.2" - } - }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true, - "optional": true - }, - "wide-align": { - "version": "1.1.2", - "bundled": true, - "optional": true, - "requires": { - "string-width": "1.0.2" - } - }, - "wrappy": { - "version": "1.0.2", - "bundled": true - }, - "yallist": { - "version": "3.0.2", - "bundled": true - } - } - }, "fsm": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/fsm/-/fsm-1.0.2.tgz", @@ -10097,21 +9634,6 @@ "pull-ws": "3.3.1" } }, - "lie": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/lie/-/lie-3.1.1.tgz", - "integrity": "sha1-mkNrLMd0bKWd56QfpGmz77dr2H4=", - "requires": { - "immediate": "3.0.6" - }, - "dependencies": { - "immediate": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", - "integrity": "sha1-nbHb0Pr43m++D13V5Wu2BigN5ps=" - } - } - }, "load-json-file": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", @@ -10148,14 +9670,6 @@ } } }, - "localforage": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/localforage/-/localforage-1.7.1.tgz", - "integrity": "sha1-5JJ+BCMCuGTbMPMhHxO1xvDell0=", - "requires": { - "lie": "3.1.1" - } - }, "locate-path": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", @@ -11449,7 +10963,7 @@ }, "onetime": { "version": "1.1.0", - "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", "dev": true }, @@ -11605,7 +11119,7 @@ "dev": true }, "paratii-contracts": { - "version": "github:Paratii-Video/paratii-contracts#02bac48592d5e25f02a801a39dc458b1bb7f5a1e", + "version": "github:Paratii-Video/paratii-contracts#995cf1213bf46d6997653167d0bb13e3cb69d4dc", "requires": { "async": "2.6.0", "babel-cli": "6.26.0", @@ -11614,7 +11128,7 @@ "promisify-node": "0.4.0", "uuid": "3.2.1", "web3": "1.0.0-beta2", - "web3-utils": "1.0.0-beta.33", + "web3-utils": "1.0.0-beta.34", "zeppelin-solidity": "1.9.0" }, "dependencies": { @@ -13092,7 +12606,6 @@ "capture-exit": "1.2.0", "exec-sh": "0.2.1", "fb-watchman": "2.0.0", - "fsevents": "1.2.4", "micromatch": "3.1.10", "minimist": "1.2.0", "walker": "1.0.7", @@ -16160,7 +15673,6 @@ "anymatch": "2.0.0", "async-each": "1.0.1", "braces": "2.3.2", - "fsevents": "1.2.4", "glob-parent": "3.1.0", "inherits": "2.0.3", "is-binary-path": "1.0.1", @@ -17002,9 +16514,9 @@ } }, "web3-utils": { - "version": "1.0.0-beta.33", - "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.0.0-beta.33.tgz", - "integrity": "sha1-4JG3mU8JtxSwGYpAV9OtLrjL4jg=", + "version": "1.0.0-beta.34", + "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.0.0-beta.34.tgz", + "integrity": "sha1-lBH8OarvOcpOBhafdiKX2f8CCXA=", "requires": { "bn.js": "4.11.6", "eth-lib": "0.1.27", @@ -17687,7 +17199,7 @@ }, "elliptic": { "version": "3.0.3", - "resolved": "http://registry.npmjs.org/elliptic/-/elliptic-3.0.3.tgz", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-3.0.3.tgz", "integrity": "sha1-hlybQgv75VAGuflp+XoNLESWZZU=", "requires": { "bn.js": "2.0.4", diff --git a/package.json b/package.json index d562da9..387f3b9 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "joi": "^13.1.2", "multiaddr": "^3.0.2", "once": "^1.4.0", - "paratii-contracts": "github:Paratii-Video/paratii-contracts#02bac48592d5e25f02a801a39dc458b1bb7f5a1e", + "paratii-contracts": "github:Paratii-Video/paratii-contracts#995cf1213bf46d6997653167d0bb13e3cb69d4dc", "paratii-protocol": "github:Paratii-Video/paratii-protocol#45aadcf300f1ad184d6d3db8f9c4b3d438b6f658", "promisify-node": "^0.4.0", "pull-filereader": "^1.0.1", From e2b72a72aed1ade45b9817357f59a59e6eb80586 Mon Sep 17 00:00:00 2001 From: LorenzoAlluminio Date: Wed, 23 May 2018 13:00:30 +0200 Subject: [PATCH 2/2] fixed some checks --- src/paratii.eth.vouchers.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/paratii.eth.vouchers.js b/src/paratii.eth.vouchers.js index 2382246..90fd64c 100644 --- a/src/paratii.eth.vouchers.js +++ b/src/paratii.eth.vouchers.js @@ -105,22 +105,22 @@ export class ParatiiEthVouchers { let voucherBytes = await contract.methods.hashVoucher(voucherCode).call() let thisVoucher = await contract.methods.vouchers(voucherBytes).call() let thisVoucherClaimant = thisVoucher[0].toString() - let thisVoucherAmount = Number(thisVoucher[1]) - let vouchersContractBalance = Number(await this.eth.balanceOf(contract.options.address, 'PTI')) + let thisVoucherAmount = thisVoucher[1] + let vouchersContractBalance = await this.eth.balanceOf(contract.options.address, 'PTI') if (thisVoucherClaimant !== NULL_ADDRESS) { throw Error('This voucher was already used') } - if (thisVoucherAmount > vouchersContractBalance) { + if (this.eth.web3.utils.toBN(thisVoucherAmount).gt(vouchersContractBalance)) { throw Error('The Vouchers contract doesn\'t have enough PTI to redeem the voucher') } - if (thisVoucherAmount === Number(0)) { + if (this.eth.web3.utils.toBN(thisVoucherAmount).eq(0)) { throw Error('This voucher doesn\'t exist') } try { let tx = await contract.methods.redeem(voucherCode).send() - + console.log(tx) let claimant = getInfoFromLogs(tx, 'LogRedeemVoucher', '_claimant', 1) let amount = getInfoFromLogs(tx, 'LogRedeemVoucher', '_amount', 1) @@ -130,7 +130,7 @@ export class ParatiiEthVouchers { return false } } catch (e) { - throw Error('An unknown error occurred') + throw e } } }