diff --git a/README.md b/README.md index 9f5e1c1..dabf698 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,14 @@ npm install -g ganache-cli npm install -g truffle ``` +* Pre Requisite +``` +Install Visual C++ Build Environment: Visual Studio Build Tools (using "Visual C++ build tools" workload) +Install Python 2.7 (v3.x.x is not supported), and run npm config set python python2.7 +Launch cmd, npm config set msvs_version 2017 +``` +https://github.com/nodejs/node-gyp + * HD Wallet-enabled Web3 provider.Use it to sign transactions for addresses derived from a 12-word mnemonic. ``` @@ -31,9 +39,28 @@ npm install truffle-hdwallet-provider ## To Deploy Smart Contracts 1. cd ethereum 2. truffle compile -3. truffle migrate -4. Copy the "ListingsRegistry" address to "listingsregistry.js" -5. cd.. +3. ganache-cli +4. truffle migrate +``` +Running migration: 1_initial_migration.js + Deploying Migrations... + ... 0x30885e36b79835b63a9fe56306ef68d1b8c05142144b3e2c49d44c729a23742f + Migrations: 0x9c1066b87d8c216987accd4ef5c056caf831e6a7 +Saving artifacts... +Running migration: 2_deploy_contracts.js + Running step... + Deploying JobApplicationLibrary... + ... 0xce3fe6daffb98c6abb7c3938669a5cef65fad622052a4900498ec4cb783741d2 + JobApplicationLibrary: 0x69b925072040fb2f45de40e4e4812cd768f9ffcd + Linking JobApplicationLibrary to ListingsRegistry + Linking JobApplicationLibrary to Listing + Deploying ListingsRegistry... + ... 0xf9abfd4f58c41c92fdb4f3905debf9c71a3d0fcdd5de0e2b93dbd76c02dadcae + ListingsRegistry: 0x7c9533d4797062cf4b59cd55711e6a4693887090 +Saving artifacts... +``` +5. Copy the "ListingsRegistry" address to "listingsregistry.js" +6. cd.. ## To run the dApp on localhost:3000 1. npm run dev @@ -48,4 +75,4 @@ npm install truffle-hdwallet-provider ## To View IPFS files -https://ipfs.io/ipfs/zb2rhbphRuwA8kSUq7y7r9FXgd8cBF1TRXzhcqrdbVsu7NQJH \ No newline at end of file +https://ipfs.io/ipfs/zb2rhbphRuwA8kSUq7y7r9FXgd8cBF1TRXzhcqrdbVsu7NQJH diff --git a/ethereum/.gitignore b/ethereum/.gitignore new file mode 100644 index 0000000..ab8924d --- /dev/null +++ b/ethereum/.gitignore @@ -0,0 +1,77 @@ + +### Solidity ### +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# next.js build output +.next + +# nuxt.js build output +.nuxt + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless + diff --git a/ethereum/build/contracts/AuditCriteriaManager.json b/ethereum/build/contracts/AuditCriteriaManager.json new file mode 100644 index 0000000..efd87f9 --- /dev/null +++ b/ethereum/build/contracts/AuditCriteriaManager.json @@ -0,0 +1,13358 @@ +{ + "contractName": "AuditCriteriaManager", + "abi": [ + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "CriteriaIndex", + "type": "uint256" + }, + { + "indexed": false, + "name": "index", + "type": "uint256" + }, + { + "indexed": false, + "name": "CriteriaText", + "type": "string" + }, + { + "indexed": false, + "name": "maxScore", + "type": "uint256" + } + ], + "name": "LogNewCriteria", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "CriteriaIndex", + "type": "uint256" + }, + { + "indexed": false, + "name": "index", + "type": "uint256" + }, + { + "indexed": false, + "name": "CriteriaText", + "type": "string" + }, + { + "indexed": false, + "name": "maxScore", + "type": "uint256" + } + ], + "name": "LogUpdateCriteria", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "CriteriaIndex", + "type": "uint256" + }, + { + "indexed": false, + "name": "index", + "type": "uint256" + } + ], + "name": "LogDeleteCriteria", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "CriteriaIndex", + "type": "uint256" + }, + { + "indexed": false, + "name": "criteriaStatus", + "type": "bool" + } + ], + "name": "LogCriteriaStatusChange", + "type": "event" + }, + { + "constant": true, + "inputs": [ + { + "name": "indexExist", + "type": "uint256" + } + ], + "name": "isCriteria", + "outputs": [ + { + "name": "isIndeed", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "name": "newCriteriaText", + "type": "string" + }, + { + "name": "minScore", + "type": "uint256" + }, + { + "name": "maxScore", + "type": "uint256" + }, + { + "name": "isActive", + "type": "bool" + } + ], + "name": "insertCriteria", + "outputs": [ + { + "name": "index", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [], + "name": "deleteAllCriteria", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "name": "deleteCriteriaIndex", + "type": "uint256" + } + ], + "name": "deleteCriteria", + "outputs": [ + { + "name": "index", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "name": "criteriaIndex", + "type": "uint256" + } + ], + "name": "getCriteria", + "outputs": [ + { + "name": "criteriaText", + "type": "string" + }, + { + "name": "maxScore", + "type": "uint256" + }, + { + "name": "minScore", + "type": "uint256" + }, + { + "name": "isActive", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "name": "criteriaIndex", + "type": "uint256" + } + ], + "name": "getCriteriaText", + "outputs": [ + { + "name": "criteriaText", + "type": "string" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "name": "criteriaIndex", + "type": "uint256" + } + ], + "name": "getMaxScore", + "outputs": [ + { + "name": "maxScore", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "name": "criteriaIndex", + "type": "uint256" + } + ], + "name": "getMinScore", + "outputs": [ + { + "name": "minScore", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "name": "criteriaIndex", + "type": "uint256" + } + ], + "name": "getStatus", + "outputs": [ + { + "name": "isActive", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "name": "criteriaIndex", + "type": "uint256" + }, + { + "name": "criteriaText", + "type": "string" + } + ], + "name": "updateCriteriaText", + "outputs": [ + { + "name": "success", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "name": "index", + "type": "uint256" + }, + { + "name": "MaxScore", + "type": "uint256" + }, + { + "name": "MinScore", + "type": "uint256" + } + ], + "name": "updateMaxMinScore", + "outputs": [ + { + "name": "success", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "name": "index", + "type": "uint256" + }, + { + "name": "status", + "type": "bool" + } + ], + "name": "changeStatus", + "outputs": [ + { + "name": "success", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "getCriteriaCount", + "outputs": [ + { + "name": "count", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "name": "index", + "type": "uint256" + } + ], + "name": "getCriteriaAtIndex", + "outputs": [ + { + "name": "criteriaIndex", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + } + ], + "bytecode": "0x608060405234801561001057600080fd5b50610d05806100206000396000f3006080604052600436106100cf5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631afe0bbc81146100d45780632e70cbfd146100fb57806348d007c6146101135780635487193c1461018557806359b630d11461019c5780635c622a0e146101b45780636776c6bb146101cc57806372b4763c146101e45780638931828f146102025780638d15438e146102ab578063ae48388d14610313578063b60215931461032b578063d54d535b14610343578063fa2693b3146103d0575b600080fd5b3480156100e057600080fd5b506100e96103ed565b60408051918252519081900360200190f35b34801561010757600080fd5b506100e96004356103f4565b34801561011f57600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526101719583359536956044949193909101919081908401838280828437509497506104239650505050505050565b604080519115158252519081900360200190f35b34801561019157600080fd5b5061019a610527565b005b3480156101a857600080fd5b506100e9600435610535565b3480156101c057600080fd5b50610171600435610561565b3480156101d857600080fd5b506100e9600435610590565b3480156101f057600080fd5b506101716004356024356044356105b3565b34801561020e57600080fd5b5061021a6004356106b4565b604051808060200185815260200184815260200183151515158152602001828103825286818151815260200191508051906020019080838360005b8381101561026d578181015183820152602001610255565b50505050905090810190601f16801561029a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390f35b3480156102b757600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526100e99436949293602493928401919081908401838280828437509497505084359550505060208301359260400135151591506107909050565b34801561031f57600080fd5b506100e96004356108e4565b34801561033757600080fd5b50610171600435610a84565b34801561034f57600080fd5b5061035b600435610acc565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561039557818101518382015260200161037d565b50505050905090810190601f1680156103c25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103dc57600080fd5b506101716004356024351515610b7f565b6001545b90565b60006103ff82610a84565b151561040a57600080fd5b506000818152602081905260409020600201545b919050565b600061042e83610a84565b151561043957600080fd5b600083815260208181526040909120835161045692850190610bf7565b50600083815260208181526040808320600481015460029091015482518281529283018190526060838501818152885191850191909152875189967f0c1348932d85a8e6cd65504d996eec15538198f7f878b1ed1538b5e2a1af7a8b9694958a959093926080850192918701918190849084905b838110156104e25781810151838201526020016104ca565b50505050905090810190601f16801561050f5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a250600192915050565b61053360016000610c75565b565b600061054082610a84565b151561054b57600080fd5b5060009081526020819052604090206001015490565b600061056c82610a84565b151561057757600080fd5b5060009081526020819052604090206003015460ff1690565b60006001828154811015156105a157fe5b90600052602060002001549050919050565b60006105be84610a84565b15156105c957600080fd5b600084815260208181526040918290206002808201879055600180830187905560048301548551818152958601889052606094860185815284549283161561010002600019019092169290920493850184905288947f0c1348932d85a8e6cd65504d996eec15538198f7f878b1ed1538b5e2a1af7a8b9492939288929060808301908590801561069a5780601f1061066f5761010080835404028352916020019161069a565b820191906000526020600020905b81548152906001019060200180831161067d57829003601f168201915b505094505050505060405180910390a25060019392505050565b606060008060006106c485610a84565b15156106cf57600080fd5b600085815260208181526040918290206002808201546001808401546003850154855488516101009482161594909402600019011694909404601f81018790048702830187019097528682529395919460ff909316929091869183018282801561077a5780601f1061074f5761010080835404028352916020019161077a565b820191906000526020600020905b81548152906001019060200180831161075d57829003601f168201915b5050505050935093509350935093509193509193565b60008061079b6103ed565b60008181526020818152604090912088519293506107bd929091890190610bf7565b5060008181526020818152604080832060018082018a90556002820189905560038201805460ff191689151517905580548082019091557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf681018690556004909101819055815181815291820188905260608284018181528b51918401919091528a5186957f029b14de10d3e6ca536bbb8aae7ea299ced00c37fd6975e22c47d64288f575249593948d948c9491939192608085019291870191908190849084905b8381101561089757818101518382015260200161087f565b50505050905090810190601f1680156108c45780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a2505060015460001901949350505050565b60008060006108f284610a84565b15156108fd57600080fd5b6000848152602081905260409020600401546001805491935090600019810190811061092557fe5b906000526020600020015490508060018381548110151561094257fe5b600091825260208083209091019290925582815290819052604090206004018290556001805490610977906000198301610c96565b5060408051838152905185917f06368e3b045c241b21a8e84227a9a0171afcde2f84e8271f7b85f02e7c0074a8919081900360200190a26000818152602081815260409182902060028082015484518781529485018190526060938501848152835460001961010060018316150201169290920493850184905285947f0c1348932d85a8e6cd65504d996eec15538198f7f878b1ed1538b5e2a1af7a8b9488949390608083019085908015610a6d5780601f10610a4257610100808354040283529160200191610a6d565b820191906000526020600020905b815481529060010190602001808311610a5057829003601f168201915b505094505050505060405180910390a25092915050565b6001546000901515610a985750600061041e565b600082815260208190526040902060040154600180548492908110610ab957fe5b9060005260206000200154149050919050565b6060610ad782610a84565b1515610ae257600080fd5b6000828152602081815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084529091830182828015610b735780601f10610b4857610100808354040283529160200191610b73565b820191906000526020600020905b815481529060010190602001808311610b5657829003601f168201915b50505050509050919050565b6000610b8a83610a84565b1515610b9557600080fd5b60008381526020818152604091829020600301805460ff19168515151790819055825160ff90911615158152915185927f9b09c9cca318477de66c1408ea6804b392307d6447ccab407becad2fd19a6a6292908290030190a250600192915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610c3857805160ff1916838001178555610c65565b82800160010185558215610c65579182015b82811115610c65578251825591602001919060010190610c4a565b50610c71929150610cbf565b5090565b5080546000825590600052602060002090810190610c939190610cbf565b50565b815481835581811115610cba57600083815260209020610cba918101908301610cbf565b505050565b6103f191905b80821115610c715760008155600101610cc55600a165627a7a72305820cbbc41bd2ac778f3856aff03ace4c34d842a85c03a94a11b51e3f9dc54d5bce40029", + "deployedBytecode": "0x6080604052600436106100cf5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631afe0bbc81146100d45780632e70cbfd146100fb57806348d007c6146101135780635487193c1461018557806359b630d11461019c5780635c622a0e146101b45780636776c6bb146101cc57806372b4763c146101e45780638931828f146102025780638d15438e146102ab578063ae48388d14610313578063b60215931461032b578063d54d535b14610343578063fa2693b3146103d0575b600080fd5b3480156100e057600080fd5b506100e96103ed565b60408051918252519081900360200190f35b34801561010757600080fd5b506100e96004356103f4565b34801561011f57600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526101719583359536956044949193909101919081908401838280828437509497506104239650505050505050565b604080519115158252519081900360200190f35b34801561019157600080fd5b5061019a610527565b005b3480156101a857600080fd5b506100e9600435610535565b3480156101c057600080fd5b50610171600435610561565b3480156101d857600080fd5b506100e9600435610590565b3480156101f057600080fd5b506101716004356024356044356105b3565b34801561020e57600080fd5b5061021a6004356106b4565b604051808060200185815260200184815260200183151515158152602001828103825286818151815260200191508051906020019080838360005b8381101561026d578181015183820152602001610255565b50505050905090810190601f16801561029a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390f35b3480156102b757600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526100e99436949293602493928401919081908401838280828437509497505084359550505060208301359260400135151591506107909050565b34801561031f57600080fd5b506100e96004356108e4565b34801561033757600080fd5b50610171600435610a84565b34801561034f57600080fd5b5061035b600435610acc565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561039557818101518382015260200161037d565b50505050905090810190601f1680156103c25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103dc57600080fd5b506101716004356024351515610b7f565b6001545b90565b60006103ff82610a84565b151561040a57600080fd5b506000818152602081905260409020600201545b919050565b600061042e83610a84565b151561043957600080fd5b600083815260208181526040909120835161045692850190610bf7565b50600083815260208181526040808320600481015460029091015482518281529283018190526060838501818152885191850191909152875189967f0c1348932d85a8e6cd65504d996eec15538198f7f878b1ed1538b5e2a1af7a8b9694958a959093926080850192918701918190849084905b838110156104e25781810151838201526020016104ca565b50505050905090810190601f16801561050f5780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a250600192915050565b61053360016000610c75565b565b600061054082610a84565b151561054b57600080fd5b5060009081526020819052604090206001015490565b600061056c82610a84565b151561057757600080fd5b5060009081526020819052604090206003015460ff1690565b60006001828154811015156105a157fe5b90600052602060002001549050919050565b60006105be84610a84565b15156105c957600080fd5b600084815260208181526040918290206002808201879055600180830187905560048301548551818152958601889052606094860185815284549283161561010002600019019092169290920493850184905288947f0c1348932d85a8e6cd65504d996eec15538198f7f878b1ed1538b5e2a1af7a8b9492939288929060808301908590801561069a5780601f1061066f5761010080835404028352916020019161069a565b820191906000526020600020905b81548152906001019060200180831161067d57829003601f168201915b505094505050505060405180910390a25060019392505050565b606060008060006106c485610a84565b15156106cf57600080fd5b600085815260208181526040918290206002808201546001808401546003850154855488516101009482161594909402600019011694909404601f81018790048702830187019097528682529395919460ff909316929091869183018282801561077a5780601f1061074f5761010080835404028352916020019161077a565b820191906000526020600020905b81548152906001019060200180831161075d57829003601f168201915b5050505050935093509350935093509193509193565b60008061079b6103ed565b60008181526020818152604090912088519293506107bd929091890190610bf7565b5060008181526020818152604080832060018082018a90556002820189905560038201805460ff191689151517905580548082019091557fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf681018690556004909101819055815181815291820188905260608284018181528b51918401919091528a5186957f029b14de10d3e6ca536bbb8aae7ea299ced00c37fd6975e22c47d64288f575249593948d948c9491939192608085019291870191908190849084905b8381101561089757818101518382015260200161087f565b50505050905090810190601f1680156108c45780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a2505060015460001901949350505050565b60008060006108f284610a84565b15156108fd57600080fd5b6000848152602081905260409020600401546001805491935090600019810190811061092557fe5b906000526020600020015490508060018381548110151561094257fe5b600091825260208083209091019290925582815290819052604090206004018290556001805490610977906000198301610c96565b5060408051838152905185917f06368e3b045c241b21a8e84227a9a0171afcde2f84e8271f7b85f02e7c0074a8919081900360200190a26000818152602081815260409182902060028082015484518781529485018190526060938501848152835460001961010060018316150201169290920493850184905285947f0c1348932d85a8e6cd65504d996eec15538198f7f878b1ed1538b5e2a1af7a8b9488949390608083019085908015610a6d5780601f10610a4257610100808354040283529160200191610a6d565b820191906000526020600020905b815481529060010190602001808311610a5057829003601f168201915b505094505050505060405180910390a25092915050565b6001546000901515610a985750600061041e565b600082815260208190526040902060040154600180548492908110610ab957fe5b9060005260206000200154149050919050565b6060610ad782610a84565b1515610ae257600080fd5b6000828152602081815260409182902080548351601f600260001961010060018616150201909316929092049182018490048402810184019094528084529091830182828015610b735780601f10610b4857610100808354040283529160200191610b73565b820191906000526020600020905b815481529060010190602001808311610b5657829003601f168201915b50505050509050919050565b6000610b8a83610a84565b1515610b9557600080fd5b60008381526020818152604091829020600301805460ff19168515151790819055825160ff90911615158152915185927f9b09c9cca318477de66c1408ea6804b392307d6447ccab407becad2fd19a6a6292908290030190a250600192915050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610c3857805160ff1916838001178555610c65565b82800160010185558215610c65579182015b82811115610c65578251825591602001919060010190610c4a565b50610c71929150610cbf565b5090565b5080546000825590600052602060002090810190610c939190610cbf565b50565b815481835581811115610cba57600083815260209020610cba918101908301610cbf565b505050565b6103f191905b80821115610c715760008155600101610cc55600a165627a7a72305820cbbc41bd2ac778f3856aff03ace4c34d842a85c03a94a11b51e3f9dc54d5bce40029", + "sourceMap": "30:5025:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30:5025:0;;;;;;;", + "deployedSourceMap": "30:5025:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4792:116;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4792:116:0;;;;;;;;;;;;;;;;;;;;3020:202;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3020:202:0;;;;;3644:411;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3644:411:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3644:411:0;;-1:-1:-1;3644:411:0;;-1:-1:-1;;;;;;;3644:411:0;;;;;;;;;;;;;;;;;;;1608:72;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1608:72:0;;;;;;3228:202;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3228:202:0;;;;;3436:200;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3436:200:0;;;;;4914:136;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4914:136:0;;;;;4061:435;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4061:435:0;;;;;;;;;2373:409;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2373:409:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2373:409:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;903:699;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;903:699:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;903:699:0;;-1:-1:-1;;903:699:0;;;-1:-1:-1;;;903:699:0;;;;;;;;;;;-1:-1:-1;903:699:0;;-1:-1:-1;903:699:0;1686:681;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1686:681:0;;;;;678:219;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;678:219:0;;;;;2790:224;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2790:224:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2790:224:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4502:282;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4502:282:0;;;;;;;;;4792:116;4882:13;:20;4792:116;;:::o;3020:202::-;3097:13;3124:25;3135:13;3124:10;:25::i;:::-;3123:26;3119:40;;;3151:8;;;3119:40;-1:-1:-1;3176:15:0;:30;;;;;;;;;;:39;;;3020:202;;;;:::o;3644:411::-;3737:12;3763:25;3774:13;3763:10;:25::i;:::-;3762:26;3758:40;;;3790:8;;;3758:40;3807:15;:30;;;;;;;;;;;:58;;;;;;;;:::i;:::-;-1:-1:-1;3925:15:0;:30;;;;;;;;;;;:36;;;;3991:39;;;;;3877:154;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3903:13;;3877:154;;3925:36;;3970:12;;3877:154;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;3877:154:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4045:4:0;3644:411;;;;:::o;1608:72::-;1654:20;1661:13;;1654:20;:::i;:::-;1608:72::o;3228:202::-;3305:13;3332:25;3343:13;3332:10;:25::i;:::-;3331:26;3327:40;;;3359:8;;;3327:40;-1:-1:-1;3384:15:0;:30;;;;;;;;;;:39;;;;3228:202::o;3436:200::-;3511:13;3538:25;3549:13;3538:10;:25::i;:::-;3537:26;3533:40;;;3565:8;;;3533:40;-1:-1:-1;3590:15:0;:30;;;;;;;;;;:39;;;;;;3436:200::o;4914:136::-;4987:21;5024:13;5038:5;5024:20;;;;;;;;;;;;;;;;;;5017:27;;4914:136;;;:::o;4061:435::-;4154:12;4180:17;4191:5;4180:10;:17::i;:::-;4179:18;4175:32;;;4199:8;;;4175:32;4216:15;:22;;;;;;;;;;;;:31;;;;:42;;;4265:31;;;;:42;;;4359:28;;;;4319:153;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;4319:153:0;;;;;;;;;;;;;;4216:22;;4319:153;;4359:28;;4216:22;4265:42;;4319:153;;;;;4216:22;;4319:153;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4486:4:0;4061:435;;;;;:::o;2373:409::-;2450:19;2471:13;2486;2501;2528:25;2539:13;2528:10;:25::i;:::-;2527:26;2523:40;;;2555:8;;;2523:40;2588:15;:30;;;;;;;;;;;;2640:39;;;;;2688;;;;;2736;;;;2572:204;;;;2736:39;2572:204;;;;;;;;-1:-1:-1;;2572:204:0;;;;;;;;;;;;;;;;;;;;;;;;2588:30;;2640:39;;2736;;;;;2572:204;;2588:30;;2572:204;;2588:30;2572:204;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2373:409;;;;;:::o;903:699::-;1038:13;1060:20;1083:18;:16;:18::i;:::-;1108:15;:29;;;;;;;;;;;:60;;1060:41;;-1:-1:-1;1108:60:0;;:29;;:60;;;;:::i;:::-;-1:-1:-1;1175:15:0;:29;;;;;;;;;;;:38;;;;:49;;;1231:38;;;:49;;;1287:38;;;:49;;-1:-1:-1;;1287:49:0;;;;;;;27:10:-1;;23:18;;;45:23;;;1387:32:0;;;;;;1349:35;;;;:74;;;1437:121;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1175:29;;1437:121;;27:10:-1;;1437:121:0;;1231:49;;1437:121;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1437:121:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1595:1:0;1572:20;-1:-1:-1;;1572:24:0;;903:699;-1:-1:-1;;;;903:699:0:o;1686:681::-;1760:13;1837:19;1908:17;1787:31;1798:19;1787:10;:31::i;:::-;1786:32;1782:46;;;1820:8;;;1782:46;1859:15;:36;;;;;;;;;;:42;;;1930:13;1944:20;;1859:42;;-1:-1:-1;1930:13:0;-1:-1:-1;;1944:24:0;;;1930:39;;;;;;;;;;;;;;1908:61;;2005:9;1976:13;1990:11;1976:26;;;;;;;;;;;;;;;;;;;;;:38;;;;2021:26;;;;;;;;;;:32;;:46;;;2074:13;:22;;;;;-1:-1:-1;;2074:22:0;;;:::i;:::-;-1:-1:-1;2110:66:0;;;;;;;;2136:19;;2110:66;;;;;;;;;;2252:15;:26;;;;;;;;;;;;2300:35;;;;;2188:148;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2188:148:0;;;;;;;;;;;;;;;;;;2214:9;;2188:148;;2232:11;;2252:26;2188:148;;;;;2252:26;;2188:148;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2350:11:0;1686:681;-1:-1:-1;;1686:681:0:o;678:219::-;774:13;:20;748:13;;774:25;770:43;;;-1:-1:-1;808:5:0;801:12;;770:43;842:15;:27;;;;;;;;;;:33;;;828:13;:48;;880:10;;842:33;828:48;;;;;;;;;;;;;;:62;820:71;;678:219;;;:::o;2790:224::-;2871:19;2904:25;2915:13;2904:10;:25::i;:::-;2903:26;2899:40;;;2931:8;;;2899:40;2964:15;:30;;;;;;;;;;;;2948:60;;;;;;-1:-1:-1;;2948:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2964:30;;2948:60;;2964:30;2948:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2790:224;;;:::o;4502:282::-;4573:12;4599:17;4610:5;4599:10;:17::i;:::-;4598:18;4594:32;;;4618:8;;;4594:32;4635:15;:22;;;;;;;;;;;;:31;;:40;;-1:-1:-1;;4635:40:0;;;;;;;;;4689:71;;4635:40;4728:31;;;4689:71;;;;;;4635:22;;4689:71;;;;;;;;;-1:-1:-1;4774:4:0;4502:282;;;;:::o;30:5025::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30:5025:0;;;-1:-1:-1;30:5025:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;;;;;", + "source": "pragma solidity ^ 0.4 .18;\r\n\r\ncontract AuditCriteriaManager {\r\n\r\n struct CriteriaStruct {\r\n string criteriaText;\r\n uint minScore;\r\n uint maxScore;\r\n bool isActive;\r\n uint256 index;\r\n }\r\n\r\n mapping(uint256 => CriteriaStruct) private CriteriaStructs;\r\n uint256[] private CriteriaIndex;\r\n\r\n event LogNewCriteria(uint256 indexed CriteriaIndex, uint index, string CriteriaText, uint maxScore);\r\n event LogUpdateCriteria(uint256 indexed CriteriaIndex, uint index, string CriteriaText, uint maxScore);\r\n event LogDeleteCriteria(uint256 indexed CriteriaIndex, uint index);\r\n event LogCriteriaStatusChange(uint256 indexed CriteriaIndex, bool criteriaStatus);\r\n\r\n function isCriteria(uint indexExist)\r\n public\r\n constant\r\n returns(bool isIndeed) {\r\n if (CriteriaIndex.length == 0) return false;\r\n return (CriteriaIndex[CriteriaStructs[indexExist].index] == indexExist);\r\n }\r\n\r\n function insertCriteria(\r\n string newCriteriaText,\r\n uint minScore,\r\n uint maxScore,\r\n bool isActive)\r\n public\r\n returns(uint256 index) {\r\n uint256 currentIndex = getCriteriaCount();\r\n CriteriaStructs[currentIndex].criteriaText = newCriteriaText;\r\n CriteriaStructs[currentIndex].minScore = minScore;\r\n CriteriaStructs[currentIndex].maxScore = maxScore;\r\n CriteriaStructs[currentIndex].isActive = isActive;\r\n \r\n CriteriaStructs[currentIndex].index = CriteriaIndex.push(currentIndex) - 1;\r\n\r\n emit LogNewCriteria(\r\n currentIndex,\r\n CriteriaStructs[currentIndex].index,\r\n newCriteriaText,\r\n maxScore);\r\n return CriteriaIndex.length - 1;\r\n }\r\n\r\n function deleteAllCriteria() public\r\n {\r\n delete CriteriaIndex;\r\n }\r\n\r\n function deleteCriteria(uint256 deleteCriteriaIndex)\r\n public\r\n returns(uint256 index) {\r\n if (!isCriteria(deleteCriteriaIndex)) revert();\r\n\r\n uint256 rowToDelete = CriteriaStructs[deleteCriteriaIndex].index;\r\n uint256 keyToMove = CriteriaIndex[CriteriaIndex.length - 1];\r\n CriteriaIndex[rowToDelete] = keyToMove;\r\n CriteriaStructs[keyToMove].index = rowToDelete;\r\n CriteriaIndex.length--;\r\n\r\n emit LogDeleteCriteria(\r\n deleteCriteriaIndex,\r\n rowToDelete);\r\n emit LogUpdateCriteria(\r\n keyToMove,\r\n rowToDelete,\r\n CriteriaStructs[keyToMove].criteriaText,\r\n CriteriaStructs[keyToMove].maxScore);\r\n return rowToDelete;\r\n }\r\n\r\n function getCriteria(uint256 criteriaIndex)\r\n public\r\n constant\r\n returns(string criteriaText, uint maxScore, uint minScore, bool isActive) {\r\n if (!isCriteria(criteriaIndex)) revert();\r\n\r\n return (\r\n CriteriaStructs[criteriaIndex].criteriaText,\r\n CriteriaStructs[criteriaIndex].maxScore,\r\n CriteriaStructs[criteriaIndex].minScore,\r\n CriteriaStructs[criteriaIndex].isActive);\r\n }\r\n\r\n\r\n function getCriteriaText(uint256 criteriaIndex)\r\n public\r\n constant\r\n returns(string criteriaText) {\r\n if (!isCriteria(criteriaIndex)) revert();\r\n\r\n return (\r\n CriteriaStructs[criteriaIndex].criteriaText);\r\n }\r\n\r\n function getMaxScore(uint256 criteriaIndex)\r\n public\r\n constant\r\n returns(uint maxScore) {\r\n if (!isCriteria(criteriaIndex)) revert();\r\n\r\n return (CriteriaStructs[criteriaIndex].maxScore);\r\n }\r\n\r\n function getMinScore(uint256 criteriaIndex)\r\n public\r\n constant\r\n returns(uint minScore) {\r\n if (!isCriteria(criteriaIndex)) revert();\r\n\r\n return (CriteriaStructs[criteriaIndex].minScore);\r\n }\r\n\r\n function getStatus(uint256 criteriaIndex)\r\n public\r\n constant\r\n returns(bool isActive) {\r\n if (!isCriteria(criteriaIndex)) revert();\r\n\r\n return (CriteriaStructs[criteriaIndex].isActive);\r\n } \r\n\r\n function updateCriteriaText(uint256 criteriaIndex, string criteriaText)\r\n public\r\n returns(bool success) {\r\n if (!isCriteria(criteriaIndex)) revert();\r\n\r\n CriteriaStructs[criteriaIndex].criteriaText = criteriaText;\r\n emit LogUpdateCriteria(\r\n criteriaIndex,\r\n CriteriaStructs[criteriaIndex].index,\r\n criteriaText,\r\n CriteriaStructs[criteriaIndex].maxScore);\r\n return true;\r\n }\r\n\r\n function updateMaxMinScore(uint256 index, uint MaxScore, uint MinScore)\r\n public\r\n returns(bool success) {\r\n if (!isCriteria(index)) revert();\r\n\r\n CriteriaStructs[index].maxScore = MaxScore;\r\n CriteriaStructs[index].minScore = MinScore;\r\n emit LogUpdateCriteria(\r\n index,\r\n CriteriaStructs[index].index,\r\n CriteriaStructs[index].criteriaText,\r\n CriteriaStructs[index].minScore);\r\n return true;\r\n }\r\n\r\n function changeStatus(uint256 index, bool status)\r\n public\r\n returns(bool success) {\r\n if (!isCriteria(index)) revert();\r\n\r\n CriteriaStructs[index].isActive = status;\r\n\r\n emit LogCriteriaStatusChange(\r\n index, CriteriaStructs[index].isActive);\r\n return true;\r\n }\r\n\r\n\r\n function getCriteriaCount()\r\n public\r\n constant\r\n returns(uint256 count) {\r\n return CriteriaIndex.length;\r\n }\r\n\r\n function getCriteriaAtIndex(uint index)\r\n public\r\n constant\r\n returns(uint256 criteriaIndex) {\r\n return CriteriaIndex[index];\r\n }\r\n\r\n}", + "sourcePath": "C:\\i\\HT\\hellonetmarket\\ethereum\\contracts\\AuditCriteriaManager.sol", + "ast": { + "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/AuditCriteriaManager.sol", + "exportedSymbols": { + "AuditCriteriaManager": [ + 504 + ] + }, + "id": 505, + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 1, + "literals": [ + "solidity", + "^", + "0.4", + ".18" + ], + "nodeType": "PragmaDirective", + "src": "0:26:0" + }, + { + "baseContracts": [], + "contractDependencies": [], + "contractKind": "contract", + "documentation": null, + "fullyImplemented": true, + "id": 504, + "linearizedBaseContracts": [ + 504 + ], + "name": "AuditCriteriaManager", + "nodeType": "ContractDefinition", + "nodes": [ + { + "canonicalName": "AuditCriteriaManager.CriteriaStruct", + "id": 12, + "members": [ + { + "constant": false, + "id": 3, + "name": "criteriaText", + "nodeType": "VariableDeclaration", + "scope": 12, + "src": "96:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + }, + "typeName": { + "id": 2, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "96:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 5, + "name": "minScore", + "nodeType": "VariableDeclaration", + "scope": 12, + "src": "122:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 4, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "122:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 7, + "name": "maxScore", + "nodeType": "VariableDeclaration", + "scope": 12, + "src": "142:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 6, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "142:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 9, + "name": "isActive", + "nodeType": "VariableDeclaration", + "scope": 12, + "src": "162:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 8, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "162:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 11, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 12, + "src": "182:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 10, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "182:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "name": "CriteriaStruct", + "nodeType": "StructDefinition", + "scope": 504, + "src": "67:134:0", + "visibility": "public" + }, + { + "constant": false, + "id": 16, + "name": "CriteriaStructs", + "nodeType": "VariableDeclaration", + "scope": 504, + "src": "207:58:0", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct)" + }, + "typeName": { + "id": 15, + "keyType": { + "id": 13, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "215:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Mapping", + "src": "207:34:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct)" + }, + "valueType": { + "contractScope": null, + "id": 14, + "name": "CriteriaStruct", + "nodeType": "UserDefinedTypeName", + "referencedDeclaration": 12, + "src": "226:14:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage_ptr", + "typeString": "struct AuditCriteriaManager.CriteriaStruct" + } + } + }, + "value": null, + "visibility": "private" + }, + { + "constant": false, + "id": 19, + "name": "CriteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 504, + "src": "270:31:0", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[]" + }, + "typeName": { + "baseType": { + "id": 17, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "270:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 18, + "length": null, + "nodeType": "ArrayTypeName", + "src": "270:9:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", + "typeString": "uint256[]" + } + }, + "value": null, + "visibility": "private" + }, + { + "anonymous": false, + "documentation": null, + "id": 29, + "name": "LogNewCriteria", + "nodeType": "EventDefinition", + "parameters": { + "id": 28, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 21, + "indexed": true, + "name": "CriteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 29, + "src": "329:29:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 20, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "329:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 23, + "indexed": false, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 29, + "src": "360:10:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 22, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "360:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 25, + "indexed": false, + "name": "CriteriaText", + "nodeType": "VariableDeclaration", + "scope": 29, + "src": "372:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 24, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "372:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 27, + "indexed": false, + "name": "maxScore", + "nodeType": "VariableDeclaration", + "scope": 29, + "src": "393:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 26, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "393:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "328:79:0" + }, + "src": "308:100:0" + }, + { + "anonymous": false, + "documentation": null, + "id": 39, + "name": "LogUpdateCriteria", + "nodeType": "EventDefinition", + "parameters": { + "id": 38, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 31, + "indexed": true, + "name": "CriteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 39, + "src": "436:29:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 30, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "436:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 33, + "indexed": false, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 39, + "src": "467:10:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 32, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "467:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 35, + "indexed": false, + "name": "CriteriaText", + "nodeType": "VariableDeclaration", + "scope": 39, + "src": "479:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 34, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "479:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 37, + "indexed": false, + "name": "maxScore", + "nodeType": "VariableDeclaration", + "scope": 39, + "src": "500:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 36, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "500:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "435:79:0" + }, + "src": "412:103:0" + }, + { + "anonymous": false, + "documentation": null, + "id": 45, + "name": "LogDeleteCriteria", + "nodeType": "EventDefinition", + "parameters": { + "id": 44, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 41, + "indexed": true, + "name": "CriteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 45, + "src": "543:29:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 40, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "543:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 43, + "indexed": false, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 45, + "src": "574:10:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 42, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "574:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "542:43:0" + }, + "src": "519:67:0" + }, + { + "anonymous": false, + "documentation": null, + "id": 51, + "name": "LogCriteriaStatusChange", + "nodeType": "EventDefinition", + "parameters": { + "id": 50, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 47, + "indexed": true, + "name": "CriteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 51, + "src": "620:29:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 46, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "620:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 49, + "indexed": false, + "name": "criteriaStatus", + "nodeType": "VariableDeclaration", + "scope": 51, + "src": "651:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 48, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "651:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "619:52:0" + }, + "src": "590:82:0" + }, + { + "body": { + "id": 75, + "nodeType": "Block", + "src": "763:134:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 61, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 58, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "774:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 59, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "774:20:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "30", + "id": 60, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "798:1:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "774:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 64, + "nodeType": "IfStatement", + "src": "770:43:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "hexValue": "66616c7365", + "id": 62, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "808:5:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "functionReturnParameters": 57, + "id": 63, + "nodeType": "Return", + "src": "801:12:0" + } + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 72, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 65, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "828:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 70, + "indexExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 66, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "842:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 68, + "indexExpression": { + "argumentTypes": null, + "id": 67, + "name": "indexExist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 53, + "src": "858:10:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "842:27:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 69, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "842:33:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "828:48:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "id": 71, + "name": "indexExist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 53, + "src": "880:10:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "828:62:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 73, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "827:64:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "functionReturnParameters": 57, + "id": 74, + "nodeType": "Return", + "src": "820:71:0" + } + ] + }, + "documentation": null, + "id": 76, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "isCriteria", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 54, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 53, + "name": "indexExist", + "nodeType": "VariableDeclaration", + "scope": 76, + "src": "698:15:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 52, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "698:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "697:17:0" + }, + "payable": false, + "returnParameters": { + "id": 57, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 56, + "name": "isIndeed", + "nodeType": "VariableDeclaration", + "scope": 76, + "src": "748:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 55, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "748:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "747:15:0" + }, + "scope": 504, + "src": "678:219:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 149, + "nodeType": "Block", + "src": "1053:549:0", + "statements": [ + { + "assignments": [ + 90 + ], + "declarations": [ + { + "constant": false, + "id": 90, + "name": "currentIndex", + "nodeType": "VariableDeclaration", + "scope": 150, + "src": "1060:20:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 89, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1060:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 93, + "initialValue": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 91, + "name": "getCriteriaCount", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 491, + "src": "1083:16:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 92, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1083:18:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "1060:41:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 99, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 94, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1108:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 96, + "indexExpression": { + "argumentTypes": null, + "id": 95, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1124:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1108:29:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 97, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "criteriaText", + "nodeType": "MemberAccess", + "referencedDeclaration": 3, + "src": "1108:42:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 98, + "name": "newCriteriaText", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 78, + "src": "1153:15:0", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "1108:60:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 100, + "nodeType": "ExpressionStatement", + "src": "1108:60:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 106, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 101, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1175:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 103, + "indexExpression": { + "argumentTypes": null, + "id": 102, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1191:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1175:29:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 104, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "minScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 5, + "src": "1175:38:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 105, + "name": "minScore", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 80, + "src": "1216:8:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "1175:49:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 107, + "nodeType": "ExpressionStatement", + "src": "1175:49:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 113, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 108, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1231:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 110, + "indexExpression": { + "argumentTypes": null, + "id": 109, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1247:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1231:29:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 111, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "maxScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 7, + "src": "1231:38:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 112, + "name": "maxScore", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 82, + "src": "1272:8:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "1231:49:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 114, + "nodeType": "ExpressionStatement", + "src": "1231:49:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 120, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 115, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1287:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 117, + "indexExpression": { + "argumentTypes": null, + "id": 116, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1303:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1287:29:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 118, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "isActive", + "nodeType": "MemberAccess", + "referencedDeclaration": 9, + "src": "1287:38:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 119, + "name": "isActive", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 84, + "src": "1328:8:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "1287:49:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 121, + "nodeType": "ExpressionStatement", + "src": "1287:49:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 132, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 122, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1349:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 124, + "indexExpression": { + "argumentTypes": null, + "id": 123, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1365:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1349:29:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 125, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "1349:35:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 131, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 128, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1406:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "expression": { + "argumentTypes": null, + "id": 126, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "1387:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 127, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "push", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "1387:18:0", + "typeDescriptions": { + "typeIdentifier": "t_function_arraypush_nonpayable$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (uint256) returns (uint256)" + } + }, + "id": 129, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1387:32:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "argumentTypes": null, + "hexValue": "31", + "id": 130, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1422:1:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "1387:36:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "1349:74:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 133, + "nodeType": "ExpressionStatement", + "src": "1349:74:0" + }, + { + "eventCall": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 135, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1460:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 136, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1481:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 138, + "indexExpression": { + "argumentTypes": null, + "id": 137, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1497:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1481:29:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 139, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "1481:35:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "id": 140, + "name": "newCriteriaText", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 78, + "src": "1525:15:0", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + { + "argumentTypes": null, + "id": 141, + "name": "maxScore", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 82, + "src": "1549:8:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 134, + "name": "LogNewCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 29, + "src": "1437:14:0", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$_t_uint256_$returns$__$", + "typeString": "function (uint256,uint256,string memory,uint256)" + } + }, + "id": 142, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1437:121:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 143, + "nodeType": "EmitStatement", + "src": "1432:126:0" + }, + { + "expression": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 147, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 144, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "1572:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 145, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "1572:20:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "argumentTypes": null, + "hexValue": "31", + "id": 146, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1595:1:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "1572:24:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 88, + "id": 148, + "nodeType": "Return", + "src": "1565:31:0" + } + ] + }, + "documentation": null, + "id": 150, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "insertCriteria", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 85, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 78, + "name": "newCriteriaText", + "nodeType": "VariableDeclaration", + "scope": 150, + "src": "933:22:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 77, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "933:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 80, + "name": "minScore", + "nodeType": "VariableDeclaration", + "scope": 150, + "src": "962:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 79, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "962:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 82, + "name": "maxScore", + "nodeType": "VariableDeclaration", + "scope": 150, + "src": "982:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 81, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "982:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 84, + "name": "isActive", + "nodeType": "VariableDeclaration", + "scope": 150, + "src": "1002:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 83, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "1002:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "926:90:0" + }, + "payable": false, + "returnParameters": { + "id": 88, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 87, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 150, + "src": "1038:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 86, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1038:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "1037:15:0" + }, + "scope": 504, + "src": "903:699:0", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 156, + "nodeType": "Block", + "src": "1647:33:0", + "statements": [ + { + "expression": { + "argumentTypes": null, + "id": 154, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "1654:20:0", + "subExpression": { + "argumentTypes": null, + "id": 153, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "1661:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 155, + "nodeType": "ExpressionStatement", + "src": "1654:20:0" + } + ] + }, + "documentation": null, + "id": 157, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "deleteAllCriteria", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 151, + "nodeType": "ParameterList", + "parameters": [], + "src": "1634:2:0" + }, + "payable": false, + "returnParameters": { + "id": 152, + "nodeType": "ParameterList", + "parameters": [], + "src": "1647:0:0" + }, + "scope": 504, + "src": "1608:72:0", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 226, + "nodeType": "Block", + "src": "1775:592:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 167, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "1786:32:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 165, + "name": "deleteCriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 159, + "src": "1798:19:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 164, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "1787:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 166, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1787:31:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 171, + "nodeType": "IfStatement", + "src": "1782:46:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 168, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "1820:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 169, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1820:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 170, + "nodeType": "ExpressionStatement", + "src": "1820:8:0" + } + }, + { + "assignments": [ + 173 + ], + "declarations": [ + { + "constant": false, + "id": 173, + "name": "rowToDelete", + "nodeType": "VariableDeclaration", + "scope": 227, + "src": "1837:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 172, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1837:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 178, + "initialValue": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 174, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1859:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 176, + "indexExpression": { + "argumentTypes": null, + "id": 175, + "name": "deleteCriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 159, + "src": "1875:19:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1859:36:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 177, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "1859:42:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "1837:64:0" + }, + { + "assignments": [ + 180 + ], + "declarations": [ + { + "constant": false, + "id": 180, + "name": "keyToMove", + "nodeType": "VariableDeclaration", + "scope": 227, + "src": "1908:17:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 179, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1908:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 187, + "initialValue": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 181, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "1930:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 186, + "indexExpression": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 185, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 182, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "1944:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 183, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "1944:20:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "argumentTypes": null, + "hexValue": "31", + "id": 184, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1967:1:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "1944:24:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1930:39:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "1908:61:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 192, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 188, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "1976:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 190, + "indexExpression": { + "argumentTypes": null, + "id": 189, + "name": "rowToDelete", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 173, + "src": "1990:11:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "1976:26:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 191, + "name": "keyToMove", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 180, + "src": "2005:9:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "1976:38:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 193, + "nodeType": "ExpressionStatement", + "src": "1976:38:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 199, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 194, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2021:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 196, + "indexExpression": { + "argumentTypes": null, + "id": 195, + "name": "keyToMove", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 180, + "src": "2037:9:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2021:26:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 197, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "2021:32:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 198, + "name": "rowToDelete", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 173, + "src": "2056:11:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "2021:46:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 200, + "nodeType": "ExpressionStatement", + "src": "2021:46:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 204, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "--", + "prefix": false, + "src": "2074:22:0", + "subExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 201, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "2074:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 203, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "2074:20:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 205, + "nodeType": "ExpressionStatement", + "src": "2074:22:0" + }, + { + "eventCall": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 207, + "name": "deleteCriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 159, + "src": "2136:19:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "id": 208, + "name": "rowToDelete", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 173, + "src": "2164:11:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 206, + "name": "LogDeleteCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 45, + "src": "2110:17:0", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (uint256,uint256)" + } + }, + "id": 209, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2110:66:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 210, + "nodeType": "EmitStatement", + "src": "2105:71:0" + }, + { + "eventCall": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 212, + "name": "keyToMove", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 180, + "src": "2214:9:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "id": 213, + "name": "rowToDelete", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 173, + "src": "2232:11:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 214, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2252:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 216, + "indexExpression": { + "argumentTypes": null, + "id": 215, + "name": "keyToMove", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 180, + "src": "2268:9:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2252:26:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 217, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "criteriaText", + "nodeType": "MemberAccess", + "referencedDeclaration": 3, + "src": "2252:39:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 218, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2300:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 220, + "indexExpression": { + "argumentTypes": null, + "id": 219, + "name": "keyToMove", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 180, + "src": "2316:9:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2300:26:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 221, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "maxScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 7, + "src": "2300:35:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 211, + "name": "LogUpdateCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 39, + "src": "2188:17:0", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$_t_uint256_$returns$__$", + "typeString": "function (uint256,uint256,string memory,uint256)" + } + }, + "id": 222, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2188:148:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 223, + "nodeType": "EmitStatement", + "src": "2183:153:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 224, + "name": "rowToDelete", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 173, + "src": "2350:11:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 163, + "id": 225, + "nodeType": "Return", + "src": "2343:18:0" + } + ] + }, + "documentation": null, + "id": 227, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "deleteCriteria", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 160, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 159, + "name": "deleteCriteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 227, + "src": "1710:27:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 158, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1710:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "1709:29:0" + }, + "payable": false, + "returnParameters": { + "id": 163, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 162, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 227, + "src": "1760:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 161, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1760:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "1759:15:0" + }, + "scope": 504, + "src": "1686:681:0", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 266, + "nodeType": "Block", + "src": "2516:266:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 243, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "2527:26:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 241, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 229, + "src": "2539:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 240, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "2528:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 242, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2528:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 247, + "nodeType": "IfStatement", + "src": "2523:40:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 244, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "2555:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 245, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2555:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 246, + "nodeType": "ExpressionStatement", + "src": "2555:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 248, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2588:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 250, + "indexExpression": { + "argumentTypes": null, + "id": 249, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 229, + "src": "2604:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2588:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 251, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "criteriaText", + "nodeType": "MemberAccess", + "referencedDeclaration": 3, + "src": "2588:43:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 252, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2640:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 254, + "indexExpression": { + "argumentTypes": null, + "id": 253, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 229, + "src": "2656:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2640:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 255, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "maxScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 7, + "src": "2640:39:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 256, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2688:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 258, + "indexExpression": { + "argumentTypes": null, + "id": 257, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 229, + "src": "2704:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2688:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 259, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "minScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 5, + "src": "2688:39:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 260, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2736:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 262, + "indexExpression": { + "argumentTypes": null, + "id": 261, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 229, + "src": "2752:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2736:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 263, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "isActive", + "nodeType": "MemberAccess", + "referencedDeclaration": 9, + "src": "2736:39:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 264, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2579:197:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$_t_string_storage_$_t_uint256_$_t_uint256_$_t_bool_$", + "typeString": "tuple(string storage ref,uint256,uint256,bool)" + } + }, + "functionReturnParameters": 239, + "id": 265, + "nodeType": "Return", + "src": "2572:204:0" + } + ] + }, + "documentation": null, + "id": 267, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getCriteria", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 230, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 229, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 267, + "src": "2394:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 228, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2394:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "2393:23:0" + }, + "payable": false, + "returnParameters": { + "id": 239, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 232, + "name": "criteriaText", + "nodeType": "VariableDeclaration", + "scope": 267, + "src": "2450:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 231, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "2450:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 234, + "name": "maxScore", + "nodeType": "VariableDeclaration", + "scope": 267, + "src": "2471:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 233, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "2471:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 236, + "name": "minScore", + "nodeType": "VariableDeclaration", + "scope": 267, + "src": "2486:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 235, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "2486:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 238, + "name": "isActive", + "nodeType": "VariableDeclaration", + "scope": 267, + "src": "2501:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 237, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "2501:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "2449:66:0" + }, + "scope": 504, + "src": "2373:409:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 288, + "nodeType": "Block", + "src": "2892:122:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 277, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "2903:26:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 275, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 269, + "src": "2915:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 274, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "2904:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 276, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2904:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 281, + "nodeType": "IfStatement", + "src": "2899:40:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 278, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "2931:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 279, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2931:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 280, + "nodeType": "ExpressionStatement", + "src": "2931:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 282, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2964:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 284, + "indexExpression": { + "argumentTypes": null, + "id": 283, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 269, + "src": "2980:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2964:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 285, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "criteriaText", + "nodeType": "MemberAccess", + "referencedDeclaration": 3, + "src": "2964:43:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + } + ], + "id": 286, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2955:53:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "functionReturnParameters": 273, + "id": 287, + "nodeType": "Return", + "src": "2948:60:0" + } + ] + }, + "documentation": null, + "id": 289, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getCriteriaText", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 270, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 269, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 289, + "src": "2815:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 268, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2815:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "2814:23:0" + }, + "payable": false, + "returnParameters": { + "id": 273, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 272, + "name": "criteriaText", + "nodeType": "VariableDeclaration", + "scope": 289, + "src": "2871:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 271, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "2871:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "2870:21:0" + }, + "scope": 504, + "src": "2790:224:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 310, + "nodeType": "Block", + "src": "3112:110:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 299, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "3123:26:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 297, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 291, + "src": "3135:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 296, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "3124:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 298, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3124:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 303, + "nodeType": "IfStatement", + "src": "3119:40:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 300, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "3151:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 301, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3151:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 302, + "nodeType": "ExpressionStatement", + "src": "3151:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 304, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "3176:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 306, + "indexExpression": { + "argumentTypes": null, + "id": 305, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 291, + "src": "3192:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3176:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 307, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "maxScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 7, + "src": "3176:39:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 308, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "3175:41:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 295, + "id": 309, + "nodeType": "Return", + "src": "3168:48:0" + } + ] + }, + "documentation": null, + "id": 311, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getMaxScore", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 292, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 291, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 311, + "src": "3041:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 290, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3041:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3040:23:0" + }, + "payable": false, + "returnParameters": { + "id": 295, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 294, + "name": "maxScore", + "nodeType": "VariableDeclaration", + "scope": 311, + "src": "3097:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 293, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "3097:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3096:15:0" + }, + "scope": 504, + "src": "3020:202:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 332, + "nodeType": "Block", + "src": "3320:110:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 321, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "3331:26:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 319, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 313, + "src": "3343:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 318, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "3332:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 320, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3332:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 325, + "nodeType": "IfStatement", + "src": "3327:40:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 322, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "3359:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 323, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3359:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 324, + "nodeType": "ExpressionStatement", + "src": "3359:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 326, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "3384:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 328, + "indexExpression": { + "argumentTypes": null, + "id": 327, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 313, + "src": "3400:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3384:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 329, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "minScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 5, + "src": "3384:39:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 330, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "3383:41:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 317, + "id": 331, + "nodeType": "Return", + "src": "3376:48:0" + } + ] + }, + "documentation": null, + "id": 333, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getMinScore", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 314, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 313, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 333, + "src": "3249:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 312, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3249:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3248:23:0" + }, + "payable": false, + "returnParameters": { + "id": 317, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 316, + "name": "minScore", + "nodeType": "VariableDeclaration", + "scope": 333, + "src": "3305:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 315, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "3305:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3304:15:0" + }, + "scope": 504, + "src": "3228:202:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 354, + "nodeType": "Block", + "src": "3526:110:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 343, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "3537:26:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 341, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 335, + "src": "3549:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 340, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "3538:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 342, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3538:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 347, + "nodeType": "IfStatement", + "src": "3533:40:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 344, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "3565:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 345, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3565:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 346, + "nodeType": "ExpressionStatement", + "src": "3565:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 348, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "3590:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 350, + "indexExpression": { + "argumentTypes": null, + "id": 349, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 335, + "src": "3606:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3590:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 351, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "isActive", + "nodeType": "MemberAccess", + "referencedDeclaration": 9, + "src": "3590:39:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 352, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "3589:41:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "functionReturnParameters": 339, + "id": 353, + "nodeType": "Return", + "src": "3582:48:0" + } + ] + }, + "documentation": null, + "id": 355, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getStatus", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 336, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 335, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 355, + "src": "3455:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 334, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3455:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3454:23:0" + }, + "payable": false, + "returnParameters": { + "id": 339, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 338, + "name": "isActive", + "nodeType": "VariableDeclaration", + "scope": 355, + "src": "3511:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 337, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3511:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3510:15:0" + }, + "scope": 504, + "src": "3436:200:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 394, + "nodeType": "Block", + "src": "3751:304:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 367, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "3762:26:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 365, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 357, + "src": "3774:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 364, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "3763:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 366, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3763:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 371, + "nodeType": "IfStatement", + "src": "3758:40:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 368, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "3790:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 369, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3790:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 370, + "nodeType": "ExpressionStatement", + "src": "3790:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "id": 377, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 372, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "3807:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 374, + "indexExpression": { + "argumentTypes": null, + "id": 373, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 357, + "src": "3823:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3807:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 375, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "criteriaText", + "nodeType": "MemberAccess", + "referencedDeclaration": 3, + "src": "3807:43:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 376, + "name": "criteriaText", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 359, + "src": "3853:12:0", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "3807:58:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 378, + "nodeType": "ExpressionStatement", + "src": "3807:58:0" + }, + { + "eventCall": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 380, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 357, + "src": "3903:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 381, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "3925:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 383, + "indexExpression": { + "argumentTypes": null, + "id": 382, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 357, + "src": "3941:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3925:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 384, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "3925:36:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "id": 385, + "name": "criteriaText", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 359, + "src": "3970:12:0", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 386, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "3991:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 388, + "indexExpression": { + "argumentTypes": null, + "id": 387, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 357, + "src": "4007:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3991:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 389, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "maxScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 7, + "src": "3991:39:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 379, + "name": "LogUpdateCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 39, + "src": "3877:17:0", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$_t_uint256_$returns$__$", + "typeString": "function (uint256,uint256,string memory,uint256)" + } + }, + "id": 390, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3877:154:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 391, + "nodeType": "EmitStatement", + "src": "3872:159:0" + }, + { + "expression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 392, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4045:4:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "functionReturnParameters": 363, + "id": 393, + "nodeType": "Return", + "src": "4038:11:0" + } + ] + }, + "documentation": null, + "id": 395, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "updateCriteriaText", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 360, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 357, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 395, + "src": "3672:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 356, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3672:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 359, + "name": "criteriaText", + "nodeType": "VariableDeclaration", + "scope": 395, + "src": "3695:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 358, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "3695:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3671:44:0" + }, + "payable": false, + "returnParameters": { + "id": 363, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 362, + "name": "success", + "nodeType": "VariableDeclaration", + "scope": 395, + "src": "3737:12:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 361, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3737:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3736:14:0" + }, + "scope": 504, + "src": "3644:411:0", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 446, + "nodeType": "Block", + "src": "4168:328:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 409, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "4179:18:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 407, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4191:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 406, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "4180:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 408, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4180:17:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 413, + "nodeType": "IfStatement", + "src": "4175:32:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 410, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "4199:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 411, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4199:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 412, + "nodeType": "ExpressionStatement", + "src": "4199:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "id": 419, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 414, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4216:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 416, + "indexExpression": { + "argumentTypes": null, + "id": 415, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4232:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4216:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 417, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "maxScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 7, + "src": "4216:31:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 418, + "name": "MaxScore", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 399, + "src": "4250:8:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "4216:42:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 420, + "nodeType": "ExpressionStatement", + "src": "4216:42:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 426, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 421, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4265:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 423, + "indexExpression": { + "argumentTypes": null, + "id": 422, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4281:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4265:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 424, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "minScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 5, + "src": "4265:31:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 425, + "name": "MinScore", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 401, + "src": "4299:8:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "4265:42:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 427, + "nodeType": "ExpressionStatement", + "src": "4265:42:0" + }, + { + "eventCall": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 429, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4345:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 430, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4359:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 432, + "indexExpression": { + "argumentTypes": null, + "id": 431, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4375:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4359:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 433, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "4359:28:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 434, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4396:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 436, + "indexExpression": { + "argumentTypes": null, + "id": 435, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4412:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4396:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 437, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "criteriaText", + "nodeType": "MemberAccess", + "referencedDeclaration": 3, + "src": "4396:35:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 438, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4440:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 440, + "indexExpression": { + "argumentTypes": null, + "id": 439, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4456:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4440:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 441, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "minScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 5, + "src": "4440:31:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 428, + "name": "LogUpdateCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 39, + "src": "4319:17:0", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$_t_uint256_$returns$__$", + "typeString": "function (uint256,uint256,string memory,uint256)" + } + }, + "id": 442, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4319:153:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 443, + "nodeType": "EmitStatement", + "src": "4314:158:0" + }, + { + "expression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 444, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4486:4:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "functionReturnParameters": 405, + "id": 445, + "nodeType": "Return", + "src": "4479:11:0" + } + ] + }, + "documentation": null, + "id": 447, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "updateMaxMinScore", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 402, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 397, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 447, + "src": "4088:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 396, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4088:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 399, + "name": "MaxScore", + "nodeType": "VariableDeclaration", + "scope": 447, + "src": "4103:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 398, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "4103:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 401, + "name": "MinScore", + "nodeType": "VariableDeclaration", + "scope": 447, + "src": "4118:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 400, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "4118:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4087:45:0" + }, + "payable": false, + "returnParameters": { + "id": 405, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 404, + "name": "success", + "nodeType": "VariableDeclaration", + "scope": 447, + "src": "4154:12:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 403, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "4154:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4153:14:0" + }, + "scope": 504, + "src": "4061:435:0", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 481, + "nodeType": "Block", + "src": "4587:197:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 459, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "4598:18:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 457, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 449, + "src": "4610:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 456, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "4599:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 458, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4599:17:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 463, + "nodeType": "IfStatement", + "src": "4594:32:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 460, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "4618:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 461, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4618:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 462, + "nodeType": "ExpressionStatement", + "src": "4618:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "id": 469, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 464, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4635:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 466, + "indexExpression": { + "argumentTypes": null, + "id": 465, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 449, + "src": "4651:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4635:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 467, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "isActive", + "nodeType": "MemberAccess", + "referencedDeclaration": 9, + "src": "4635:31:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 468, + "name": "status", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 451, + "src": "4669:6:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "4635:40:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 470, + "nodeType": "ExpressionStatement", + "src": "4635:40:0" + }, + { + "eventCall": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 472, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 449, + "src": "4721:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 473, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4728:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 475, + "indexExpression": { + "argumentTypes": null, + "id": 474, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 449, + "src": "4744:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4728:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 476, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "isActive", + "nodeType": "MemberAccess", + "referencedDeclaration": 9, + "src": "4728:31:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 471, + "name": "LogCriteriaStatusChange", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 51, + "src": "4689:23:0", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_bool_$returns$__$", + "typeString": "function (uint256,bool)" + } + }, + "id": 477, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4689:71:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 478, + "nodeType": "EmitStatement", + "src": "4684:76:0" + }, + { + "expression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 479, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4774:4:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "functionReturnParameters": 455, + "id": 480, + "nodeType": "Return", + "src": "4767:11:0" + } + ] + }, + "documentation": null, + "id": 482, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "changeStatus", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 452, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 449, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "4524:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 448, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4524:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 451, + "name": "status", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "4539:11:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 450, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "4539:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4523:28:0" + }, + "payable": false, + "returnParameters": { + "id": 455, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 454, + "name": "success", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "4573:12:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 453, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "4573:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4572:14:0" + }, + "scope": 504, + "src": "4502:282:0", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 490, + "nodeType": "Block", + "src": "4868:40:0", + "statements": [ + { + "expression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 487, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "4882:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 488, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "4882:20:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 486, + "id": 489, + "nodeType": "Return", + "src": "4875:27:0" + } + ] + }, + "documentation": null, + "id": 491, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getCriteriaCount", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 483, + "nodeType": "ParameterList", + "parameters": [], + "src": "4817:2:0" + }, + "payable": false, + "returnParameters": { + "id": 486, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 485, + "name": "count", + "nodeType": "VariableDeclaration", + "scope": 491, + "src": "4853:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 484, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4853:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4852:15:0" + }, + "scope": 504, + "src": "4792:116:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 502, + "nodeType": "Block", + "src": "5010:40:0", + "statements": [ + { + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 498, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "5024:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 500, + "indexExpression": { + "argumentTypes": null, + "id": 499, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 493, + "src": "5038:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5024:20:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 497, + "id": 501, + "nodeType": "Return", + "src": "5017:27:0" + } + ] + }, + "documentation": null, + "id": 503, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getCriteriaAtIndex", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 494, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 493, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 503, + "src": "4942:10:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 492, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "4942:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4941:12:0" + }, + "payable": false, + "returnParameters": { + "id": 497, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 496, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 503, + "src": "4987:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 495, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4987:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4986:23:0" + }, + "scope": 504, + "src": "4914:136:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + } + ], + "scope": 505, + "src": "30:5025:0" + } + ], + "src": "0:5055:0" + }, + "legacyAST": { + "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/AuditCriteriaManager.sol", + "exportedSymbols": { + "AuditCriteriaManager": [ + 504 + ] + }, + "id": 505, + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 1, + "literals": [ + "solidity", + "^", + "0.4", + ".18" + ], + "nodeType": "PragmaDirective", + "src": "0:26:0" + }, + { + "baseContracts": [], + "contractDependencies": [], + "contractKind": "contract", + "documentation": null, + "fullyImplemented": true, + "id": 504, + "linearizedBaseContracts": [ + 504 + ], + "name": "AuditCriteriaManager", + "nodeType": "ContractDefinition", + "nodes": [ + { + "canonicalName": "AuditCriteriaManager.CriteriaStruct", + "id": 12, + "members": [ + { + "constant": false, + "id": 3, + "name": "criteriaText", + "nodeType": "VariableDeclaration", + "scope": 12, + "src": "96:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + }, + "typeName": { + "id": 2, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "96:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 5, + "name": "minScore", + "nodeType": "VariableDeclaration", + "scope": 12, + "src": "122:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 4, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "122:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 7, + "name": "maxScore", + "nodeType": "VariableDeclaration", + "scope": 12, + "src": "142:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 6, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "142:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 9, + "name": "isActive", + "nodeType": "VariableDeclaration", + "scope": 12, + "src": "162:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 8, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "162:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 11, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 12, + "src": "182:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 10, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "182:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "name": "CriteriaStruct", + "nodeType": "StructDefinition", + "scope": 504, + "src": "67:134:0", + "visibility": "public" + }, + { + "constant": false, + "id": 16, + "name": "CriteriaStructs", + "nodeType": "VariableDeclaration", + "scope": 504, + "src": "207:58:0", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct)" + }, + "typeName": { + "id": 15, + "keyType": { + "id": 13, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "215:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Mapping", + "src": "207:34:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct)" + }, + "valueType": { + "contractScope": null, + "id": 14, + "name": "CriteriaStruct", + "nodeType": "UserDefinedTypeName", + "referencedDeclaration": 12, + "src": "226:14:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage_ptr", + "typeString": "struct AuditCriteriaManager.CriteriaStruct" + } + } + }, + "value": null, + "visibility": "private" + }, + { + "constant": false, + "id": 19, + "name": "CriteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 504, + "src": "270:31:0", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[]" + }, + "typeName": { + "baseType": { + "id": 17, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "270:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 18, + "length": null, + "nodeType": "ArrayTypeName", + "src": "270:9:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", + "typeString": "uint256[]" + } + }, + "value": null, + "visibility": "private" + }, + { + "anonymous": false, + "documentation": null, + "id": 29, + "name": "LogNewCriteria", + "nodeType": "EventDefinition", + "parameters": { + "id": 28, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 21, + "indexed": true, + "name": "CriteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 29, + "src": "329:29:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 20, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "329:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 23, + "indexed": false, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 29, + "src": "360:10:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 22, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "360:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 25, + "indexed": false, + "name": "CriteriaText", + "nodeType": "VariableDeclaration", + "scope": 29, + "src": "372:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 24, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "372:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 27, + "indexed": false, + "name": "maxScore", + "nodeType": "VariableDeclaration", + "scope": 29, + "src": "393:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 26, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "393:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "328:79:0" + }, + "src": "308:100:0" + }, + { + "anonymous": false, + "documentation": null, + "id": 39, + "name": "LogUpdateCriteria", + "nodeType": "EventDefinition", + "parameters": { + "id": 38, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 31, + "indexed": true, + "name": "CriteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 39, + "src": "436:29:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 30, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "436:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 33, + "indexed": false, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 39, + "src": "467:10:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 32, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "467:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 35, + "indexed": false, + "name": "CriteriaText", + "nodeType": "VariableDeclaration", + "scope": 39, + "src": "479:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 34, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "479:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 37, + "indexed": false, + "name": "maxScore", + "nodeType": "VariableDeclaration", + "scope": 39, + "src": "500:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 36, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "500:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "435:79:0" + }, + "src": "412:103:0" + }, + { + "anonymous": false, + "documentation": null, + "id": 45, + "name": "LogDeleteCriteria", + "nodeType": "EventDefinition", + "parameters": { + "id": 44, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 41, + "indexed": true, + "name": "CriteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 45, + "src": "543:29:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 40, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "543:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 43, + "indexed": false, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 45, + "src": "574:10:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 42, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "574:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "542:43:0" + }, + "src": "519:67:0" + }, + { + "anonymous": false, + "documentation": null, + "id": 51, + "name": "LogCriteriaStatusChange", + "nodeType": "EventDefinition", + "parameters": { + "id": 50, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 47, + "indexed": true, + "name": "CriteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 51, + "src": "620:29:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 46, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "620:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 49, + "indexed": false, + "name": "criteriaStatus", + "nodeType": "VariableDeclaration", + "scope": 51, + "src": "651:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 48, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "651:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "619:52:0" + }, + "src": "590:82:0" + }, + { + "body": { + "id": 75, + "nodeType": "Block", + "src": "763:134:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 61, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 58, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "774:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 59, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "774:20:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "30", + "id": 60, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "798:1:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "774:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 64, + "nodeType": "IfStatement", + "src": "770:43:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "hexValue": "66616c7365", + "id": 62, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "808:5:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "functionReturnParameters": 57, + "id": 63, + "nodeType": "Return", + "src": "801:12:0" + } + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 72, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 65, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "828:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 70, + "indexExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 66, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "842:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 68, + "indexExpression": { + "argumentTypes": null, + "id": 67, + "name": "indexExist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 53, + "src": "858:10:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "842:27:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 69, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "842:33:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "828:48:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "id": 71, + "name": "indexExist", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 53, + "src": "880:10:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "828:62:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 73, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "827:64:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "functionReturnParameters": 57, + "id": 74, + "nodeType": "Return", + "src": "820:71:0" + } + ] + }, + "documentation": null, + "id": 76, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "isCriteria", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 54, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 53, + "name": "indexExist", + "nodeType": "VariableDeclaration", + "scope": 76, + "src": "698:15:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 52, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "698:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "697:17:0" + }, + "payable": false, + "returnParameters": { + "id": 57, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 56, + "name": "isIndeed", + "nodeType": "VariableDeclaration", + "scope": 76, + "src": "748:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 55, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "748:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "747:15:0" + }, + "scope": 504, + "src": "678:219:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 149, + "nodeType": "Block", + "src": "1053:549:0", + "statements": [ + { + "assignments": [ + 90 + ], + "declarations": [ + { + "constant": false, + "id": 90, + "name": "currentIndex", + "nodeType": "VariableDeclaration", + "scope": 150, + "src": "1060:20:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 89, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1060:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 93, + "initialValue": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 91, + "name": "getCriteriaCount", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 491, + "src": "1083:16:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 92, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1083:18:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "1060:41:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 99, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 94, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1108:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 96, + "indexExpression": { + "argumentTypes": null, + "id": 95, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1124:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1108:29:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 97, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "criteriaText", + "nodeType": "MemberAccess", + "referencedDeclaration": 3, + "src": "1108:42:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 98, + "name": "newCriteriaText", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 78, + "src": "1153:15:0", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "1108:60:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 100, + "nodeType": "ExpressionStatement", + "src": "1108:60:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 106, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 101, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1175:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 103, + "indexExpression": { + "argumentTypes": null, + "id": 102, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1191:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1175:29:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 104, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "minScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 5, + "src": "1175:38:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 105, + "name": "minScore", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 80, + "src": "1216:8:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "1175:49:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 107, + "nodeType": "ExpressionStatement", + "src": "1175:49:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 113, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 108, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1231:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 110, + "indexExpression": { + "argumentTypes": null, + "id": 109, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1247:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1231:29:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 111, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "maxScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 7, + "src": "1231:38:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 112, + "name": "maxScore", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 82, + "src": "1272:8:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "1231:49:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 114, + "nodeType": "ExpressionStatement", + "src": "1231:49:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 120, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 115, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1287:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 117, + "indexExpression": { + "argumentTypes": null, + "id": 116, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1303:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1287:29:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 118, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "isActive", + "nodeType": "MemberAccess", + "referencedDeclaration": 9, + "src": "1287:38:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 119, + "name": "isActive", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 84, + "src": "1328:8:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "1287:49:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 121, + "nodeType": "ExpressionStatement", + "src": "1287:49:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 132, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 122, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1349:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 124, + "indexExpression": { + "argumentTypes": null, + "id": 123, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1365:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1349:29:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 125, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "1349:35:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 131, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 128, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1406:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "expression": { + "argumentTypes": null, + "id": 126, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "1387:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 127, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "push", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "1387:18:0", + "typeDescriptions": { + "typeIdentifier": "t_function_arraypush_nonpayable$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (uint256) returns (uint256)" + } + }, + "id": 129, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1387:32:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "argumentTypes": null, + "hexValue": "31", + "id": 130, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1422:1:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "1387:36:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "1349:74:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 133, + "nodeType": "ExpressionStatement", + "src": "1349:74:0" + }, + { + "eventCall": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 135, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1460:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 136, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1481:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 138, + "indexExpression": { + "argumentTypes": null, + "id": 137, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 90, + "src": "1497:12:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1481:29:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 139, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "1481:35:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "id": 140, + "name": "newCriteriaText", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 78, + "src": "1525:15:0", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + { + "argumentTypes": null, + "id": 141, + "name": "maxScore", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 82, + "src": "1549:8:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 134, + "name": "LogNewCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 29, + "src": "1437:14:0", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$_t_uint256_$returns$__$", + "typeString": "function (uint256,uint256,string memory,uint256)" + } + }, + "id": 142, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1437:121:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 143, + "nodeType": "EmitStatement", + "src": "1432:126:0" + }, + { + "expression": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 147, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 144, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "1572:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 145, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "1572:20:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "argumentTypes": null, + "hexValue": "31", + "id": 146, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1595:1:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "1572:24:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 88, + "id": 148, + "nodeType": "Return", + "src": "1565:31:0" + } + ] + }, + "documentation": null, + "id": 150, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "insertCriteria", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 85, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 78, + "name": "newCriteriaText", + "nodeType": "VariableDeclaration", + "scope": 150, + "src": "933:22:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 77, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "933:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 80, + "name": "minScore", + "nodeType": "VariableDeclaration", + "scope": 150, + "src": "962:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 79, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "962:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 82, + "name": "maxScore", + "nodeType": "VariableDeclaration", + "scope": 150, + "src": "982:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 81, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "982:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 84, + "name": "isActive", + "nodeType": "VariableDeclaration", + "scope": 150, + "src": "1002:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 83, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "1002:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "926:90:0" + }, + "payable": false, + "returnParameters": { + "id": 88, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 87, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 150, + "src": "1038:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 86, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1038:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "1037:15:0" + }, + "scope": 504, + "src": "903:699:0", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 156, + "nodeType": "Block", + "src": "1647:33:0", + "statements": [ + { + "expression": { + "argumentTypes": null, + "id": 154, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "1654:20:0", + "subExpression": { + "argumentTypes": null, + "id": 153, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "1661:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 155, + "nodeType": "ExpressionStatement", + "src": "1654:20:0" + } + ] + }, + "documentation": null, + "id": 157, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "deleteAllCriteria", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 151, + "nodeType": "ParameterList", + "parameters": [], + "src": "1634:2:0" + }, + "payable": false, + "returnParameters": { + "id": 152, + "nodeType": "ParameterList", + "parameters": [], + "src": "1647:0:0" + }, + "scope": 504, + "src": "1608:72:0", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 226, + "nodeType": "Block", + "src": "1775:592:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 167, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "1786:32:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 165, + "name": "deleteCriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 159, + "src": "1798:19:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 164, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "1787:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 166, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1787:31:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 171, + "nodeType": "IfStatement", + "src": "1782:46:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 168, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "1820:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 169, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1820:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 170, + "nodeType": "ExpressionStatement", + "src": "1820:8:0" + } + }, + { + "assignments": [ + 173 + ], + "declarations": [ + { + "constant": false, + "id": 173, + "name": "rowToDelete", + "nodeType": "VariableDeclaration", + "scope": 227, + "src": "1837:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 172, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1837:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 178, + "initialValue": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 174, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "1859:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 176, + "indexExpression": { + "argumentTypes": null, + "id": 175, + "name": "deleteCriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 159, + "src": "1875:19:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1859:36:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 177, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "1859:42:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "1837:64:0" + }, + { + "assignments": [ + 180 + ], + "declarations": [ + { + "constant": false, + "id": 180, + "name": "keyToMove", + "nodeType": "VariableDeclaration", + "scope": 227, + "src": "1908:17:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 179, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1908:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 187, + "initialValue": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 181, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "1930:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 186, + "indexExpression": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 185, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 182, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "1944:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 183, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "1944:20:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "argumentTypes": null, + "hexValue": "31", + "id": 184, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1967:1:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "1944:24:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1930:39:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "1908:61:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 192, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 188, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "1976:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 190, + "indexExpression": { + "argumentTypes": null, + "id": 189, + "name": "rowToDelete", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 173, + "src": "1990:11:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "1976:26:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 191, + "name": "keyToMove", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 180, + "src": "2005:9:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "1976:38:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 193, + "nodeType": "ExpressionStatement", + "src": "1976:38:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 199, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 194, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2021:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 196, + "indexExpression": { + "argumentTypes": null, + "id": 195, + "name": "keyToMove", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 180, + "src": "2037:9:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2021:26:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 197, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "2021:32:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 198, + "name": "rowToDelete", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 173, + "src": "2056:11:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "2021:46:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 200, + "nodeType": "ExpressionStatement", + "src": "2021:46:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 204, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "--", + "prefix": false, + "src": "2074:22:0", + "subExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 201, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "2074:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 203, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "2074:20:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 205, + "nodeType": "ExpressionStatement", + "src": "2074:22:0" + }, + { + "eventCall": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 207, + "name": "deleteCriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 159, + "src": "2136:19:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "id": 208, + "name": "rowToDelete", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 173, + "src": "2164:11:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 206, + "name": "LogDeleteCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 45, + "src": "2110:17:0", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$returns$__$", + "typeString": "function (uint256,uint256)" + } + }, + "id": 209, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2110:66:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 210, + "nodeType": "EmitStatement", + "src": "2105:71:0" + }, + { + "eventCall": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 212, + "name": "keyToMove", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 180, + "src": "2214:9:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "id": 213, + "name": "rowToDelete", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 173, + "src": "2232:11:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 214, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2252:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 216, + "indexExpression": { + "argumentTypes": null, + "id": 215, + "name": "keyToMove", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 180, + "src": "2268:9:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2252:26:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 217, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "criteriaText", + "nodeType": "MemberAccess", + "referencedDeclaration": 3, + "src": "2252:39:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 218, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2300:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 220, + "indexExpression": { + "argumentTypes": null, + "id": 219, + "name": "keyToMove", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 180, + "src": "2316:9:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2300:26:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 221, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "maxScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 7, + "src": "2300:35:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 211, + "name": "LogUpdateCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 39, + "src": "2188:17:0", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$_t_uint256_$returns$__$", + "typeString": "function (uint256,uint256,string memory,uint256)" + } + }, + "id": 222, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2188:148:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 223, + "nodeType": "EmitStatement", + "src": "2183:153:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 224, + "name": "rowToDelete", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 173, + "src": "2350:11:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 163, + "id": 225, + "nodeType": "Return", + "src": "2343:18:0" + } + ] + }, + "documentation": null, + "id": 227, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "deleteCriteria", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 160, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 159, + "name": "deleteCriteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 227, + "src": "1710:27:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 158, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1710:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "1709:29:0" + }, + "payable": false, + "returnParameters": { + "id": 163, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 162, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 227, + "src": "1760:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 161, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1760:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "1759:15:0" + }, + "scope": 504, + "src": "1686:681:0", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 266, + "nodeType": "Block", + "src": "2516:266:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 243, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "2527:26:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 241, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 229, + "src": "2539:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 240, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "2528:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 242, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2528:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 247, + "nodeType": "IfStatement", + "src": "2523:40:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 244, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "2555:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 245, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2555:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 246, + "nodeType": "ExpressionStatement", + "src": "2555:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 248, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2588:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 250, + "indexExpression": { + "argumentTypes": null, + "id": 249, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 229, + "src": "2604:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2588:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 251, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "criteriaText", + "nodeType": "MemberAccess", + "referencedDeclaration": 3, + "src": "2588:43:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 252, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2640:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 254, + "indexExpression": { + "argumentTypes": null, + "id": 253, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 229, + "src": "2656:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2640:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 255, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "maxScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 7, + "src": "2640:39:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 256, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2688:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 258, + "indexExpression": { + "argumentTypes": null, + "id": 257, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 229, + "src": "2704:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2688:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 259, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "minScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 5, + "src": "2688:39:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 260, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2736:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 262, + "indexExpression": { + "argumentTypes": null, + "id": 261, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 229, + "src": "2752:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2736:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 263, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "isActive", + "nodeType": "MemberAccess", + "referencedDeclaration": 9, + "src": "2736:39:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 264, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2579:197:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$_t_string_storage_$_t_uint256_$_t_uint256_$_t_bool_$", + "typeString": "tuple(string storage ref,uint256,uint256,bool)" + } + }, + "functionReturnParameters": 239, + "id": 265, + "nodeType": "Return", + "src": "2572:204:0" + } + ] + }, + "documentation": null, + "id": 267, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getCriteria", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 230, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 229, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 267, + "src": "2394:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 228, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2394:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "2393:23:0" + }, + "payable": false, + "returnParameters": { + "id": 239, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 232, + "name": "criteriaText", + "nodeType": "VariableDeclaration", + "scope": 267, + "src": "2450:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 231, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "2450:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 234, + "name": "maxScore", + "nodeType": "VariableDeclaration", + "scope": 267, + "src": "2471:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 233, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "2471:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 236, + "name": "minScore", + "nodeType": "VariableDeclaration", + "scope": 267, + "src": "2486:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 235, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "2486:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 238, + "name": "isActive", + "nodeType": "VariableDeclaration", + "scope": 267, + "src": "2501:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 237, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "2501:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "2449:66:0" + }, + "scope": 504, + "src": "2373:409:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 288, + "nodeType": "Block", + "src": "2892:122:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 277, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "2903:26:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 275, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 269, + "src": "2915:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 274, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "2904:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 276, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2904:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 281, + "nodeType": "IfStatement", + "src": "2899:40:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 278, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "2931:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 279, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2931:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 280, + "nodeType": "ExpressionStatement", + "src": "2931:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 282, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "2964:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 284, + "indexExpression": { + "argumentTypes": null, + "id": 283, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 269, + "src": "2980:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2964:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 285, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "criteriaText", + "nodeType": "MemberAccess", + "referencedDeclaration": 3, + "src": "2964:43:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + } + ], + "id": 286, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2955:53:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "functionReturnParameters": 273, + "id": 287, + "nodeType": "Return", + "src": "2948:60:0" + } + ] + }, + "documentation": null, + "id": 289, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getCriteriaText", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 270, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 269, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 289, + "src": "2815:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 268, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2815:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "2814:23:0" + }, + "payable": false, + "returnParameters": { + "id": 273, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 272, + "name": "criteriaText", + "nodeType": "VariableDeclaration", + "scope": 289, + "src": "2871:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 271, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "2871:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "2870:21:0" + }, + "scope": 504, + "src": "2790:224:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 310, + "nodeType": "Block", + "src": "3112:110:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 299, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "3123:26:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 297, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 291, + "src": "3135:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 296, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "3124:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 298, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3124:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 303, + "nodeType": "IfStatement", + "src": "3119:40:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 300, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "3151:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 301, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3151:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 302, + "nodeType": "ExpressionStatement", + "src": "3151:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 304, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "3176:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 306, + "indexExpression": { + "argumentTypes": null, + "id": 305, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 291, + "src": "3192:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3176:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 307, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "maxScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 7, + "src": "3176:39:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 308, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "3175:41:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 295, + "id": 309, + "nodeType": "Return", + "src": "3168:48:0" + } + ] + }, + "documentation": null, + "id": 311, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getMaxScore", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 292, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 291, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 311, + "src": "3041:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 290, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3041:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3040:23:0" + }, + "payable": false, + "returnParameters": { + "id": 295, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 294, + "name": "maxScore", + "nodeType": "VariableDeclaration", + "scope": 311, + "src": "3097:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 293, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "3097:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3096:15:0" + }, + "scope": 504, + "src": "3020:202:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 332, + "nodeType": "Block", + "src": "3320:110:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 321, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "3331:26:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 319, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 313, + "src": "3343:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 318, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "3332:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 320, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3332:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 325, + "nodeType": "IfStatement", + "src": "3327:40:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 322, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "3359:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 323, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3359:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 324, + "nodeType": "ExpressionStatement", + "src": "3359:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 326, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "3384:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 328, + "indexExpression": { + "argumentTypes": null, + "id": 327, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 313, + "src": "3400:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3384:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 329, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "minScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 5, + "src": "3384:39:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "id": 330, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "3383:41:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 317, + "id": 331, + "nodeType": "Return", + "src": "3376:48:0" + } + ] + }, + "documentation": null, + "id": 333, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getMinScore", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 314, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 313, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 333, + "src": "3249:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 312, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3249:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3248:23:0" + }, + "payable": false, + "returnParameters": { + "id": 317, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 316, + "name": "minScore", + "nodeType": "VariableDeclaration", + "scope": 333, + "src": "3305:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 315, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "3305:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3304:15:0" + }, + "scope": 504, + "src": "3228:202:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 354, + "nodeType": "Block", + "src": "3526:110:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 343, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "3537:26:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 341, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 335, + "src": "3549:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 340, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "3538:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 342, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3538:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 347, + "nodeType": "IfStatement", + "src": "3533:40:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 344, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "3565:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 345, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3565:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 346, + "nodeType": "ExpressionStatement", + "src": "3565:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 348, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "3590:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 350, + "indexExpression": { + "argumentTypes": null, + "id": 349, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 335, + "src": "3606:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3590:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 351, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "isActive", + "nodeType": "MemberAccess", + "referencedDeclaration": 9, + "src": "3590:39:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 352, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "3589:41:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "functionReturnParameters": 339, + "id": 353, + "nodeType": "Return", + "src": "3582:48:0" + } + ] + }, + "documentation": null, + "id": 355, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getStatus", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 336, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 335, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 355, + "src": "3455:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 334, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3455:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3454:23:0" + }, + "payable": false, + "returnParameters": { + "id": 339, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 338, + "name": "isActive", + "nodeType": "VariableDeclaration", + "scope": 355, + "src": "3511:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 337, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3511:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3510:15:0" + }, + "scope": 504, + "src": "3436:200:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 394, + "nodeType": "Block", + "src": "3751:304:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 367, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "3762:26:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 365, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 357, + "src": "3774:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 364, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "3763:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 366, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3763:25:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 371, + "nodeType": "IfStatement", + "src": "3758:40:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 368, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "3790:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 369, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3790:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 370, + "nodeType": "ExpressionStatement", + "src": "3790:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "id": 377, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 372, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "3807:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 374, + "indexExpression": { + "argumentTypes": null, + "id": 373, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 357, + "src": "3823:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3807:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 375, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "criteriaText", + "nodeType": "MemberAccess", + "referencedDeclaration": 3, + "src": "3807:43:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 376, + "name": "criteriaText", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 359, + "src": "3853:12:0", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "3807:58:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 378, + "nodeType": "ExpressionStatement", + "src": "3807:58:0" + }, + { + "eventCall": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 380, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 357, + "src": "3903:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 381, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "3925:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 383, + "indexExpression": { + "argumentTypes": null, + "id": 382, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 357, + "src": "3941:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3925:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 384, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "3925:36:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "id": 385, + "name": "criteriaText", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 359, + "src": "3970:12:0", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 386, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "3991:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 388, + "indexExpression": { + "argumentTypes": null, + "id": 387, + "name": "criteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 357, + "src": "4007:13:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3991:30:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 389, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "maxScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 7, + "src": "3991:39:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 379, + "name": "LogUpdateCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 39, + "src": "3877:17:0", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$_t_uint256_$returns$__$", + "typeString": "function (uint256,uint256,string memory,uint256)" + } + }, + "id": 390, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3877:154:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 391, + "nodeType": "EmitStatement", + "src": "3872:159:0" + }, + { + "expression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 392, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4045:4:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "functionReturnParameters": 363, + "id": 393, + "nodeType": "Return", + "src": "4038:11:0" + } + ] + }, + "documentation": null, + "id": 395, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "updateCriteriaText", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 360, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 357, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 395, + "src": "3672:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 356, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3672:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 359, + "name": "criteriaText", + "nodeType": "VariableDeclaration", + "scope": 395, + "src": "3695:19:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 358, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "3695:6:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3671:44:0" + }, + "payable": false, + "returnParameters": { + "id": 363, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 362, + "name": "success", + "nodeType": "VariableDeclaration", + "scope": 395, + "src": "3737:12:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 361, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "3737:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3736:14:0" + }, + "scope": 504, + "src": "3644:411:0", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 446, + "nodeType": "Block", + "src": "4168:328:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 409, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "4179:18:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 407, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4191:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 406, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "4180:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 408, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4180:17:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 413, + "nodeType": "IfStatement", + "src": "4175:32:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 410, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "4199:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 411, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4199:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 412, + "nodeType": "ExpressionStatement", + "src": "4199:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "id": 419, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 414, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4216:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 416, + "indexExpression": { + "argumentTypes": null, + "id": 415, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4232:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4216:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 417, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "maxScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 7, + "src": "4216:31:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 418, + "name": "MaxScore", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 399, + "src": "4250:8:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "4216:42:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 420, + "nodeType": "ExpressionStatement", + "src": "4216:42:0" + }, + { + "expression": { + "argumentTypes": null, + "id": 426, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 421, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4265:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 423, + "indexExpression": { + "argumentTypes": null, + "id": 422, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4281:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4265:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 424, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "minScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 5, + "src": "4265:31:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 425, + "name": "MinScore", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 401, + "src": "4299:8:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "4265:42:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 427, + "nodeType": "ExpressionStatement", + "src": "4265:42:0" + }, + { + "eventCall": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 429, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4345:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 430, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4359:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 432, + "indexExpression": { + "argumentTypes": null, + "id": 431, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4375:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4359:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 433, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 11, + "src": "4359:28:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 434, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4396:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 436, + "indexExpression": { + "argumentTypes": null, + "id": 435, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4412:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4396:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 437, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "criteriaText", + "nodeType": "MemberAccess", + "referencedDeclaration": 3, + "src": "4396:35:0", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 438, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4440:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 440, + "indexExpression": { + "argumentTypes": null, + "id": 439, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 397, + "src": "4456:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4440:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 441, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "minScore", + "nodeType": "MemberAccess", + "referencedDeclaration": 5, + "src": "4440:31:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + }, + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 428, + "name": "LogUpdateCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 39, + "src": "4319:17:0", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_uint256_$_t_string_memory_ptr_$_t_uint256_$returns$__$", + "typeString": "function (uint256,uint256,string memory,uint256)" + } + }, + "id": 442, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4319:153:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 443, + "nodeType": "EmitStatement", + "src": "4314:158:0" + }, + { + "expression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 444, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4486:4:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "functionReturnParameters": 405, + "id": 445, + "nodeType": "Return", + "src": "4479:11:0" + } + ] + }, + "documentation": null, + "id": 447, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "updateMaxMinScore", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 402, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 397, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 447, + "src": "4088:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 396, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4088:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 399, + "name": "MaxScore", + "nodeType": "VariableDeclaration", + "scope": 447, + "src": "4103:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 398, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "4103:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 401, + "name": "MinScore", + "nodeType": "VariableDeclaration", + "scope": 447, + "src": "4118:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 400, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "4118:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4087:45:0" + }, + "payable": false, + "returnParameters": { + "id": 405, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 404, + "name": "success", + "nodeType": "VariableDeclaration", + "scope": 447, + "src": "4154:12:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 403, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "4154:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4153:14:0" + }, + "scope": 504, + "src": "4061:435:0", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 481, + "nodeType": "Block", + "src": "4587:197:0", + "statements": [ + { + "condition": { + "argumentTypes": null, + "id": 459, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "4598:18:0", + "subExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 457, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 449, + "src": "4610:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "id": 456, + "name": "isCriteria", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 76, + "src": "4599:10:0", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$_t_uint256_$returns$_t_bool_$", + "typeString": "function (uint256) view returns (bool)" + } + }, + "id": 458, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4599:17:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "falseBody": null, + "id": 463, + "nodeType": "IfStatement", + "src": "4594:32:0", + "trueBody": { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 460, + "name": "revert", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1970, + 1971 + ], + "referencedDeclaration": 1970, + "src": "4618:6:0", + "typeDescriptions": { + "typeIdentifier": "t_function_revert_pure$__$returns$__$", + "typeString": "function () pure" + } + }, + "id": 461, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4618:8:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 462, + "nodeType": "ExpressionStatement", + "src": "4618:8:0" + } + }, + { + "expression": { + "argumentTypes": null, + "id": 469, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 464, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4635:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 466, + "indexExpression": { + "argumentTypes": null, + "id": 465, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 449, + "src": "4651:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4635:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 467, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "isActive", + "nodeType": "MemberAccess", + "referencedDeclaration": 9, + "src": "4635:31:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 468, + "name": "status", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 451, + "src": "4669:6:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "src": "4635:40:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 470, + "nodeType": "ExpressionStatement", + "src": "4635:40:0" + }, + { + "eventCall": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 472, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 449, + "src": "4721:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 473, + "name": "CriteriaStructs", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 16, + "src": "4728:15:0", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_CriteriaStruct_$12_storage_$", + "typeString": "mapping(uint256 => struct AuditCriteriaManager.CriteriaStruct storage ref)" + } + }, + "id": 475, + "indexExpression": { + "argumentTypes": null, + "id": 474, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 449, + "src": "4744:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4728:22:0", + "typeDescriptions": { + "typeIdentifier": "t_struct$_CriteriaStruct_$12_storage", + "typeString": "struct AuditCriteriaManager.CriteriaStruct storage ref" + } + }, + "id": 476, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "isActive", + "nodeType": "MemberAccess", + "referencedDeclaration": 9, + "src": "4728:31:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 471, + "name": "LogCriteriaStatusChange", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 51, + "src": "4689:23:0", + "typeDescriptions": { + "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$_t_bool_$returns$__$", + "typeString": "function (uint256,bool)" + } + }, + "id": 477, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4689:71:0", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 478, + "nodeType": "EmitStatement", + "src": "4684:76:0" + }, + { + "expression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 479, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4774:4:0", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "functionReturnParameters": 455, + "id": 480, + "nodeType": "Return", + "src": "4767:11:0" + } + ] + }, + "documentation": null, + "id": 482, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "changeStatus", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 452, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 449, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "4524:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 448, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4524:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 451, + "name": "status", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "4539:11:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 450, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "4539:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4523:28:0" + }, + "payable": false, + "returnParameters": { + "id": 455, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 454, + "name": "success", + "nodeType": "VariableDeclaration", + "scope": 482, + "src": "4573:12:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "typeName": { + "id": 453, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "4573:4:0", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4572:14:0" + }, + "scope": 504, + "src": "4502:282:0", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 490, + "nodeType": "Block", + "src": "4868:40:0", + "statements": [ + { + "expression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 487, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "4882:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 488, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "4882:20:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 486, + "id": 489, + "nodeType": "Return", + "src": "4875:27:0" + } + ] + }, + "documentation": null, + "id": 491, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getCriteriaCount", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 483, + "nodeType": "ParameterList", + "parameters": [], + "src": "4817:2:0" + }, + "payable": false, + "returnParameters": { + "id": 486, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 485, + "name": "count", + "nodeType": "VariableDeclaration", + "scope": 491, + "src": "4853:13:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 484, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4853:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4852:15:0" + }, + "scope": 504, + "src": "4792:116:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 502, + "nodeType": "Block", + "src": "5010:40:0", + "statements": [ + { + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 498, + "name": "CriteriaIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 19, + "src": "5024:13:0", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 500, + "indexExpression": { + "argumentTypes": null, + "id": 499, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 493, + "src": "5038:5:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5024:20:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 497, + "id": 501, + "nodeType": "Return", + "src": "5017:27:0" + } + ] + }, + "documentation": null, + "id": 503, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getCriteriaAtIndex", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 494, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 493, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 503, + "src": "4942:10:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 492, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "4942:4:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4941:12:0" + }, + "payable": false, + "returnParameters": { + "id": 497, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 496, + "name": "criteriaIndex", + "nodeType": "VariableDeclaration", + "scope": 503, + "src": "4987:21:0", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 495, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4987:7:0", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4986:23:0" + }, + "scope": 504, + "src": "4914:136:0", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + } + ], + "scope": 505, + "src": "30:5025:0" + } + ], + "src": "0:5055:0" + }, + "compiler": { + "name": "solc", + "version": "0.4.24+commit.e67f0147.Emscripten.clang" + }, + "networks": { + "5777": { + "events": {}, + "links": {}, + "address": "0x8f0483125fcb9aaaefa9209d8e9d7b9c8b9fb90f", + "transactionHash": "0xc1a6b62e6b3ad100afdf99d0782ce8bfeecf445fbea5d8f8abb7f97efe8b00ee" + }, + "1538849010791": { + "events": {}, + "links": {}, + "address": "0x235efe5ac04ea17ff4c85ae67a003f366f11c2f5", + "transactionHash": "0x1de7c7b90fb9c4330018223a937fc1dbbeea1e8be727690cac6be6057243c9ff" + }, + "1539360877990": { + "events": {}, + "links": {}, + "address": "0x395a74222962b2cb2620a556f1fcf2650bea0222", + "transactionHash": "0x52e78058c6805c9a94041bc06cd5fdba69c57e4d9a76592ca06f0952e8f04201" + }, + "1539420319630": { + "events": {}, + "links": {}, + "address": "0x3124c46b3813c552f7a76ebd0464a6761794b771", + "transactionHash": "0x3122b3cd21f2e7b87a3a80cdbdb95038412000e36dd40d6c3736b11c8d8ddf51" + } + }, + "schemaVersion": "2.0.1", + "updatedAt": "2018-10-18T13:43:19.601Z" +} \ No newline at end of file diff --git a/ethereum/build/contracts/Company.json b/ethereum/build/contracts/Company.json new file mode 100644 index 0000000..6a37554 --- /dev/null +++ b/ethereum/build/contracts/Company.json @@ -0,0 +1,11969 @@ +{ + "contractName": "Company", + "abi": [ + { + "constant": true, + "inputs": [ + { + "name": "", + "type": "address" + } + ], + "name": "isSupportAgent", + "outputs": [ + { + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "name": "", + "type": "uint256" + } + ], + "name": "supportAgentRecords", + "outputs": [ + { + "name": "", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "name": "_address", + "type": "address" + }, + { + "name": "_email", + "type": "string" + }, + { + "name": "_fName", + "type": "string" + }, + { + "name": "_lName", + "type": "string" + }, + { + "name": "_timeZone", + "type": "string" + } + ], + "name": "addSupportAgent", + "outputs": [ + { + "name": "index", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "name": "_address", + "type": "address" + } + ], + "name": "removeOneSupportAgent", + "outputs": [ + { + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [], + "name": "removeAllSupportAgent", + "outputs": [ + { + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "findAllSupportAgents", + "outputs": [ + { + "name": "", + "type": "address[]" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "name": "index", + "type": "uint256" + } + ], + "name": "findSupportAgentAddressById", + "outputs": [ + { + "name": "", + "type": "address" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "name": "_address", + "type": "address" + } + ], + "name": "findSupportAgentArrayIndex", + "outputs": [ + { + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "name": "_address", + "type": "address" + } + ], + "name": "getAgentEmail", + "outputs": [ + { + "name": "", + "type": "string" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [ + { + "name": "_address", + "type": "address" + } + ], + "name": "findSupportAgentByAddress", + "outputs": [ + { + "name": "", + "type": "string" + }, + { + "name": "", + "type": "string" + }, + { + "name": "", + "type": "string" + }, + { + "name": "", + "type": "string" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "countSupportAgents", + "outputs": [ + { + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + } + ], + "bytecode": "0x608060405234801561001057600080fd5b506112cb806100206000396000f3006080604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166319df220d81146100b35780632accc6bd146100da578063413e2523146102a557806351eef9d6146102c657806361293545146102db57806383936f8c1461030f5780638fd2f1a614610330578063beee39c614610395578063c5722598146104b6578063c99901b01461054c578063fe67910014610581575b600080fd5b3480156100bf57600080fd5b506100c8610599565b60408051918252519081900360200190f35b3480156100e657600080fd5b506100fb600160a060020a0360043516610669565b6040518080602001806020018060200180602001858103855289818151815260200191508051906020019080838360005b8381101561014457818101518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b5085810384528851815288516020918201918a019080838360005b838110156101a457818101518382015260200161018c565b50505050905090810190601f1680156101d15780820380516001836020036101000a031916815260200191505b50858103835287518152875160209182019189019080838360005b838110156102045781810151838201526020016101ec565b50505050905090810190601f1680156102315780820380516001836020036101000a031916815260200191505b50858103825286518152865160209182019188019080838360005b8381101561026457818101518382015260200161024c565b50505050905090810190601f1680156102915780820380516001836020036101000a031916815260200191505b509850505050505050505060405180910390f35b3480156102b157600080fd5b506100c8600160a060020a0360043516610988565b3480156102d257600080fd5b506100c8610afe565b3480156102e757600080fd5b506102f3600435610b05565b60408051600160a060020a039092168252519081900360200190f35b34801561031b57600080fd5b506100c8600160a060020a0360043516610b20565b34801561033c57600080fd5b50610345610bdc565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610381578181015183820152602001610369565b505050509050019250505060405180910390f35b3480156103a157600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526100c8958335600160a060020a031695369560449491939091019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a999881019791965091820194509250829150840183828082843750949750610c3e9650505050505050565b3480156104c257600080fd5b506104d7600160a060020a0360043516610fc4565b6040805160208082528351818301528351919283929083019185019080838360005b838110156105115781810151838201526020016104f9565b50505050905090810190601f16801561053e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561055857600080fd5b5061056d600160a060020a036004351661111c565b604080519115158252519081900360200190f35b34801561058d57600080fd5b506102f3600435611131565b600080805b60035482101561064e57506000818152602081815260408083208054600160a060020a031680855260048452828520805460ff191690556002845291842084905584845291839052815473ffffffffffffffffffffffffffffffffffffffff191682559161060f6001830182611159565b61061d600283016000611159565b61062b600383016000611159565b610639600483016000611159565b5060006005919091015560019091019061059e565b61065a600360006111a0565b610662610afe565b9250505090565b600160a060020a03811660009081526004602052604081205460609182918291829160ff1615156001146107125760408051600080516020611280833981519152815260206004820152602f60248201527f5468657265206973206e6f2073756368206167656e742077697468207468652060448201527f676976656e206164647265737320210000000000000000000000000000000000606482015290519081900360840190fd5b50600160a060020a0385166000908152600260208181526040808420548085528483529381902060018082018054845192811615610100026000190116869004601f810186900486028301860190945283825294820193600383019360049093019286918301828280156107c75780601f1061079c576101008083540402835291602001916107c7565b820191906000526020600020905b8154815290600101906020018083116107aa57829003601f168201915b5050865460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959950889450925084019050828280156108555780601f1061082a57610100808354040283529160200191610855565b820191906000526020600020905b81548152906001019060200180831161083857829003601f168201915b5050855460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959850879450925084019050828280156108e35780601f106108b8576101008083540402835291602001916108e3565b820191906000526020600020905b8154815290600101906020018083116108c657829003601f168201915b5050845460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959750869450925084019050828280156109715780601f1061094657610100808354040283529160200191610971565b820191906000526020600020905b81548152906001019060200180831161095457829003601f168201915b505050505090509450945094509450509193509193565b600160a060020a038116600090815260046020526040812054819060ff161515600114610a2a5760408051600080516020611280833981519152815260206004820152602f60248201527f5468657265206973206e6f2073756368206167656e742077697468207468652060448201527f676976656e206164647265737320210000000000000000000000000000000000606482015290519081900360840190fd5b50600160a060020a0382166000908152600260209081526040808320805460048452828520805460ff1916905590849055808452918390528220805473ffffffffffffffffffffffffffffffffffffffff191681559091610a8e6001830182611159565b610a9c600283016000611159565b610aaa600383016000611159565b610ab8600483016000611159565b506000600591909101556003805482908110610ad057fe5b60009182526020822001556003805490610aee9060001983016111be565b50610af7610afe565b9392505050565b6003545b90565b600090815260208190526040902054600160a060020a031690565b600160a060020a03811660009081526004602052604081205460ff161515600114610bc05760408051600080516020611280833981519152815260206004820152602f60248201527f5468657265206973206e6f2073756368206167656e742077697468207468652060448201527f676976656e206164647265737320210000000000000000000000000000000000606482015290519081900360840190fd5b50600160a060020a031660009081526002602052604090205490565b60606001805480602002602001604051908101604052809291908181526020018280548015610c3457602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311610c16575b5050505050905090565b600160a060020a038516600090815260046020526040812054819060ff1615610cb65760408051600080516020611280833981519152815260206004820152601560248201527f4167656e7420616c726561647920657869737420210000000000000000000000604482015290519081900360640190fd5b855160051115610d155760408051600080516020611280833981519152815260206004820152601760248201527f496e76616c696420456d61696c20616464726573732021000000000000000000604482015290519081900360640190fd5b845160031115610d9a5760408051600080516020611280833981519152815260206004820152602b60248201527f4669727374206e616d652073686f756c6420636f6e7461696e206d696e696d7560448201527f6d2033206c657474657273000000000000000000000000000000000000000000606482015290519081900360840190fd5b835160031115610e1f5760408051600080516020611280833981519152815260206004820152602a60248201527f4c617374206e616d652073686f756c6420636f6e7461696e206d696e696d756d60448201527f2033206c65747465727300000000000000000000000000000000000000000000606482015290519081900360840190fd5b825160031115610e7e5760408051600080516020611280833981519152815260206004820152601360248201527f54696d657a6f6e6520697320496e76616c696400000000000000000000000000604482015290519081900360640190fd5b610e86610afe565b600160a060020a0388166000818152600460209081526040808320805460ff191660019081179091558584528383529220805473ffffffffffffffffffffffffffffffffffffffff191690931783558951939450610eec939290910191908901906111e7565b506000818152602081815260409091208651610f10926002909201918801906111e7565b506000818152602081815260409091208551610f34926003909201918701906111e7565b506000818152602081815260409091208451610f58926004909201918601906111e7565b50600380546001810182557fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b810183905560008381526020818152604080832060050193909355600160a060020a038b1682526002905220829055546000190191505095945050505050565b600160a060020a0381166000908152600460205260408120546060919060ff1615156001146110685760408051600080516020611280833981519152815260206004820152602f60248201527f5468657265206973206e6f2073756368206167656e742077697468207468652060448201527f676976656e206164647265737320210000000000000000000000000000000000606482015290519081900360840190fd5b50600160a060020a038216600090815260026020818152604080842054808552848352938190206001908101805483519281161561010002600019011694909404601f8101849004840282018401909252818152929183018282801561110f5780601f106110e45761010080835404028352916020019161110f565b820191906000526020600020905b8154815290600101906020018083116110f257829003601f168201915b5050505050915050919050565b60046020526000908152604090205460ff1681565b600180548290811061113f57fe5b600091825260209091200154600160a060020a0316905081565b50805460018160011615610100020316600290046000825580601f1061117f575061119d565b601f01602090049060005260206000209081019061119d9190611265565b50565b508054600082559060005260206000209081019061119d9190611265565b8154818355818111156111e2576000838152602090206111e2918101908301611265565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061122857805160ff1916838001178555611255565b82800160010185558215611255579182015b8281111561125557825182559160200191906001019061123a565b50611261929150611265565b5090565b610b0291905b80821115611261576000815560010161126b560008c379a000000000000000000000000000000000000000000000000000000000a165627a7a7230582046550a56855dc7c6cced73c063d57c9a46716ecd08889b658860cf792c8c15f50029", + "deployedBytecode": "0x6080604052600436106100ae5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166319df220d81146100b35780632accc6bd146100da578063413e2523146102a557806351eef9d6146102c657806361293545146102db57806383936f8c1461030f5780638fd2f1a614610330578063beee39c614610395578063c5722598146104b6578063c99901b01461054c578063fe67910014610581575b600080fd5b3480156100bf57600080fd5b506100c8610599565b60408051918252519081900360200190f35b3480156100e657600080fd5b506100fb600160a060020a0360043516610669565b6040518080602001806020018060200180602001858103855289818151815260200191508051906020019080838360005b8381101561014457818101518382015260200161012c565b50505050905090810190601f1680156101715780820380516001836020036101000a031916815260200191505b5085810384528851815288516020918201918a019080838360005b838110156101a457818101518382015260200161018c565b50505050905090810190601f1680156101d15780820380516001836020036101000a031916815260200191505b50858103835287518152875160209182019189019080838360005b838110156102045781810151838201526020016101ec565b50505050905090810190601f1680156102315780820380516001836020036101000a031916815260200191505b50858103825286518152865160209182019188019080838360005b8381101561026457818101518382015260200161024c565b50505050905090810190601f1680156102915780820380516001836020036101000a031916815260200191505b509850505050505050505060405180910390f35b3480156102b157600080fd5b506100c8600160a060020a0360043516610988565b3480156102d257600080fd5b506100c8610afe565b3480156102e757600080fd5b506102f3600435610b05565b60408051600160a060020a039092168252519081900360200190f35b34801561031b57600080fd5b506100c8600160a060020a0360043516610b20565b34801561033c57600080fd5b50610345610bdc565b60408051602080825283518183015283519192839290830191858101910280838360005b83811015610381578181015183820152602001610369565b505050509050019250505060405180910390f35b3480156103a157600080fd5b5060408051602060046024803582810135601f81018590048502860185019096528585526100c8958335600160a060020a031695369560449491939091019190819084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a99988101979196509182019450925082915084018382808284375050604080516020601f89358b018035918201839004830284018301909452808352979a999881019791965091820194509250829150840183828082843750949750610c3e9650505050505050565b3480156104c257600080fd5b506104d7600160a060020a0360043516610fc4565b6040805160208082528351818301528351919283929083019185019080838360005b838110156105115781810151838201526020016104f9565b50505050905090810190601f16801561053e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561055857600080fd5b5061056d600160a060020a036004351661111c565b604080519115158252519081900360200190f35b34801561058d57600080fd5b506102f3600435611131565b600080805b60035482101561064e57506000818152602081815260408083208054600160a060020a031680855260048452828520805460ff191690556002845291842084905584845291839052815473ffffffffffffffffffffffffffffffffffffffff191682559161060f6001830182611159565b61061d600283016000611159565b61062b600383016000611159565b610639600483016000611159565b5060006005919091015560019091019061059e565b61065a600360006111a0565b610662610afe565b9250505090565b600160a060020a03811660009081526004602052604081205460609182918291829160ff1615156001146107125760408051600080516020611280833981519152815260206004820152602f60248201527f5468657265206973206e6f2073756368206167656e742077697468207468652060448201527f676976656e206164647265737320210000000000000000000000000000000000606482015290519081900360840190fd5b50600160a060020a0385166000908152600260208181526040808420548085528483529381902060018082018054845192811615610100026000190116869004601f810186900486028301860190945283825294820193600383019360049093019286918301828280156107c75780601f1061079c576101008083540402835291602001916107c7565b820191906000526020600020905b8154815290600101906020018083116107aa57829003601f168201915b5050865460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959950889450925084019050828280156108555780601f1061082a57610100808354040283529160200191610855565b820191906000526020600020905b81548152906001019060200180831161083857829003601f168201915b5050855460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959850879450925084019050828280156108e35780601f106108b8576101008083540402835291602001916108e3565b820191906000526020600020905b8154815290600101906020018083116108c657829003601f168201915b5050845460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152959750869450925084019050828280156109715780601f1061094657610100808354040283529160200191610971565b820191906000526020600020905b81548152906001019060200180831161095457829003601f168201915b505050505090509450945094509450509193509193565b600160a060020a038116600090815260046020526040812054819060ff161515600114610a2a5760408051600080516020611280833981519152815260206004820152602f60248201527f5468657265206973206e6f2073756368206167656e742077697468207468652060448201527f676976656e206164647265737320210000000000000000000000000000000000606482015290519081900360840190fd5b50600160a060020a0382166000908152600260209081526040808320805460048452828520805460ff1916905590849055808452918390528220805473ffffffffffffffffffffffffffffffffffffffff191681559091610a8e6001830182611159565b610a9c600283016000611159565b610aaa600383016000611159565b610ab8600483016000611159565b506000600591909101556003805482908110610ad057fe5b60009182526020822001556003805490610aee9060001983016111be565b50610af7610afe565b9392505050565b6003545b90565b600090815260208190526040902054600160a060020a031690565b600160a060020a03811660009081526004602052604081205460ff161515600114610bc05760408051600080516020611280833981519152815260206004820152602f60248201527f5468657265206973206e6f2073756368206167656e742077697468207468652060448201527f676976656e206164647265737320210000000000000000000000000000000000606482015290519081900360840190fd5b50600160a060020a031660009081526002602052604090205490565b60606001805480602002602001604051908101604052809291908181526020018280548015610c3457602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311610c16575b5050505050905090565b600160a060020a038516600090815260046020526040812054819060ff1615610cb65760408051600080516020611280833981519152815260206004820152601560248201527f4167656e7420616c726561647920657869737420210000000000000000000000604482015290519081900360640190fd5b855160051115610d155760408051600080516020611280833981519152815260206004820152601760248201527f496e76616c696420456d61696c20616464726573732021000000000000000000604482015290519081900360640190fd5b845160031115610d9a5760408051600080516020611280833981519152815260206004820152602b60248201527f4669727374206e616d652073686f756c6420636f6e7461696e206d696e696d7560448201527f6d2033206c657474657273000000000000000000000000000000000000000000606482015290519081900360840190fd5b835160031115610e1f5760408051600080516020611280833981519152815260206004820152602a60248201527f4c617374206e616d652073686f756c6420636f6e7461696e206d696e696d756d60448201527f2033206c65747465727300000000000000000000000000000000000000000000606482015290519081900360840190fd5b825160031115610e7e5760408051600080516020611280833981519152815260206004820152601360248201527f54696d657a6f6e6520697320496e76616c696400000000000000000000000000604482015290519081900360640190fd5b610e86610afe565b600160a060020a0388166000818152600460209081526040808320805460ff191660019081179091558584528383529220805473ffffffffffffffffffffffffffffffffffffffff191690931783558951939450610eec939290910191908901906111e7565b506000818152602081815260409091208651610f10926002909201918801906111e7565b506000818152602081815260409091208551610f34926003909201918701906111e7565b506000818152602081815260409091208451610f58926004909201918601906111e7565b50600380546001810182557fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b810183905560008381526020818152604080832060050193909355600160a060020a038b1682526002905220829055546000190191505095945050505050565b600160a060020a0381166000908152600460205260408120546060919060ff1615156001146110685760408051600080516020611280833981519152815260206004820152602f60248201527f5468657265206973206e6f2073756368206167656e742077697468207468652060448201527f676976656e206164647265737320210000000000000000000000000000000000606482015290519081900360840190fd5b50600160a060020a038216600090815260026020818152604080842054808552848352938190206001908101805483519281161561010002600019011694909404601f8101849004840282018401909252818152929183018282801561110f5780601f106110e45761010080835404028352916020019161110f565b820191906000526020600020905b8154815290600101906020018083116110f257829003601f168201915b5050505050915050919050565b60046020526000908152604090205460ff1681565b600180548290811061113f57fe5b600091825260209091200154600160a060020a0316905081565b50805460018160011615610100020316600290046000825580601f1061117f575061119d565b601f01602090049060005260206000209081019061119d9190611265565b50565b508054600082559060005260206000209081019061119d9190611265565b8154818355818111156111e2576000838152602090206111e2918101908301611265565b505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061122857805160ff1916838001178555611255565b82800160010185558215611255579182015b8281111561125557825182559160200191906001019061123a565b50611261929150611265565b5090565b610b0291905b80821115611261576000815560010161126b560008c379a000000000000000000000000000000000000000000000000000000000a165627a7a7230582046550a56855dc7c6cced73c063d57c9a46716ecd08889b658860cf792c8c15f50029", + "sourceMap": "30:5731:1:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;30:5731:1;;;;;;;", + "deployedSourceMap": "30:5731:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3720:430;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3720:430:1;;;;;;;;;;;;;;;;;;;;5104:526;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;5104:526:1;-1:-1:-1;;;;;5104:526:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;5104:526:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5104:526:1;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;5104:526:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5104:526:1;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;5104:526:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5104:526:1;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;5104:526:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3124:588;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3124:588:1;-1:-1:-1;;;;;3124:588:1;;;;;5650:102;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5650:102:1;;;;4280:139;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4280:139:1;;;;;;;;;-1:-1:-1;;;;;4280:139:1;;;;;;;;;;;;;;4427:290;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4427:290:1;-1:-1:-1;;;;;4427:290:1;;;;;4164:108;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4164:108:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4164:108:1;;;;;;;;;;;;;;;;;1068:2048;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1068:2048:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1068:2048:1;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1068:2048:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1068:2048:1;;;;-1:-1:-1;1068:2048:1;-1:-1:-1;1068:2048:1;;-1:-1:-1;1068:2048:1;;;;;;;;-1:-1:-1;;1068:2048:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1068:2048:1;;;;-1:-1:-1;1068:2048:1;-1:-1:-1;1068:2048:1;;-1:-1:-1;1068:2048:1;;;;;;;;-1:-1:-1;;1068:2048:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1068:2048:1;;;;-1:-1:-1;1068:2048:1;-1:-1:-1;1068:2048:1;;-1:-1:-1;1068:2048:1;;;;;;;;-1:-1:-1;1068:2048:1;;-1:-1:-1;1068:2048:1;;-1:-1:-1;;;;;;;1068:2048:1;4731:356;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4731:356:1;-1:-1:-1;;;;;4731:356:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4731:356:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;457:46;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;457:46:1;-1:-1:-1;;;;;457:46:1;;;;;;;;;;;;;;;;;;;;;;;300:36;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;300:36:1;;;;;3720:430;3768:4;;;3787:282;3806:10;:17;3802:21;;3787:282;;;-1:-1:-1;3875:13:1;:16;;;;;;;;;;;:29;;-1:-1:-1;;;;;3875:29:1;3938:28;;;:14;:28;;;;;3931:35;;-1:-1:-1;;3931:35:1;;;3985:12;:26;;;;;3978:33;;;4030:16;;;;;;;4023:23;;-1:-1:-1;;4023:23:1;;;3875:29;4023:23;3875:29;4023:23;;3875:13;4023:23;:::i;:::-;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;:::i;:::-;-1:-1:-1;4023:23:1;;;;;;;3825:3;;;;;3787:282;;;4079:17;4086:10;;4079:17;:::i;:::-;4122:20;:18;:20::i;:::-;4115:27;;3720:430;;;:::o;5104:526::-;-1:-1:-1;;;;;5248:24:1;;5394:13;5248:24;;;:14;:24;;;;;;5177:6;;;;;;;;5248:24;;:32;;:24;:32;5226:133;;;;;-1:-1:-1;;;;;;;;;;;5226:133:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;5410:22:1;;;;;;:12;:22;;;;;;;;;5479:20;;;;;;;;;;:26;;;;5461:161;;;;;;;;;;-1:-1:-1;;5461:161:1;;;;;;;;;;;;;;;;;;;;;;;5479:26;5517;;;5555;;;;5592:29;;;;;5479:26;;5461:161;;5479:26;5461:161;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5461:161:1;;;;;;;;;;;;;-1:-1:-1;;5461:161:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5461:161:1;;-1:-1:-1;5461:161:1;-1:-1:-1;5461:161:1;;;-1:-1:-1;5461:161:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5461:161:1;;;;;;;;;;;;;-1:-1:-1;;5461:161:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5461:161:1;;-1:-1:-1;5461:161:1;-1:-1:-1;5461:161:1;;;-1:-1:-1;5461:161:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5461:161:1;;;;;;;;;;;;;-1:-1:-1;;5461:161:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5461:161:1;;-1:-1:-1;5461:161:1;-1:-1:-1;5461:161:1;;;-1:-1:-1;5461:161:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5104:526;;;;;;:::o;3124:588::-;-1:-1:-1;;;;;3237:24:1;;3188:4;3237:24;;;:14;:24;;;;;;3188:4;;3237:24;;:32;;:24;:32;3215:133;;;;;-1:-1:-1;;;;;;;;;;;3215:133:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;3400:22:1;;;;;;:12;:22;;;;;;;;;;3463:14;:24;;;;;3456:31;;-1:-1:-1;;3456:31:1;;;3499:29;;;;3558:20;;;;;;;;;3551:27;;-1:-1:-1;;3551:27:1;;;3400:22;;3551:27;3456:31;3551:27;;3400:22;3551:27;:::i;:::-;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;:::i;:::-;-1:-1:-1;3551:27:1;;;;;;;3597:10;:17;;3608:5;;3597:17;;;;;;;;;;;;;;3590:24;3637:10;:19;;;;;-1:-1:-1;;3637:19:1;;;:::i;:::-;;3684:20;:18;:20::i;:::-;3677:27;3124:588;-1:-1:-1;;;3124:588:1:o;5650:102::-;5727:10;:17;5650:102;;:::o;4280:139::-;4349:7;4377:20;;;;;;;;;;:33;-1:-1:-1;;;;;4377:33:1;;4280:139::o;4427:290::-;-1:-1:-1;;;;;4542:24:1;;4501:4;4542:24;;;:14;:24;;;;;;;;:32;;:24;:32;4520:133;;;;;-1:-1:-1;;;;;;;;;;;4520:133:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4685:22:1;;;;;:12;:22;;;;;;;4427:290::o;4164:108::-;4216:9;4245:19;4238:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4238:26:1;;;;;;;;;;;;;;;;;;;;;;;4164:108;:::o;1068:2048::-;-1:-1:-1;;;;;1788:24:1;;1202:13;1788:24;;;:14;:24;;;;;;1202:13;;1788:24;;:33;1766:108;;;;;-1:-1:-1;;;;;;;;;;;1766:108:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;1940:20;;1963:1;-1:-1:-1;1939:33:1;1917:110;;;;;-1:-1:-1;;;;;;;;;;;1917:110:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;2067:20;;2090:1;-1:-1:-1;2066:33:1;2044:130;;;;;-1:-1:-1;;;;;;;;;;;2044:130:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2226:20;;2249:1;-1:-1:-1;2225:33:1;2203:129;;;;;-1:-1:-1;;;;;;;;;;;2203:129:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2396:23;;2422:1;-1:-1:-1;2395:36:1;2373:109;;;;;-1:-1:-1;;;;;;;;;;;2373:109:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;2536:20;:18;:20::i;:::-;-1:-1:-1;;;;;2567:24:1;;;;;;:14;:24;;;;;;;;:31;;-1:-1:-1;;2567:31:1;2594:4;2567:31;;;;;;2619:27;;;;;;;;:51;;-1:-1:-1;;2619:51:1;;;;;;2681:49;;2513:43;;-1:-1:-1;2681:49:1;;:33;;;;;:49;;;;;:::i;:::-;-1:-1:-1;2741:13:1;:27;;;;;;;;;;;:49;;;;:33;;;;;:49;;;;:::i;:::-;-1:-1:-1;2801:13:1;:27;;;;;;;;;;;:49;;;;:33;;;;;:49;;;;:::i;:::-;-1:-1:-1;2869:13:1;:27;;;;;;;;;;;:52;;;;:36;;;;;:52;;;;:::i;:::-;-1:-1:-1;2970:10:1;27::-1;;3002:1:1;23:18:-1;;45:23;;2970:29:1;;;;;;-1:-1:-1;2934:27:1;;;2970:29;2934:27;;;;;;;:33;;:69;;;;-1:-1:-1;;;;;3024:22:1;;;;:12;:22;;;:37;;;3089:17;-1:-1:-1;;3089:19:1;;-1:-1:-1;1068:2048:1;;;;;;;;:::o;4731:356::-;-1:-1:-1;;;;;4839:24:1;;4981:13;4839:24;;;:14;:24;;;;;;4792:6;;4981:13;4839:24;;:32;;:24;:32;4817:133;;;;;-1:-1:-1;;;;;;;;;;;4817:133:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;4997:22:1;;;;;;:12;:22;;;;;;;;;5052:20;;;;;;;;;;:26;;;;5044:35;;;;;;;;;;-1:-1:-1;;5044:35:1;;;;;;;;;;;;;;;;;;;;;;;;;5052:26;5044:35;;5052:26;5044:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4731:356;;;;:::o;457:46::-;;;;;;;;;;;;;;;:::o;300:36::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;300:36:1;;-1:-1:-1;300:36:1;:::o;30:5731::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30:5731:1;;;-1:-1:-1;30:5731:1;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;", + "source": "pragma solidity ^ 0.4 .18;\r\n\r\ncontract Company {\r\n\r\n struct SupportAgent {\r\n address agentAddress;\r\n string email;\r\n string fName;\r\n string lName;\r\n string timeZone;\r\n uint index;\r\n }\r\n\r\n mapping(uint256 => SupportAgent) private SupportAgents;\r\n address[] public supportAgentRecords;\r\n \r\n mapping(address => uint256) private agentRecords;\r\n \r\n uint256[] private agentIndex;\r\n \r\n \r\n mapping(address => bool) public isSupportAgent;\r\n\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////\r\n modifier agentDoesNotExist(address supportagent) {\r\n require(!isSupportAgent[supportagent]);\r\n _;\r\n }\r\n\r\n modifier agentExist(address supportagent) {\r\n require(isSupportAgent[supportagent]);\r\n _;\r\n }\r\n\r\n modifier notNull(address _address) {\r\n require(_address != 0);\r\n _;\r\n }\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n function addSupportAgent(address _address, string _email, string _fName, string _lName, string _timeZone) \r\n public\r\n returns(uint256 index) {\r\n \r\n \r\n // If the first argument of `require` evaluates\r\n // to `false`, execution terminates and all\r\n // changes to the state and to Ether balances\r\n // are reverted.\r\n // This used to consume all gas in old EVM versions, but\r\n // not anymore.\r\n // It is often a good idea to use `require` to check if\r\n // functions are called correctly.\r\n // As a second argument, you can also provide an\r\n // explanation about what went wrong. \r\n \r\n require(\r\n isSupportAgent[_address] == false,\r\n \"Agent already exist !\"\r\n ); \r\n \r\n \r\n require(\r\n (bytes(_email).length < 5)==false,\r\n \"Invalid Email address !\"\r\n );\r\n \r\n require(\r\n (bytes(_fName).length < 3)==false,\r\n \"First name should contain minimum 3 letters\"\r\n ); \r\n \r\n require(\r\n (bytes(_lName).length < 3)==false,\r\n \"Last name should contain minimum 3 letters\"\r\n ); \r\n \r\n require(\r\n (bytes(_timeZone).length < 3)==false,\r\n \"Timezone is Invalid\"\r\n ); \r\n \r\n uint256 currentIndex = countSupportAgents();\r\n isSupportAgent[_address] = true;\r\n \r\n SupportAgents[currentIndex].agentAddress = _address;\r\n SupportAgents[currentIndex].email = _email;\r\n SupportAgents[currentIndex].fName = _fName;\r\n SupportAgents[currentIndex].lName = _lName; \r\n SupportAgents[currentIndex].timeZone = _timeZone;\r\n\r\n SupportAgents[currentIndex].index = agentIndex.push(currentIndex) - 1;\r\n \r\n agentRecords[_address] = currentIndex;\r\n \r\n return agentIndex.length-1;\r\n }\r\n\r\n function removeOneSupportAgent(address _address) public returns(uint) {\r\n \r\n require(\r\n isSupportAgent[_address] == true,\r\n \"There is no such agent with the given address !\"\r\n ); \r\n \r\n\r\n uint256 index = agentRecords[_address]; \r\n \r\n delete isSupportAgent[_address];\r\n delete agentRecords[_address];\r\n \r\n delete SupportAgents[index];\r\n delete agentIndex[index];\r\n \r\n agentIndex.length--;\r\n \r\n return countSupportAgents();\r\n }\r\n\r\n function removeAllSupportAgent() public returns(uint) {\r\n\r\n for (uint i=0; i < agentIndex.length; i++) \r\n {\r\n address agentAddress = SupportAgents[i].agentAddress; \r\n \r\n delete isSupportAgent[agentAddress];\r\n delete agentRecords[agentAddress];\r\n delete SupportAgents[i];\r\n \r\n }\r\n delete agentIndex; \r\n return countSupportAgents();\r\n }\r\n \r\n\r\n function findAllSupportAgents() view public returns(address[]) {\r\n return supportAgentRecords;\r\n }\r\n\r\n function findSupportAgentAddressById(uint index) view public returns(address) {\r\n return (SupportAgents[index].agentAddress);\r\n }\r\n\r\n function findSupportAgentArrayIndex(address _address) view public returns(uint) {\r\n\r\n require(\r\n isSupportAgent[_address] == true,\r\n \"There is no such agent with the given address !\"\r\n ); \r\n\r\n return agentRecords[_address];\r\n\r\n }\r\n\r\n \r\n function getAgentEmail(address _address) view public returns(string) \r\n {\r\n require(\r\n isSupportAgent[_address] == true,\r\n \"There is no such agent with the given address !\"\r\n ); \r\n \r\n uint256 index = agentRecords[_address]; \r\n \r\n return (SupportAgents[index].email);\r\n }\r\n \r\n \r\n function findSupportAgentByAddress(address _address) view public returns(string, string, string, string) \r\n {\r\n require(\r\n isSupportAgent[_address] == true,\r\n \"There is no such agent with the given address !\"\r\n ); \r\n \r\n uint256 index = agentRecords[_address]; \r\n \r\n return \r\n (SupportAgents[index].email, \r\n SupportAgents[index].fName, \r\n SupportAgents[index].lName,\r\n SupportAgents[index].timeZone);\r\n }\r\n \r\n \r\n function countSupportAgents() view public returns(uint256) {\r\n return agentIndex.length;\r\n }\r\n \r\n}", + "sourcePath": "C:\\i\\HT\\hellonetmarket\\ethereum\\contracts\\Company.sol", + "ast": { + "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/Company.sol", + "exportedSymbols": { + "Company": [ + 948 + ] + }, + "id": 949, + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 506, + "literals": [ + "solidity", + "^", + "0.4", + ".18" + ], + "nodeType": "PragmaDirective", + "src": "0:26:1" + }, + { + "baseContracts": [], + "contractDependencies": [], + "contractKind": "contract", + "documentation": null, + "fullyImplemented": true, + "id": 948, + "linearizedBaseContracts": [ + 948 + ], + "name": "Company", + "nodeType": "ContractDefinition", + "nodes": [ + { + "canonicalName": "Company.SupportAgent", + "id": 519, + "members": [ + { + "constant": false, + "id": 508, + "name": "agentAddress", + "nodeType": "VariableDeclaration", + "scope": 519, + "src": "87:20:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 507, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "87:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 510, + "name": "email", + "nodeType": "VariableDeclaration", + "scope": 519, + "src": "118:12:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + }, + "typeName": { + "id": 509, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "118:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 512, + "name": "fName", + "nodeType": "VariableDeclaration", + "scope": 519, + "src": "141:12:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + }, + "typeName": { + "id": 511, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "141:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 514, + "name": "lName", + "nodeType": "VariableDeclaration", + "scope": 519, + "src": "164:12:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + }, + "typeName": { + "id": 513, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "164:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 516, + "name": "timeZone", + "nodeType": "VariableDeclaration", + "scope": 519, + "src": "187:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + }, + "typeName": { + "id": 515, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "187:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 518, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 519, + "src": "213:10:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 517, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "213:4:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "name": "SupportAgent", + "nodeType": "StructDefinition", + "scope": 948, + "src": "56:175:1", + "visibility": "public" + }, + { + "constant": false, + "id": 523, + "name": "SupportAgents", + "nodeType": "VariableDeclaration", + "scope": 948, + "src": "239:54:1", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent)" + }, + "typeName": { + "id": 522, + "keyType": { + "id": 520, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "247:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Mapping", + "src": "239:32:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent)" + }, + "valueType": { + "contractScope": null, + "id": 521, + "name": "SupportAgent", + "nodeType": "UserDefinedTypeName", + "referencedDeclaration": 519, + "src": "258:12:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage_ptr", + "typeString": "struct Company.SupportAgent" + } + } + }, + "value": null, + "visibility": "private" + }, + { + "constant": false, + "id": 526, + "name": "supportAgentRecords", + "nodeType": "VariableDeclaration", + "scope": 948, + "src": "300:36:1", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_address_$dyn_storage", + "typeString": "address[]" + }, + "typeName": { + "baseType": { + "id": 524, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "300:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 525, + "length": null, + "nodeType": "ArrayTypeName", + "src": "300:9:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", + "typeString": "address[]" + } + }, + "value": null, + "visibility": "public" + }, + { + "constant": false, + "id": 530, + "name": "agentRecords", + "nodeType": "VariableDeclaration", + "scope": 948, + "src": "349:48:1", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + }, + "typeName": { + "id": 529, + "keyType": { + "id": 527, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "357:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "349:27:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + }, + "valueType": { + "id": 528, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "368:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + }, + "value": null, + "visibility": "private" + }, + { + "constant": false, + "id": 533, + "name": "agentIndex", + "nodeType": "VariableDeclaration", + "scope": 948, + "src": "410:28:1", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[]" + }, + "typeName": { + "baseType": { + "id": 531, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "410:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 532, + "length": null, + "nodeType": "ArrayTypeName", + "src": "410:9:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", + "typeString": "uint256[]" + } + }, + "value": null, + "visibility": "private" + }, + { + "constant": false, + "id": 537, + "name": "isSupportAgent", + "nodeType": "VariableDeclaration", + "scope": 948, + "src": "457:46:1", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + }, + "typeName": { + "id": 536, + "keyType": { + "id": 534, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "465:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "457:24:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + }, + "valueType": { + "id": 535, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "476:4:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + }, + "value": null, + "visibility": "public" + }, + { + "body": { + "id": 549, + "nodeType": "Block", + "src": "669:69:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 545, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "688:29:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 542, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "689:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 544, + "indexExpression": { + "argumentTypes": null, + "id": 543, + "name": "supportagent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 539, + "src": "704:12:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "689:28:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 541, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1968, + "src": "680:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", + "typeString": "function (bool) pure" + } + }, + "id": 546, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "680:38:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 547, + "nodeType": "ExpressionStatement", + "src": "680:38:1" + }, + { + "id": 548, + "nodeType": "PlaceholderStatement", + "src": "729:1:1" + } + ] + }, + "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////\r", + "id": 550, + "name": "agentDoesNotExist", + "nodeType": "ModifierDefinition", + "parameters": { + "id": 540, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 539, + "name": "supportagent", + "nodeType": "VariableDeclaration", + "scope": 550, + "src": "647:20:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 538, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "647:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "646:22:1" + }, + "src": "620:118:1", + "visibility": "internal" + }, + { + "body": { + "id": 561, + "nodeType": "Block", + "src": "788:68:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 555, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "807:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 557, + "indexExpression": { + "argumentTypes": null, + "id": 556, + "name": "supportagent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 552, + "src": "822:12:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "807:28:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 554, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1968, + "src": "799:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", + "typeString": "function (bool) pure" + } + }, + "id": 558, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "799:37:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 559, + "nodeType": "ExpressionStatement", + "src": "799:37:1" + }, + { + "id": 560, + "nodeType": "PlaceholderStatement", + "src": "847:1:1" + } + ] + }, + "documentation": null, + "id": 562, + "name": "agentExist", + "nodeType": "ModifierDefinition", + "parameters": { + "id": 553, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 552, + "name": "supportagent", + "nodeType": "VariableDeclaration", + "scope": 562, + "src": "766:20:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 551, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "766:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "765:22:1" + }, + "src": "746:110:1", + "visibility": "internal" + }, + { + "body": { + "id": 573, + "nodeType": "Block", + "src": "899:53:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 569, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "id": 567, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 564, + "src": "918:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "argumentTypes": null, + "hexValue": "30", + "id": 568, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "930:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "918:13:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 566, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1968, + "src": "910:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", + "typeString": "function (bool) pure" + } + }, + "id": 570, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "910:22:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 571, + "nodeType": "ExpressionStatement", + "src": "910:22:1" + }, + { + "id": 572, + "nodeType": "PlaceholderStatement", + "src": "943:1:1" + } + ] + }, + "documentation": null, + "id": 574, + "name": "notNull", + "nodeType": "ModifierDefinition", + "parameters": { + "id": 565, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 564, + "name": "_address", + "nodeType": "VariableDeclaration", + "scope": 574, + "src": "881:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 563, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "881:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "880:18:1" + }, + "src": "864:88:1", + "visibility": "internal" + }, + { + "body": { + "id": 719, + "nodeType": "Block", + "src": "1217:1899:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 594, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 590, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "1788:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 592, + "indexExpression": { + "argumentTypes": null, + "id": 591, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 576, + "src": "1803:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1788:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "66616c7365", + "id": 593, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1816:5:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "1788:33:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "4167656e7420616c72656164792065786973742021", + "id": 595, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1836:23:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_cf05af21c42bc46dd555c3e9e69f3fa78dfb0860489b964e3d12cf994acd9d91", + "typeString": "literal_string \"Agent already exist !\"" + }, + "value": "Agent already exist !" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_cf05af21c42bc46dd555c3e9e69f3fa78dfb0860489b964e3d12cf994acd9d91", + "typeString": "literal_string \"Agent already exist !\"" + } + ], + "id": 589, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "1766:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 596, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1766:108:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 597, + "nodeType": "ExpressionStatement", + "src": "1766:108:1" + }, + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 607, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 604, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 600, + "name": "_email", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 578, + "src": "1946:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + ], + "id": 599, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "1940:5:1", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_bytes_storage_ptr_$", + "typeString": "type(bytes storage pointer)" + }, + "typeName": "bytes" + }, + "id": 601, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1940:13:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory", + "typeString": "bytes memory" + } + }, + "id": 602, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "1940:20:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "argumentTypes": null, + "hexValue": "35", + "id": 603, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1963:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_5_by_1", + "typeString": "int_const 5" + }, + "value": "5" + }, + "src": "1940:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 605, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "1939:26:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "66616c7365", + "id": 606, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1967:5:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "1939:33:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "496e76616c696420456d61696c20616464726573732021", + "id": 608, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1987:25:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_ebbe95df7058c1a391298274699fe83b8627312fc7f82b26ef5fb123858078ea", + "typeString": "literal_string \"Invalid Email address !\"" + }, + "value": "Invalid Email address !" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_ebbe95df7058c1a391298274699fe83b8627312fc7f82b26ef5fb123858078ea", + "typeString": "literal_string \"Invalid Email address !\"" + } + ], + "id": 598, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "1917:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 609, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1917:110:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 610, + "nodeType": "ExpressionStatement", + "src": "1917:110:1" + }, + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 620, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 617, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 613, + "name": "_fName", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 580, + "src": "2073:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + ], + "id": 612, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "2067:5:1", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_bytes_storage_ptr_$", + "typeString": "type(bytes storage pointer)" + }, + "typeName": "bytes" + }, + "id": 614, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2067:13:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory", + "typeString": "bytes memory" + } + }, + "id": 615, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "2067:20:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "argumentTypes": null, + "hexValue": "33", + "id": 616, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2090:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_3_by_1", + "typeString": "int_const 3" + }, + "value": "3" + }, + "src": "2067:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 618, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2066:26:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "66616c7365", + "id": 619, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2094:5:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "2066:33:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "4669727374206e616d652073686f756c6420636f6e7461696e206d696e696d756d2033206c657474657273", + "id": 621, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2114:45:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_5f9dc8fd126aa581a445c3053d9bd6918365229d33711d8efb0ce486a628db32", + "typeString": "literal_string \"First name should contain minimum 3 letters\"" + }, + "value": "First name should contain minimum 3 letters" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_5f9dc8fd126aa581a445c3053d9bd6918365229d33711d8efb0ce486a628db32", + "typeString": "literal_string \"First name should contain minimum 3 letters\"" + } + ], + "id": 611, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "2044:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 622, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2044:130:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 623, + "nodeType": "ExpressionStatement", + "src": "2044:130:1" + }, + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 633, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 630, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 626, + "name": "_lName", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 582, + "src": "2232:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + ], + "id": 625, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "2226:5:1", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_bytes_storage_ptr_$", + "typeString": "type(bytes storage pointer)" + }, + "typeName": "bytes" + }, + "id": 627, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2226:13:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory", + "typeString": "bytes memory" + } + }, + "id": 628, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "2226:20:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "argumentTypes": null, + "hexValue": "33", + "id": 629, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2249:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_3_by_1", + "typeString": "int_const 3" + }, + "value": "3" + }, + "src": "2226:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 631, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2225:26:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "66616c7365", + "id": 632, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2253:5:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "2225:33:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "4c617374206e616d652073686f756c6420636f6e7461696e206d696e696d756d2033206c657474657273", + "id": 634, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2273:44:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_d67de0144365e2af8189ca3dbe099727a0009a350983897187eef357e87731ca", + "typeString": "literal_string \"Last name should contain minimum 3 letters\"" + }, + "value": "Last name should contain minimum 3 letters" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_d67de0144365e2af8189ca3dbe099727a0009a350983897187eef357e87731ca", + "typeString": "literal_string \"Last name should contain minimum 3 letters\"" + } + ], + "id": 624, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "2203:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 635, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2203:129:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 636, + "nodeType": "ExpressionStatement", + "src": "2203:129:1" + }, + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 646, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 643, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 639, + "name": "_timeZone", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 584, + "src": "2402:9:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + ], + "id": 638, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "2396:5:1", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_bytes_storage_ptr_$", + "typeString": "type(bytes storage pointer)" + }, + "typeName": "bytes" + }, + "id": 640, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2396:16:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory", + "typeString": "bytes memory" + } + }, + "id": 641, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "2396:23:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "argumentTypes": null, + "hexValue": "33", + "id": 642, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2422:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_3_by_1", + "typeString": "int_const 3" + }, + "value": "3" + }, + "src": "2396:27:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 644, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2395:29:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "66616c7365", + "id": 645, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2426:5:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "2395:36:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "54696d657a6f6e6520697320496e76616c6964", + "id": 647, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2446:21:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_bdd71664d7dbc0937c6d7d9afe7f7d88cb6272238aa1bd5a76c90e070c4fd904", + "typeString": "literal_string \"Timezone is Invalid\"" + }, + "value": "Timezone is Invalid" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_bdd71664d7dbc0937c6d7d9afe7f7d88cb6272238aa1bd5a76c90e070c4fd904", + "typeString": "literal_string \"Timezone is Invalid\"" + } + ], + "id": 637, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "2373:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 648, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2373:109:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 649, + "nodeType": "ExpressionStatement", + "src": "2373:109:1" + }, + { + "assignments": [ + 651 + ], + "declarations": [ + { + "constant": false, + "id": 651, + "name": "currentIndex", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "2513:20:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 650, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2513:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 654, + "initialValue": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 652, + "name": "countSupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 947, + "src": "2536:18:1", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 653, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2536:20:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "2513:43:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 659, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 655, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "2567:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 657, + "indexExpression": { + "argumentTypes": null, + "id": 656, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 576, + "src": "2582:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "2567:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 658, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2594:4:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "2567:31:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 660, + "nodeType": "ExpressionStatement", + "src": "2567:31:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 666, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 661, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "2619:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 663, + "indexExpression": { + "argumentTypes": null, + "id": 662, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2633:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2619:27:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 664, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "agentAddress", + "nodeType": "MemberAccess", + "referencedDeclaration": 508, + "src": "2619:40:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 665, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 576, + "src": "2662:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "2619:51:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 667, + "nodeType": "ExpressionStatement", + "src": "2619:51:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 673, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 668, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "2681:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 670, + "indexExpression": { + "argumentTypes": null, + "id": 669, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2695:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2681:27:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 671, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "email", + "nodeType": "MemberAccess", + "referencedDeclaration": 510, + "src": "2681:33:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 672, + "name": "_email", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 578, + "src": "2724:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "2681:49:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 674, + "nodeType": "ExpressionStatement", + "src": "2681:49:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 680, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 675, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "2741:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 677, + "indexExpression": { + "argumentTypes": null, + "id": 676, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2755:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2741:27:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 678, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "fName", + "nodeType": "MemberAccess", + "referencedDeclaration": 512, + "src": "2741:33:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 679, + "name": "_fName", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 580, + "src": "2784:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "2741:49:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 681, + "nodeType": "ExpressionStatement", + "src": "2741:49:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 687, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 682, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "2801:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 684, + "indexExpression": { + "argumentTypes": null, + "id": 683, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2815:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2801:27:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 685, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "lName", + "nodeType": "MemberAccess", + "referencedDeclaration": 514, + "src": "2801:33:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 686, + "name": "_lName", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 582, + "src": "2844:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "2801:49:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 688, + "nodeType": "ExpressionStatement", + "src": "2801:49:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 694, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 689, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "2869:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 691, + "indexExpression": { + "argumentTypes": null, + "id": 690, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2883:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2869:27:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 692, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "timeZone", + "nodeType": "MemberAccess", + "referencedDeclaration": 516, + "src": "2869:36:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 693, + "name": "_timeZone", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 584, + "src": "2912:9:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "2869:52:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 695, + "nodeType": "ExpressionStatement", + "src": "2869:52:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 706, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 696, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "2934:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 698, + "indexExpression": { + "argumentTypes": null, + "id": 697, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2948:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2934:27:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 699, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 518, + "src": "2934:33:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 705, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 702, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2986:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "expression": { + "argumentTypes": null, + "id": 700, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "2970:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 701, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "push", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "2970:15:1", + "typeDescriptions": { + "typeIdentifier": "t_function_arraypush_nonpayable$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (uint256) returns (uint256)" + } + }, + "id": 703, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2970:29:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "argumentTypes": null, + "hexValue": "31", + "id": 704, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3002:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "2970:33:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "2934:69:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 707, + "nodeType": "ExpressionStatement", + "src": "2934:69:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 712, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 708, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "3024:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 710, + "indexExpression": { + "argumentTypes": null, + "id": 709, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 576, + "src": "3037:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3024:22:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 711, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "3049:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "3024:37:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 713, + "nodeType": "ExpressionStatement", + "src": "3024:37:1" + }, + { + "expression": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 717, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 714, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "3089:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 715, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "3089:17:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "argumentTypes": null, + "hexValue": "31", + "id": 716, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3107:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "3089:19:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 588, + "id": 718, + "nodeType": "Return", + "src": "3082:26:1" + } + ] + }, + "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////\r", + "id": 720, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "addSupportAgent", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 585, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 576, + "name": "_address", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "1093:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 575, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1093:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 578, + "name": "_email", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "1111:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 577, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "1111:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 580, + "name": "_fName", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "1126:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 579, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "1126:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 582, + "name": "_lName", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "1141:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 581, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "1141:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 584, + "name": "_timeZone", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "1156:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 583, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "1156:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "1092:81:1" + }, + "payable": false, + "returnParameters": { + "id": 588, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 587, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "1202:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 586, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1202:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "1201:15:1" + }, + "scope": 948, + "src": "1068:2048:1", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 770, + "nodeType": "Block", + "src": "3194:518:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 732, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 728, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "3237:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 730, + "indexExpression": { + "argumentTypes": null, + "id": 729, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 722, + "src": "3252:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3237:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 731, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3265:4:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "3237:32:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "5468657265206973206e6f2073756368206167656e7420776974682074686520676976656e20616464726573732021", + "id": 733, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3284:49:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + }, + "value": "There is no such agent with the given address !" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + } + ], + "id": 727, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "3215:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 734, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3215:133:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 735, + "nodeType": "ExpressionStatement", + "src": "3215:133:1" + }, + { + "assignments": [ + 737 + ], + "declarations": [ + { + "constant": false, + "id": 737, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 771, + "src": "3384:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 736, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3384:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 741, + "initialValue": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 738, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "3400:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 740, + "indexExpression": { + "argumentTypes": null, + "id": 739, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 722, + "src": "3413:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3400:22:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "3384:38:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 745, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "3456:31:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 742, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "3463:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 744, + "indexExpression": { + "argumentTypes": null, + "id": 743, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 722, + "src": "3478:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3463:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 746, + "nodeType": "ExpressionStatement", + "src": "3456:31:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 750, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "3499:29:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 747, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "3506:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 749, + "indexExpression": { + "argumentTypes": null, + "id": 748, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 722, + "src": "3519:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3506:22:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 751, + "nodeType": "ExpressionStatement", + "src": "3499:29:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 755, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "3551:27:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 752, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "3558:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 754, + "indexExpression": { + "argumentTypes": null, + "id": 753, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 737, + "src": "3572:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3558:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 756, + "nodeType": "ExpressionStatement", + "src": "3551:27:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 760, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "3590:24:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 757, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "3597:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 759, + "indexExpression": { + "argumentTypes": null, + "id": 758, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 737, + "src": "3608:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3597:17:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 761, + "nodeType": "ExpressionStatement", + "src": "3590:24:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 765, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "--", + "prefix": false, + "src": "3637:19:1", + "subExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 762, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "3637:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 764, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "3637:17:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 766, + "nodeType": "ExpressionStatement", + "src": "3637:19:1" + }, + { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 767, + "name": "countSupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 947, + "src": "3684:18:1", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 768, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3684:20:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 726, + "id": 769, + "nodeType": "Return", + "src": "3677:27:1" + } + ] + }, + "documentation": null, + "id": 771, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "removeOneSupportAgent", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 723, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 722, + "name": "_address", + "nodeType": "VariableDeclaration", + "scope": 771, + "src": "3155:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 721, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3155:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3154:18:1" + }, + "payable": false, + "returnParameters": { + "id": 726, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 725, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 771, + "src": "3188:4:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 724, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "3188:4:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3187:6:1" + }, + "scope": 948, + "src": "3124:588:1", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 817, + "nodeType": "Block", + "src": "3774:376:1", + "statements": [ + { + "body": { + "id": 809, + "nodeType": "Block", + "src": "3840:229:1", + "statements": [ + { + "assignments": [ + 788 + ], + "declarations": [ + { + "constant": false, + "id": 788, + "name": "agentAddress", + "nodeType": "VariableDeclaration", + "scope": 818, + "src": "3852:20:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 787, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3852:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 793, + "initialValue": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 789, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "3875:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 791, + "indexExpression": { + "argumentTypes": null, + "id": 790, + "name": "i", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 777, + "src": "3889:1:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3875:16:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 792, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "agentAddress", + "nodeType": "MemberAccess", + "referencedDeclaration": 508, + "src": "3875:29:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "3852:52:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 797, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "3931:35:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 794, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "3938:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 796, + "indexExpression": { + "argumentTypes": null, + "id": 795, + "name": "agentAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 788, + "src": "3953:12:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3938:28:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 798, + "nodeType": "ExpressionStatement", + "src": "3931:35:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 802, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "3978:33:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 799, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "3985:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 801, + "indexExpression": { + "argumentTypes": null, + "id": 800, + "name": "agentAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 788, + "src": "3998:12:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3985:26:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 803, + "nodeType": "ExpressionStatement", + "src": "3978:33:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 807, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "4023:23:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 804, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "4030:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 806, + "indexExpression": { + "argumentTypes": null, + "id": 805, + "name": "i", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 777, + "src": "4044:1:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "4030:16:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 808, + "nodeType": "ExpressionStatement", + "src": "4023:23:1" + } + ] + }, + "condition": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 783, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "id": 780, + "name": "i", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 777, + "src": "3802:1:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 781, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "3806:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 782, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "3806:17:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "3802:21:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 810, + "initializationExpression": { + "assignments": [ + 777 + ], + "declarations": [ + { + "constant": false, + "id": 777, + "name": "i", + "nodeType": "VariableDeclaration", + "scope": 818, + "src": "3792:6:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 776, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "3792:4:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 779, + "initialValue": { + "argumentTypes": null, + "hexValue": "30", + "id": 778, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3799:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "nodeType": "VariableDeclarationStatement", + "src": "3792:8:1" + }, + "loopExpression": { + "expression": { + "argumentTypes": null, + "id": 785, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "++", + "prefix": false, + "src": "3825:3:1", + "subExpression": { + "argumentTypes": null, + "id": 784, + "name": "i", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 777, + "src": "3825:1:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 786, + "nodeType": "ExpressionStatement", + "src": "3825:3:1" + }, + "nodeType": "ForStatement", + "src": "3787:282:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 812, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "4079:17:1", + "subExpression": { + "argumentTypes": null, + "id": 811, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "4086:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 813, + "nodeType": "ExpressionStatement", + "src": "4079:17:1" + }, + { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 814, + "name": "countSupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 947, + "src": "4122:18:1", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 815, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4122:20:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 775, + "id": 816, + "nodeType": "Return", + "src": "4115:27:1" + } + ] + }, + "documentation": null, + "id": 818, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "removeAllSupportAgent", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 772, + "nodeType": "ParameterList", + "parameters": [], + "src": "3750:2:1" + }, + "payable": false, + "returnParameters": { + "id": 775, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 774, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 818, + "src": "3768:4:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 773, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "3768:4:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3767:6:1" + }, + "scope": 948, + "src": "3720:430:1", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 826, + "nodeType": "Block", + "src": "4227:45:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "id": 824, + "name": "supportAgentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 526, + "src": "4245:19:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_address_$dyn_storage", + "typeString": "address[] storage ref" + } + }, + "functionReturnParameters": 823, + "id": 825, + "nodeType": "Return", + "src": "4238:26:1" + } + ] + }, + "documentation": null, + "id": 827, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "findAllSupportAgents", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 819, + "nodeType": "ParameterList", + "parameters": [], + "src": "4193:2:1" + }, + "payable": false, + "returnParameters": { + "id": 823, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 822, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 827, + "src": "4216:9:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", + "typeString": "address[]" + }, + "typeName": { + "baseType": { + "id": 820, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4216:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 821, + "length": null, + "nodeType": "ArrayTypeName", + "src": "4216:9:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", + "typeString": "address[]" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4215:11:1" + }, + "scope": 948, + "src": "4164:108:1", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 840, + "nodeType": "Block", + "src": "4358:61:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 834, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "4377:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 836, + "indexExpression": { + "argumentTypes": null, + "id": 835, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 829, + "src": "4391:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4377:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 837, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "agentAddress", + "nodeType": "MemberAccess", + "referencedDeclaration": 508, + "src": "4377:33:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "id": 838, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "4376:35:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "functionReturnParameters": 833, + "id": 839, + "nodeType": "Return", + "src": "4369:42:1" + } + ] + }, + "documentation": null, + "id": 841, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "findSupportAgentAddressById", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 830, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 829, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 841, + "src": "4317:10:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 828, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "4317:4:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4316:12:1" + }, + "payable": false, + "returnParameters": { + "id": 833, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 832, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 841, + "src": "4349:7:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 831, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4349:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4348:9:1" + }, + "scope": 948, + "src": "4280:139:1", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 861, + "nodeType": "Block", + "src": "4507:210:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 853, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 849, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "4542:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 851, + "indexExpression": { + "argumentTypes": null, + "id": 850, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 843, + "src": "4557:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4542:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 852, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4570:4:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "4542:32:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "5468657265206973206e6f2073756368206167656e7420776974682074686520676976656e20616464726573732021", + "id": 854, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4589:49:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + }, + "value": "There is no such agent with the given address !" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + } + ], + "id": 848, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "4520:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 855, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4520:133:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 856, + "nodeType": "ExpressionStatement", + "src": "4520:133:1" + }, + { + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 857, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "4685:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 859, + "indexExpression": { + "argumentTypes": null, + "id": 858, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 843, + "src": "4698:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4685:22:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 847, + "id": 860, + "nodeType": "Return", + "src": "4678:29:1" + } + ] + }, + "documentation": null, + "id": 862, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "findSupportAgentArrayIndex", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 844, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 843, + "name": "_address", + "nodeType": "VariableDeclaration", + "scope": 862, + "src": "4463:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 842, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4463:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4462:18:1" + }, + "payable": false, + "returnParameters": { + "id": 847, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 846, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 862, + "src": "4501:4:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 845, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "4501:4:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4500:6:1" + }, + "scope": 948, + "src": "4427:290:1", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 890, + "nodeType": "Block", + "src": "4806:281:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 874, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 870, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "4839:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 872, + "indexExpression": { + "argumentTypes": null, + "id": 871, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 864, + "src": "4854:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4839:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 873, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4867:4:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "4839:32:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "5468657265206973206e6f2073756368206167656e7420776974682074686520676976656e20616464726573732021", + "id": 875, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4886:49:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + }, + "value": "There is no such agent with the given address !" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + } + ], + "id": 869, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "4817:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 876, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4817:133:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 877, + "nodeType": "ExpressionStatement", + "src": "4817:133:1" + }, + { + "assignments": [ + 879 + ], + "declarations": [ + { + "constant": false, + "id": 879, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 891, + "src": "4981:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 878, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4981:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 883, + "initialValue": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 880, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "4997:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 882, + "indexExpression": { + "argumentTypes": null, + "id": 881, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 864, + "src": "5010:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4997:22:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "4981:38:1" + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 884, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "5052:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 886, + "indexExpression": { + "argumentTypes": null, + "id": 885, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 879, + "src": "5066:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5052:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 887, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "email", + "nodeType": "MemberAccess", + "referencedDeclaration": 510, + "src": "5052:26:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + } + ], + "id": 888, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "5051:28:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "functionReturnParameters": 868, + "id": 889, + "nodeType": "Return", + "src": "5044:35:1" + } + ] + }, + "documentation": null, + "id": 891, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getAgentEmail", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 865, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 864, + "name": "_address", + "nodeType": "VariableDeclaration", + "scope": 891, + "src": "4754:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 863, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4754:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4753:18:1" + }, + "payable": false, + "returnParameters": { + "id": 868, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 867, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 891, + "src": "4792:6:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 866, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "4792:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4791:8:1" + }, + "scope": 948, + "src": "4731:356:1", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 937, + "nodeType": "Block", + "src": "5215:415:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 909, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 905, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "5248:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 907, + "indexExpression": { + "argumentTypes": null, + "id": 906, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 893, + "src": "5263:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5248:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 908, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "5276:4:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "5248:32:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "5468657265206973206e6f2073756368206167656e7420776974682074686520676976656e20616464726573732021", + "id": 910, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "5295:49:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + }, + "value": "There is no such agent with the given address !" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + } + ], + "id": 904, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "5226:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 911, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "5226:133:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 912, + "nodeType": "ExpressionStatement", + "src": "5226:133:1" + }, + { + "assignments": [ + 914 + ], + "declarations": [ + { + "constant": false, + "id": 914, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 938, + "src": "5394:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 913, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5394:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 918, + "initialValue": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 915, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "5410:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 917, + "indexExpression": { + "argumentTypes": null, + "id": 916, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 893, + "src": "5423:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5410:22:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "5394:38:1" + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 919, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "5479:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 921, + "indexExpression": { + "argumentTypes": null, + "id": 920, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 914, + "src": "5493:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5479:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 922, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "email", + "nodeType": "MemberAccess", + "referencedDeclaration": 510, + "src": "5479:26:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 923, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "5517:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 925, + "indexExpression": { + "argumentTypes": null, + "id": 924, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 914, + "src": "5531:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5517:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 926, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "fName", + "nodeType": "MemberAccess", + "referencedDeclaration": 512, + "src": "5517:26:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 927, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "5555:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 929, + "indexExpression": { + "argumentTypes": null, + "id": 928, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 914, + "src": "5569:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5555:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 930, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "lName", + "nodeType": "MemberAccess", + "referencedDeclaration": 514, + "src": "5555:26:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 931, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "5592:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 933, + "indexExpression": { + "argumentTypes": null, + "id": 932, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 914, + "src": "5606:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5592:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 934, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "timeZone", + "nodeType": "MemberAccess", + "referencedDeclaration": 516, + "src": "5592:29:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + } + ], + "id": 935, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "5478:144:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$_t_string_storage_$_t_string_storage_$_t_string_storage_$_t_string_storage_$", + "typeString": "tuple(string storage ref,string storage ref,string storage ref,string storage ref)" + } + }, + "functionReturnParameters": 903, + "id": 936, + "nodeType": "Return", + "src": "5461:161:1" + } + ] + }, + "documentation": null, + "id": 938, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "findSupportAgentByAddress", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 894, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 893, + "name": "_address", + "nodeType": "VariableDeclaration", + "scope": 938, + "src": "5139:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 892, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5139:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "5138:18:1" + }, + "payable": false, + "returnParameters": { + "id": 903, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 896, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 938, + "src": "5177:6:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 895, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "5177:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 898, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 938, + "src": "5185:6:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 897, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "5185:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 900, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 938, + "src": "5193:6:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 899, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "5193:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 902, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 938, + "src": "5201:6:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 901, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "5201:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "5176:32:1" + }, + "scope": 948, + "src": "5104:526:1", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 946, + "nodeType": "Block", + "src": "5709:43:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 943, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "5727:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 944, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "5727:17:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 942, + "id": 945, + "nodeType": "Return", + "src": "5720:24:1" + } + ] + }, + "documentation": null, + "id": 947, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "countSupportAgents", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 939, + "nodeType": "ParameterList", + "parameters": [], + "src": "5677:2:1" + }, + "payable": false, + "returnParameters": { + "id": 942, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 941, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 947, + "src": "5700:7:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 940, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5700:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "5699:9:1" + }, + "scope": 948, + "src": "5650:102:1", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + } + ], + "scope": 949, + "src": "30:5731:1" + } + ], + "src": "0:5761:1" + }, + "legacyAST": { + "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/Company.sol", + "exportedSymbols": { + "Company": [ + 948 + ] + }, + "id": 949, + "nodeType": "SourceUnit", + "nodes": [ + { + "id": 506, + "literals": [ + "solidity", + "^", + "0.4", + ".18" + ], + "nodeType": "PragmaDirective", + "src": "0:26:1" + }, + { + "baseContracts": [], + "contractDependencies": [], + "contractKind": "contract", + "documentation": null, + "fullyImplemented": true, + "id": 948, + "linearizedBaseContracts": [ + 948 + ], + "name": "Company", + "nodeType": "ContractDefinition", + "nodes": [ + { + "canonicalName": "Company.SupportAgent", + "id": 519, + "members": [ + { + "constant": false, + "id": 508, + "name": "agentAddress", + "nodeType": "VariableDeclaration", + "scope": 519, + "src": "87:20:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 507, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "87:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 510, + "name": "email", + "nodeType": "VariableDeclaration", + "scope": 519, + "src": "118:12:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + }, + "typeName": { + "id": 509, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "118:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 512, + "name": "fName", + "nodeType": "VariableDeclaration", + "scope": 519, + "src": "141:12:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + }, + "typeName": { + "id": 511, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "141:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 514, + "name": "lName", + "nodeType": "VariableDeclaration", + "scope": 519, + "src": "164:12:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + }, + "typeName": { + "id": 513, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "164:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 516, + "name": "timeZone", + "nodeType": "VariableDeclaration", + "scope": 519, + "src": "187:15:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + }, + "typeName": { + "id": 515, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "187:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 518, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 519, + "src": "213:10:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 517, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "213:4:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "name": "SupportAgent", + "nodeType": "StructDefinition", + "scope": 948, + "src": "56:175:1", + "visibility": "public" + }, + { + "constant": false, + "id": 523, + "name": "SupportAgents", + "nodeType": "VariableDeclaration", + "scope": 948, + "src": "239:54:1", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent)" + }, + "typeName": { + "id": 522, + "keyType": { + "id": 520, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "247:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Mapping", + "src": "239:32:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent)" + }, + "valueType": { + "contractScope": null, + "id": 521, + "name": "SupportAgent", + "nodeType": "UserDefinedTypeName", + "referencedDeclaration": 519, + "src": "258:12:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage_ptr", + "typeString": "struct Company.SupportAgent" + } + } + }, + "value": null, + "visibility": "private" + }, + { + "constant": false, + "id": 526, + "name": "supportAgentRecords", + "nodeType": "VariableDeclaration", + "scope": 948, + "src": "300:36:1", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_address_$dyn_storage", + "typeString": "address[]" + }, + "typeName": { + "baseType": { + "id": 524, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "300:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 525, + "length": null, + "nodeType": "ArrayTypeName", + "src": "300:9:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", + "typeString": "address[]" + } + }, + "value": null, + "visibility": "public" + }, + { + "constant": false, + "id": 530, + "name": "agentRecords", + "nodeType": "VariableDeclaration", + "scope": 948, + "src": "349:48:1", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + }, + "typeName": { + "id": 529, + "keyType": { + "id": 527, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "357:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "349:27:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + }, + "valueType": { + "id": 528, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "368:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + }, + "value": null, + "visibility": "private" + }, + { + "constant": false, + "id": 533, + "name": "agentIndex", + "nodeType": "VariableDeclaration", + "scope": 948, + "src": "410:28:1", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[]" + }, + "typeName": { + "baseType": { + "id": 531, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "410:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 532, + "length": null, + "nodeType": "ArrayTypeName", + "src": "410:9:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage_ptr", + "typeString": "uint256[]" + } + }, + "value": null, + "visibility": "private" + }, + { + "constant": false, + "id": 537, + "name": "isSupportAgent", + "nodeType": "VariableDeclaration", + "scope": 948, + "src": "457:46:1", + "stateVariable": true, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + }, + "typeName": { + "id": 536, + "keyType": { + "id": 534, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "465:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Mapping", + "src": "457:24:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + }, + "valueType": { + "id": 535, + "name": "bool", + "nodeType": "ElementaryTypeName", + "src": "476:4:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + }, + "value": null, + "visibility": "public" + }, + { + "body": { + "id": 549, + "nodeType": "Block", + "src": "669:69:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 545, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "!", + "prefix": true, + "src": "688:29:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 542, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "689:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 544, + "indexExpression": { + "argumentTypes": null, + "id": 543, + "name": "supportagent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 539, + "src": "704:12:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "689:28:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 541, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1968, + "src": "680:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", + "typeString": "function (bool) pure" + } + }, + "id": 546, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "680:38:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 547, + "nodeType": "ExpressionStatement", + "src": "680:38:1" + }, + { + "id": 548, + "nodeType": "PlaceholderStatement", + "src": "729:1:1" + } + ] + }, + "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////\r", + "id": 550, + "name": "agentDoesNotExist", + "nodeType": "ModifierDefinition", + "parameters": { + "id": 540, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 539, + "name": "supportagent", + "nodeType": "VariableDeclaration", + "scope": 550, + "src": "647:20:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 538, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "647:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "646:22:1" + }, + "src": "620:118:1", + "visibility": "internal" + }, + { + "body": { + "id": 561, + "nodeType": "Block", + "src": "788:68:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 555, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "807:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 557, + "indexExpression": { + "argumentTypes": null, + "id": 556, + "name": "supportagent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 552, + "src": "822:12:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "807:28:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 554, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1968, + "src": "799:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", + "typeString": "function (bool) pure" + } + }, + "id": 558, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "799:37:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 559, + "nodeType": "ExpressionStatement", + "src": "799:37:1" + }, + { + "id": 560, + "nodeType": "PlaceholderStatement", + "src": "847:1:1" + } + ] + }, + "documentation": null, + "id": 562, + "name": "agentExist", + "nodeType": "ModifierDefinition", + "parameters": { + "id": 553, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 552, + "name": "supportagent", + "nodeType": "VariableDeclaration", + "scope": 562, + "src": "766:20:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 551, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "766:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "765:22:1" + }, + "src": "746:110:1", + "visibility": "internal" + }, + { + "body": { + "id": 573, + "nodeType": "Block", + "src": "899:53:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "id": 569, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "id": 567, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 564, + "src": "918:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "BinaryOperation", + "operator": "!=", + "rightExpression": { + "argumentTypes": null, + "hexValue": "30", + "id": 568, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "930:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "src": "918:13:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + ], + "id": 566, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1968, + "src": "910:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", + "typeString": "function (bool) pure" + } + }, + "id": 570, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "910:22:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 571, + "nodeType": "ExpressionStatement", + "src": "910:22:1" + }, + { + "id": 572, + "nodeType": "PlaceholderStatement", + "src": "943:1:1" + } + ] + }, + "documentation": null, + "id": 574, + "name": "notNull", + "nodeType": "ModifierDefinition", + "parameters": { + "id": 565, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 564, + "name": "_address", + "nodeType": "VariableDeclaration", + "scope": 574, + "src": "881:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 563, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "881:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "880:18:1" + }, + "src": "864:88:1", + "visibility": "internal" + }, + { + "body": { + "id": 719, + "nodeType": "Block", + "src": "1217:1899:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 594, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 590, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "1788:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 592, + "indexExpression": { + "argumentTypes": null, + "id": 591, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 576, + "src": "1803:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "1788:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "66616c7365", + "id": 593, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1816:5:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "1788:33:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "4167656e7420616c72656164792065786973742021", + "id": 595, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1836:23:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_cf05af21c42bc46dd555c3e9e69f3fa78dfb0860489b964e3d12cf994acd9d91", + "typeString": "literal_string \"Agent already exist !\"" + }, + "value": "Agent already exist !" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_cf05af21c42bc46dd555c3e9e69f3fa78dfb0860489b964e3d12cf994acd9d91", + "typeString": "literal_string \"Agent already exist !\"" + } + ], + "id": 589, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "1766:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 596, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1766:108:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 597, + "nodeType": "ExpressionStatement", + "src": "1766:108:1" + }, + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 607, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 604, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 600, + "name": "_email", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 578, + "src": "1946:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + ], + "id": 599, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "1940:5:1", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_bytes_storage_ptr_$", + "typeString": "type(bytes storage pointer)" + }, + "typeName": "bytes" + }, + "id": 601, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1940:13:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory", + "typeString": "bytes memory" + } + }, + "id": 602, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "1940:20:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "argumentTypes": null, + "hexValue": "35", + "id": 603, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1963:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_5_by_1", + "typeString": "int_const 5" + }, + "value": "5" + }, + "src": "1940:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 605, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "1939:26:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "66616c7365", + "id": 606, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1967:5:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "1939:33:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "496e76616c696420456d61696c20616464726573732021", + "id": 608, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "1987:25:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_ebbe95df7058c1a391298274699fe83b8627312fc7f82b26ef5fb123858078ea", + "typeString": "literal_string \"Invalid Email address !\"" + }, + "value": "Invalid Email address !" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_ebbe95df7058c1a391298274699fe83b8627312fc7f82b26ef5fb123858078ea", + "typeString": "literal_string \"Invalid Email address !\"" + } + ], + "id": 598, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "1917:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 609, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "1917:110:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 610, + "nodeType": "ExpressionStatement", + "src": "1917:110:1" + }, + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 620, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 617, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 613, + "name": "_fName", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 580, + "src": "2073:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + ], + "id": 612, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "2067:5:1", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_bytes_storage_ptr_$", + "typeString": "type(bytes storage pointer)" + }, + "typeName": "bytes" + }, + "id": 614, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2067:13:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory", + "typeString": "bytes memory" + } + }, + "id": 615, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "2067:20:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "argumentTypes": null, + "hexValue": "33", + "id": 616, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2090:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_3_by_1", + "typeString": "int_const 3" + }, + "value": "3" + }, + "src": "2067:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 618, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2066:26:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "66616c7365", + "id": 619, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2094:5:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "2066:33:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "4669727374206e616d652073686f756c6420636f6e7461696e206d696e696d756d2033206c657474657273", + "id": 621, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2114:45:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_5f9dc8fd126aa581a445c3053d9bd6918365229d33711d8efb0ce486a628db32", + "typeString": "literal_string \"First name should contain minimum 3 letters\"" + }, + "value": "First name should contain minimum 3 letters" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_5f9dc8fd126aa581a445c3053d9bd6918365229d33711d8efb0ce486a628db32", + "typeString": "literal_string \"First name should contain minimum 3 letters\"" + } + ], + "id": 611, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "2044:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 622, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2044:130:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 623, + "nodeType": "ExpressionStatement", + "src": "2044:130:1" + }, + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 633, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 630, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 626, + "name": "_lName", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 582, + "src": "2232:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + ], + "id": 625, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "2226:5:1", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_bytes_storage_ptr_$", + "typeString": "type(bytes storage pointer)" + }, + "typeName": "bytes" + }, + "id": 627, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2226:13:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory", + "typeString": "bytes memory" + } + }, + "id": 628, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "2226:20:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "argumentTypes": null, + "hexValue": "33", + "id": 629, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2249:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_3_by_1", + "typeString": "int_const 3" + }, + "value": "3" + }, + "src": "2226:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 631, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2225:26:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "66616c7365", + "id": 632, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2253:5:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "2225:33:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "4c617374206e616d652073686f756c6420636f6e7461696e206d696e696d756d2033206c657474657273", + "id": 634, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2273:44:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_d67de0144365e2af8189ca3dbe099727a0009a350983897187eef357e87731ca", + "typeString": "literal_string \"Last name should contain minimum 3 letters\"" + }, + "value": "Last name should contain minimum 3 letters" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_d67de0144365e2af8189ca3dbe099727a0009a350983897187eef357e87731ca", + "typeString": "literal_string \"Last name should contain minimum 3 letters\"" + } + ], + "id": 624, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "2203:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 635, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2203:129:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 636, + "nodeType": "ExpressionStatement", + "src": "2203:129:1" + }, + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 646, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 643, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 639, + "name": "_timeZone", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 584, + "src": "2402:9:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + ], + "id": 638, + "isConstant": false, + "isLValue": false, + "isPure": true, + "lValueRequested": false, + "nodeType": "ElementaryTypeNameExpression", + "src": "2396:5:1", + "typeDescriptions": { + "typeIdentifier": "t_type$_t_bytes_storage_ptr_$", + "typeString": "type(bytes storage pointer)" + }, + "typeName": "bytes" + }, + "id": 640, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "typeConversion", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2396:16:1", + "typeDescriptions": { + "typeIdentifier": "t_bytes_memory", + "typeString": "bytes memory" + } + }, + "id": 641, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "2396:23:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "argumentTypes": null, + "hexValue": "33", + "id": 642, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2422:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_3_by_1", + "typeString": "int_const 3" + }, + "value": "3" + }, + "src": "2396:27:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + } + ], + "id": 644, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "2395:29:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "66616c7365", + "id": 645, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2426:5:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "false" + }, + "src": "2395:36:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "54696d657a6f6e6520697320496e76616c6964", + "id": 647, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2446:21:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_bdd71664d7dbc0937c6d7d9afe7f7d88cb6272238aa1bd5a76c90e070c4fd904", + "typeString": "literal_string \"Timezone is Invalid\"" + }, + "value": "Timezone is Invalid" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_bdd71664d7dbc0937c6d7d9afe7f7d88cb6272238aa1bd5a76c90e070c4fd904", + "typeString": "literal_string \"Timezone is Invalid\"" + } + ], + "id": 637, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "2373:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 648, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2373:109:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 649, + "nodeType": "ExpressionStatement", + "src": "2373:109:1" + }, + { + "assignments": [ + 651 + ], + "declarations": [ + { + "constant": false, + "id": 651, + "name": "currentIndex", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "2513:20:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 650, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "2513:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 654, + "initialValue": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 652, + "name": "countSupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 947, + "src": "2536:18:1", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 653, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2536:20:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "2513:43:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 659, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 655, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "2567:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 657, + "indexExpression": { + "argumentTypes": null, + "id": 656, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 576, + "src": "2582:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "2567:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 658, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "2594:4:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "2567:31:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 660, + "nodeType": "ExpressionStatement", + "src": "2567:31:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 666, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 661, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "2619:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 663, + "indexExpression": { + "argumentTypes": null, + "id": 662, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2633:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2619:27:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 664, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "agentAddress", + "nodeType": "MemberAccess", + "referencedDeclaration": 508, + "src": "2619:40:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 665, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 576, + "src": "2662:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "src": "2619:51:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 667, + "nodeType": "ExpressionStatement", + "src": "2619:51:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 673, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 668, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "2681:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 670, + "indexExpression": { + "argumentTypes": null, + "id": 669, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2695:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2681:27:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 671, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "email", + "nodeType": "MemberAccess", + "referencedDeclaration": 510, + "src": "2681:33:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 672, + "name": "_email", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 578, + "src": "2724:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "2681:49:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 674, + "nodeType": "ExpressionStatement", + "src": "2681:49:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 680, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 675, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "2741:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 677, + "indexExpression": { + "argumentTypes": null, + "id": 676, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2755:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2741:27:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 678, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "fName", + "nodeType": "MemberAccess", + "referencedDeclaration": 512, + "src": "2741:33:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 679, + "name": "_fName", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 580, + "src": "2784:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "2741:49:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 681, + "nodeType": "ExpressionStatement", + "src": "2741:49:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 687, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 682, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "2801:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 684, + "indexExpression": { + "argumentTypes": null, + "id": 683, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2815:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2801:27:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 685, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "lName", + "nodeType": "MemberAccess", + "referencedDeclaration": 514, + "src": "2801:33:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 686, + "name": "_lName", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 582, + "src": "2844:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "2801:49:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 688, + "nodeType": "ExpressionStatement", + "src": "2801:49:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 694, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 689, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "2869:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 691, + "indexExpression": { + "argumentTypes": null, + "id": 690, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2883:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2869:27:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 692, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "timeZone", + "nodeType": "MemberAccess", + "referencedDeclaration": 516, + "src": "2869:36:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 693, + "name": "_timeZone", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 584, + "src": "2912:9:1", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string memory" + } + }, + "src": "2869:52:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "id": 695, + "nodeType": "ExpressionStatement", + "src": "2869:52:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 706, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 696, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "2934:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 698, + "indexExpression": { + "argumentTypes": null, + "id": 697, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2948:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "2934:27:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 699, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "index", + "nodeType": "MemberAccess", + "referencedDeclaration": 518, + "src": "2934:33:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 705, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "id": 702, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "2986:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + ], + "expression": { + "argumentTypes": null, + "id": 700, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "2970:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 701, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "memberName": "push", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "2970:15:1", + "typeDescriptions": { + "typeIdentifier": "t_function_arraypush_nonpayable$_t_uint256_$returns$_t_uint256_$", + "typeString": "function (uint256) returns (uint256)" + } + }, + "id": 703, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "2970:29:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "argumentTypes": null, + "hexValue": "31", + "id": 704, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3002:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "2970:33:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "2934:69:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 707, + "nodeType": "ExpressionStatement", + "src": "2934:69:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 712, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftHandSide": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 708, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "3024:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 710, + "indexExpression": { + "argumentTypes": null, + "id": 709, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 576, + "src": "3037:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3024:22:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "Assignment", + "operator": "=", + "rightHandSide": { + "argumentTypes": null, + "id": 711, + "name": "currentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 651, + "src": "3049:12:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "3024:37:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 713, + "nodeType": "ExpressionStatement", + "src": "3024:37:1" + }, + { + "expression": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 717, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 714, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "3089:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 715, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "3089:17:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "-", + "rightExpression": { + "argumentTypes": null, + "hexValue": "31", + "id": 716, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3107:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_1_by_1", + "typeString": "int_const 1" + }, + "value": "1" + }, + "src": "3089:19:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 588, + "id": 718, + "nodeType": "Return", + "src": "3082:26:1" + } + ] + }, + "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////\r", + "id": 720, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "addSupportAgent", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 585, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 576, + "name": "_address", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "1093:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 575, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "1093:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 578, + "name": "_email", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "1111:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 577, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "1111:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 580, + "name": "_fName", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "1126:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 579, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "1126:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 582, + "name": "_lName", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "1141:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 581, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "1141:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 584, + "name": "_timeZone", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "1156:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 583, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "1156:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "1092:81:1" + }, + "payable": false, + "returnParameters": { + "id": 588, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 587, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 720, + "src": "1202:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 586, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "1202:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "1201:15:1" + }, + "scope": 948, + "src": "1068:2048:1", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 770, + "nodeType": "Block", + "src": "3194:518:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 732, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 728, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "3237:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 730, + "indexExpression": { + "argumentTypes": null, + "id": 729, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 722, + "src": "3252:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3237:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 731, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3265:4:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "3237:32:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "5468657265206973206e6f2073756368206167656e7420776974682074686520676976656e20616464726573732021", + "id": 733, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3284:49:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + }, + "value": "There is no such agent with the given address !" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + } + ], + "id": 727, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "3215:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 734, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3215:133:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 735, + "nodeType": "ExpressionStatement", + "src": "3215:133:1" + }, + { + "assignments": [ + 737 + ], + "declarations": [ + { + "constant": false, + "id": 737, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 771, + "src": "3384:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 736, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "3384:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 741, + "initialValue": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 738, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "3400:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 740, + "indexExpression": { + "argumentTypes": null, + "id": 739, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 722, + "src": "3413:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3400:22:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "3384:38:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 745, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "3456:31:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 742, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "3463:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 744, + "indexExpression": { + "argumentTypes": null, + "id": 743, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 722, + "src": "3478:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3463:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 746, + "nodeType": "ExpressionStatement", + "src": "3456:31:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 750, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "3499:29:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 747, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "3506:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 749, + "indexExpression": { + "argumentTypes": null, + "id": 748, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 722, + "src": "3519:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3506:22:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 751, + "nodeType": "ExpressionStatement", + "src": "3499:29:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 755, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "3551:27:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 752, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "3558:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 754, + "indexExpression": { + "argumentTypes": null, + "id": 753, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 737, + "src": "3572:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3558:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 756, + "nodeType": "ExpressionStatement", + "src": "3551:27:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 760, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "3590:24:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 757, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "3597:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 759, + "indexExpression": { + "argumentTypes": null, + "id": 758, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 737, + "src": "3608:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3597:17:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 761, + "nodeType": "ExpressionStatement", + "src": "3590:24:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 765, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "--", + "prefix": false, + "src": "3637:19:1", + "subExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 762, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "3637:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 764, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "3637:17:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 766, + "nodeType": "ExpressionStatement", + "src": "3637:19:1" + }, + { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 767, + "name": "countSupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 947, + "src": "3684:18:1", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 768, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "3684:20:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 726, + "id": 769, + "nodeType": "Return", + "src": "3677:27:1" + } + ] + }, + "documentation": null, + "id": 771, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "removeOneSupportAgent", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 723, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 722, + "name": "_address", + "nodeType": "VariableDeclaration", + "scope": 771, + "src": "3155:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 721, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3155:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3154:18:1" + }, + "payable": false, + "returnParameters": { + "id": 726, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 725, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 771, + "src": "3188:4:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 724, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "3188:4:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3187:6:1" + }, + "scope": 948, + "src": "3124:588:1", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 817, + "nodeType": "Block", + "src": "3774:376:1", + "statements": [ + { + "body": { + "id": 809, + "nodeType": "Block", + "src": "3840:229:1", + "statements": [ + { + "assignments": [ + 788 + ], + "declarations": [ + { + "constant": false, + "id": 788, + "name": "agentAddress", + "nodeType": "VariableDeclaration", + "scope": 818, + "src": "3852:20:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 787, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "3852:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 793, + "initialValue": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 789, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "3875:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 791, + "indexExpression": { + "argumentTypes": null, + "id": 790, + "name": "i", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 777, + "src": "3889:1:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "3875:16:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 792, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "agentAddress", + "nodeType": "MemberAccess", + "referencedDeclaration": 508, + "src": "3875:29:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "3852:52:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 797, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "3931:35:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 794, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "3938:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 796, + "indexExpression": { + "argumentTypes": null, + "id": 795, + "name": "agentAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 788, + "src": "3953:12:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3938:28:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 798, + "nodeType": "ExpressionStatement", + "src": "3931:35:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 802, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "3978:33:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 799, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "3985:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 801, + "indexExpression": { + "argumentTypes": null, + "id": 800, + "name": "agentAddress", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 788, + "src": "3998:12:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "3985:26:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 803, + "nodeType": "ExpressionStatement", + "src": "3978:33:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 807, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "4023:23:1", + "subExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 804, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "4030:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 806, + "indexExpression": { + "argumentTypes": null, + "id": 805, + "name": "i", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 777, + "src": "4044:1:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": true, + "nodeType": "IndexAccess", + "src": "4030:16:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 808, + "nodeType": "ExpressionStatement", + "src": "4023:23:1" + } + ] + }, + "condition": { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "id": 783, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "id": 780, + "name": "i", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 777, + "src": "3802:1:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "BinaryOperation", + "operator": "<", + "rightExpression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 781, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "3806:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 782, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "3806:17:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "src": "3802:21:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "id": 810, + "initializationExpression": { + "assignments": [ + 777 + ], + "declarations": [ + { + "constant": false, + "id": 777, + "name": "i", + "nodeType": "VariableDeclaration", + "scope": 818, + "src": "3792:6:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 776, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "3792:4:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 779, + "initialValue": { + "argumentTypes": null, + "hexValue": "30", + "id": 778, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "number", + "lValueRequested": false, + "nodeType": "Literal", + "src": "3799:1:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_rational_0_by_1", + "typeString": "int_const 0" + }, + "value": "0" + }, + "nodeType": "VariableDeclarationStatement", + "src": "3792:8:1" + }, + "loopExpression": { + "expression": { + "argumentTypes": null, + "id": 785, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "++", + "prefix": false, + "src": "3825:3:1", + "subExpression": { + "argumentTypes": null, + "id": 784, + "name": "i", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 777, + "src": "3825:1:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "id": 786, + "nodeType": "ExpressionStatement", + "src": "3825:3:1" + }, + "nodeType": "ForStatement", + "src": "3787:282:1" + }, + { + "expression": { + "argumentTypes": null, + "id": 812, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "UnaryOperation", + "operator": "delete", + "prefix": true, + "src": "4079:17:1", + "subExpression": { + "argumentTypes": null, + "id": 811, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "4086:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 813, + "nodeType": "ExpressionStatement", + "src": "4079:17:1" + }, + { + "expression": { + "argumentTypes": null, + "arguments": [], + "expression": { + "argumentTypes": [], + "id": 814, + "name": "countSupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 947, + "src": "4122:18:1", + "typeDescriptions": { + "typeIdentifier": "t_function_internal_view$__$returns$_t_uint256_$", + "typeString": "function () view returns (uint256)" + } + }, + "id": 815, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4122:20:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 775, + "id": 816, + "nodeType": "Return", + "src": "4115:27:1" + } + ] + }, + "documentation": null, + "id": 818, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": false, + "modifiers": [], + "name": "removeAllSupportAgent", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 772, + "nodeType": "ParameterList", + "parameters": [], + "src": "3750:2:1" + }, + "payable": false, + "returnParameters": { + "id": 775, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 774, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 818, + "src": "3768:4:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 773, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "3768:4:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "3767:6:1" + }, + "scope": 948, + "src": "3720:430:1", + "stateMutability": "nonpayable", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 826, + "nodeType": "Block", + "src": "4227:45:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "id": 824, + "name": "supportAgentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 526, + "src": "4245:19:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_address_$dyn_storage", + "typeString": "address[] storage ref" + } + }, + "functionReturnParameters": 823, + "id": 825, + "nodeType": "Return", + "src": "4238:26:1" + } + ] + }, + "documentation": null, + "id": 827, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "findAllSupportAgents", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 819, + "nodeType": "ParameterList", + "parameters": [], + "src": "4193:2:1" + }, + "payable": false, + "returnParameters": { + "id": 823, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 822, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 827, + "src": "4216:9:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", + "typeString": "address[]" + }, + "typeName": { + "baseType": { + "id": 820, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4216:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "id": 821, + "length": null, + "nodeType": "ArrayTypeName", + "src": "4216:9:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", + "typeString": "address[]" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4215:11:1" + }, + "scope": 948, + "src": "4164:108:1", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 840, + "nodeType": "Block", + "src": "4358:61:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 834, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "4377:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 836, + "indexExpression": { + "argumentTypes": null, + "id": 835, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 829, + "src": "4391:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4377:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 837, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "agentAddress", + "nodeType": "MemberAccess", + "referencedDeclaration": 508, + "src": "4377:33:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + } + ], + "id": 838, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "4376:35:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "functionReturnParameters": 833, + "id": 839, + "nodeType": "Return", + "src": "4369:42:1" + } + ] + }, + "documentation": null, + "id": 841, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "findSupportAgentAddressById", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 830, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 829, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 841, + "src": "4317:10:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 828, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "4317:4:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4316:12:1" + }, + "payable": false, + "returnParameters": { + "id": 833, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 832, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 841, + "src": "4349:7:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 831, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4349:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4348:9:1" + }, + "scope": 948, + "src": "4280:139:1", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 861, + "nodeType": "Block", + "src": "4507:210:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 853, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 849, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "4542:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 851, + "indexExpression": { + "argumentTypes": null, + "id": 850, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 843, + "src": "4557:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4542:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 852, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4570:4:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "4542:32:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "5468657265206973206e6f2073756368206167656e7420776974682074686520676976656e20616464726573732021", + "id": 854, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4589:49:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + }, + "value": "There is no such agent with the given address !" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + } + ], + "id": 848, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "4520:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 855, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4520:133:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 856, + "nodeType": "ExpressionStatement", + "src": "4520:133:1" + }, + { + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 857, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "4685:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 859, + "indexExpression": { + "argumentTypes": null, + "id": 858, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 843, + "src": "4698:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4685:22:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 847, + "id": 860, + "nodeType": "Return", + "src": "4678:29:1" + } + ] + }, + "documentation": null, + "id": 862, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "findSupportAgentArrayIndex", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 844, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 843, + "name": "_address", + "nodeType": "VariableDeclaration", + "scope": 862, + "src": "4463:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 842, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4463:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4462:18:1" + }, + "payable": false, + "returnParameters": { + "id": 847, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 846, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 862, + "src": "4501:4:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 845, + "name": "uint", + "nodeType": "ElementaryTypeName", + "src": "4501:4:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4500:6:1" + }, + "scope": 948, + "src": "4427:290:1", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 890, + "nodeType": "Block", + "src": "4806:281:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 874, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 870, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "4839:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 872, + "indexExpression": { + "argumentTypes": null, + "id": 871, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 864, + "src": "4854:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4839:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 873, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4867:4:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "4839:32:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "5468657265206973206e6f2073756368206167656e7420776974682074686520676976656e20616464726573732021", + "id": 875, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "4886:49:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + }, + "value": "There is no such agent with the given address !" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + } + ], + "id": 869, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "4817:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 876, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "4817:133:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 877, + "nodeType": "ExpressionStatement", + "src": "4817:133:1" + }, + { + "assignments": [ + 879 + ], + "declarations": [ + { + "constant": false, + "id": 879, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 891, + "src": "4981:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 878, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "4981:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 883, + "initialValue": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 880, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "4997:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 882, + "indexExpression": { + "argumentTypes": null, + "id": 881, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 864, + "src": "5010:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "4997:22:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "4981:38:1" + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 884, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "5052:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 886, + "indexExpression": { + "argumentTypes": null, + "id": 885, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 879, + "src": "5066:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5052:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 887, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "email", + "nodeType": "MemberAccess", + "referencedDeclaration": 510, + "src": "5052:26:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + } + ], + "id": 888, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "5051:28:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + "functionReturnParameters": 868, + "id": 889, + "nodeType": "Return", + "src": "5044:35:1" + } + ] + }, + "documentation": null, + "id": 891, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "getAgentEmail", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 865, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 864, + "name": "_address", + "nodeType": "VariableDeclaration", + "scope": 891, + "src": "4754:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 863, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "4754:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4753:18:1" + }, + "payable": false, + "returnParameters": { + "id": 868, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 867, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 891, + "src": "4792:6:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 866, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "4792:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "4791:8:1" + }, + "scope": 948, + "src": "4731:356:1", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 937, + "nodeType": "Block", + "src": "5215:415:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "arguments": [ + { + "argumentTypes": null, + "commonType": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "id": 909, + "isConstant": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "leftExpression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 905, + "name": "isSupportAgent", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 537, + "src": "5248:14:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_bool_$", + "typeString": "mapping(address => bool)" + } + }, + "id": 907, + "indexExpression": { + "argumentTypes": null, + "id": 906, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 893, + "src": "5263:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5248:24:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + "nodeType": "BinaryOperation", + "operator": "==", + "rightExpression": { + "argumentTypes": null, + "hexValue": "74727565", + "id": 908, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "bool", + "lValueRequested": false, + "nodeType": "Literal", + "src": "5276:4:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + "value": "true" + }, + "src": "5248:32:1", + "typeDescriptions": { + "typeIdentifier": "t_bool", + "typeString": "bool" + } + }, + { + "argumentTypes": null, + "hexValue": "5468657265206973206e6f2073756368206167656e7420776974682074686520676976656e20616464726573732021", + "id": 910, + "isConstant": false, + "isLValue": false, + "isPure": true, + "kind": "string", + "lValueRequested": false, + "nodeType": "Literal", + "src": "5295:49:1", + "subdenomination": null, + "typeDescriptions": { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + }, + "value": "There is no such agent with the given address !" + } + ], + "expression": { + "argumentTypes": [ + { + "typeIdentifier": "t_bool", + "typeString": "bool" + }, + { + "typeIdentifier": "t_stringliteral_ae730ee16d95dfb64bd5901663aa1fcd69f951b1f2bb551e3a9c2e7c172918ec", + "typeString": "literal_string \"There is no such agent with the given address !\"" + } + ], + "id": 904, + "name": "require", + "nodeType": "Identifier", + "overloadedDeclarations": [ + 1968, + 1969 + ], + "referencedDeclaration": 1969, + "src": "5226:7:1", + "typeDescriptions": { + "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", + "typeString": "function (bool,string memory) pure" + } + }, + "id": 911, + "isConstant": false, + "isLValue": false, + "isPure": false, + "kind": "functionCall", + "lValueRequested": false, + "names": [], + "nodeType": "FunctionCall", + "src": "5226:133:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$__$", + "typeString": "tuple()" + } + }, + "id": 912, + "nodeType": "ExpressionStatement", + "src": "5226:133:1" + }, + { + "assignments": [ + 914 + ], + "declarations": [ + { + "constant": false, + "id": 914, + "name": "index", + "nodeType": "VariableDeclaration", + "scope": 938, + "src": "5394:13:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 913, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5394:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "id": 918, + "initialValue": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 915, + "name": "agentRecords", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 530, + "src": "5410:12:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_address_$_t_uint256_$", + "typeString": "mapping(address => uint256)" + } + }, + "id": 917, + "indexExpression": { + "argumentTypes": null, + "id": 916, + "name": "_address", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 893, + "src": "5423:8:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5410:22:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "nodeType": "VariableDeclarationStatement", + "src": "5394:38:1" + }, + { + "expression": { + "argumentTypes": null, + "components": [ + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 919, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "5479:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 921, + "indexExpression": { + "argumentTypes": null, + "id": 920, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 914, + "src": "5493:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5479:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 922, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "email", + "nodeType": "MemberAccess", + "referencedDeclaration": 510, + "src": "5479:26:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 923, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "5517:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 925, + "indexExpression": { + "argumentTypes": null, + "id": 924, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 914, + "src": "5531:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5517:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 926, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "fName", + "nodeType": "MemberAccess", + "referencedDeclaration": 512, + "src": "5517:26:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 927, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "5555:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 929, + "indexExpression": { + "argumentTypes": null, + "id": 928, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 914, + "src": "5569:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5555:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 930, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "lName", + "nodeType": "MemberAccess", + "referencedDeclaration": 514, + "src": "5555:26:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + }, + { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "baseExpression": { + "argumentTypes": null, + "id": 931, + "name": "SupportAgents", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 523, + "src": "5592:13:1", + "typeDescriptions": { + "typeIdentifier": "t_mapping$_t_uint256_$_t_struct$_SupportAgent_$519_storage_$", + "typeString": "mapping(uint256 => struct Company.SupportAgent storage ref)" + } + }, + "id": 933, + "indexExpression": { + "argumentTypes": null, + "id": 932, + "name": "index", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 914, + "src": "5606:5:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "nodeType": "IndexAccess", + "src": "5592:20:1", + "typeDescriptions": { + "typeIdentifier": "t_struct$_SupportAgent_$519_storage", + "typeString": "struct Company.SupportAgent storage ref" + } + }, + "id": 934, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "timeZone", + "nodeType": "MemberAccess", + "referencedDeclaration": 516, + "src": "5592:29:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage", + "typeString": "string storage ref" + } + } + ], + "id": 935, + "isConstant": false, + "isInlineArray": false, + "isLValue": false, + "isPure": false, + "lValueRequested": false, + "nodeType": "TupleExpression", + "src": "5478:144:1", + "typeDescriptions": { + "typeIdentifier": "t_tuple$_t_string_storage_$_t_string_storage_$_t_string_storage_$_t_string_storage_$", + "typeString": "tuple(string storage ref,string storage ref,string storage ref,string storage ref)" + } + }, + "functionReturnParameters": 903, + "id": 936, + "nodeType": "Return", + "src": "5461:161:1" + } + ] + }, + "documentation": null, + "id": 938, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "findSupportAgentByAddress", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 894, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 893, + "name": "_address", + "nodeType": "VariableDeclaration", + "scope": 938, + "src": "5139:16:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + }, + "typeName": { + "id": 892, + "name": "address", + "nodeType": "ElementaryTypeName", + "src": "5139:7:1", + "typeDescriptions": { + "typeIdentifier": "t_address", + "typeString": "address" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "5138:18:1" + }, + "payable": false, + "returnParameters": { + "id": 903, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 896, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 938, + "src": "5177:6:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 895, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "5177:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 898, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 938, + "src": "5185:6:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 897, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "5185:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 900, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 938, + "src": "5193:6:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 899, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "5193:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + }, + { + "constant": false, + "id": 902, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 938, + "src": "5201:6:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_string_memory_ptr", + "typeString": "string" + }, + "typeName": { + "id": 901, + "name": "string", + "nodeType": "ElementaryTypeName", + "src": "5201:6:1", + "typeDescriptions": { + "typeIdentifier": "t_string_storage_ptr", + "typeString": "string" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "5176:32:1" + }, + "scope": 948, + "src": "5104:526:1", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + }, + { + "body": { + "id": 946, + "nodeType": "Block", + "src": "5709:43:1", + "statements": [ + { + "expression": { + "argumentTypes": null, + "expression": { + "argumentTypes": null, + "id": 943, + "name": "agentIndex", + "nodeType": "Identifier", + "overloadedDeclarations": [], + "referencedDeclaration": 533, + "src": "5727:10:1", + "typeDescriptions": { + "typeIdentifier": "t_array$_t_uint256_$dyn_storage", + "typeString": "uint256[] storage ref" + } + }, + "id": 944, + "isConstant": false, + "isLValue": true, + "isPure": false, + "lValueRequested": false, + "memberName": "length", + "nodeType": "MemberAccess", + "referencedDeclaration": null, + "src": "5727:17:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "functionReturnParameters": 942, + "id": 945, + "nodeType": "Return", + "src": "5720:24:1" + } + ] + }, + "documentation": null, + "id": 947, + "implemented": true, + "isConstructor": false, + "isDeclaredConst": true, + "modifiers": [], + "name": "countSupportAgents", + "nodeType": "FunctionDefinition", + "parameters": { + "id": 939, + "nodeType": "ParameterList", + "parameters": [], + "src": "5677:2:1" + }, + "payable": false, + "returnParameters": { + "id": 942, + "nodeType": "ParameterList", + "parameters": [ + { + "constant": false, + "id": 941, + "name": "", + "nodeType": "VariableDeclaration", + "scope": 947, + "src": "5700:7:1", + "stateVariable": false, + "storageLocation": "default", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + }, + "typeName": { + "id": 940, + "name": "uint256", + "nodeType": "ElementaryTypeName", + "src": "5700:7:1", + "typeDescriptions": { + "typeIdentifier": "t_uint256", + "typeString": "uint256" + } + }, + "value": null, + "visibility": "internal" + } + ], + "src": "5699:9:1" + }, + "scope": 948, + "src": "5650:102:1", + "stateMutability": "view", + "superFunction": null, + "visibility": "public" + } + ], + "scope": 949, + "src": "30:5731:1" + } + ], + "src": "0:5761:1" + }, + "compiler": { + "name": "solc", + "version": "0.4.24+commit.e67f0147.Emscripten.clang" + }, + "networks": { + "5777": { + "events": {}, + "links": {}, + "address": "0x345ca3e014aaf5dca488057592ee47305d9b3e10", + "transactionHash": "0x30d6eb0235c4b5968c3a9dc3afc14b807415e549e4ca845d6f9c0895ed1eaba3" + }, + "1539420319630": { + "events": {}, + "links": {}, + "address": "0x36d4c1ac6ad98789d83481e5ffb279f3208261e5", + "transactionHash": "0x48059094d9bce7217106f3a723896fe04a5c9d9d2c424a4191466633c69701fc" + } + }, + "schemaVersion": "2.0.1", + "updatedAt": "2018-10-18T13:43:19.592Z" +} \ No newline at end of file diff --git a/ethereum/build/contracts/JobApplicant.json b/ethereum/build/contracts/JobApplicant.json index 0f716f6..2a63185 100644 --- a/ethereum/build/contracts/JobApplicant.json +++ b/ethereum/build/contracts/JobApplicant.json @@ -262,38 +262,38 @@ ], "bytecode": "0x60806040526000805460ff1916905534801561001a57600080fd5b50604051604080610c4c833981016040819052815160209092015160018054600160a060020a031916600160a060020a03808416919091179091556000805461010060a860020a0319166101009286169290920291909117908190554260025590917f6ad037c505eea6fc4312e7006a92c508ba229fdd5aca3a7c821a3ea70f864f2a9160ff16908082600b8111156100af57fe5b60ff16815260200191505060405180910390a15050610b79806100d36000396000f3006080604052600436106100d75763ffffffff60e060020a600035041663038e514f81146100dc57806305c180c31461010357806308283c0d1461011a578063325a19f11461012f57806342578d3c146101445780634fd6137c1461015957806359c884c21461016e57806363b6853f1461018357806373d4a13a146101985780637c2c5af7146101fa578063819a625f1461020f57806388e687ea14610224578063b4d2231c14610255578063b91956681461026a578063c040e6b81461027f578063d5165327146102b8578063ebc4f86a146102cd575b600080fd5b3480156100e857600080fd5b506100f16102e2565b60408051918252519081900360200190f35b34801561010f57600080fd5b506101186102e8565b005b34801561012657600080fd5b506101186103ff565b34801561013b57600080fd5b506100f16104ae565b34801561015057600080fd5b506101186104b4565b34801561016557600080fd5b50610118610592565b34801561017a57600080fd5b50610118610670565b34801561018f57600080fd5b50610118610737565b3480156101a457600080fd5b506101ad6107fe565b6040518086600b8111156101bd57fe5b60ff168152600160a060020a0395861660208201529390941660408085019190915260608401929092526080830152519081900360a00192509050f35b34801561020657600080fd5b50610118610837565b34801561021b57600080fd5b50610118610882565b34801561023057600080fd5b50610239610949565b60408051600160a060020a039092168252519081900360200190f35b34801561026157600080fd5b50610118610958565b34801561027657600080fd5b50610118610a1f565b34801561028b57600080fd5b50610294610a6a565b6040518082600b8111156102a457fe5b60ff16815260200191505060405180910390f35b3480156102c457600080fd5b50610239610a73565b3480156102d957600080fd5b50610118610a87565b60035481565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561033b57600080fd5b505af115801561034f573d6000803e3d6000fd5b505050506040513d602081101561036557600080fd5b5051600160a060020a0316331461037b57600080fd5b600980610386610a6a565b600b81111561039157fe5b1461039b57600080fd5b60008054600b919060ff19166001835b02179055506000546040517f6ad037c505eea6fc4312e7006a92c508ba229fdd5aca3a7c821a3ea70f864f2a9160ff16908082600b8111156103e957fe5b60ff16815260200191505060405180910390a150565b600154600160a060020a0316331461041657600080fd5b6000610420610a6a565b600b81111561042b57fe5b14806104495750600161043c610a6a565b600b81111561044757fe5b145b151561045457600080fd5b6000805460ff1916600217908190556040517f6ad037c505eea6fc4312e7006a92c508ba229fdd5aca3a7c821a3ea70f864f2a9160ff16908082600b81111561049957fe5b60ff16815260200191505060405180910390a1565b60025481565b600154600160a060020a03163314806105535750600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561051b57600080fd5b505af115801561052f573d6000803e3d6000fd5b505050506040513d602081101561054557600080fd5b5051600160a060020a031633145b151561055e57600080fd5b600480610569610a6a565b600b81111561057457fe5b1461057e57600080fd5b600080546009919060ff19166001836103ab565b600154600160a060020a03163314806106315750600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156105f957600080fd5b505af115801561060d573d6000803e3d6000fd5b505050506040513d602081101561062357600080fd5b5051600160a060020a031633145b151561063c57600080fd5b600980610647610a6a565b600b81111561065257fe5b1461065c57600080fd5b60008054600a919060ff19166001836103ab565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156106c357600080fd5b505af11580156106d7573d6000803e3d6000fd5b505050506040513d60208110156106ed57600080fd5b5051600160a060020a0316331461070357600080fd5b60018061070e610a6a565b600b81111561071957fe5b1461072357600080fd5b600080546007919060ff19166001836103ab565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561078a57600080fd5b505af115801561079e573d6000803e3d6000fd5b505050506040513d60208110156107b457600080fd5b5051600160a060020a031633146107ca57600080fd5b6000806107d5610a6a565b600b8111156107e057fe5b146107ea57600080fd5b600080546008919060ff19166001836103ab565b600080600080600061080e610a6a565b6000546001546002549298610100909204600160a060020a039081169850169550909350909150565b600154600160a060020a0316331461084e57600080fd5b600780610859610a6a565b600b81111561086457fe5b1461086e57600080fd5b600080546005919060ff19166001836103ab565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156108d557600080fd5b505af11580156108e9573d6000803e3d6000fd5b505050506040513d60208110156108ff57600080fd5b5051600160a060020a0316331461091557600080fd5b600080610920610a6a565b600b81111561092b57fe5b1461093557600080fd5b600080546006919060ff19166001836103ab565b600154600160a060020a031681565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156109ab57600080fd5b505af11580156109bf573d6000803e3d6000fd5b505050506040513d60208110156109d557600080fd5b5051600160a060020a031633146109eb57600080fd5b6006806109f6610a6a565b600b811115610a0157fe5b14610a0b57600080fd5b600080546003919060ff19166001836103ab565b600154600160a060020a03163314610a3657600080fd5b600780610a41610a6a565b600b811115610a4c57fe5b14610a5657600080fd5b600080546004919060ff19166001836103ab565b60005460ff1690565b6000546101009004600160a060020a031681565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015610ada57600080fd5b505af1158015610aee573d6000803e3d6000fd5b505050506040513d6020811015610b0457600080fd5b5051600160a060020a03163314610b1a57600080fd5b600680610b25610a6a565b600b811115610b3057fe5b14610b3a57600080fd5b600080546001919060ff191682806103ab5600a165627a7a723058203fae80c41f742e2b31e63b2b30dce150ef64093459a2b128b2a41f2f9208c7b10029", "deployedBytecode": "0x6080604052600436106100d75763ffffffff60e060020a600035041663038e514f81146100dc57806305c180c31461010357806308283c0d1461011a578063325a19f11461012f57806342578d3c146101445780634fd6137c1461015957806359c884c21461016e57806363b6853f1461018357806373d4a13a146101985780637c2c5af7146101fa578063819a625f1461020f57806388e687ea14610224578063b4d2231c14610255578063b91956681461026a578063c040e6b81461027f578063d5165327146102b8578063ebc4f86a146102cd575b600080fd5b3480156100e857600080fd5b506100f16102e2565b60408051918252519081900360200190f35b34801561010f57600080fd5b506101186102e8565b005b34801561012657600080fd5b506101186103ff565b34801561013b57600080fd5b506100f16104ae565b34801561015057600080fd5b506101186104b4565b34801561016557600080fd5b50610118610592565b34801561017a57600080fd5b50610118610670565b34801561018f57600080fd5b50610118610737565b3480156101a457600080fd5b506101ad6107fe565b6040518086600b8111156101bd57fe5b60ff168152600160a060020a0395861660208201529390941660408085019190915260608401929092526080830152519081900360a00192509050f35b34801561020657600080fd5b50610118610837565b34801561021b57600080fd5b50610118610882565b34801561023057600080fd5b50610239610949565b60408051600160a060020a039092168252519081900360200190f35b34801561026157600080fd5b50610118610958565b34801561027657600080fd5b50610118610a1f565b34801561028b57600080fd5b50610294610a6a565b6040518082600b8111156102a457fe5b60ff16815260200191505060405180910390f35b3480156102c457600080fd5b50610239610a73565b3480156102d957600080fd5b50610118610a87565b60035481565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561033b57600080fd5b505af115801561034f573d6000803e3d6000fd5b505050506040513d602081101561036557600080fd5b5051600160a060020a0316331461037b57600080fd5b600980610386610a6a565b600b81111561039157fe5b1461039b57600080fd5b60008054600b919060ff19166001835b02179055506000546040517f6ad037c505eea6fc4312e7006a92c508ba229fdd5aca3a7c821a3ea70f864f2a9160ff16908082600b8111156103e957fe5b60ff16815260200191505060405180910390a150565b600154600160a060020a0316331461041657600080fd5b6000610420610a6a565b600b81111561042b57fe5b14806104495750600161043c610a6a565b600b81111561044757fe5b145b151561045457600080fd5b6000805460ff1916600217908190556040517f6ad037c505eea6fc4312e7006a92c508ba229fdd5aca3a7c821a3ea70f864f2a9160ff16908082600b81111561049957fe5b60ff16815260200191505060405180910390a1565b60025481565b600154600160a060020a03163314806105535750600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561051b57600080fd5b505af115801561052f573d6000803e3d6000fd5b505050506040513d602081101561054557600080fd5b5051600160a060020a031633145b151561055e57600080fd5b600480610569610a6a565b600b81111561057457fe5b1461057e57600080fd5b600080546009919060ff19166001836103ab565b600154600160a060020a03163314806106315750600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156105f957600080fd5b505af115801561060d573d6000803e3d6000fd5b505050506040513d602081101561062357600080fd5b5051600160a060020a031633145b151561063c57600080fd5b600980610647610a6a565b600b81111561065257fe5b1461065c57600080fd5b60008054600a919060ff19166001836103ab565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156106c357600080fd5b505af11580156106d7573d6000803e3d6000fd5b505050506040513d60208110156106ed57600080fd5b5051600160a060020a0316331461070357600080fd5b60018061070e610a6a565b600b81111561071957fe5b1461072357600080fd5b600080546007919060ff19166001836103ab565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561078a57600080fd5b505af115801561079e573d6000803e3d6000fd5b505050506040513d60208110156107b457600080fd5b5051600160a060020a031633146107ca57600080fd5b6000806107d5610a6a565b600b8111156107e057fe5b146107ea57600080fd5b600080546008919060ff19166001836103ab565b600080600080600061080e610a6a565b6000546001546002549298610100909204600160a060020a039081169850169550909350909150565b600154600160a060020a0316331461084e57600080fd5b600780610859610a6a565b600b81111561086457fe5b1461086e57600080fd5b600080546005919060ff19166001836103ab565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156108d557600080fd5b505af11580156108e9573d6000803e3d6000fd5b505050506040513d60208110156108ff57600080fd5b5051600160a060020a0316331461091557600080fd5b600080610920610a6a565b600b81111561092b57fe5b1461093557600080fd5b600080546006919060ff19166001836103ab565b600154600160a060020a031681565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156109ab57600080fd5b505af11580156109bf573d6000803e3d6000fd5b505050506040513d60208110156109d557600080fd5b5051600160a060020a031633146109eb57600080fd5b6006806109f6610a6a565b600b811115610a0157fe5b14610a0b57600080fd5b600080546003919060ff19166001836103ab565b600154600160a060020a03163314610a3657600080fd5b600780610a41610a6a565b600b811115610a4c57fe5b14610a5657600080fd5b600080546004919060ff19166001836103ab565b60005460ff1690565b6000546101009004600160a060020a031681565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015610ada57600080fd5b505af1158015610aee573d6000803e3d6000fd5b505050506040513d6020811015610b0457600080fd5b5051600160a060020a03163314610b1a57600080fd5b600680610b25610a6a565b600b811115610b3057fe5b14610b3a57600080fd5b600080546001919060ff191682806103ab5600a165627a7a723058203fae80c41f742e2b31e63b2b30dce150ef64093459a2b128b2a41f2f9208c7b10029", - "sourceMap": "144:9008:0:-;;;1690:25;1659:56;;-1:-1:-1;;1659:56:0;;;2501:281;5:2:-1;;;;30:1;27;20:12;5:2;2501:281:0;;;;;;;;;;;;;;;;;;;;;2616:9;:22;;-1:-1:-1;;;;;;2616:22:0;-1:-1:-1;;;;;2616:22:0;;;;;;;;;;-1:-1:-1;2649:50:0;;-1:-1:-1;;;;;;2649:50:0;2616:22;2649:50;;;;;;;;;;;;;;;2720:3;2710:7;:13;2501:281;;2739:35;;2760:13;;;2501:281;2760:13;2739:35;;;;;;;;;;;;;;;;;;;;;;;;2501:281;;144:9008;;;;;;", - "deployedSourceMap": "144:9008:0:-;;;;;;;;-1:-1:-1;144:9008:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1905:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1905:30:0;;;;;;;;;;;;;;;;;;;;8302:218;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8302:218:0;;;;;;3751:349;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3751:349:0;;;;1879:19;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1879:19:0;;;;7747:274;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7747:274:0;;;;8824:209;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8824:209:0;;;;6288:201;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6288:201:0;;;;4854:215;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4854:215:0;;;;2790:241;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2790:241:0;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2790:241:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2790:241:0;;-1:-1:-1;2790:241:0;-1:-1:-1;2790:241:0;7276:212;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7276:212:0;;;;4378:211;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4378:211:0;;;;1794:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1794:24:0;;;;;;;;-1:-1:-1;;;;;1794:24:0;;;;;;;;;;;;;;5817:219;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5817:219:0;;;;6752:262;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6752:262:0;;;;3359:112;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3359:112:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1722:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1722:30:0;;;;5330:213;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5330:213:0;;;;1905:30;;;;:::o;8302:218::-;2034:15;;;:23;;;-1:-1:-1;;;;;;;;;;;2034:23:0;;;;:15;;;;-1:-1:-1;;;;;2034:15:0;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2034:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2034:23:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2034:23:0;-1:-1:-1;;;;;2020:37:0;:10;:37;2012:46;;;;;;8374:24;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;8416:13;:45;;8432:29;;8416:13;-1:-1:-1;;8416:45:0;;8432:29;8416:45;;;;;-1:-1:-1;8498:13:0;;8477:35;;;;8498:13;;;8477:35;8498:13;8477:35;;;;;;;;;;;;;;;;;;;;;;;;2069:1;8302:218::o;3751:349::-;2142:9;;-1:-1:-1;;;;;2142:9:0;2128:10;:23;2120:32;;;;;;3895:25;3884:7;:5;:7::i;:::-;:36;;;;;;;;;:88;;;-1:-1:-1;3948:24:0;3937:7;:5;:7::i;:::-;:35;;;;;;;;;3884:88;3862:121;;;;;;;;3998:13;:41;;-1:-1:-1;;3998:41:0;4014:25;3998:41;;;;;4055:35;;;;4076:13;;;4055:35;4076:13;4055:35;;;;;;;;;;;;;;;;;;;;;;;;3751:349::o;1879:19::-;;;;:::o;7747:274::-;2260:9;;-1:-1:-1;;;;;2260:9:0;2246:10;:23;;:77;;-1:-1:-1;2300:15:0;;;:23;;;-1:-1:-1;;;;;;;;;;;2300:23:0;;;;:15;;;;-1:-1:-1;;;;;2300:15:0;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2300:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2300:23:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2300:23:0;-1:-1:-1;;;;;2286:37:0;:10;:37;2246:77;2224:110;;;;;;;;7826:24;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;7868:13;:40;;7884:24;;7868:13;-1:-1:-1;;7868:40:0;;7884:24;7868:40;;8824:209;2260:9;;-1:-1:-1;;;;;2260:9:0;2246:10;:23;;:77;;-1:-1:-1;2300:15:0;;;:23;;;-1:-1:-1;;;;;;;;;;;2300:23:0;;;;:15;;;;-1:-1:-1;;;;;2300:15:0;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2300:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2300:23:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2300:23:0;-1:-1:-1;;;;;2286:37:0;:10;:37;2246:77;2224:110;;;;;;;;8899:24;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;8941:13;:33;;8957:17;;8941:13;-1:-1:-1;;8941:33:0;;8957:17;8941:33;;6288:201;2034:15;;;:23;;;-1:-1:-1;;;;;;;;;;;2034:23:0;;;;:15;;;;-1:-1:-1;;;;;2034:15:0;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2034:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2034:23:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2034:23:0;-1:-1:-1;;;;;2020:37:0;:10;:37;2012:46;;;;;;6349:24;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;6391:13;:39;;6407:23;;6391:13;-1:-1:-1;;6391:39:0;;6407:23;6391:39;;4854:215;2034:15;;;:23;;;-1:-1:-1;;;;;;;;;;;2034:23:0;;;;:15;;;;-1:-1:-1;;;;;2034:15:0;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2034:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2034:23:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2034:23:0;-1:-1:-1;;;;;2020:37:0;:10;:37;2012:46;;;;;;4924:25;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;4967:13;:43;;4983:27;;4967:13;-1:-1:-1;;4967:43:0;;4983:27;4967:43;;2790:241;2842:13;2857:24;2883:18;2903:13;2918:21;2960:7;:5;:7::i;:::-;2969:15;;;2986:9;2997:7;;2952:71;;-1:-1:-1;;;;;2969:15:0;;;;;;;-1:-1:-1;2986:9:0;;;-1:-1:-1;2997:7:0;;-1:-1:-1;2790:241:0;;-1:-1:-1;2790:241:0:o;7276:212::-;2142:9;;-1:-1:-1;;;;;2142:9:0;2128:10;:23;2120:32;;;;;;7344:23;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;7385:13;:44;;7401:28;;7385:13;-1:-1:-1;;7385:44:0;;7401:28;7385:44;;4378:211;2034:15;;;:23;;;-1:-1:-1;;;;;;;;;;;2034:23:0;;;;:15;;;;-1:-1:-1;;;;;2034:15:0;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2034:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2034:23:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2034:23:0;-1:-1:-1;;;;;2020:37:0;:10;:37;2012:46;;;;;;4447:25;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;4490:13;:40;;4506:24;;4490:13;-1:-1:-1;;4490:40:0;;4506:24;4490:40;;1794:24;;;-1:-1:-1;;;;;1794:24:0;;:::o;5817:219::-;2034:15;;;:23;;;-1:-1:-1;;;;;;;;;;;2034:23:0;;;;:15;;;;-1:-1:-1;;;;;2034:15:0;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2034:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2034:23:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2034:23:0;-1:-1:-1;;;;;2020:37:0;:10;:37;2012:46;;;;;;5890:24;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;5932:13;:45;;5948:29;;5932:13;-1:-1:-1;;5932:45:0;;5948:29;5932:45;;6752:262;2142:9;;-1:-1:-1;;;;;2142:9:0;2128:10;:23;2120:32;;;;;;6820:23;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;6861:13;:40;;6877:24;;6861:13;-1:-1:-1;;6861:40:0;;6877:24;6861:40;;3359:112;3412:13;3450;;;3359:112;:::o;1722:30::-;;;;;;-1:-1:-1;;;;;1722:30:0;;:::o;5330:213::-;2034:15;;;:23;;;-1:-1:-1;;;;;;;;;;;2034:23:0;;;;:15;;;;-1:-1:-1;;;;;2034:15:0;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2034:23:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2034:23:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2034:23:0;-1:-1:-1;;;;;2020:37:0;:10;:37;2012:46;;;;;;5402:24;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;5444:13;:40;;5460:24;;5444:13;-1:-1:-1;;5444:40:0;5460:24;;5444:40;", + "sourceMap": "144:9008:2:-;;;1690:25;1659:56;;-1:-1:-1;;1659:56:2;;;2501:281;5:2:-1;;;;30:1;27;20:12;5:2;2501:281:2;;;;;;;;;;;;;;;;;;;;;2616:9;:22;;-1:-1:-1;;;;;;2616:22:2;-1:-1:-1;;;;;2616:22:2;;;;;;;;;;-1:-1:-1;2649:50:2;;-1:-1:-1;;;;;;2649:50:2;2616:22;2649:50;;;;;;;;;;;;;;;2720:3;2710:7;:13;2501:281;;2739:35;;2760:13;;;2501:281;2760:13;2739:35;;;;;;;;;;;;;;;;;;;;;;;;2501:281;;144:9008;;;;;;", + "deployedSourceMap": "144:9008:2:-;;;;;;;;-1:-1:-1;144:9008:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1905:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1905:30:2;;;;;;;;;;;;;;;;;;;;8302:218;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8302:218:2;;;;;;3751:349;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3751:349:2;;;;1879:19;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1879:19:2;;;;7747:274;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7747:274:2;;;;8824:209;;8:9:-1;5:2;;;30:1;27;20:12;5:2;8824:209:2;;;;6288:201;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6288:201:2;;;;4854:215;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4854:215:2;;;;2790:241;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2790:241:2;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2790:241:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2790:241:2;;-1:-1:-1;2790:241:2;-1:-1:-1;2790:241:2;7276:212;;8:9:-1;5:2;;;30:1;27;20:12;5:2;7276:212:2;;;;4378:211;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4378:211:2;;;;1794:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1794:24:2;;;;;;;;-1:-1:-1;;;;;1794:24:2;;;;;;;;;;;;;;5817:219;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5817:219:2;;;;6752:262;;8:9:-1;5:2;;;30:1;27;20:12;5:2;6752:262:2;;;;3359:112;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3359:112:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1722:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1722:30:2;;;;5330:213;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5330:213:2;;;;1905:30;;;;:::o;8302:218::-;2034:15;;;:23;;;-1:-1:-1;;;;;;;;;;;2034:23:2;;;;:15;;;;-1:-1:-1;;;;;2034:15:2;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2034:23:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2034:23:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2034:23:2;-1:-1:-1;;;;;2020:37:2;:10;:37;2012:46;;;;;;8374:24;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;8416:13;:45;;8432:29;;8416:13;-1:-1:-1;;8416:45:2;;8432:29;8416:45;;;;;-1:-1:-1;8498:13:2;;8477:35;;;;8498:13;;;8477:35;8498:13;8477:35;;;;;;;;;;;;;;;;;;;;;;;;2069:1;8302:218::o;3751:349::-;2142:9;;-1:-1:-1;;;;;2142:9:2;2128:10;:23;2120:32;;;;;;3895:25;3884:7;:5;:7::i;:::-;:36;;;;;;;;;:88;;;-1:-1:-1;3948:24:2;3937:7;:5;:7::i;:::-;:35;;;;;;;;;3884:88;3862:121;;;;;;;;3998:13;:41;;-1:-1:-1;;3998:41:2;4014:25;3998:41;;;;;4055:35;;;;4076:13;;;4055:35;4076:13;4055:35;;;;;;;;;;;;;;;;;;;;;;;;3751:349::o;1879:19::-;;;;:::o;7747:274::-;2260:9;;-1:-1:-1;;;;;2260:9:2;2246:10;:23;;:77;;-1:-1:-1;2300:15:2;;;:23;;;-1:-1:-1;;;;;;;;;;;2300:23:2;;;;:15;;;;-1:-1:-1;;;;;2300:15:2;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2300:23:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2300:23:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2300:23:2;-1:-1:-1;;;;;2286:37:2;:10;:37;2246:77;2224:110;;;;;;;;7826:24;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;7868:13;:40;;7884:24;;7868:13;-1:-1:-1;;7868:40:2;;7884:24;7868:40;;8824:209;2260:9;;-1:-1:-1;;;;;2260:9:2;2246:10;:23;;:77;;-1:-1:-1;2300:15:2;;;:23;;;-1:-1:-1;;;;;;;;;;;2300:23:2;;;;:15;;;;-1:-1:-1;;;;;2300:15:2;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2300:23:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2300:23:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2300:23:2;-1:-1:-1;;;;;2286:37:2;:10;:37;2246:77;2224:110;;;;;;;;8899:24;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;8941:13;:33;;8957:17;;8941:13;-1:-1:-1;;8941:33:2;;8957:17;8941:33;;6288:201;2034:15;;;:23;;;-1:-1:-1;;;;;;;;;;;2034:23:2;;;;:15;;;;-1:-1:-1;;;;;2034:15:2;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2034:23:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2034:23:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2034:23:2;-1:-1:-1;;;;;2020:37:2;:10;:37;2012:46;;;;;;6349:24;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;6391:13;:39;;6407:23;;6391:13;-1:-1:-1;;6391:39:2;;6407:23;6391:39;;4854:215;2034:15;;;:23;;;-1:-1:-1;;;;;;;;;;;2034:23:2;;;;:15;;;;-1:-1:-1;;;;;2034:15:2;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2034:23:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2034:23:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2034:23:2;-1:-1:-1;;;;;2020:37:2;:10;:37;2012:46;;;;;;4924:25;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;4967:13;:43;;4983:27;;4967:13;-1:-1:-1;;4967:43:2;;4983:27;4967:43;;2790:241;2842:13;2857:24;2883:18;2903:13;2918:21;2960:7;:5;:7::i;:::-;2969:15;;;2986:9;2997:7;;2952:71;;-1:-1:-1;;;;;2969:15:2;;;;;;;-1:-1:-1;2986:9:2;;;-1:-1:-1;2997:7:2;;-1:-1:-1;2790:241:2;;-1:-1:-1;2790:241:2:o;7276:212::-;2142:9;;-1:-1:-1;;;;;2142:9:2;2128:10;:23;2120:32;;;;;;7344:23;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;7385:13;:44;;7401:28;;7385:13;-1:-1:-1;;7385:44:2;;7401:28;7385:44;;4378:211;2034:15;;;:23;;;-1:-1:-1;;;;;;;;;;;2034:23:2;;;;:15;;;;-1:-1:-1;;;;;2034:15:2;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2034:23:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2034:23:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2034:23:2;-1:-1:-1;;;;;2020:37:2;:10;:37;2012:46;;;;;;4447:25;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;4490:13;:40;;4506:24;;4490:13;-1:-1:-1;;4490:40:2;;4506:24;4490:40;;1794:24;;;-1:-1:-1;;;;;1794:24:2;;:::o;5817:219::-;2034:15;;;:23;;;-1:-1:-1;;;;;;;;;;;2034:23:2;;;;:15;;;;-1:-1:-1;;;;;2034:15:2;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2034:23:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2034:23:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2034:23:2;-1:-1:-1;;;;;2020:37:2;:10;:37;2012:46;;;;;;5890:24;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;5932:13;:45;;5948:29;;5932:13;-1:-1:-1;;5932:45:2;;5948:29;5932:45;;6752:262;2142:9;;-1:-1:-1;;;;;2142:9:2;2128:10;:23;2120:32;;;;;;6820:23;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;6861:13;:40;;6877:24;;6861:13;-1:-1:-1;;6861:40:2;;6877:24;6861:40;;3359:112;3412:13;3450;;;3359:112;:::o;1722:30::-;;;;;;-1:-1:-1;;;;;1722:30:2;;:::o;5330:213::-;2034:15;;;:23;;;-1:-1:-1;;;;;;;;;;;2034:23:2;;;;:15;;;;-1:-1:-1;;;;;2034:15:2;;:21;;:23;;;;;;;;;;;;;;;;;:15;:23;;;5:2:-1;;;;30:1;27;20:12;5:2;2034:23:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2034:23:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2034:23:2;-1:-1:-1;;;;;2020:37:2;:10;:37;2012:46;;;;;;5402:24;;2413:7;:5;:7::i;:::-;:17;;;;;;;;;2405:26;;;;;;5444:13;:40;;5460:24;;5444:13;-1:-1:-1;;5444:40:2;5460:24;;5444:40;", "source": "pragma solidity 0.4.24;\r\n\r\n// /// @title JobApplicant\r\n// /// @dev An Application to a Job Listing and its status\r\nimport \"./Listing.sol\";\r\n\r\n\r\ncontract JobApplicant \r\n{\r\n\r\n /*\r\n * Events\r\n */\r\n\r\n event JobApplicationChange(Stages stage);\r\n event JobApplicationReview(address reviewer, address reviewee, Roles revieweeRole, uint8 rating, bytes32 ipfsHash);\r\n\r\n /*\r\n * Enum\r\n */\r\n\r\n enum Stages {\r\n\r\n // Applicant Status\r\n AWAITING_INTERVIEW,\t\t\t// Applicant applied for interview and waiting for the interview\r\n AWAITING_JOBOFFER,\t\t\t// Applicant attended the interview and waiting for the job offer\r\n CANCEL_APPLICATION,\t\t\t// Applicant cancelled the job application, after applying for the job\r\n INTERVIEW_NOT_SELECTED, //Applicant Unsuccessful/Failed the Interview\r\n JOBOFFER_ACCEPTED, //Applicant Accepts the Job Offer\r\n JOBOFFER_NOT_ACCEPTED, //Applicant Rejects the Job Offer\r\n\r\n\r\n // Employer Status\r\n INTERVIEW_PENDING,\t\t\t// Employer reviewed the application and send interview call and waiting for interview acceptance\r\n JOBOFFER_PENDING,\t\t\t// Employer finished interview and sent job offer and waiting for acceptance from the applicant\r\n APPLICATION_REJECTED,\t\t// Applicant not eligible for the job\r\n\r\n EMPLOYMENT_PERIOD,\t\t\t// Both Employer and Applicant agreed and Job in progress\r\n\r\n IN_DISPUTE,\t\t\t\t // We are in a dispute between employer and employee on payments \r\n EMPLOYMENT_TERMINATION\t\t// End of Job Contract\r\n\r\n }\r\n\r\n enum Roles {\r\n APPLICANT,\r\n EMPLOYER\r\n }\r\n\r\n /*\r\n * Storage\r\n */\r\n\r\n Stages private internalStage = Stages.AWAITING_INTERVIEW;\r\n Listing public listingContract; // listing that is being purchased\r\n address public applicant; // User who is buying. Seller is derived from listing\r\n uint public created;\r\n uint public applicationTimeout;\r\n\r\n /*\r\n * Modifiers\r\n */\r\n\r\n modifier isEmployer() {\r\n require(msg.sender == listingContract.owner());\r\n _;\r\n }\r\n\r\n modifier isApplicant() {\r\n require(msg.sender == applicant);\r\n _;\r\n }\r\n\r\n modifier isEmployerOrApplicant() {\r\n require(\r\n msg.sender == applicant ||\r\n msg.sender == listingContract.owner()\r\n );\r\n _;\r\n }\r\n\r\n modifier atStage(Stages _stage) {\r\n require(stage() == _stage);\r\n _;\r\n }\r\n\r\n /*\r\n * Public functions\r\n */\r\n\r\n constructor (\r\n address _listingContractAddress,\r\n address _applicant\r\n )\r\n public\r\n {\r\n applicant = _applicant;\r\n listingContract = Listing(_listingContractAddress);\r\n created = now;\r\n emit JobApplicationChange(internalStage);\r\n }\r\n\r\n function data()\r\n public\r\n view\r\n returns (Stages _stage, Listing _listingContract, address _applicant, uint _created, uint _applicantTimout) {\r\n return (stage(), listingContract, applicant, created, _applicantTimout);\r\n }\r\n \r\n /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n //\t\tThis function returns the current status of the application\r\n /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function stage()\r\n public\r\n view\r\n returns (Stages _stage)\r\n {\r\n return internalStage;\r\n }\r\n\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n //\tApplicant cancels the job application\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function cancelApplication()\r\n public\r\n isApplicant\r\n {\r\n // Must be in a valid stage\r\n require(\r\n stage() == Stages.AWAITING_INTERVIEW ||\r\n stage() == Stages.AWAITING_JOBOFFER\r\n );\r\n\r\n\r\n internalStage = Stages.CANCEL_APPLICATION;\r\n emit JobApplicationChange(internalStage);\r\n\r\n }\r\n\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n //\tCall the Applicant for an interview\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function callForInterview()\r\n public\r\n isEmployer\r\n atStage(Stages.AWAITING_INTERVIEW)\r\n {\r\n internalStage = Stages.INTERVIEW_PENDING;\r\n emit JobApplicationChange(internalStage);\r\n }\r\n\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n //\tReject an Application\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function rejectApplication()\r\n public\r\n isEmployer\r\n atStage(Stages.AWAITING_INTERVIEW)\r\n {\r\n internalStage = Stages.APPLICATION_REJECTED;\r\n emit JobApplicationChange(internalStage);\r\n }\r\n\r\n//////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n //\tPassed the Interview\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function interviewSuccessful()\r\n public\r\n isEmployer\r\n atStage(Stages.INTERVIEW_PENDING)\r\n {\r\n internalStage = Stages.AWAITING_JOBOFFER;\r\n emit JobApplicationChange(internalStage);\r\n }\r\n \r\n \r\n//////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n //\tNot Selected in the Interview\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function interviewNotSelected()\r\n public\r\n isEmployer\r\n atStage(Stages.INTERVIEW_PENDING)\r\n {\r\n internalStage = Stages.INTERVIEW_NOT_SELECTED;\r\n emit JobApplicationChange(internalStage);\r\n }\r\n \r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n //\tOffer Job\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function offerJob()\r\n public\r\n isEmployer\r\n atStage(Stages.AWAITING_JOBOFFER)\r\n {\r\n internalStage = Stages.JOBOFFER_PENDING;\r\n emit JobApplicationChange(internalStage);\r\n }\r\n \r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n //\tAccept the JobOffer\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function acceptJobOffer()\r\n public\r\n isApplicant\r\n atStage(Stages.JOBOFFER_PENDING)\r\n {\r\n internalStage = Stages.JOBOFFER_ACCEPTED; //Is this needed or directly go to EMPLOYMENT_PERIOD?\r\n emit JobApplicationChange(internalStage);\r\n }\r\n \r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n //\tReject the JobOffer\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function rejectJobOffer()\r\n public\r\n isApplicant\r\n atStage(Stages.JOBOFFER_PENDING)\r\n {\r\n internalStage = Stages.JOBOFFER_NOT_ACCEPTED;\r\n emit JobApplicationChange(internalStage);\r\n }\r\n \r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n //\tStart Employment\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function startEmployment()\r\n public\r\n isEmployerOrApplicant\r\n atStage(Stages.JOBOFFER_ACCEPTED)\r\n {\r\n internalStage = Stages.EMPLOYMENT_PERIOD; //Is this needed or directly go to EMPLOYMENT_PERIOD?\r\n emit JobApplicationChange(internalStage);\r\n }\r\n \r\n\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n //\tTerminate the Job Contract any time\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function terminateEmployment()\r\n public\r\n isEmployer\r\n atStage(Stages.EMPLOYMENT_PERIOD)\r\n {\r\n internalStage = Stages.EMPLOYMENT_TERMINATION;\r\n emit JobApplicationChange(internalStage);\r\n } \r\n\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n //\tProblem between employer and employee either open a dispute\r\n //////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function openDispute()\r\n public\r\n isEmployerOrApplicant\r\n atStage(Stages.EMPLOYMENT_PERIOD)\r\n {\r\n internalStage = Stages.IN_DISPUTE;\r\n emit JobApplicationChange(internalStage);\r\n } \r\n////////////////////////////////////////////////////////////////////////////////////////////////////////////// \r\n}", "sourcePath": "C:\\i\\HT\\hellonetmarket\\ethereum\\contracts\\JobApplicant.sol", "ast": { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/JobApplicant.sol", "exportedSymbols": { "JobApplicant": [ - 377 + 1326 ] }, - "id": 378, + "id": 1327, "nodeType": "SourceUnit", "nodes": [ { - "id": 1, + "id": 950, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", - "src": "0:23:0" + "src": "0:23:2" }, { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/Listing.sol", "file": "./Listing.sol", - "id": 2, + "id": 951, "nodeType": "ImportDirective", - "scope": 378, - "sourceUnit": 606, - "src": "115:23:0", + "scope": 1327, + "sourceUnit": 1555, + "src": "115:23:2", "symbolAliases": [], "unitAlias": "" }, @@ -303,9 +303,9 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 377, + "id": 1326, "linearizedBaseContracts": [ - 377 + 1326 ], "name": "JobApplicant", "nodeType": "ContractDefinition", @@ -313,36 +313,36 @@ { "anonymous": false, "documentation": null, - "id": 6, + "id": 955, "name": "JobApplicationChange", "nodeType": "EventDefinition", "parameters": { - "id": 5, + "id": 954, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4, + "id": 953, "indexed": false, "name": "stage", "nodeType": "VariableDeclaration", - "scope": 6, - "src": "230:12:0", + "scope": 955, + "src": "230:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, "typeName": { "contractScope": null, - "id": 3, + "id": 952, "name": "Stages", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 31, - "src": "230:6:0", + "referencedDeclaration": 980, + "src": "230:6:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -350,28 +350,28 @@ "visibility": "internal" } ], - "src": "229:14:0" + "src": "229:14:2" }, - "src": "203:41:0" + "src": "203:41:2" }, { "anonymous": false, "documentation": null, - "id": 18, + "id": 967, "name": "JobApplicationReview", "nodeType": "EventDefinition", "parameters": { - "id": 17, + "id": 966, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 8, + "id": 957, "indexed": false, "name": "reviewer", "nodeType": "VariableDeclaration", - "scope": 18, - "src": "277:16:0", + "scope": 967, + "src": "277:16:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -379,10 +379,10 @@ "typeString": "address" }, "typeName": { - "id": 7, + "id": 956, "name": "address", "nodeType": "ElementaryTypeName", - "src": "277:7:0", + "src": "277:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -393,12 +393,12 @@ }, { "constant": false, - "id": 10, + "id": 959, "indexed": false, "name": "reviewee", "nodeType": "VariableDeclaration", - "scope": 18, - "src": "295:16:0", + "scope": 967, + "src": "295:16:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -406,10 +406,10 @@ "typeString": "address" }, "typeName": { - "id": 9, + "id": 958, "name": "address", "nodeType": "ElementaryTypeName", - "src": "295:7:0", + "src": "295:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -420,27 +420,27 @@ }, { "constant": false, - "id": 12, + "id": 961, "indexed": false, "name": "revieweeRole", "nodeType": "VariableDeclaration", - "scope": 18, - "src": "313:18:0", + "scope": 967, + "src": "313:18:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_Roles_$34", + "typeIdentifier": "t_enum$_Roles_$983", "typeString": "enum JobApplicant.Roles" }, "typeName": { "contractScope": null, - "id": 11, + "id": 960, "name": "Roles", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 34, - "src": "313:5:0", + "referencedDeclaration": 983, + "src": "313:5:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Roles_$34", + "typeIdentifier": "t_enum$_Roles_$983", "typeString": "enum JobApplicant.Roles" } }, @@ -449,12 +449,12 @@ }, { "constant": false, - "id": 14, + "id": 963, "indexed": false, "name": "rating", "nodeType": "VariableDeclaration", - "scope": 18, - "src": "333:12:0", + "scope": 967, + "src": "333:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -462,10 +462,10 @@ "typeString": "uint8" }, "typeName": { - "id": 13, + "id": 962, "name": "uint8", "nodeType": "ElementaryTypeName", - "src": "333:5:0", + "src": "333:5:2", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" @@ -476,12 +476,12 @@ }, { "constant": false, - "id": 16, + "id": 965, "indexed": false, "name": "ipfsHash", "nodeType": "VariableDeclaration", - "scope": 18, - "src": "347:16:0", + "scope": 967, + "src": "347:16:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -489,10 +489,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 15, + "id": 964, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "347:7:0", + "src": "347:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -502,134 +502,134 @@ "visibility": "internal" } ], - "src": "276:88:0" + "src": "276:88:2" }, - "src": "250:115:0" + "src": "250:115:2" }, { "canonicalName": "JobApplicant.Stages", - "id": 31, + "id": 980, "members": [ { - "id": 19, + "id": 968, "name": "AWAITING_INTERVIEW", "nodeType": "EnumValue", - "src": "453:18:0" + "src": "453:18:2" }, { - "id": 20, + "id": 969, "name": "AWAITING_JOBOFFER", "nodeType": "EnumValue", - "src": "547:17:0" + "src": "547:17:2" }, { - "id": 21, + "id": 970, "name": "CANCEL_APPLICATION", "nodeType": "EnumValue", - "src": "641:18:0" + "src": "641:18:2" }, { - "id": 22, + "id": 971, "name": "INTERVIEW_NOT_SELECTED", "nodeType": "EnumValue", - "src": "741:22:0" + "src": "741:22:2" }, { - "id": 23, + "id": 972, "name": "JOBOFFER_ACCEPTED", "nodeType": "EnumValue", - "src": "824:17:0" + "src": "824:17:2" }, { - "id": 24, + "id": 973, "name": "JOBOFFER_NOT_ACCEPTED", "nodeType": "EnumValue", - "src": "895:21:0" + "src": "895:21:2" }, { - "id": 25, + "id": 974, "name": "INTERVIEW_PENDING", "nodeType": "EnumValue", - "src": "1000:17:0" + "src": "1000:17:2" }, { - "id": 26, + "id": 975, "name": "JOBOFFER_PENDING", "nodeType": "EnumValue", - "src": "1126:16:0" + "src": "1126:16:2" }, { - "id": 27, + "id": 976, "name": "APPLICATION_REJECTED", "nodeType": "EnumValue", - "src": "1249:20:0" + "src": "1249:20:2" }, { - "id": 28, + "id": 977, "name": "EMPLOYMENT_PERIOD", "nodeType": "EnumValue", - "src": "1319:17:0" + "src": "1319:17:2" }, { - "id": 29, + "id": 978, "name": "IN_DISPUTE", "nodeType": "EnumValue", - "src": "1407:10:0" + "src": "1407:10:2" }, { - "id": 30, + "id": 979, "name": "EMPLOYMENT_TERMINATION", "nodeType": "EnumValue", - "src": "1502:22:0" + "src": "1502:22:2" } ], "name": "Stages", "nodeType": "EnumDefinition", - "src": "403:1154:0" + "src": "403:1154:2" }, { "canonicalName": "JobApplicant.Roles", - "id": 34, + "id": 983, "members": [ { - "id": 32, + "id": 981, "name": "APPLICANT", "nodeType": "EnumValue", - "src": "1585:9:0" + "src": "1585:9:2" }, { - "id": 33, + "id": 982, "name": "EMPLOYER", "nodeType": "EnumValue", - "src": "1603:8:0" + "src": "1603:8:2" } ], "name": "Roles", "nodeType": "EnumDefinition", - "src": "1565:53:0" + "src": "1565:53:2" }, { "constant": false, - "id": 38, + "id": 987, "name": "internalStage", "nodeType": "VariableDeclaration", - "scope": 377, - "src": "1659:56:0", + "scope": 1326, + "src": "1659:56:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, "typeName": { "contractScope": null, - "id": 35, + "id": 984, "name": "Stages", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 31, - "src": "1659:6:0", + "referencedDeclaration": 980, + "src": "1659:6:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -637,18 +637,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 36, + "id": 985, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1690:6:0", + "referencedDeclaration": 980, + "src": "1690:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 37, + "id": 986, "isConstant": false, "isLValue": false, "isPure": true, @@ -656,9 +656,9 @@ "memberName": "AWAITING_INTERVIEW", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "1690:25:0", + "src": "1690:25:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -666,26 +666,26 @@ }, { "constant": false, - "id": 40, + "id": 989, "name": "listingContract", "nodeType": "VariableDeclaration", - "scope": 377, - "src": "1722:30:0", + "scope": 1326, + "src": "1722:30:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" }, "typeName": { "contractScope": null, - "id": 39, + "id": 988, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "1722:7:0", + "referencedDeclaration": 1554, + "src": "1722:7:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -694,11 +694,11 @@ }, { "constant": false, - "id": 42, + "id": 991, "name": "applicant", "nodeType": "VariableDeclaration", - "scope": 377, - "src": "1794:24:0", + "scope": 1326, + "src": "1794:24:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -706,10 +706,10 @@ "typeString": "address" }, "typeName": { - "id": 41, + "id": 990, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1794:7:0", + "src": "1794:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -720,11 +720,11 @@ }, { "constant": false, - "id": 44, + "id": 993, "name": "created", "nodeType": "VariableDeclaration", - "scope": 377, - "src": "1879:19:0", + "scope": 1326, + "src": "1879:19:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -732,10 +732,10 @@ "typeString": "uint256" }, "typeName": { - "id": 43, + "id": 992, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1879:4:0", + "src": "1879:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -746,11 +746,11 @@ }, { "constant": false, - "id": 46, + "id": 995, "name": "applicationTimeout", "nodeType": "VariableDeclaration", - "scope": 377, - "src": "1905:30:0", + "scope": 1326, + "src": "1905:30:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -758,10 +758,10 @@ "typeString": "uint256" }, "typeName": { - "id": 45, + "id": 994, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1905:4:0", + "src": "1905:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -772,9 +772,9 @@ }, { "body": { - "id": 58, + "id": 1007, "nodeType": "Block", - "src": "2001:77:0", + "src": "2001:77:2", "statements": [ { "expression": { @@ -786,7 +786,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 54, + "id": 1003, "isConstant": false, "isLValue": false, "isPure": false, @@ -795,18 +795,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 49, + "id": 998, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "2020:3:0", + "referencedDeclaration": 1965, + "src": "2020:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 50, + "id": 999, "isConstant": false, "isLValue": false, "isPure": false, @@ -814,7 +814,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "2020:10:0", + "src": "2020:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -829,32 +829,32 @@ "argumentTypes": [], "expression": { "argumentTypes": null, - "id": 51, + "id": 1000, "name": "listingContract", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 40, - "src": "2034:15:0", + "referencedDeclaration": 989, + "src": "2034:15:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 52, + "id": 1001, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", - "referencedDeclaration": 412, - "src": "2034:21:0", + "referencedDeclaration": 1361, + "src": "2034:21:2", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_address_$", "typeString": "function () view external returns (address)" } }, - "id": 53, + "id": 1002, "isConstant": false, "isLValue": false, "isPure": false, @@ -862,13 +862,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2034:23:0", + "src": "2034:23:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2020:37:0", + "src": "2020:37:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -882,21 +882,21 @@ "typeString": "bool" } ], - "id": 48, + "id": 997, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "2012:7:0", + "referencedDeclaration": 1968, + "src": "2012:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 55, + "id": 1004, "isConstant": false, "isLValue": false, "isPure": false, @@ -904,41 +904,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2012:46:0", + "src": "2012:46:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 56, + "id": 1005, "nodeType": "ExpressionStatement", - "src": "2012:46:0" + "src": "2012:46:2" }, { - "id": 57, + "id": 1006, "nodeType": "PlaceholderStatement", - "src": "2069:1:0" + "src": "2069:1:2" } ] }, "documentation": null, - "id": 59, + "id": 1008, "name": "isEmployer", "nodeType": "ModifierDefinition", "parameters": { - "id": 47, + "id": 996, "nodeType": "ParameterList", "parameters": [], - "src": "1998:2:0" + "src": "1998:2:2" }, - "src": "1979:99:0", + "src": "1979:99:2", "visibility": "internal" }, { "body": { - "id": 69, + "id": 1018, "nodeType": "Block", - "src": "2109:63:0", + "src": "2109:63:2", "statements": [ { "expression": { @@ -950,7 +950,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 65, + "id": 1014, "isConstant": false, "isLValue": false, "isPure": false, @@ -959,18 +959,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 62, + "id": 1011, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "2128:3:0", + "referencedDeclaration": 1965, + "src": "2128:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 63, + "id": 1012, "isConstant": false, "isLValue": false, "isPure": false, @@ -978,7 +978,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "2128:10:0", + "src": "2128:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -988,18 +988,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 64, + "id": 1013, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 42, - "src": "2142:9:0", + "referencedDeclaration": 991, + "src": "2142:9:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2128:23:0", + "src": "2128:23:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1013,21 +1013,21 @@ "typeString": "bool" } ], - "id": 61, + "id": 1010, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "2120:7:0", + "referencedDeclaration": 1968, + "src": "2120:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 66, + "id": 1015, "isConstant": false, "isLValue": false, "isPure": false, @@ -1035,41 +1035,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2120:32:0", + "src": "2120:32:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 67, + "id": 1016, "nodeType": "ExpressionStatement", - "src": "2120:32:0" + "src": "2120:32:2" }, { - "id": 68, + "id": 1017, "nodeType": "PlaceholderStatement", - "src": "2163:1:0" + "src": "2163:1:2" } ] }, "documentation": null, - "id": 70, + "id": 1019, "name": "isApplicant", "nodeType": "ModifierDefinition", "parameters": { - "id": 60, + "id": 1009, "nodeType": "ParameterList", "parameters": [], - "src": "2106:2:0" + "src": "2106:2:2" }, - "src": "2086:86:0", + "src": "2086:86:2", "visibility": "internal" }, { "body": { - "id": 87, + "id": 1036, "nodeType": "Block", - "src": "2213:141:0", + "src": "2213:141:2", "statements": [ { "expression": { @@ -1081,7 +1081,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 83, + "id": 1032, "isConstant": false, "isLValue": false, "isPure": false, @@ -1092,7 +1092,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 76, + "id": 1025, "isConstant": false, "isLValue": false, "isPure": false, @@ -1101,18 +1101,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 73, + "id": 1022, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "2246:3:0", + "referencedDeclaration": 1965, + "src": "2246:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 74, + "id": 1023, "isConstant": false, "isLValue": false, "isPure": false, @@ -1120,7 +1120,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "2246:10:0", + "src": "2246:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1130,18 +1130,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 75, + "id": 1024, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 42, - "src": "2260:9:0", + "referencedDeclaration": 991, + "src": "2260:9:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2246:23:0", + "src": "2246:23:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1155,7 +1155,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 82, + "id": 1031, "isConstant": false, "isLValue": false, "isPure": false, @@ -1164,18 +1164,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 77, + "id": 1026, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "2286:3:0", + "referencedDeclaration": 1965, + "src": "2286:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 78, + "id": 1027, "isConstant": false, "isLValue": false, "isPure": false, @@ -1183,7 +1183,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "2286:10:0", + "src": "2286:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1198,32 +1198,32 @@ "argumentTypes": [], "expression": { "argumentTypes": null, - "id": 79, + "id": 1028, "name": "listingContract", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 40, - "src": "2300:15:0", + "referencedDeclaration": 989, + "src": "2300:15:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 80, + "id": 1029, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", - "referencedDeclaration": 412, - "src": "2300:21:0", + "referencedDeclaration": 1361, + "src": "2300:21:2", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_address_$", "typeString": "function () view external returns (address)" } }, - "id": 81, + "id": 1030, "isConstant": false, "isLValue": false, "isPure": false, @@ -1231,19 +1231,19 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2300:23:0", + "src": "2300:23:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2286:37:0", + "src": "2286:37:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "src": "2246:77:0", + "src": "2246:77:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1257,21 +1257,21 @@ "typeString": "bool" } ], - "id": 72, + "id": 1021, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "2224:7:0", + "referencedDeclaration": 1968, + "src": "2224:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 84, + "id": 1033, "isConstant": false, "isLValue": false, "isPure": false, @@ -1279,41 +1279,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2224:110:0", + "src": "2224:110:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 85, + "id": 1034, "nodeType": "ExpressionStatement", - "src": "2224:110:0" + "src": "2224:110:2" }, { - "id": 86, + "id": 1035, "nodeType": "PlaceholderStatement", - "src": "2345:1:0" + "src": "2345:1:2" } ] }, "documentation": null, - "id": 88, + "id": 1037, "name": "isEmployerOrApplicant", "nodeType": "ModifierDefinition", "parameters": { - "id": 71, + "id": 1020, "nodeType": "ParameterList", "parameters": [], - "src": "2210:2:0" + "src": "2210:2:2" }, - "src": "2180:174:0", + "src": "2180:174:2", "visibility": "internal" }, { "body": { - "id": 100, + "id": 1049, "nodeType": "Block", - "src": "2394:57:0", + "src": "2394:57:2", "statements": [ { "expression": { @@ -1322,10 +1322,10 @@ { "argumentTypes": null, "commonType": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, - "id": 96, + "id": 1045, "isConstant": false, "isLValue": false, "isPure": false, @@ -1335,18 +1335,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 93, + "id": 1042, "name": "stage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 157, - "src": "2413:5:0", + "referencedDeclaration": 1106, + "src": "2413:5:2", "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$980_$", "typeString": "function () view returns (enum JobApplicant.Stages)" } }, - "id": 94, + "id": 1043, "isConstant": false, "isLValue": false, "isPure": false, @@ -1354,9 +1354,9 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2413:7:0", + "src": "2413:7:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -1364,18 +1364,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 95, + "id": 1044, "name": "_stage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 90, - "src": "2424:6:0", + "referencedDeclaration": 1039, + "src": "2424:6:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "2413:17:0", + "src": "2413:17:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1389,21 +1389,21 @@ "typeString": "bool" } ], - "id": 92, + "id": 1041, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "2405:7:0", + "referencedDeclaration": 1968, + "src": "2405:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 97, + "id": 1046, "isConstant": false, "isLValue": false, "isPure": false, @@ -1411,53 +1411,53 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2405:26:0", + "src": "2405:26:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 98, + "id": 1047, "nodeType": "ExpressionStatement", - "src": "2405:26:0" + "src": "2405:26:2" }, { - "id": 99, + "id": 1048, "nodeType": "PlaceholderStatement", - "src": "2442:1:0" + "src": "2442:1:2" } ] }, "documentation": null, - "id": 101, + "id": 1050, "name": "atStage", "nodeType": "ModifierDefinition", "parameters": { - "id": 91, + "id": 1040, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 90, + "id": 1039, "name": "_stage", "nodeType": "VariableDeclaration", - "scope": 101, - "src": "2379:13:0", + "scope": 1050, + "src": "2379:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, "typeName": { "contractScope": null, - "id": 89, + "id": 1038, "name": "Stages", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 31, - "src": "2379:6:0", + "referencedDeclaration": 980, + "src": "2379:6:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -1465,33 +1465,33 @@ "visibility": "internal" } ], - "src": "2378:15:0" + "src": "2378:15:2" }, - "src": "2362:89:0", + "src": "2362:89:2", "visibility": "internal" }, { "body": { - "id": 126, + "id": 1075, "nodeType": "Block", - "src": "2605:177:0", + "src": "2605:177:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 110, + "id": 1059, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 108, + "id": 1057, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 42, - "src": "2616:9:0", + "referencedDeclaration": 991, + "src": "2616:9:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1501,45 +1501,45 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 109, + "id": 1058, "name": "_applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 105, - "src": "2628:10:0", + "referencedDeclaration": 1054, + "src": "2628:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2616:22:0", + "src": "2616:22:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 111, + "id": 1060, "nodeType": "ExpressionStatement", - "src": "2616:22:0" + "src": "2616:22:2" }, { "expression": { "argumentTypes": null, - "id": 116, + "id": 1065, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 112, + "id": 1061, "name": "listingContract", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 40, - "src": "2649:15:0", + "referencedDeclaration": 989, + "src": "2649:15:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -1550,12 +1550,12 @@ "arguments": [ { "argumentTypes": null, - "id": 114, + "id": 1063, "name": "_listingContractAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 103, - "src": "2675:23:0", + "referencedDeclaration": 1052, + "src": "2675:23:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1569,18 +1569,18 @@ "typeString": "address" } ], - "id": 113, + "id": 1062, "name": "Listing", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 605, - "src": "2667:7:0", + "referencedDeclaration": 1554, + "src": "2667:7:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Listing_$605_$", + "typeIdentifier": "t_type$_t_contract$_Listing_$1554_$", "typeString": "type(contract Listing)" } }, - "id": 115, + "id": 1064, "isConstant": false, "isLValue": false, "isPure": false, @@ -1588,38 +1588,38 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2667:32:0", + "src": "2667:32:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "src": "2649:50:0", + "src": "2649:50:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 117, + "id": 1066, "nodeType": "ExpressionStatement", - "src": "2649:50:0" + "src": "2649:50:2" }, { "expression": { "argumentTypes": null, - "id": 120, + "id": 1069, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 118, + "id": 1067, "name": "created", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 44, - "src": "2710:7:0", + "referencedDeclaration": 993, + "src": "2710:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1629,26 +1629,26 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 119, + "id": 1068, "name": "now", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 870, - "src": "2720:3:0", + "referencedDeclaration": 1967, + "src": "2720:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "2710:13:0", + "src": "2710:13:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 121, + "id": 1070, "nodeType": "ExpressionStatement", - "src": "2710:13:0" + "src": "2710:13:2" }, { "eventCall": { @@ -1656,14 +1656,14 @@ "arguments": [ { "argumentTypes": null, - "id": 123, + "id": 1072, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "2760:13:0", + "referencedDeclaration": 987, + "src": "2760:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -1671,22 +1671,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 122, + "id": 1071, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "2739:20:0", + "referencedDeclaration": 955, + "src": "2739:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 124, + "id": 1073, "isConstant": false, "isLValue": false, "isPure": false, @@ -1694,20 +1694,20 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2739:35:0", + "src": "2739:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 125, + "id": 1074, "nodeType": "EmitStatement", - "src": "2734:40:0" + "src": "2734:40:2" } ] }, "documentation": null, - "id": 127, + "id": 1076, "implemented": true, "isConstructor": true, "isDeclaredConst": false, @@ -1715,16 +1715,16 @@ "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 106, + "id": 1055, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 103, + "id": 1052, "name": "_listingContractAddress", "nodeType": "VariableDeclaration", - "scope": 127, - "src": "2522:31:0", + "scope": 1076, + "src": "2522:31:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1732,10 +1732,10 @@ "typeString": "address" }, "typeName": { - "id": 102, + "id": 1051, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2522:7:0", + "src": "2522:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1746,11 +1746,11 @@ }, { "constant": false, - "id": 105, + "id": 1054, "name": "_applicant", "nodeType": "VariableDeclaration", - "scope": 127, - "src": "2562:18:0", + "scope": 1076, + "src": "2562:18:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1758,10 +1758,10 @@ "typeString": "address" }, "typeName": { - "id": 104, + "id": 1053, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2562:7:0", + "src": "2562:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1771,26 +1771,26 @@ "visibility": "internal" } ], - "src": "2513:74:0" + "src": "2513:74:2" }, "payable": false, "returnParameters": { - "id": 107, + "id": 1056, "nodeType": "ParameterList", "parameters": [], - "src": "2605:0:0" + "src": "2605:0:2" }, - "scope": 377, - "src": "2501:281:0", + "scope": 1326, + "src": "2501:281:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 148, + "id": 1097, "nodeType": "Block", - "src": "2941:90:0", + "src": "2941:90:2", "statements": [ { "expression": { @@ -1801,18 +1801,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 140, + "id": 1089, "name": "stage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 157, - "src": "2960:5:0", + "referencedDeclaration": 1106, + "src": "2960:5:2", "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$980_$", "typeString": "function () view returns (enum JobApplicant.Stages)" } }, - "id": 141, + "id": 1090, "isConstant": false, "isLValue": false, "isPure": false, @@ -1820,33 +1820,33 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2960:7:0", + "src": "2960:7:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, { "argumentTypes": null, - "id": 142, + "id": 1091, "name": "listingContract", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 40, - "src": "2969:15:0", + "referencedDeclaration": 989, + "src": "2969:15:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, { "argumentTypes": null, - "id": 143, + "id": 1092, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 42, - "src": "2986:9:0", + "referencedDeclaration": 991, + "src": "2986:9:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1854,12 +1854,12 @@ }, { "argumentTypes": null, - "id": 144, + "id": 1093, "name": "created", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 44, - "src": "2997:7:0", + "referencedDeclaration": 993, + "src": "2997:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1867,40 +1867,40 @@ }, { "argumentTypes": null, - "id": 145, + "id": 1094, "name": "_applicantTimout", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 138, - "src": "3006:16:0", + "referencedDeclaration": 1087, + "src": "3006:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], - "id": 146, + "id": 1095, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", - "src": "2959:64:0", + "src": "2959:64:2", "typeDescriptions": { - "typeIdentifier": "t_tuple$_t_enum$_Stages_$31_$_t_contract$_Listing_$605_$_t_address_$_t_uint256_$_t_uint256_$", + "typeIdentifier": "t_tuple$_t_enum$_Stages_$980_$_t_contract$_Listing_$1554_$_t_address_$_t_uint256_$_t_uint256_$", "typeString": "tuple(enum JobApplicant.Stages,contract Listing,address,uint256,uint256)" } }, - "functionReturnParameters": 139, - "id": 147, + "functionReturnParameters": 1088, + "id": 1096, "nodeType": "Return", - "src": "2952:71:0" + "src": "2952:71:2" } ] }, "documentation": null, - "id": 149, + "id": 1098, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -1908,38 +1908,38 @@ "name": "data", "nodeType": "FunctionDefinition", "parameters": { - "id": 128, + "id": 1077, "nodeType": "ParameterList", "parameters": [], - "src": "2803:2:0" + "src": "2803:2:2" }, "payable": false, "returnParameters": { - "id": 139, + "id": 1088, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 130, + "id": 1079, "name": "_stage", "nodeType": "VariableDeclaration", - "scope": 149, - "src": "2842:13:0", + "scope": 1098, + "src": "2842:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, "typeName": { "contractScope": null, - "id": 129, + "id": 1078, "name": "Stages", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 31, - "src": "2842:6:0", + "referencedDeclaration": 980, + "src": "2842:6:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -1948,26 +1948,26 @@ }, { "constant": false, - "id": 132, + "id": 1081, "name": "_listingContract", "nodeType": "VariableDeclaration", - "scope": 149, - "src": "2857:24:0", + "scope": 1098, + "src": "2857:24:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" }, "typeName": { "contractScope": null, - "id": 131, + "id": 1080, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "2857:7:0", + "referencedDeclaration": 1554, + "src": "2857:7:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -1976,11 +1976,11 @@ }, { "constant": false, - "id": 134, + "id": 1083, "name": "_applicant", "nodeType": "VariableDeclaration", - "scope": 149, - "src": "2883:18:0", + "scope": 1098, + "src": "2883:18:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1988,10 +1988,10 @@ "typeString": "address" }, "typeName": { - "id": 133, + "id": 1082, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2883:7:0", + "src": "2883:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2002,11 +2002,11 @@ }, { "constant": false, - "id": 136, + "id": 1085, "name": "_created", "nodeType": "VariableDeclaration", - "scope": 149, - "src": "2903:13:0", + "scope": 1098, + "src": "2903:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2014,10 +2014,10 @@ "typeString": "uint256" }, "typeName": { - "id": 135, + "id": 1084, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2903:4:0", + "src": "2903:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2028,11 +2028,11 @@ }, { "constant": false, - "id": 138, + "id": 1087, "name": "_applicantTimout", "nodeType": "VariableDeclaration", - "scope": 149, - "src": "2918:21:0", + "scope": 1098, + "src": "2918:21:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2040,10 +2040,10 @@ "typeString": "uint256" }, "typeName": { - "id": 137, + "id": 1086, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2918:4:0", + "src": "2918:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2053,43 +2053,43 @@ "visibility": "internal" } ], - "src": "2841:99:0" + "src": "2841:99:2" }, - "scope": 377, - "src": "2790:241:0", + "scope": 1326, + "src": "2790:241:2", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 156, + "id": 1105, "nodeType": "Block", - "src": "3432:39:0", + "src": "3432:39:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 154, + "id": 1103, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "3450:13:0", + "referencedDeclaration": 987, + "src": "3450:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "functionReturnParameters": 153, - "id": 155, + "functionReturnParameters": 1102, + "id": 1104, "nodeType": "Return", - "src": "3443:20:0" + "src": "3443:20:2" } ] }, "documentation": "//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 157, + "id": 1106, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -2097,38 +2097,38 @@ "name": "stage", "nodeType": "FunctionDefinition", "parameters": { - "id": 150, + "id": 1099, "nodeType": "ParameterList", "parameters": [], - "src": "3373:2:0" + "src": "3373:2:2" }, "payable": false, "returnParameters": { - "id": 153, + "id": 1102, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 152, + "id": 1101, "name": "_stage", "nodeType": "VariableDeclaration", - "scope": 157, - "src": "3412:13:0", + "scope": 1106, + "src": "3412:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, "typeName": { "contractScope": null, - "id": 151, + "id": 1100, "name": "Stages", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 31, - "src": "3412:6:0", + "referencedDeclaration": 980, + "src": "3412:6:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -2136,19 +2136,19 @@ "visibility": "internal" } ], - "src": "3411:15:0" + "src": "3411:15:2" }, - "scope": 377, - "src": "3359:112:0", + "scope": 1326, + "src": "3359:112:2", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 185, + "id": 1134, "nodeType": "Block", - "src": "3814:286:0", + "src": "3814:286:2", "statements": [ { "expression": { @@ -2160,7 +2160,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 173, + "id": 1122, "isConstant": false, "isLValue": false, "isPure": false, @@ -2168,10 +2168,10 @@ "leftExpression": { "argumentTypes": null, "commonType": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, - "id": 167, + "id": 1116, "isConstant": false, "isLValue": false, "isPure": false, @@ -2181,18 +2181,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 163, + "id": 1112, "name": "stage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 157, - "src": "3884:5:0", + "referencedDeclaration": 1106, + "src": "3884:5:2", "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$980_$", "typeString": "function () view returns (enum JobApplicant.Stages)" } }, - "id": 164, + "id": 1113, "isConstant": false, "isLValue": false, "isPure": false, @@ -2200,9 +2200,9 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3884:7:0", + "src": "3884:7:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -2212,18 +2212,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 165, + "id": 1114, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "3895:6:0", + "referencedDeclaration": 980, + "src": "3895:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 166, + "id": 1115, "isConstant": false, "isLValue": false, "isPure": true, @@ -2231,13 +2231,13 @@ "memberName": "AWAITING_INTERVIEW", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3895:25:0", + "src": "3895:25:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "3884:36:0", + "src": "3884:36:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2248,10 +2248,10 @@ "rightExpression": { "argumentTypes": null, "commonType": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, - "id": 172, + "id": 1121, "isConstant": false, "isLValue": false, "isPure": false, @@ -2261,18 +2261,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 168, + "id": 1117, "name": "stage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 157, - "src": "3937:5:0", + "referencedDeclaration": 1106, + "src": "3937:5:2", "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$980_$", "typeString": "function () view returns (enum JobApplicant.Stages)" } }, - "id": 169, + "id": 1118, "isConstant": false, "isLValue": false, "isPure": false, @@ -2280,9 +2280,9 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3937:7:0", + "src": "3937:7:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -2292,18 +2292,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 170, + "id": 1119, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "3948:6:0", + "referencedDeclaration": 980, + "src": "3948:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 171, + "id": 1120, "isConstant": false, "isLValue": false, "isPure": true, @@ -2311,19 +2311,19 @@ "memberName": "AWAITING_JOBOFFER", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3948:24:0", + "src": "3948:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "3937:35:0", + "src": "3937:35:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "src": "3884:88:0", + "src": "3884:88:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2337,21 +2337,21 @@ "typeString": "bool" } ], - "id": 162, + "id": 1111, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "3862:7:0", + "referencedDeclaration": 1968, + "src": "3862:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 174, + "id": 1123, "isConstant": false, "isLValue": false, "isPure": false, @@ -2359,34 +2359,34 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3862:121:0", + "src": "3862:121:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 175, + "id": 1124, "nodeType": "ExpressionStatement", - "src": "3862:121:0" + "src": "3862:121:2" }, { "expression": { "argumentTypes": null, - "id": 179, + "id": 1128, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 176, + "id": 1125, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "3998:13:0", + "referencedDeclaration": 987, + "src": "3998:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -2396,18 +2396,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 177, + "id": 1126, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "4014:6:0", + "referencedDeclaration": 980, + "src": "4014:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 178, + "id": 1127, "isConstant": false, "isLValue": false, "isPure": true, @@ -2415,21 +2415,21 @@ "memberName": "CANCEL_APPLICATION", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4014:25:0", + "src": "4014:25:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "3998:41:0", + "src": "3998:41:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 180, + "id": 1129, "nodeType": "ExpressionStatement", - "src": "3998:41:0" + "src": "3998:41:2" }, { "eventCall": { @@ -2437,14 +2437,14 @@ "arguments": [ { "argumentTypes": null, - "id": 182, + "id": 1131, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "4076:13:0", + "referencedDeclaration": 987, + "src": "4076:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -2452,22 +2452,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 181, + "id": 1130, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "4055:20:0", + "referencedDeclaration": 955, + "src": "4055:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 183, + "id": 1132, "isConstant": false, "isLValue": false, "isPure": false, @@ -2475,89 +2475,89 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4055:35:0", + "src": "4055:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 184, + "id": 1133, "nodeType": "EmitStatement", - "src": "4050:40:0" + "src": "4050:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 186, + "id": 1135, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 160, + "id": 1109, "modifierName": { "argumentTypes": null, - "id": 159, + "id": 1108, "name": "isApplicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 70, - "src": "3797:11:0", + "referencedDeclaration": 1019, + "src": "3797:11:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "3797:11:0" + "src": "3797:11:2" } ], "name": "cancelApplication", "nodeType": "FunctionDefinition", "parameters": { - "id": 158, + "id": 1107, "nodeType": "ParameterList", "parameters": [], - "src": "3777:2:0" + "src": "3777:2:2" }, "payable": false, "returnParameters": { - "id": 161, + "id": 1110, "nodeType": "ParameterList", "parameters": [], - "src": "3814:0:0" + "src": "3814:0:2" }, - "scope": 377, - "src": "3751:349:0", + "scope": 1326, + "src": "3751:349:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 204, + "id": 1153, "nodeType": "Block", - "src": "4479:110:0", + "src": "4479:110:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 198, + "id": 1147, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 195, + "id": 1144, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "4490:13:0", + "referencedDeclaration": 987, + "src": "4490:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -2567,18 +2567,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 196, + "id": 1145, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "4506:6:0", + "referencedDeclaration": 980, + "src": "4506:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 197, + "id": 1146, "isConstant": false, "isLValue": false, "isPure": true, @@ -2586,21 +2586,21 @@ "memberName": "INTERVIEW_PENDING", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4506:24:0", + "src": "4506:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "4490:40:0", + "src": "4490:40:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 199, + "id": 1148, "nodeType": "ExpressionStatement", - "src": "4490:40:0" + "src": "4490:40:2" }, { "eventCall": { @@ -2608,14 +2608,14 @@ "arguments": [ { "argumentTypes": null, - "id": 201, + "id": 1150, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "4567:13:0", + "referencedDeclaration": 987, + "src": "4567:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -2623,22 +2623,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 200, + "id": 1149, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "4546:20:0", + "referencedDeclaration": 955, + "src": "4546:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 202, + "id": 1151, "isConstant": false, "isLValue": false, "isPure": false, @@ -2646,42 +2646,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4546:35:0", + "src": "4546:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 203, + "id": 1152, "nodeType": "EmitStatement", - "src": "4541:40:0" + "src": "4541:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 205, + "id": 1154, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 189, + "id": 1138, "modifierName": { "argumentTypes": null, - "id": 188, + "id": 1137, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "4423:10:0", + "referencedDeclaration": 1008, + "src": "4423:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "4423:10:0" + "src": "4423:10:2" }, { "arguments": [ @@ -2689,18 +2689,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 191, + "id": 1140, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "4447:6:0", + "referencedDeclaration": 980, + "src": "4447:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 192, + "id": 1141, "isConstant": false, "isLValue": false, "isPure": true, @@ -2708,76 +2708,76 @@ "memberName": "AWAITING_INTERVIEW", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4447:25:0", + "src": "4447:25:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 193, + "id": 1142, "modifierName": { "argumentTypes": null, - "id": 190, + "id": 1139, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "4439:7:0", + "referencedDeclaration": 1050, + "src": "4439:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "4439:34:0" + "src": "4439:34:2" } ], "name": "callForInterview", "nodeType": "FunctionDefinition", "parameters": { - "id": 187, + "id": 1136, "nodeType": "ParameterList", "parameters": [], - "src": "4403:2:0" + "src": "4403:2:2" }, "payable": false, "returnParameters": { - "id": 194, + "id": 1143, "nodeType": "ParameterList", "parameters": [], - "src": "4479:0:0" + "src": "4479:0:2" }, - "scope": 377, - "src": "4378:211:0", + "scope": 1326, + "src": "4378:211:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 223, + "id": 1172, "nodeType": "Block", - "src": "4956:113:0", + "src": "4956:113:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 217, + "id": 1166, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 214, + "id": 1163, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "4967:13:0", + "referencedDeclaration": 987, + "src": "4967:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -2787,18 +2787,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 215, + "id": 1164, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "4983:6:0", + "referencedDeclaration": 980, + "src": "4983:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 216, + "id": 1165, "isConstant": false, "isLValue": false, "isPure": true, @@ -2806,21 +2806,21 @@ "memberName": "APPLICATION_REJECTED", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4983:27:0", + "src": "4983:27:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "4967:43:0", + "src": "4967:43:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 218, + "id": 1167, "nodeType": "ExpressionStatement", - "src": "4967:43:0" + "src": "4967:43:2" }, { "eventCall": { @@ -2828,14 +2828,14 @@ "arguments": [ { "argumentTypes": null, - "id": 220, + "id": 1169, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "5047:13:0", + "referencedDeclaration": 987, + "src": "5047:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -2843,22 +2843,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 219, + "id": 1168, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "5026:20:0", + "referencedDeclaration": 955, + "src": "5026:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 221, + "id": 1170, "isConstant": false, "isLValue": false, "isPure": false, @@ -2866,42 +2866,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5026:35:0", + "src": "5026:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 222, + "id": 1171, "nodeType": "EmitStatement", - "src": "5021:40:0" + "src": "5021:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 224, + "id": 1173, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 208, + "id": 1157, "modifierName": { "argumentTypes": null, - "id": 207, + "id": 1156, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "4900:10:0", + "referencedDeclaration": 1008, + "src": "4900:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "4900:10:0" + "src": "4900:10:2" }, { "arguments": [ @@ -2909,18 +2909,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 210, + "id": 1159, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "4924:6:0", + "referencedDeclaration": 980, + "src": "4924:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 211, + "id": 1160, "isConstant": false, "isLValue": false, "isPure": true, @@ -2928,76 +2928,76 @@ "memberName": "AWAITING_INTERVIEW", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4924:25:0", + "src": "4924:25:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 212, + "id": 1161, "modifierName": { "argumentTypes": null, - "id": 209, + "id": 1158, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "4916:7:0", + "referencedDeclaration": 1050, + "src": "4916:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "4916:34:0" + "src": "4916:34:2" } ], "name": "rejectApplication", "nodeType": "FunctionDefinition", "parameters": { - "id": 206, + "id": 1155, "nodeType": "ParameterList", "parameters": [], - "src": "4880:2:0" + "src": "4880:2:2" }, "payable": false, "returnParameters": { - "id": 213, + "id": 1162, "nodeType": "ParameterList", "parameters": [], - "src": "4956:0:0" + "src": "4956:0:2" }, - "scope": 377, - "src": "4854:215:0", + "scope": 1326, + "src": "4854:215:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 242, + "id": 1191, "nodeType": "Block", - "src": "5433:110:0", + "src": "5433:110:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 236, + "id": 1185, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 233, + "id": 1182, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "5444:13:0", + "referencedDeclaration": 987, + "src": "5444:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -3007,18 +3007,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 234, + "id": 1183, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "5460:6:0", + "referencedDeclaration": 980, + "src": "5460:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 235, + "id": 1184, "isConstant": false, "isLValue": false, "isPure": true, @@ -3026,21 +3026,21 @@ "memberName": "AWAITING_JOBOFFER", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "5460:24:0", + "src": "5460:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "5444:40:0", + "src": "5444:40:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 237, + "id": 1186, "nodeType": "ExpressionStatement", - "src": "5444:40:0" + "src": "5444:40:2" }, { "eventCall": { @@ -3048,14 +3048,14 @@ "arguments": [ { "argumentTypes": null, - "id": 239, + "id": 1188, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "5521:13:0", + "referencedDeclaration": 987, + "src": "5521:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -3063,22 +3063,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 238, + "id": 1187, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "5500:20:0", + "referencedDeclaration": 955, + "src": "5500:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 240, + "id": 1189, "isConstant": false, "isLValue": false, "isPure": false, @@ -3086,42 +3086,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5500:35:0", + "src": "5500:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 241, + "id": 1190, "nodeType": "EmitStatement", - "src": "5495:40:0" + "src": "5495:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 243, + "id": 1192, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 227, + "id": 1176, "modifierName": { "argumentTypes": null, - "id": 226, + "id": 1175, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "5378:10:0", + "referencedDeclaration": 1008, + "src": "5378:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "5378:10:0" + "src": "5378:10:2" }, { "arguments": [ @@ -3129,18 +3129,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 229, + "id": 1178, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "5402:6:0", + "referencedDeclaration": 980, + "src": "5402:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 230, + "id": 1179, "isConstant": false, "isLValue": false, "isPure": true, @@ -3148,76 +3148,76 @@ "memberName": "INTERVIEW_PENDING", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "5402:24:0", + "src": "5402:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 231, + "id": 1180, "modifierName": { "argumentTypes": null, - "id": 228, + "id": 1177, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "5394:7:0", + "referencedDeclaration": 1050, + "src": "5394:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "5394:33:0" + "src": "5394:33:2" } ], "name": "interviewSuccessful", "nodeType": "FunctionDefinition", "parameters": { - "id": 225, + "id": 1174, "nodeType": "ParameterList", "parameters": [], - "src": "5358:2:0" + "src": "5358:2:2" }, "payable": false, "returnParameters": { - "id": 232, + "id": 1181, "nodeType": "ParameterList", "parameters": [], - "src": "5433:0:0" + "src": "5433:0:2" }, - "scope": 377, - "src": "5330:213:0", + "scope": 1326, + "src": "5330:213:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 261, + "id": 1210, "nodeType": "Block", - "src": "5921:115:0", + "src": "5921:115:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 255, + "id": 1204, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 252, + "id": 1201, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "5932:13:0", + "referencedDeclaration": 987, + "src": "5932:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -3227,18 +3227,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 253, + "id": 1202, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "5948:6:0", + "referencedDeclaration": 980, + "src": "5948:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 254, + "id": 1203, "isConstant": false, "isLValue": false, "isPure": true, @@ -3246,21 +3246,21 @@ "memberName": "INTERVIEW_NOT_SELECTED", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "5948:29:0", + "src": "5948:29:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "5932:45:0", + "src": "5932:45:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 256, + "id": 1205, "nodeType": "ExpressionStatement", - "src": "5932:45:0" + "src": "5932:45:2" }, { "eventCall": { @@ -3268,14 +3268,14 @@ "arguments": [ { "argumentTypes": null, - "id": 258, + "id": 1207, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "6014:13:0", + "referencedDeclaration": 987, + "src": "6014:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -3283,22 +3283,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 257, + "id": 1206, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "5993:20:0", + "referencedDeclaration": 955, + "src": "5993:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 259, + "id": 1208, "isConstant": false, "isLValue": false, "isPure": false, @@ -3306,42 +3306,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5993:35:0", + "src": "5993:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 260, + "id": 1209, "nodeType": "EmitStatement", - "src": "5988:40:0" + "src": "5988:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 262, + "id": 1211, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 246, + "id": 1195, "modifierName": { "argumentTypes": null, - "id": 245, + "id": 1194, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "5866:10:0", + "referencedDeclaration": 1008, + "src": "5866:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "5866:10:0" + "src": "5866:10:2" }, { "arguments": [ @@ -3349,18 +3349,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 248, + "id": 1197, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "5890:6:0", + "referencedDeclaration": 980, + "src": "5890:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 249, + "id": 1198, "isConstant": false, "isLValue": false, "isPure": true, @@ -3368,76 +3368,76 @@ "memberName": "INTERVIEW_PENDING", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "5890:24:0", + "src": "5890:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 250, + "id": 1199, "modifierName": { "argumentTypes": null, - "id": 247, + "id": 1196, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "5882:7:0", + "referencedDeclaration": 1050, + "src": "5882:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "5882:33:0" + "src": "5882:33:2" } ], "name": "interviewNotSelected", "nodeType": "FunctionDefinition", "parameters": { - "id": 244, + "id": 1193, "nodeType": "ParameterList", "parameters": [], - "src": "5846:2:0" + "src": "5846:2:2" }, "payable": false, "returnParameters": { - "id": 251, + "id": 1200, "nodeType": "ParameterList", "parameters": [], - "src": "5921:0:0" + "src": "5921:0:2" }, - "scope": 377, - "src": "5817:219:0", + "scope": 1326, + "src": "5817:219:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 280, + "id": 1229, "nodeType": "Block", - "src": "6380:109:0", + "src": "6380:109:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 274, + "id": 1223, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 271, + "id": 1220, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "6391:13:0", + "referencedDeclaration": 987, + "src": "6391:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -3447,18 +3447,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 272, + "id": 1221, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "6407:6:0", + "referencedDeclaration": 980, + "src": "6407:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 273, + "id": 1222, "isConstant": false, "isLValue": false, "isPure": true, @@ -3466,21 +3466,21 @@ "memberName": "JOBOFFER_PENDING", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "6407:23:0", + "src": "6407:23:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "6391:39:0", + "src": "6391:39:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 275, + "id": 1224, "nodeType": "ExpressionStatement", - "src": "6391:39:0" + "src": "6391:39:2" }, { "eventCall": { @@ -3488,14 +3488,14 @@ "arguments": [ { "argumentTypes": null, - "id": 277, + "id": 1226, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "6467:13:0", + "referencedDeclaration": 987, + "src": "6467:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -3503,22 +3503,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 276, + "id": 1225, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "6446:20:0", + "referencedDeclaration": 955, + "src": "6446:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 278, + "id": 1227, "isConstant": false, "isLValue": false, "isPure": false, @@ -3526,42 +3526,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6446:35:0", + "src": "6446:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 279, + "id": 1228, "nodeType": "EmitStatement", - "src": "6441:40:0" + "src": "6441:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 281, + "id": 1230, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 265, + "id": 1214, "modifierName": { "argumentTypes": null, - "id": 264, + "id": 1213, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "6325:10:0", + "referencedDeclaration": 1008, + "src": "6325:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "6325:10:0" + "src": "6325:10:2" }, { "arguments": [ @@ -3569,18 +3569,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 267, + "id": 1216, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "6349:6:0", + "referencedDeclaration": 980, + "src": "6349:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 268, + "id": 1217, "isConstant": false, "isLValue": false, "isPure": true, @@ -3588,76 +3588,76 @@ "memberName": "AWAITING_JOBOFFER", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "6349:24:0", + "src": "6349:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 269, + "id": 1218, "modifierName": { "argumentTypes": null, - "id": 266, + "id": 1215, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "6341:7:0", + "referencedDeclaration": 1050, + "src": "6341:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "6341:33:0" + "src": "6341:33:2" } ], "name": "offerJob", "nodeType": "FunctionDefinition", "parameters": { - "id": 263, + "id": 1212, "nodeType": "ParameterList", "parameters": [], - "src": "6305:2:0" + "src": "6305:2:2" }, "payable": false, "returnParameters": { - "id": 270, + "id": 1219, "nodeType": "ParameterList", "parameters": [], - "src": "6380:0:0" + "src": "6380:0:2" }, - "scope": 377, - "src": "6288:201:0", + "scope": 1326, + "src": "6288:201:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 299, + "id": 1248, "nodeType": "Block", - "src": "6850:164:0", + "src": "6850:164:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 293, + "id": 1242, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 290, + "id": 1239, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "6861:13:0", + "referencedDeclaration": 987, + "src": "6861:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -3667,18 +3667,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 291, + "id": 1240, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "6877:6:0", + "referencedDeclaration": 980, + "src": "6877:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 292, + "id": 1241, "isConstant": false, "isLValue": false, "isPure": true, @@ -3686,21 +3686,21 @@ "memberName": "JOBOFFER_ACCEPTED", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "6877:24:0", + "src": "6877:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "6861:40:0", + "src": "6861:40:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 294, + "id": 1243, "nodeType": "ExpressionStatement", - "src": "6861:40:0" + "src": "6861:40:2" }, { "eventCall": { @@ -3708,14 +3708,14 @@ "arguments": [ { "argumentTypes": null, - "id": 296, + "id": 1245, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "6992:13:0", + "referencedDeclaration": 987, + "src": "6992:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -3723,22 +3723,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 295, + "id": 1244, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "6971:20:0", + "referencedDeclaration": 955, + "src": "6971:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 297, + "id": 1246, "isConstant": false, "isLValue": false, "isPure": false, @@ -3746,42 +3746,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6971:35:0", + "src": "6971:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 298, + "id": 1247, "nodeType": "EmitStatement", - "src": "6966:40:0" + "src": "6966:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 300, + "id": 1249, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 284, + "id": 1233, "modifierName": { "argumentTypes": null, - "id": 283, + "id": 1232, "name": "isApplicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 70, - "src": "6795:11:0", + "referencedDeclaration": 1019, + "src": "6795:11:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "6795:11:0" + "src": "6795:11:2" }, { "arguments": [ @@ -3789,18 +3789,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 286, + "id": 1235, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "6820:6:0", + "referencedDeclaration": 980, + "src": "6820:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 287, + "id": 1236, "isConstant": false, "isLValue": false, "isPure": true, @@ -3808,76 +3808,76 @@ "memberName": "JOBOFFER_PENDING", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "6820:23:0", + "src": "6820:23:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 288, + "id": 1237, "modifierName": { "argumentTypes": null, - "id": 285, + "id": 1234, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "6812:7:0", + "referencedDeclaration": 1050, + "src": "6812:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "6812:32:0" + "src": "6812:32:2" } ], "name": "acceptJobOffer", "nodeType": "FunctionDefinition", "parameters": { - "id": 282, + "id": 1231, "nodeType": "ParameterList", "parameters": [], - "src": "6775:2:0" + "src": "6775:2:2" }, "payable": false, "returnParameters": { - "id": 289, + "id": 1238, "nodeType": "ParameterList", "parameters": [], - "src": "6850:0:0" + "src": "6850:0:2" }, - "scope": 377, - "src": "6752:262:0", + "scope": 1326, + "src": "6752:262:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 318, + "id": 1267, "nodeType": "Block", - "src": "7374:114:0", + "src": "7374:114:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 312, + "id": 1261, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 309, + "id": 1258, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "7385:13:0", + "referencedDeclaration": 987, + "src": "7385:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -3887,18 +3887,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 310, + "id": 1259, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "7401:6:0", + "referencedDeclaration": 980, + "src": "7401:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 311, + "id": 1260, "isConstant": false, "isLValue": false, "isPure": true, @@ -3906,21 +3906,21 @@ "memberName": "JOBOFFER_NOT_ACCEPTED", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "7401:28:0", + "src": "7401:28:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "7385:44:0", + "src": "7385:44:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 313, + "id": 1262, "nodeType": "ExpressionStatement", - "src": "7385:44:0" + "src": "7385:44:2" }, { "eventCall": { @@ -3928,14 +3928,14 @@ "arguments": [ { "argumentTypes": null, - "id": 315, + "id": 1264, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "7466:13:0", + "referencedDeclaration": 987, + "src": "7466:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -3943,22 +3943,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 314, + "id": 1263, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "7445:20:0", + "referencedDeclaration": 955, + "src": "7445:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 316, + "id": 1265, "isConstant": false, "isLValue": false, "isPure": false, @@ -3966,42 +3966,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7445:35:0", + "src": "7445:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 317, + "id": 1266, "nodeType": "EmitStatement", - "src": "7440:40:0" + "src": "7440:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 319, + "id": 1268, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 303, + "id": 1252, "modifierName": { "argumentTypes": null, - "id": 302, + "id": 1251, "name": "isApplicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 70, - "src": "7319:11:0", + "referencedDeclaration": 1019, + "src": "7319:11:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "7319:11:0" + "src": "7319:11:2" }, { "arguments": [ @@ -4009,18 +4009,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 305, + "id": 1254, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "7344:6:0", + "referencedDeclaration": 980, + "src": "7344:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 306, + "id": 1255, "isConstant": false, "isLValue": false, "isPure": true, @@ -4028,76 +4028,76 @@ "memberName": "JOBOFFER_PENDING", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "7344:23:0", + "src": "7344:23:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 307, + "id": 1256, "modifierName": { "argumentTypes": null, - "id": 304, + "id": 1253, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "7336:7:0", + "referencedDeclaration": 1050, + "src": "7336:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "7336:32:0" + "src": "7336:32:2" } ], "name": "rejectJobOffer", "nodeType": "FunctionDefinition", "parameters": { - "id": 301, + "id": 1250, "nodeType": "ParameterList", "parameters": [], - "src": "7299:2:0" + "src": "7299:2:2" }, "payable": false, "returnParameters": { - "id": 308, + "id": 1257, "nodeType": "ParameterList", "parameters": [], - "src": "7374:0:0" + "src": "7374:0:2" }, - "scope": 377, - "src": "7276:212:0", + "scope": 1326, + "src": "7276:212:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 337, + "id": 1286, "nodeType": "Block", - "src": "7857:164:0", + "src": "7857:164:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 331, + "id": 1280, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 328, + "id": 1277, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "7868:13:0", + "referencedDeclaration": 987, + "src": "7868:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -4107,18 +4107,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 329, + "id": 1278, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "7884:6:0", + "referencedDeclaration": 980, + "src": "7884:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 330, + "id": 1279, "isConstant": false, "isLValue": false, "isPure": true, @@ -4126,21 +4126,21 @@ "memberName": "EMPLOYMENT_PERIOD", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "7884:24:0", + "src": "7884:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "7868:40:0", + "src": "7868:40:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 332, + "id": 1281, "nodeType": "ExpressionStatement", - "src": "7868:40:0" + "src": "7868:40:2" }, { "eventCall": { @@ -4148,14 +4148,14 @@ "arguments": [ { "argumentTypes": null, - "id": 334, + "id": 1283, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "7999:13:0", + "referencedDeclaration": 987, + "src": "7999:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -4163,22 +4163,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 333, + "id": 1282, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "7978:20:0", + "referencedDeclaration": 955, + "src": "7978:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 335, + "id": 1284, "isConstant": false, "isLValue": false, "isPure": false, @@ -4186,42 +4186,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7978:35:0", + "src": "7978:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 336, + "id": 1285, "nodeType": "EmitStatement", - "src": "7973:40:0" + "src": "7973:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 338, + "id": 1287, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 322, + "id": 1271, "modifierName": { "argumentTypes": null, - "id": 321, + "id": 1270, "name": "isEmployerOrApplicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 88, - "src": "7791:21:0", + "referencedDeclaration": 1037, + "src": "7791:21:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "7791:21:0" + "src": "7791:21:2" }, { "arguments": [ @@ -4229,18 +4229,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 324, + "id": 1273, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "7826:6:0", + "referencedDeclaration": 980, + "src": "7826:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 325, + "id": 1274, "isConstant": false, "isLValue": false, "isPure": true, @@ -4248,76 +4248,76 @@ "memberName": "JOBOFFER_ACCEPTED", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "7826:24:0", + "src": "7826:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 326, + "id": 1275, "modifierName": { "argumentTypes": null, - "id": 323, + "id": 1272, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "7818:7:0", + "referencedDeclaration": 1050, + "src": "7818:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "7818:33:0" + "src": "7818:33:2" } ], "name": "startEmployment", "nodeType": "FunctionDefinition", "parameters": { - "id": 320, + "id": 1269, "nodeType": "ParameterList", "parameters": [], - "src": "7771:2:0" + "src": "7771:2:2" }, "payable": false, "returnParameters": { - "id": 327, + "id": 1276, "nodeType": "ParameterList", "parameters": [], - "src": "7857:0:0" + "src": "7857:0:2" }, - "scope": 377, - "src": "7747:274:0", + "scope": 1326, + "src": "7747:274:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 356, + "id": 1305, "nodeType": "Block", - "src": "8405:115:0", + "src": "8405:115:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 350, + "id": 1299, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 347, + "id": 1296, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "8416:13:0", + "referencedDeclaration": 987, + "src": "8416:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -4327,18 +4327,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 348, + "id": 1297, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "8432:6:0", + "referencedDeclaration": 980, + "src": "8432:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 349, + "id": 1298, "isConstant": false, "isLValue": false, "isPure": true, @@ -4346,21 +4346,21 @@ "memberName": "EMPLOYMENT_TERMINATION", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8432:29:0", + "src": "8432:29:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "8416:45:0", + "src": "8416:45:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 351, + "id": 1300, "nodeType": "ExpressionStatement", - "src": "8416:45:0" + "src": "8416:45:2" }, { "eventCall": { @@ -4368,14 +4368,14 @@ "arguments": [ { "argumentTypes": null, - "id": 353, + "id": 1302, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "8498:13:0", + "referencedDeclaration": 987, + "src": "8498:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -4383,22 +4383,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 352, + "id": 1301, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "8477:20:0", + "referencedDeclaration": 955, + "src": "8477:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 354, + "id": 1303, "isConstant": false, "isLValue": false, "isPure": false, @@ -4406,42 +4406,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8477:35:0", + "src": "8477:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 355, + "id": 1304, "nodeType": "EmitStatement", - "src": "8472:40:0" + "src": "8472:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 357, + "id": 1306, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 341, + "id": 1290, "modifierName": { "argumentTypes": null, - "id": 340, + "id": 1289, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "8350:10:0", + "referencedDeclaration": 1008, + "src": "8350:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "8350:10:0" + "src": "8350:10:2" }, { "arguments": [ @@ -4449,18 +4449,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 343, + "id": 1292, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "8374:6:0", + "referencedDeclaration": 980, + "src": "8374:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 344, + "id": 1293, "isConstant": false, "isLValue": false, "isPure": true, @@ -4468,76 +4468,76 @@ "memberName": "EMPLOYMENT_PERIOD", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8374:24:0", + "src": "8374:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 345, + "id": 1294, "modifierName": { "argumentTypes": null, - "id": 342, + "id": 1291, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "8366:7:0", + "referencedDeclaration": 1050, + "src": "8366:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "8366:33:0" + "src": "8366:33:2" } ], "name": "terminateEmployment", "nodeType": "FunctionDefinition", "parameters": { - "id": 339, + "id": 1288, "nodeType": "ParameterList", "parameters": [], - "src": "8330:2:0" + "src": "8330:2:2" }, "payable": false, "returnParameters": { - "id": 346, + "id": 1295, "nodeType": "ParameterList", "parameters": [], - "src": "8405:0:0" + "src": "8405:0:2" }, - "scope": 377, - "src": "8302:218:0", + "scope": 1326, + "src": "8302:218:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 375, + "id": 1324, "nodeType": "Block", - "src": "8930:103:0", + "src": "8930:103:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 369, + "id": 1318, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 366, + "id": 1315, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "8941:13:0", + "referencedDeclaration": 987, + "src": "8941:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -4547,18 +4547,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 367, + "id": 1316, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "8957:6:0", + "referencedDeclaration": 980, + "src": "8957:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 368, + "id": 1317, "isConstant": false, "isLValue": false, "isPure": true, @@ -4566,21 +4566,21 @@ "memberName": "IN_DISPUTE", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8957:17:0", + "src": "8957:17:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "8941:33:0", + "src": "8941:33:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 370, + "id": 1319, "nodeType": "ExpressionStatement", - "src": "8941:33:0" + "src": "8941:33:2" }, { "eventCall": { @@ -4588,14 +4588,14 @@ "arguments": [ { "argumentTypes": null, - "id": 372, + "id": 1321, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "9011:13:0", + "referencedDeclaration": 987, + "src": "9011:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -4603,22 +4603,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 371, + "id": 1320, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "8990:20:0", + "referencedDeclaration": 955, + "src": "8990:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 373, + "id": 1322, "isConstant": false, "isLValue": false, "isPure": false, @@ -4626,42 +4626,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8990:35:0", + "src": "8990:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 374, + "id": 1323, "nodeType": "EmitStatement", - "src": "8985:40:0" + "src": "8985:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 376, + "id": 1325, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 360, + "id": 1309, "modifierName": { "argumentTypes": null, - "id": 359, + "id": 1308, "name": "isEmployerOrApplicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 88, - "src": "8864:21:0", + "referencedDeclaration": 1037, + "src": "8864:21:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "8864:21:0" + "src": "8864:21:2" }, { "arguments": [ @@ -4669,18 +4669,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 362, + "id": 1311, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "8899:6:0", + "referencedDeclaration": 980, + "src": "8899:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 363, + "id": 1312, "isConstant": false, "isLValue": false, "isPure": true, @@ -4688,87 +4688,87 @@ "memberName": "EMPLOYMENT_PERIOD", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8899:24:0", + "src": "8899:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 364, + "id": 1313, "modifierName": { "argumentTypes": null, - "id": 361, + "id": 1310, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "8891:7:0", + "referencedDeclaration": 1050, + "src": "8891:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "8891:33:0" + "src": "8891:33:2" } ], "name": "openDispute", "nodeType": "FunctionDefinition", "parameters": { - "id": 358, + "id": 1307, "nodeType": "ParameterList", "parameters": [], - "src": "8844:2:0" + "src": "8844:2:2" }, "payable": false, "returnParameters": { - "id": 365, + "id": 1314, "nodeType": "ParameterList", "parameters": [], - "src": "8930:0:0" + "src": "8930:0:2" }, - "scope": 377, - "src": "8824:209:0", + "scope": 1326, + "src": "8824:209:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], - "scope": 378, - "src": "144:9008:0" + "scope": 1327, + "src": "144:9008:2" } ], - "src": "0:9152:0" + "src": "0:9152:2" }, "legacyAST": { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/JobApplicant.sol", "exportedSymbols": { "JobApplicant": [ - 377 + 1326 ] }, - "id": 378, + "id": 1327, "nodeType": "SourceUnit", "nodes": [ { - "id": 1, + "id": 950, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", - "src": "0:23:0" + "src": "0:23:2" }, { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/Listing.sol", "file": "./Listing.sol", - "id": 2, + "id": 951, "nodeType": "ImportDirective", - "scope": 378, - "sourceUnit": 606, - "src": "115:23:0", + "scope": 1327, + "sourceUnit": 1555, + "src": "115:23:2", "symbolAliases": [], "unitAlias": "" }, @@ -4778,9 +4778,9 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 377, + "id": 1326, "linearizedBaseContracts": [ - 377 + 1326 ], "name": "JobApplicant", "nodeType": "ContractDefinition", @@ -4788,36 +4788,36 @@ { "anonymous": false, "documentation": null, - "id": 6, + "id": 955, "name": "JobApplicationChange", "nodeType": "EventDefinition", "parameters": { - "id": 5, + "id": 954, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 4, + "id": 953, "indexed": false, "name": "stage", "nodeType": "VariableDeclaration", - "scope": 6, - "src": "230:12:0", + "scope": 955, + "src": "230:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, "typeName": { "contractScope": null, - "id": 3, + "id": 952, "name": "Stages", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 31, - "src": "230:6:0", + "referencedDeclaration": 980, + "src": "230:6:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -4825,28 +4825,28 @@ "visibility": "internal" } ], - "src": "229:14:0" + "src": "229:14:2" }, - "src": "203:41:0" + "src": "203:41:2" }, { "anonymous": false, "documentation": null, - "id": 18, + "id": 967, "name": "JobApplicationReview", "nodeType": "EventDefinition", "parameters": { - "id": 17, + "id": 966, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 8, + "id": 957, "indexed": false, "name": "reviewer", "nodeType": "VariableDeclaration", - "scope": 18, - "src": "277:16:0", + "scope": 967, + "src": "277:16:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4854,10 +4854,10 @@ "typeString": "address" }, "typeName": { - "id": 7, + "id": 956, "name": "address", "nodeType": "ElementaryTypeName", - "src": "277:7:0", + "src": "277:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4868,12 +4868,12 @@ }, { "constant": false, - "id": 10, + "id": 959, "indexed": false, "name": "reviewee", "nodeType": "VariableDeclaration", - "scope": 18, - "src": "295:16:0", + "scope": 967, + "src": "295:16:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4881,10 +4881,10 @@ "typeString": "address" }, "typeName": { - "id": 9, + "id": 958, "name": "address", "nodeType": "ElementaryTypeName", - "src": "295:7:0", + "src": "295:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4895,27 +4895,27 @@ }, { "constant": false, - "id": 12, + "id": 961, "indexed": false, "name": "revieweeRole", "nodeType": "VariableDeclaration", - "scope": 18, - "src": "313:18:0", + "scope": 967, + "src": "313:18:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_Roles_$34", + "typeIdentifier": "t_enum$_Roles_$983", "typeString": "enum JobApplicant.Roles" }, "typeName": { "contractScope": null, - "id": 11, + "id": 960, "name": "Roles", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 34, - "src": "313:5:0", + "referencedDeclaration": 983, + "src": "313:5:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Roles_$34", + "typeIdentifier": "t_enum$_Roles_$983", "typeString": "enum JobApplicant.Roles" } }, @@ -4924,12 +4924,12 @@ }, { "constant": false, - "id": 14, + "id": 963, "indexed": false, "name": "rating", "nodeType": "VariableDeclaration", - "scope": 18, - "src": "333:12:0", + "scope": 967, + "src": "333:12:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4937,10 +4937,10 @@ "typeString": "uint8" }, "typeName": { - "id": 13, + "id": 962, "name": "uint8", "nodeType": "ElementaryTypeName", - "src": "333:5:0", + "src": "333:5:2", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" @@ -4951,12 +4951,12 @@ }, { "constant": false, - "id": 16, + "id": 965, "indexed": false, "name": "ipfsHash", "nodeType": "VariableDeclaration", - "scope": 18, - "src": "347:16:0", + "scope": 967, + "src": "347:16:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4964,10 +4964,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 15, + "id": 964, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "347:7:0", + "src": "347:7:2", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -4977,134 +4977,134 @@ "visibility": "internal" } ], - "src": "276:88:0" + "src": "276:88:2" }, - "src": "250:115:0" + "src": "250:115:2" }, { "canonicalName": "JobApplicant.Stages", - "id": 31, + "id": 980, "members": [ { - "id": 19, + "id": 968, "name": "AWAITING_INTERVIEW", "nodeType": "EnumValue", - "src": "453:18:0" + "src": "453:18:2" }, { - "id": 20, + "id": 969, "name": "AWAITING_JOBOFFER", "nodeType": "EnumValue", - "src": "547:17:0" + "src": "547:17:2" }, { - "id": 21, + "id": 970, "name": "CANCEL_APPLICATION", "nodeType": "EnumValue", - "src": "641:18:0" + "src": "641:18:2" }, { - "id": 22, + "id": 971, "name": "INTERVIEW_NOT_SELECTED", "nodeType": "EnumValue", - "src": "741:22:0" + "src": "741:22:2" }, { - "id": 23, + "id": 972, "name": "JOBOFFER_ACCEPTED", "nodeType": "EnumValue", - "src": "824:17:0" + "src": "824:17:2" }, { - "id": 24, + "id": 973, "name": "JOBOFFER_NOT_ACCEPTED", "nodeType": "EnumValue", - "src": "895:21:0" + "src": "895:21:2" }, { - "id": 25, + "id": 974, "name": "INTERVIEW_PENDING", "nodeType": "EnumValue", - "src": "1000:17:0" + "src": "1000:17:2" }, { - "id": 26, + "id": 975, "name": "JOBOFFER_PENDING", "nodeType": "EnumValue", - "src": "1126:16:0" + "src": "1126:16:2" }, { - "id": 27, + "id": 976, "name": "APPLICATION_REJECTED", "nodeType": "EnumValue", - "src": "1249:20:0" + "src": "1249:20:2" }, { - "id": 28, + "id": 977, "name": "EMPLOYMENT_PERIOD", "nodeType": "EnumValue", - "src": "1319:17:0" + "src": "1319:17:2" }, { - "id": 29, + "id": 978, "name": "IN_DISPUTE", "nodeType": "EnumValue", - "src": "1407:10:0" + "src": "1407:10:2" }, { - "id": 30, + "id": 979, "name": "EMPLOYMENT_TERMINATION", "nodeType": "EnumValue", - "src": "1502:22:0" + "src": "1502:22:2" } ], "name": "Stages", "nodeType": "EnumDefinition", - "src": "403:1154:0" + "src": "403:1154:2" }, { "canonicalName": "JobApplicant.Roles", - "id": 34, + "id": 983, "members": [ { - "id": 32, + "id": 981, "name": "APPLICANT", "nodeType": "EnumValue", - "src": "1585:9:0" + "src": "1585:9:2" }, { - "id": 33, + "id": 982, "name": "EMPLOYER", "nodeType": "EnumValue", - "src": "1603:8:0" + "src": "1603:8:2" } ], "name": "Roles", "nodeType": "EnumDefinition", - "src": "1565:53:0" + "src": "1565:53:2" }, { "constant": false, - "id": 38, + "id": 987, "name": "internalStage", "nodeType": "VariableDeclaration", - "scope": 377, - "src": "1659:56:0", + "scope": 1326, + "src": "1659:56:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, "typeName": { "contractScope": null, - "id": 35, + "id": 984, "name": "Stages", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 31, - "src": "1659:6:0", + "referencedDeclaration": 980, + "src": "1659:6:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -5112,18 +5112,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 36, + "id": 985, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1690:6:0", + "referencedDeclaration": 980, + "src": "1690:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 37, + "id": 986, "isConstant": false, "isLValue": false, "isPure": true, @@ -5131,9 +5131,9 @@ "memberName": "AWAITING_INTERVIEW", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "1690:25:0", + "src": "1690:25:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -5141,26 +5141,26 @@ }, { "constant": false, - "id": 40, + "id": 989, "name": "listingContract", "nodeType": "VariableDeclaration", - "scope": 377, - "src": "1722:30:0", + "scope": 1326, + "src": "1722:30:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" }, "typeName": { "contractScope": null, - "id": 39, + "id": 988, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "1722:7:0", + "referencedDeclaration": 1554, + "src": "1722:7:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -5169,11 +5169,11 @@ }, { "constant": false, - "id": 42, + "id": 991, "name": "applicant", "nodeType": "VariableDeclaration", - "scope": 377, - "src": "1794:24:0", + "scope": 1326, + "src": "1794:24:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -5181,10 +5181,10 @@ "typeString": "address" }, "typeName": { - "id": 41, + "id": 990, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1794:7:0", + "src": "1794:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5195,11 +5195,11 @@ }, { "constant": false, - "id": 44, + "id": 993, "name": "created", "nodeType": "VariableDeclaration", - "scope": 377, - "src": "1879:19:0", + "scope": 1326, + "src": "1879:19:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -5207,10 +5207,10 @@ "typeString": "uint256" }, "typeName": { - "id": 43, + "id": 992, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1879:4:0", + "src": "1879:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5221,11 +5221,11 @@ }, { "constant": false, - "id": 46, + "id": 995, "name": "applicationTimeout", "nodeType": "VariableDeclaration", - "scope": 377, - "src": "1905:30:0", + "scope": 1326, + "src": "1905:30:2", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -5233,10 +5233,10 @@ "typeString": "uint256" }, "typeName": { - "id": 45, + "id": 994, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1905:4:0", + "src": "1905:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5247,9 +5247,9 @@ }, { "body": { - "id": 58, + "id": 1007, "nodeType": "Block", - "src": "2001:77:0", + "src": "2001:77:2", "statements": [ { "expression": { @@ -5261,7 +5261,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 54, + "id": 1003, "isConstant": false, "isLValue": false, "isPure": false, @@ -5270,18 +5270,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 49, + "id": 998, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "2020:3:0", + "referencedDeclaration": 1965, + "src": "2020:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 50, + "id": 999, "isConstant": false, "isLValue": false, "isPure": false, @@ -5289,7 +5289,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "2020:10:0", + "src": "2020:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5304,32 +5304,32 @@ "argumentTypes": [], "expression": { "argumentTypes": null, - "id": 51, + "id": 1000, "name": "listingContract", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 40, - "src": "2034:15:0", + "referencedDeclaration": 989, + "src": "2034:15:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 52, + "id": 1001, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", - "referencedDeclaration": 412, - "src": "2034:21:0", + "referencedDeclaration": 1361, + "src": "2034:21:2", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_address_$", "typeString": "function () view external returns (address)" } }, - "id": 53, + "id": 1002, "isConstant": false, "isLValue": false, "isPure": false, @@ -5337,13 +5337,13 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2034:23:0", + "src": "2034:23:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2020:37:0", + "src": "2020:37:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -5357,21 +5357,21 @@ "typeString": "bool" } ], - "id": 48, + "id": 997, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "2012:7:0", + "referencedDeclaration": 1968, + "src": "2012:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 55, + "id": 1004, "isConstant": false, "isLValue": false, "isPure": false, @@ -5379,41 +5379,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2012:46:0", + "src": "2012:46:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 56, + "id": 1005, "nodeType": "ExpressionStatement", - "src": "2012:46:0" + "src": "2012:46:2" }, { - "id": 57, + "id": 1006, "nodeType": "PlaceholderStatement", - "src": "2069:1:0" + "src": "2069:1:2" } ] }, "documentation": null, - "id": 59, + "id": 1008, "name": "isEmployer", "nodeType": "ModifierDefinition", "parameters": { - "id": 47, + "id": 996, "nodeType": "ParameterList", "parameters": [], - "src": "1998:2:0" + "src": "1998:2:2" }, - "src": "1979:99:0", + "src": "1979:99:2", "visibility": "internal" }, { "body": { - "id": 69, + "id": 1018, "nodeType": "Block", - "src": "2109:63:0", + "src": "2109:63:2", "statements": [ { "expression": { @@ -5425,7 +5425,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 65, + "id": 1014, "isConstant": false, "isLValue": false, "isPure": false, @@ -5434,18 +5434,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 62, + "id": 1011, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "2128:3:0", + "referencedDeclaration": 1965, + "src": "2128:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 63, + "id": 1012, "isConstant": false, "isLValue": false, "isPure": false, @@ -5453,7 +5453,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "2128:10:0", + "src": "2128:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5463,18 +5463,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 64, + "id": 1013, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 42, - "src": "2142:9:0", + "referencedDeclaration": 991, + "src": "2142:9:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2128:23:0", + "src": "2128:23:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -5488,21 +5488,21 @@ "typeString": "bool" } ], - "id": 61, + "id": 1010, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "2120:7:0", + "referencedDeclaration": 1968, + "src": "2120:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 66, + "id": 1015, "isConstant": false, "isLValue": false, "isPure": false, @@ -5510,41 +5510,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2120:32:0", + "src": "2120:32:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 67, + "id": 1016, "nodeType": "ExpressionStatement", - "src": "2120:32:0" + "src": "2120:32:2" }, { - "id": 68, + "id": 1017, "nodeType": "PlaceholderStatement", - "src": "2163:1:0" + "src": "2163:1:2" } ] }, "documentation": null, - "id": 70, + "id": 1019, "name": "isApplicant", "nodeType": "ModifierDefinition", "parameters": { - "id": 60, + "id": 1009, "nodeType": "ParameterList", "parameters": [], - "src": "2106:2:0" + "src": "2106:2:2" }, - "src": "2086:86:0", + "src": "2086:86:2", "visibility": "internal" }, { "body": { - "id": 87, + "id": 1036, "nodeType": "Block", - "src": "2213:141:0", + "src": "2213:141:2", "statements": [ { "expression": { @@ -5556,7 +5556,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 83, + "id": 1032, "isConstant": false, "isLValue": false, "isPure": false, @@ -5567,7 +5567,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 76, + "id": 1025, "isConstant": false, "isLValue": false, "isPure": false, @@ -5576,18 +5576,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 73, + "id": 1022, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "2246:3:0", + "referencedDeclaration": 1965, + "src": "2246:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 74, + "id": 1023, "isConstant": false, "isLValue": false, "isPure": false, @@ -5595,7 +5595,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "2246:10:0", + "src": "2246:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5605,18 +5605,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 75, + "id": 1024, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 42, - "src": "2260:9:0", + "referencedDeclaration": 991, + "src": "2260:9:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2246:23:0", + "src": "2246:23:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -5630,7 +5630,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 82, + "id": 1031, "isConstant": false, "isLValue": false, "isPure": false, @@ -5639,18 +5639,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 77, + "id": 1026, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "2286:3:0", + "referencedDeclaration": 1965, + "src": "2286:3:2", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 78, + "id": 1027, "isConstant": false, "isLValue": false, "isPure": false, @@ -5658,7 +5658,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "2286:10:0", + "src": "2286:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5673,32 +5673,32 @@ "argumentTypes": [], "expression": { "argumentTypes": null, - "id": 79, + "id": 1028, "name": "listingContract", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 40, - "src": "2300:15:0", + "referencedDeclaration": 989, + "src": "2300:15:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 80, + "id": 1029, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", - "referencedDeclaration": 412, - "src": "2300:21:0", + "referencedDeclaration": 1361, + "src": "2300:21:2", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_address_$", "typeString": "function () view external returns (address)" } }, - "id": 81, + "id": 1030, "isConstant": false, "isLValue": false, "isPure": false, @@ -5706,19 +5706,19 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2300:23:0", + "src": "2300:23:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2286:37:0", + "src": "2286:37:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "src": "2246:77:0", + "src": "2246:77:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -5732,21 +5732,21 @@ "typeString": "bool" } ], - "id": 72, + "id": 1021, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "2224:7:0", + "referencedDeclaration": 1968, + "src": "2224:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 84, + "id": 1033, "isConstant": false, "isLValue": false, "isPure": false, @@ -5754,41 +5754,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2224:110:0", + "src": "2224:110:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 85, + "id": 1034, "nodeType": "ExpressionStatement", - "src": "2224:110:0" + "src": "2224:110:2" }, { - "id": 86, + "id": 1035, "nodeType": "PlaceholderStatement", - "src": "2345:1:0" + "src": "2345:1:2" } ] }, "documentation": null, - "id": 88, + "id": 1037, "name": "isEmployerOrApplicant", "nodeType": "ModifierDefinition", "parameters": { - "id": 71, + "id": 1020, "nodeType": "ParameterList", "parameters": [], - "src": "2210:2:0" + "src": "2210:2:2" }, - "src": "2180:174:0", + "src": "2180:174:2", "visibility": "internal" }, { "body": { - "id": 100, + "id": 1049, "nodeType": "Block", - "src": "2394:57:0", + "src": "2394:57:2", "statements": [ { "expression": { @@ -5797,10 +5797,10 @@ { "argumentTypes": null, "commonType": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, - "id": 96, + "id": 1045, "isConstant": false, "isLValue": false, "isPure": false, @@ -5810,18 +5810,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 93, + "id": 1042, "name": "stage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 157, - "src": "2413:5:0", + "referencedDeclaration": 1106, + "src": "2413:5:2", "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$980_$", "typeString": "function () view returns (enum JobApplicant.Stages)" } }, - "id": 94, + "id": 1043, "isConstant": false, "isLValue": false, "isPure": false, @@ -5829,9 +5829,9 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2413:7:0", + "src": "2413:7:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -5839,18 +5839,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 95, + "id": 1044, "name": "_stage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 90, - "src": "2424:6:0", + "referencedDeclaration": 1039, + "src": "2424:6:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "2413:17:0", + "src": "2413:17:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -5864,21 +5864,21 @@ "typeString": "bool" } ], - "id": 92, + "id": 1041, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "2405:7:0", + "referencedDeclaration": 1968, + "src": "2405:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 97, + "id": 1046, "isConstant": false, "isLValue": false, "isPure": false, @@ -5886,53 +5886,53 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2405:26:0", + "src": "2405:26:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 98, + "id": 1047, "nodeType": "ExpressionStatement", - "src": "2405:26:0" + "src": "2405:26:2" }, { - "id": 99, + "id": 1048, "nodeType": "PlaceholderStatement", - "src": "2442:1:0" + "src": "2442:1:2" } ] }, "documentation": null, - "id": 101, + "id": 1050, "name": "atStage", "nodeType": "ModifierDefinition", "parameters": { - "id": 91, + "id": 1040, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 90, + "id": 1039, "name": "_stage", "nodeType": "VariableDeclaration", - "scope": 101, - "src": "2379:13:0", + "scope": 1050, + "src": "2379:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, "typeName": { "contractScope": null, - "id": 89, + "id": 1038, "name": "Stages", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 31, - "src": "2379:6:0", + "referencedDeclaration": 980, + "src": "2379:6:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -5940,33 +5940,33 @@ "visibility": "internal" } ], - "src": "2378:15:0" + "src": "2378:15:2" }, - "src": "2362:89:0", + "src": "2362:89:2", "visibility": "internal" }, { "body": { - "id": 126, + "id": 1075, "nodeType": "Block", - "src": "2605:177:0", + "src": "2605:177:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 110, + "id": 1059, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 108, + "id": 1057, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 42, - "src": "2616:9:0", + "referencedDeclaration": 991, + "src": "2616:9:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5976,45 +5976,45 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 109, + "id": 1058, "name": "_applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 105, - "src": "2628:10:0", + "referencedDeclaration": 1054, + "src": "2628:10:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2616:22:0", + "src": "2616:22:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 111, + "id": 1060, "nodeType": "ExpressionStatement", - "src": "2616:22:0" + "src": "2616:22:2" }, { "expression": { "argumentTypes": null, - "id": 116, + "id": 1065, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 112, + "id": 1061, "name": "listingContract", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 40, - "src": "2649:15:0", + "referencedDeclaration": 989, + "src": "2649:15:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -6025,12 +6025,12 @@ "arguments": [ { "argumentTypes": null, - "id": 114, + "id": 1063, "name": "_listingContractAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 103, - "src": "2675:23:0", + "referencedDeclaration": 1052, + "src": "2675:23:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6044,18 +6044,18 @@ "typeString": "address" } ], - "id": 113, + "id": 1062, "name": "Listing", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 605, - "src": "2667:7:0", + "referencedDeclaration": 1554, + "src": "2667:7:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Listing_$605_$", + "typeIdentifier": "t_type$_t_contract$_Listing_$1554_$", "typeString": "type(contract Listing)" } }, - "id": 115, + "id": 1064, "isConstant": false, "isLValue": false, "isPure": false, @@ -6063,38 +6063,38 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2667:32:0", + "src": "2667:32:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "src": "2649:50:0", + "src": "2649:50:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 117, + "id": 1066, "nodeType": "ExpressionStatement", - "src": "2649:50:0" + "src": "2649:50:2" }, { "expression": { "argumentTypes": null, - "id": 120, + "id": 1069, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 118, + "id": 1067, "name": "created", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 44, - "src": "2710:7:0", + "referencedDeclaration": 993, + "src": "2710:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6104,26 +6104,26 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 119, + "id": 1068, "name": "now", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 870, - "src": "2720:3:0", + "referencedDeclaration": 1967, + "src": "2720:3:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "2710:13:0", + "src": "2710:13:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 121, + "id": 1070, "nodeType": "ExpressionStatement", - "src": "2710:13:0" + "src": "2710:13:2" }, { "eventCall": { @@ -6131,14 +6131,14 @@ "arguments": [ { "argumentTypes": null, - "id": 123, + "id": 1072, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "2760:13:0", + "referencedDeclaration": 987, + "src": "2760:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -6146,22 +6146,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 122, + "id": 1071, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "2739:20:0", + "referencedDeclaration": 955, + "src": "2739:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 124, + "id": 1073, "isConstant": false, "isLValue": false, "isPure": false, @@ -6169,20 +6169,20 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2739:35:0", + "src": "2739:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 125, + "id": 1074, "nodeType": "EmitStatement", - "src": "2734:40:0" + "src": "2734:40:2" } ] }, "documentation": null, - "id": 127, + "id": 1076, "implemented": true, "isConstructor": true, "isDeclaredConst": false, @@ -6190,16 +6190,16 @@ "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 106, + "id": 1055, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 103, + "id": 1052, "name": "_listingContractAddress", "nodeType": "VariableDeclaration", - "scope": 127, - "src": "2522:31:0", + "scope": 1076, + "src": "2522:31:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6207,10 +6207,10 @@ "typeString": "address" }, "typeName": { - "id": 102, + "id": 1051, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2522:7:0", + "src": "2522:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6221,11 +6221,11 @@ }, { "constant": false, - "id": 105, + "id": 1054, "name": "_applicant", "nodeType": "VariableDeclaration", - "scope": 127, - "src": "2562:18:0", + "scope": 1076, + "src": "2562:18:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6233,10 +6233,10 @@ "typeString": "address" }, "typeName": { - "id": 104, + "id": 1053, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2562:7:0", + "src": "2562:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6246,26 +6246,26 @@ "visibility": "internal" } ], - "src": "2513:74:0" + "src": "2513:74:2" }, "payable": false, "returnParameters": { - "id": 107, + "id": 1056, "nodeType": "ParameterList", "parameters": [], - "src": "2605:0:0" + "src": "2605:0:2" }, - "scope": 377, - "src": "2501:281:0", + "scope": 1326, + "src": "2501:281:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 148, + "id": 1097, "nodeType": "Block", - "src": "2941:90:0", + "src": "2941:90:2", "statements": [ { "expression": { @@ -6276,18 +6276,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 140, + "id": 1089, "name": "stage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 157, - "src": "2960:5:0", + "referencedDeclaration": 1106, + "src": "2960:5:2", "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$980_$", "typeString": "function () view returns (enum JobApplicant.Stages)" } }, - "id": 141, + "id": 1090, "isConstant": false, "isLValue": false, "isPure": false, @@ -6295,33 +6295,33 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2960:7:0", + "src": "2960:7:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, { "argumentTypes": null, - "id": 142, + "id": 1091, "name": "listingContract", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 40, - "src": "2969:15:0", + "referencedDeclaration": 989, + "src": "2969:15:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, { "argumentTypes": null, - "id": 143, + "id": 1092, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 42, - "src": "2986:9:0", + "referencedDeclaration": 991, + "src": "2986:9:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6329,12 +6329,12 @@ }, { "argumentTypes": null, - "id": 144, + "id": 1093, "name": "created", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 44, - "src": "2997:7:0", + "referencedDeclaration": 993, + "src": "2997:7:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6342,40 +6342,40 @@ }, { "argumentTypes": null, - "id": 145, + "id": 1094, "name": "_applicantTimout", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 138, - "src": "3006:16:0", + "referencedDeclaration": 1087, + "src": "3006:16:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], - "id": 146, + "id": 1095, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", - "src": "2959:64:0", + "src": "2959:64:2", "typeDescriptions": { - "typeIdentifier": "t_tuple$_t_enum$_Stages_$31_$_t_contract$_Listing_$605_$_t_address_$_t_uint256_$_t_uint256_$", + "typeIdentifier": "t_tuple$_t_enum$_Stages_$980_$_t_contract$_Listing_$1554_$_t_address_$_t_uint256_$_t_uint256_$", "typeString": "tuple(enum JobApplicant.Stages,contract Listing,address,uint256,uint256)" } }, - "functionReturnParameters": 139, - "id": 147, + "functionReturnParameters": 1088, + "id": 1096, "nodeType": "Return", - "src": "2952:71:0" + "src": "2952:71:2" } ] }, "documentation": null, - "id": 149, + "id": 1098, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -6383,38 +6383,38 @@ "name": "data", "nodeType": "FunctionDefinition", "parameters": { - "id": 128, + "id": 1077, "nodeType": "ParameterList", "parameters": [], - "src": "2803:2:0" + "src": "2803:2:2" }, "payable": false, "returnParameters": { - "id": 139, + "id": 1088, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 130, + "id": 1079, "name": "_stage", "nodeType": "VariableDeclaration", - "scope": 149, - "src": "2842:13:0", + "scope": 1098, + "src": "2842:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, "typeName": { "contractScope": null, - "id": 129, + "id": 1078, "name": "Stages", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 31, - "src": "2842:6:0", + "referencedDeclaration": 980, + "src": "2842:6:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -6423,26 +6423,26 @@ }, { "constant": false, - "id": 132, + "id": 1081, "name": "_listingContract", "nodeType": "VariableDeclaration", - "scope": 149, - "src": "2857:24:0", + "scope": 1098, + "src": "2857:24:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" }, "typeName": { "contractScope": null, - "id": 131, + "id": 1080, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "2857:7:0", + "referencedDeclaration": 1554, + "src": "2857:7:2", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -6451,11 +6451,11 @@ }, { "constant": false, - "id": 134, + "id": 1083, "name": "_applicant", "nodeType": "VariableDeclaration", - "scope": 149, - "src": "2883:18:0", + "scope": 1098, + "src": "2883:18:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6463,10 +6463,10 @@ "typeString": "address" }, "typeName": { - "id": 133, + "id": 1082, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2883:7:0", + "src": "2883:7:2", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6477,11 +6477,11 @@ }, { "constant": false, - "id": 136, + "id": 1085, "name": "_created", "nodeType": "VariableDeclaration", - "scope": 149, - "src": "2903:13:0", + "scope": 1098, + "src": "2903:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6489,10 +6489,10 @@ "typeString": "uint256" }, "typeName": { - "id": 135, + "id": 1084, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2903:4:0", + "src": "2903:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6503,11 +6503,11 @@ }, { "constant": false, - "id": 138, + "id": 1087, "name": "_applicantTimout", "nodeType": "VariableDeclaration", - "scope": 149, - "src": "2918:21:0", + "scope": 1098, + "src": "2918:21:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6515,10 +6515,10 @@ "typeString": "uint256" }, "typeName": { - "id": 137, + "id": 1086, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2918:4:0", + "src": "2918:4:2", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6528,43 +6528,43 @@ "visibility": "internal" } ], - "src": "2841:99:0" + "src": "2841:99:2" }, - "scope": 377, - "src": "2790:241:0", + "scope": 1326, + "src": "2790:241:2", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 156, + "id": 1105, "nodeType": "Block", - "src": "3432:39:0", + "src": "3432:39:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 154, + "id": 1103, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "3450:13:0", + "referencedDeclaration": 987, + "src": "3450:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "functionReturnParameters": 153, - "id": 155, + "functionReturnParameters": 1102, + "id": 1104, "nodeType": "Return", - "src": "3443:20:0" + "src": "3443:20:2" } ] }, "documentation": "//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 157, + "id": 1106, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -6572,38 +6572,38 @@ "name": "stage", "nodeType": "FunctionDefinition", "parameters": { - "id": 150, + "id": 1099, "nodeType": "ParameterList", "parameters": [], - "src": "3373:2:0" + "src": "3373:2:2" }, "payable": false, "returnParameters": { - "id": 153, + "id": 1102, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 152, + "id": 1101, "name": "_stage", "nodeType": "VariableDeclaration", - "scope": 157, - "src": "3412:13:0", + "scope": 1106, + "src": "3412:13:2", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, "typeName": { "contractScope": null, - "id": 151, + "id": 1100, "name": "Stages", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 31, - "src": "3412:6:0", + "referencedDeclaration": 980, + "src": "3412:6:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -6611,19 +6611,19 @@ "visibility": "internal" } ], - "src": "3411:15:0" + "src": "3411:15:2" }, - "scope": 377, - "src": "3359:112:0", + "scope": 1326, + "src": "3359:112:2", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 185, + "id": 1134, "nodeType": "Block", - "src": "3814:286:0", + "src": "3814:286:2", "statements": [ { "expression": { @@ -6635,7 +6635,7 @@ "typeIdentifier": "t_bool", "typeString": "bool" }, - "id": 173, + "id": 1122, "isConstant": false, "isLValue": false, "isPure": false, @@ -6643,10 +6643,10 @@ "leftExpression": { "argumentTypes": null, "commonType": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, - "id": 167, + "id": 1116, "isConstant": false, "isLValue": false, "isPure": false, @@ -6656,18 +6656,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 163, + "id": 1112, "name": "stage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 157, - "src": "3884:5:0", + "referencedDeclaration": 1106, + "src": "3884:5:2", "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$980_$", "typeString": "function () view returns (enum JobApplicant.Stages)" } }, - "id": 164, + "id": 1113, "isConstant": false, "isLValue": false, "isPure": false, @@ -6675,9 +6675,9 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3884:7:0", + "src": "3884:7:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -6687,18 +6687,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 165, + "id": 1114, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "3895:6:0", + "referencedDeclaration": 980, + "src": "3895:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 166, + "id": 1115, "isConstant": false, "isLValue": false, "isPure": true, @@ -6706,13 +6706,13 @@ "memberName": "AWAITING_INTERVIEW", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3895:25:0", + "src": "3895:25:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "3884:36:0", + "src": "3884:36:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -6723,10 +6723,10 @@ "rightExpression": { "argumentTypes": null, "commonType": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" }, - "id": 172, + "id": 1121, "isConstant": false, "isLValue": false, "isPure": false, @@ -6736,18 +6736,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 168, + "id": 1117, "name": "stage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 157, - "src": "3937:5:0", + "referencedDeclaration": 1106, + "src": "3937:5:2", "typeDescriptions": { - "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_function_internal_view$__$returns$_t_enum$_Stages_$980_$", "typeString": "function () view returns (enum JobApplicant.Stages)" } }, - "id": 169, + "id": 1118, "isConstant": false, "isLValue": false, "isPure": false, @@ -6755,9 +6755,9 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3937:7:0", + "src": "3937:7:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -6767,18 +6767,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 170, + "id": 1119, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "3948:6:0", + "referencedDeclaration": 980, + "src": "3948:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 171, + "id": 1120, "isConstant": false, "isLValue": false, "isPure": true, @@ -6786,19 +6786,19 @@ "memberName": "AWAITING_JOBOFFER", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3948:24:0", + "src": "3948:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "3937:35:0", + "src": "3937:35:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "src": "3884:88:0", + "src": "3884:88:2", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -6812,21 +6812,21 @@ "typeString": "bool" } ], - "id": 162, + "id": 1111, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "3862:7:0", + "referencedDeclaration": 1968, + "src": "3862:7:2", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 174, + "id": 1123, "isConstant": false, "isLValue": false, "isPure": false, @@ -6834,34 +6834,34 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3862:121:0", + "src": "3862:121:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 175, + "id": 1124, "nodeType": "ExpressionStatement", - "src": "3862:121:0" + "src": "3862:121:2" }, { "expression": { "argumentTypes": null, - "id": 179, + "id": 1128, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 176, + "id": 1125, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "3998:13:0", + "referencedDeclaration": 987, + "src": "3998:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -6871,18 +6871,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 177, + "id": 1126, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "4014:6:0", + "referencedDeclaration": 980, + "src": "4014:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 178, + "id": 1127, "isConstant": false, "isLValue": false, "isPure": true, @@ -6890,21 +6890,21 @@ "memberName": "CANCEL_APPLICATION", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4014:25:0", + "src": "4014:25:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "3998:41:0", + "src": "3998:41:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 180, + "id": 1129, "nodeType": "ExpressionStatement", - "src": "3998:41:0" + "src": "3998:41:2" }, { "eventCall": { @@ -6912,14 +6912,14 @@ "arguments": [ { "argumentTypes": null, - "id": 182, + "id": 1131, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "4076:13:0", + "referencedDeclaration": 987, + "src": "4076:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -6927,22 +6927,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 181, + "id": 1130, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "4055:20:0", + "referencedDeclaration": 955, + "src": "4055:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 183, + "id": 1132, "isConstant": false, "isLValue": false, "isPure": false, @@ -6950,89 +6950,89 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4055:35:0", + "src": "4055:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 184, + "id": 1133, "nodeType": "EmitStatement", - "src": "4050:40:0" + "src": "4050:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 186, + "id": 1135, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 160, + "id": 1109, "modifierName": { "argumentTypes": null, - "id": 159, + "id": 1108, "name": "isApplicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 70, - "src": "3797:11:0", + "referencedDeclaration": 1019, + "src": "3797:11:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "3797:11:0" + "src": "3797:11:2" } ], "name": "cancelApplication", "nodeType": "FunctionDefinition", "parameters": { - "id": 158, + "id": 1107, "nodeType": "ParameterList", "parameters": [], - "src": "3777:2:0" + "src": "3777:2:2" }, "payable": false, "returnParameters": { - "id": 161, + "id": 1110, "nodeType": "ParameterList", "parameters": [], - "src": "3814:0:0" + "src": "3814:0:2" }, - "scope": 377, - "src": "3751:349:0", + "scope": 1326, + "src": "3751:349:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 204, + "id": 1153, "nodeType": "Block", - "src": "4479:110:0", + "src": "4479:110:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 198, + "id": 1147, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 195, + "id": 1144, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "4490:13:0", + "referencedDeclaration": 987, + "src": "4490:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -7042,18 +7042,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 196, + "id": 1145, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "4506:6:0", + "referencedDeclaration": 980, + "src": "4506:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 197, + "id": 1146, "isConstant": false, "isLValue": false, "isPure": true, @@ -7061,21 +7061,21 @@ "memberName": "INTERVIEW_PENDING", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4506:24:0", + "src": "4506:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "4490:40:0", + "src": "4490:40:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 199, + "id": 1148, "nodeType": "ExpressionStatement", - "src": "4490:40:0" + "src": "4490:40:2" }, { "eventCall": { @@ -7083,14 +7083,14 @@ "arguments": [ { "argumentTypes": null, - "id": 201, + "id": 1150, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "4567:13:0", + "referencedDeclaration": 987, + "src": "4567:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -7098,22 +7098,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 200, + "id": 1149, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "4546:20:0", + "referencedDeclaration": 955, + "src": "4546:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 202, + "id": 1151, "isConstant": false, "isLValue": false, "isPure": false, @@ -7121,42 +7121,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4546:35:0", + "src": "4546:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 203, + "id": 1152, "nodeType": "EmitStatement", - "src": "4541:40:0" + "src": "4541:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 205, + "id": 1154, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 189, + "id": 1138, "modifierName": { "argumentTypes": null, - "id": 188, + "id": 1137, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "4423:10:0", + "referencedDeclaration": 1008, + "src": "4423:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "4423:10:0" + "src": "4423:10:2" }, { "arguments": [ @@ -7164,18 +7164,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 191, + "id": 1140, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "4447:6:0", + "referencedDeclaration": 980, + "src": "4447:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 192, + "id": 1141, "isConstant": false, "isLValue": false, "isPure": true, @@ -7183,76 +7183,76 @@ "memberName": "AWAITING_INTERVIEW", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4447:25:0", + "src": "4447:25:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 193, + "id": 1142, "modifierName": { "argumentTypes": null, - "id": 190, + "id": 1139, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "4439:7:0", + "referencedDeclaration": 1050, + "src": "4439:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "4439:34:0" + "src": "4439:34:2" } ], "name": "callForInterview", "nodeType": "FunctionDefinition", "parameters": { - "id": 187, + "id": 1136, "nodeType": "ParameterList", "parameters": [], - "src": "4403:2:0" + "src": "4403:2:2" }, "payable": false, "returnParameters": { - "id": 194, + "id": 1143, "nodeType": "ParameterList", "parameters": [], - "src": "4479:0:0" + "src": "4479:0:2" }, - "scope": 377, - "src": "4378:211:0", + "scope": 1326, + "src": "4378:211:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 223, + "id": 1172, "nodeType": "Block", - "src": "4956:113:0", + "src": "4956:113:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 217, + "id": 1166, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 214, + "id": 1163, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "4967:13:0", + "referencedDeclaration": 987, + "src": "4967:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -7262,18 +7262,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 215, + "id": 1164, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "4983:6:0", + "referencedDeclaration": 980, + "src": "4983:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 216, + "id": 1165, "isConstant": false, "isLValue": false, "isPure": true, @@ -7281,21 +7281,21 @@ "memberName": "APPLICATION_REJECTED", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4983:27:0", + "src": "4983:27:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "4967:43:0", + "src": "4967:43:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 218, + "id": 1167, "nodeType": "ExpressionStatement", - "src": "4967:43:0" + "src": "4967:43:2" }, { "eventCall": { @@ -7303,14 +7303,14 @@ "arguments": [ { "argumentTypes": null, - "id": 220, + "id": 1169, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "5047:13:0", + "referencedDeclaration": 987, + "src": "5047:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -7318,22 +7318,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 219, + "id": 1168, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "5026:20:0", + "referencedDeclaration": 955, + "src": "5026:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 221, + "id": 1170, "isConstant": false, "isLValue": false, "isPure": false, @@ -7341,42 +7341,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5026:35:0", + "src": "5026:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 222, + "id": 1171, "nodeType": "EmitStatement", - "src": "5021:40:0" + "src": "5021:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 224, + "id": 1173, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 208, + "id": 1157, "modifierName": { "argumentTypes": null, - "id": 207, + "id": 1156, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "4900:10:0", + "referencedDeclaration": 1008, + "src": "4900:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "4900:10:0" + "src": "4900:10:2" }, { "arguments": [ @@ -7384,18 +7384,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 210, + "id": 1159, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "4924:6:0", + "referencedDeclaration": 980, + "src": "4924:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 211, + "id": 1160, "isConstant": false, "isLValue": false, "isPure": true, @@ -7403,76 +7403,76 @@ "memberName": "AWAITING_INTERVIEW", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4924:25:0", + "src": "4924:25:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 212, + "id": 1161, "modifierName": { "argumentTypes": null, - "id": 209, + "id": 1158, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "4916:7:0", + "referencedDeclaration": 1050, + "src": "4916:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "4916:34:0" + "src": "4916:34:2" } ], "name": "rejectApplication", "nodeType": "FunctionDefinition", "parameters": { - "id": 206, + "id": 1155, "nodeType": "ParameterList", "parameters": [], - "src": "4880:2:0" + "src": "4880:2:2" }, "payable": false, "returnParameters": { - "id": 213, + "id": 1162, "nodeType": "ParameterList", "parameters": [], - "src": "4956:0:0" + "src": "4956:0:2" }, - "scope": 377, - "src": "4854:215:0", + "scope": 1326, + "src": "4854:215:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 242, + "id": 1191, "nodeType": "Block", - "src": "5433:110:0", + "src": "5433:110:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 236, + "id": 1185, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 233, + "id": 1182, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "5444:13:0", + "referencedDeclaration": 987, + "src": "5444:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -7482,18 +7482,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 234, + "id": 1183, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "5460:6:0", + "referencedDeclaration": 980, + "src": "5460:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 235, + "id": 1184, "isConstant": false, "isLValue": false, "isPure": true, @@ -7501,21 +7501,21 @@ "memberName": "AWAITING_JOBOFFER", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "5460:24:0", + "src": "5460:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "5444:40:0", + "src": "5444:40:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 237, + "id": 1186, "nodeType": "ExpressionStatement", - "src": "5444:40:0" + "src": "5444:40:2" }, { "eventCall": { @@ -7523,14 +7523,14 @@ "arguments": [ { "argumentTypes": null, - "id": 239, + "id": 1188, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "5521:13:0", + "referencedDeclaration": 987, + "src": "5521:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -7538,22 +7538,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 238, + "id": 1187, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "5500:20:0", + "referencedDeclaration": 955, + "src": "5500:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 240, + "id": 1189, "isConstant": false, "isLValue": false, "isPure": false, @@ -7561,42 +7561,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5500:35:0", + "src": "5500:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 241, + "id": 1190, "nodeType": "EmitStatement", - "src": "5495:40:0" + "src": "5495:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 243, + "id": 1192, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 227, + "id": 1176, "modifierName": { "argumentTypes": null, - "id": 226, + "id": 1175, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "5378:10:0", + "referencedDeclaration": 1008, + "src": "5378:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "5378:10:0" + "src": "5378:10:2" }, { "arguments": [ @@ -7604,18 +7604,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 229, + "id": 1178, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "5402:6:0", + "referencedDeclaration": 980, + "src": "5402:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 230, + "id": 1179, "isConstant": false, "isLValue": false, "isPure": true, @@ -7623,76 +7623,76 @@ "memberName": "INTERVIEW_PENDING", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "5402:24:0", + "src": "5402:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 231, + "id": 1180, "modifierName": { "argumentTypes": null, - "id": 228, + "id": 1177, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "5394:7:0", + "referencedDeclaration": 1050, + "src": "5394:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "5394:33:0" + "src": "5394:33:2" } ], "name": "interviewSuccessful", "nodeType": "FunctionDefinition", "parameters": { - "id": 225, + "id": 1174, "nodeType": "ParameterList", "parameters": [], - "src": "5358:2:0" + "src": "5358:2:2" }, "payable": false, "returnParameters": { - "id": 232, + "id": 1181, "nodeType": "ParameterList", "parameters": [], - "src": "5433:0:0" + "src": "5433:0:2" }, - "scope": 377, - "src": "5330:213:0", + "scope": 1326, + "src": "5330:213:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 261, + "id": 1210, "nodeType": "Block", - "src": "5921:115:0", + "src": "5921:115:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 255, + "id": 1204, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 252, + "id": 1201, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "5932:13:0", + "referencedDeclaration": 987, + "src": "5932:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -7702,18 +7702,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 253, + "id": 1202, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "5948:6:0", + "referencedDeclaration": 980, + "src": "5948:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 254, + "id": 1203, "isConstant": false, "isLValue": false, "isPure": true, @@ -7721,21 +7721,21 @@ "memberName": "INTERVIEW_NOT_SELECTED", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "5948:29:0", + "src": "5948:29:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "5932:45:0", + "src": "5932:45:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 256, + "id": 1205, "nodeType": "ExpressionStatement", - "src": "5932:45:0" + "src": "5932:45:2" }, { "eventCall": { @@ -7743,14 +7743,14 @@ "arguments": [ { "argumentTypes": null, - "id": 258, + "id": 1207, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "6014:13:0", + "referencedDeclaration": 987, + "src": "6014:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -7758,22 +7758,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 257, + "id": 1206, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "5993:20:0", + "referencedDeclaration": 955, + "src": "5993:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 259, + "id": 1208, "isConstant": false, "isLValue": false, "isPure": false, @@ -7781,42 +7781,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "5993:35:0", + "src": "5993:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 260, + "id": 1209, "nodeType": "EmitStatement", - "src": "5988:40:0" + "src": "5988:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 262, + "id": 1211, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 246, + "id": 1195, "modifierName": { "argumentTypes": null, - "id": 245, + "id": 1194, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "5866:10:0", + "referencedDeclaration": 1008, + "src": "5866:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "5866:10:0" + "src": "5866:10:2" }, { "arguments": [ @@ -7824,18 +7824,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 248, + "id": 1197, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "5890:6:0", + "referencedDeclaration": 980, + "src": "5890:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 249, + "id": 1198, "isConstant": false, "isLValue": false, "isPure": true, @@ -7843,76 +7843,76 @@ "memberName": "INTERVIEW_PENDING", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "5890:24:0", + "src": "5890:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 250, + "id": 1199, "modifierName": { "argumentTypes": null, - "id": 247, + "id": 1196, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "5882:7:0", + "referencedDeclaration": 1050, + "src": "5882:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "5882:33:0" + "src": "5882:33:2" } ], "name": "interviewNotSelected", "nodeType": "FunctionDefinition", "parameters": { - "id": 244, + "id": 1193, "nodeType": "ParameterList", "parameters": [], - "src": "5846:2:0" + "src": "5846:2:2" }, "payable": false, "returnParameters": { - "id": 251, + "id": 1200, "nodeType": "ParameterList", "parameters": [], - "src": "5921:0:0" + "src": "5921:0:2" }, - "scope": 377, - "src": "5817:219:0", + "scope": 1326, + "src": "5817:219:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 280, + "id": 1229, "nodeType": "Block", - "src": "6380:109:0", + "src": "6380:109:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 274, + "id": 1223, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 271, + "id": 1220, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "6391:13:0", + "referencedDeclaration": 987, + "src": "6391:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -7922,18 +7922,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 272, + "id": 1221, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "6407:6:0", + "referencedDeclaration": 980, + "src": "6407:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 273, + "id": 1222, "isConstant": false, "isLValue": false, "isPure": true, @@ -7941,21 +7941,21 @@ "memberName": "JOBOFFER_PENDING", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "6407:23:0", + "src": "6407:23:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "6391:39:0", + "src": "6391:39:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 275, + "id": 1224, "nodeType": "ExpressionStatement", - "src": "6391:39:0" + "src": "6391:39:2" }, { "eventCall": { @@ -7963,14 +7963,14 @@ "arguments": [ { "argumentTypes": null, - "id": 277, + "id": 1226, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "6467:13:0", + "referencedDeclaration": 987, + "src": "6467:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -7978,22 +7978,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 276, + "id": 1225, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "6446:20:0", + "referencedDeclaration": 955, + "src": "6446:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 278, + "id": 1227, "isConstant": false, "isLValue": false, "isPure": false, @@ -8001,42 +8001,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6446:35:0", + "src": "6446:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 279, + "id": 1228, "nodeType": "EmitStatement", - "src": "6441:40:0" + "src": "6441:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 281, + "id": 1230, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 265, + "id": 1214, "modifierName": { "argumentTypes": null, - "id": 264, + "id": 1213, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "6325:10:0", + "referencedDeclaration": 1008, + "src": "6325:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "6325:10:0" + "src": "6325:10:2" }, { "arguments": [ @@ -8044,18 +8044,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 267, + "id": 1216, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "6349:6:0", + "referencedDeclaration": 980, + "src": "6349:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 268, + "id": 1217, "isConstant": false, "isLValue": false, "isPure": true, @@ -8063,76 +8063,76 @@ "memberName": "AWAITING_JOBOFFER", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "6349:24:0", + "src": "6349:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 269, + "id": 1218, "modifierName": { "argumentTypes": null, - "id": 266, + "id": 1215, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "6341:7:0", + "referencedDeclaration": 1050, + "src": "6341:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "6341:33:0" + "src": "6341:33:2" } ], "name": "offerJob", "nodeType": "FunctionDefinition", "parameters": { - "id": 263, + "id": 1212, "nodeType": "ParameterList", "parameters": [], - "src": "6305:2:0" + "src": "6305:2:2" }, "payable": false, "returnParameters": { - "id": 270, + "id": 1219, "nodeType": "ParameterList", "parameters": [], - "src": "6380:0:0" + "src": "6380:0:2" }, - "scope": 377, - "src": "6288:201:0", + "scope": 1326, + "src": "6288:201:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 299, + "id": 1248, "nodeType": "Block", - "src": "6850:164:0", + "src": "6850:164:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 293, + "id": 1242, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 290, + "id": 1239, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "6861:13:0", + "referencedDeclaration": 987, + "src": "6861:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -8142,18 +8142,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 291, + "id": 1240, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "6877:6:0", + "referencedDeclaration": 980, + "src": "6877:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 292, + "id": 1241, "isConstant": false, "isLValue": false, "isPure": true, @@ -8161,21 +8161,21 @@ "memberName": "JOBOFFER_ACCEPTED", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "6877:24:0", + "src": "6877:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "6861:40:0", + "src": "6861:40:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 294, + "id": 1243, "nodeType": "ExpressionStatement", - "src": "6861:40:0" + "src": "6861:40:2" }, { "eventCall": { @@ -8183,14 +8183,14 @@ "arguments": [ { "argumentTypes": null, - "id": 296, + "id": 1245, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "6992:13:0", + "referencedDeclaration": 987, + "src": "6992:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -8198,22 +8198,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 295, + "id": 1244, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "6971:20:0", + "referencedDeclaration": 955, + "src": "6971:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 297, + "id": 1246, "isConstant": false, "isLValue": false, "isPure": false, @@ -8221,42 +8221,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6971:35:0", + "src": "6971:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 298, + "id": 1247, "nodeType": "EmitStatement", - "src": "6966:40:0" + "src": "6966:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 300, + "id": 1249, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 284, + "id": 1233, "modifierName": { "argumentTypes": null, - "id": 283, + "id": 1232, "name": "isApplicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 70, - "src": "6795:11:0", + "referencedDeclaration": 1019, + "src": "6795:11:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "6795:11:0" + "src": "6795:11:2" }, { "arguments": [ @@ -8264,18 +8264,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 286, + "id": 1235, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "6820:6:0", + "referencedDeclaration": 980, + "src": "6820:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 287, + "id": 1236, "isConstant": false, "isLValue": false, "isPure": true, @@ -8283,76 +8283,76 @@ "memberName": "JOBOFFER_PENDING", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "6820:23:0", + "src": "6820:23:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 288, + "id": 1237, "modifierName": { "argumentTypes": null, - "id": 285, + "id": 1234, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "6812:7:0", + "referencedDeclaration": 1050, + "src": "6812:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "6812:32:0" + "src": "6812:32:2" } ], "name": "acceptJobOffer", "nodeType": "FunctionDefinition", "parameters": { - "id": 282, + "id": 1231, "nodeType": "ParameterList", "parameters": [], - "src": "6775:2:0" + "src": "6775:2:2" }, "payable": false, "returnParameters": { - "id": 289, + "id": 1238, "nodeType": "ParameterList", "parameters": [], - "src": "6850:0:0" + "src": "6850:0:2" }, - "scope": 377, - "src": "6752:262:0", + "scope": 1326, + "src": "6752:262:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 318, + "id": 1267, "nodeType": "Block", - "src": "7374:114:0", + "src": "7374:114:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 312, + "id": 1261, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 309, + "id": 1258, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "7385:13:0", + "referencedDeclaration": 987, + "src": "7385:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -8362,18 +8362,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 310, + "id": 1259, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "7401:6:0", + "referencedDeclaration": 980, + "src": "7401:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 311, + "id": 1260, "isConstant": false, "isLValue": false, "isPure": true, @@ -8381,21 +8381,21 @@ "memberName": "JOBOFFER_NOT_ACCEPTED", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "7401:28:0", + "src": "7401:28:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "7385:44:0", + "src": "7385:44:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 313, + "id": 1262, "nodeType": "ExpressionStatement", - "src": "7385:44:0" + "src": "7385:44:2" }, { "eventCall": { @@ -8403,14 +8403,14 @@ "arguments": [ { "argumentTypes": null, - "id": 315, + "id": 1264, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "7466:13:0", + "referencedDeclaration": 987, + "src": "7466:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -8418,22 +8418,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 314, + "id": 1263, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "7445:20:0", + "referencedDeclaration": 955, + "src": "7445:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 316, + "id": 1265, "isConstant": false, "isLValue": false, "isPure": false, @@ -8441,42 +8441,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7445:35:0", + "src": "7445:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 317, + "id": 1266, "nodeType": "EmitStatement", - "src": "7440:40:0" + "src": "7440:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 319, + "id": 1268, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 303, + "id": 1252, "modifierName": { "argumentTypes": null, - "id": 302, + "id": 1251, "name": "isApplicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 70, - "src": "7319:11:0", + "referencedDeclaration": 1019, + "src": "7319:11:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "7319:11:0" + "src": "7319:11:2" }, { "arguments": [ @@ -8484,18 +8484,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 305, + "id": 1254, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "7344:6:0", + "referencedDeclaration": 980, + "src": "7344:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 306, + "id": 1255, "isConstant": false, "isLValue": false, "isPure": true, @@ -8503,76 +8503,76 @@ "memberName": "JOBOFFER_PENDING", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "7344:23:0", + "src": "7344:23:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 307, + "id": 1256, "modifierName": { "argumentTypes": null, - "id": 304, + "id": 1253, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "7336:7:0", + "referencedDeclaration": 1050, + "src": "7336:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "7336:32:0" + "src": "7336:32:2" } ], "name": "rejectJobOffer", "nodeType": "FunctionDefinition", "parameters": { - "id": 301, + "id": 1250, "nodeType": "ParameterList", "parameters": [], - "src": "7299:2:0" + "src": "7299:2:2" }, "payable": false, "returnParameters": { - "id": 308, + "id": 1257, "nodeType": "ParameterList", "parameters": [], - "src": "7374:0:0" + "src": "7374:0:2" }, - "scope": 377, - "src": "7276:212:0", + "scope": 1326, + "src": "7276:212:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 337, + "id": 1286, "nodeType": "Block", - "src": "7857:164:0", + "src": "7857:164:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 331, + "id": 1280, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 328, + "id": 1277, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "7868:13:0", + "referencedDeclaration": 987, + "src": "7868:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -8582,18 +8582,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 329, + "id": 1278, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "7884:6:0", + "referencedDeclaration": 980, + "src": "7884:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 330, + "id": 1279, "isConstant": false, "isLValue": false, "isPure": true, @@ -8601,21 +8601,21 @@ "memberName": "EMPLOYMENT_PERIOD", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "7884:24:0", + "src": "7884:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "7868:40:0", + "src": "7868:40:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 332, + "id": 1281, "nodeType": "ExpressionStatement", - "src": "7868:40:0" + "src": "7868:40:2" }, { "eventCall": { @@ -8623,14 +8623,14 @@ "arguments": [ { "argumentTypes": null, - "id": 334, + "id": 1283, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "7999:13:0", + "referencedDeclaration": 987, + "src": "7999:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -8638,22 +8638,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 333, + "id": 1282, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "7978:20:0", + "referencedDeclaration": 955, + "src": "7978:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 335, + "id": 1284, "isConstant": false, "isLValue": false, "isPure": false, @@ -8661,42 +8661,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "7978:35:0", + "src": "7978:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 336, + "id": 1285, "nodeType": "EmitStatement", - "src": "7973:40:0" + "src": "7973:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 338, + "id": 1287, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 322, + "id": 1271, "modifierName": { "argumentTypes": null, - "id": 321, + "id": 1270, "name": "isEmployerOrApplicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 88, - "src": "7791:21:0", + "referencedDeclaration": 1037, + "src": "7791:21:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "7791:21:0" + "src": "7791:21:2" }, { "arguments": [ @@ -8704,18 +8704,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 324, + "id": 1273, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "7826:6:0", + "referencedDeclaration": 980, + "src": "7826:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 325, + "id": 1274, "isConstant": false, "isLValue": false, "isPure": true, @@ -8723,76 +8723,76 @@ "memberName": "JOBOFFER_ACCEPTED", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "7826:24:0", + "src": "7826:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 326, + "id": 1275, "modifierName": { "argumentTypes": null, - "id": 323, + "id": 1272, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "7818:7:0", + "referencedDeclaration": 1050, + "src": "7818:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "7818:33:0" + "src": "7818:33:2" } ], "name": "startEmployment", "nodeType": "FunctionDefinition", "parameters": { - "id": 320, + "id": 1269, "nodeType": "ParameterList", "parameters": [], - "src": "7771:2:0" + "src": "7771:2:2" }, "payable": false, "returnParameters": { - "id": 327, + "id": 1276, "nodeType": "ParameterList", "parameters": [], - "src": "7857:0:0" + "src": "7857:0:2" }, - "scope": 377, - "src": "7747:274:0", + "scope": 1326, + "src": "7747:274:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 356, + "id": 1305, "nodeType": "Block", - "src": "8405:115:0", + "src": "8405:115:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 350, + "id": 1299, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 347, + "id": 1296, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "8416:13:0", + "referencedDeclaration": 987, + "src": "8416:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -8802,18 +8802,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 348, + "id": 1297, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "8432:6:0", + "referencedDeclaration": 980, + "src": "8432:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 349, + "id": 1298, "isConstant": false, "isLValue": false, "isPure": true, @@ -8821,21 +8821,21 @@ "memberName": "EMPLOYMENT_TERMINATION", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8432:29:0", + "src": "8432:29:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "8416:45:0", + "src": "8416:45:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 351, + "id": 1300, "nodeType": "ExpressionStatement", - "src": "8416:45:0" + "src": "8416:45:2" }, { "eventCall": { @@ -8843,14 +8843,14 @@ "arguments": [ { "argumentTypes": null, - "id": 353, + "id": 1302, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "8498:13:0", + "referencedDeclaration": 987, + "src": "8498:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -8858,22 +8858,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 352, + "id": 1301, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "8477:20:0", + "referencedDeclaration": 955, + "src": "8477:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 354, + "id": 1303, "isConstant": false, "isLValue": false, "isPure": false, @@ -8881,42 +8881,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8477:35:0", + "src": "8477:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 355, + "id": 1304, "nodeType": "EmitStatement", - "src": "8472:40:0" + "src": "8472:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 357, + "id": 1306, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 341, + "id": 1290, "modifierName": { "argumentTypes": null, - "id": 340, + "id": 1289, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 59, - "src": "8350:10:0", + "referencedDeclaration": 1008, + "src": "8350:10:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "8350:10:0" + "src": "8350:10:2" }, { "arguments": [ @@ -8924,18 +8924,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 343, + "id": 1292, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "8374:6:0", + "referencedDeclaration": 980, + "src": "8374:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 344, + "id": 1293, "isConstant": false, "isLValue": false, "isPure": true, @@ -8943,76 +8943,76 @@ "memberName": "EMPLOYMENT_PERIOD", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8374:24:0", + "src": "8374:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 345, + "id": 1294, "modifierName": { "argumentTypes": null, - "id": 342, + "id": 1291, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "8366:7:0", + "referencedDeclaration": 1050, + "src": "8366:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "8366:33:0" + "src": "8366:33:2" } ], "name": "terminateEmployment", "nodeType": "FunctionDefinition", "parameters": { - "id": 339, + "id": 1288, "nodeType": "ParameterList", "parameters": [], - "src": "8330:2:0" + "src": "8330:2:2" }, "payable": false, "returnParameters": { - "id": 346, + "id": 1295, "nodeType": "ParameterList", "parameters": [], - "src": "8405:0:0" + "src": "8405:0:2" }, - "scope": 377, - "src": "8302:218:0", + "scope": 1326, + "src": "8302:218:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 375, + "id": 1324, "nodeType": "Block", - "src": "8930:103:0", + "src": "8930:103:2", "statements": [ { "expression": { "argumentTypes": null, - "id": 369, + "id": 1318, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 366, + "id": 1315, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "8941:13:0", + "referencedDeclaration": 987, + "src": "8941:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, @@ -9022,18 +9022,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 367, + "id": 1316, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "8957:6:0", + "referencedDeclaration": 980, + "src": "8957:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 368, + "id": 1317, "isConstant": false, "isLValue": false, "isPure": true, @@ -9041,21 +9041,21 @@ "memberName": "IN_DISPUTE", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8957:17:0", + "src": "8957:17:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "src": "8941:33:0", + "src": "8941:33:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } }, - "id": 370, + "id": 1319, "nodeType": "ExpressionStatement", - "src": "8941:33:0" + "src": "8941:33:2" }, { "eventCall": { @@ -9063,14 +9063,14 @@ "arguments": [ { "argumentTypes": null, - "id": 372, + "id": 1321, "name": "internalStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "9011:13:0", + "referencedDeclaration": 987, + "src": "9011:13:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } @@ -9078,22 +9078,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } ], - "id": 371, + "id": 1320, "name": "JobApplicationChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 6, - "src": "8990:20:0", + "referencedDeclaration": 955, + "src": "8990:20:2", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$31_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_enum$_Stages_$980_$returns$__$", "typeString": "function (enum JobApplicant.Stages)" } }, - "id": 373, + "id": 1322, "isConstant": false, "isLValue": false, "isPure": false, @@ -9101,42 +9101,42 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "8990:35:0", + "src": "8990:35:2", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 374, + "id": 1323, "nodeType": "EmitStatement", - "src": "8985:40:0" + "src": "8985:40:2" } ] }, "documentation": "///////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 376, + "id": 1325, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 360, + "id": 1309, "modifierName": { "argumentTypes": null, - "id": 359, + "id": 1308, "name": "isEmployerOrApplicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 88, - "src": "8864:21:0", + "referencedDeclaration": 1037, + "src": "8864:21:2", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "8864:21:0" + "src": "8864:21:2" }, { "arguments": [ @@ -9144,18 +9144,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 362, + "id": 1311, "name": "Stages", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "8899:6:0", + "referencedDeclaration": 980, + "src": "8899:6:2", "typeDescriptions": { - "typeIdentifier": "t_type$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_type$_t_enum$_Stages_$980_$", "typeString": "type(enum JobApplicant.Stages)" } }, - "id": 363, + "id": 1312, "isConstant": false, "isLValue": false, "isPure": true, @@ -9163,58 +9163,58 @@ "memberName": "EMPLOYMENT_PERIOD", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "8899:24:0", + "src": "8899:24:2", "typeDescriptions": { - "typeIdentifier": "t_enum$_Stages_$31", + "typeIdentifier": "t_enum$_Stages_$980", "typeString": "enum JobApplicant.Stages" } } ], - "id": 364, + "id": 1313, "modifierName": { "argumentTypes": null, - "id": 361, + "id": 1310, "name": "atStage", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 101, - "src": "8891:7:0", + "referencedDeclaration": 1050, + "src": "8891:7:2", "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_enum$_Stages_$31_$", + "typeIdentifier": "t_modifier$_t_enum$_Stages_$980_$", "typeString": "modifier (enum JobApplicant.Stages)" } }, "nodeType": "ModifierInvocation", - "src": "8891:33:0" + "src": "8891:33:2" } ], "name": "openDispute", "nodeType": "FunctionDefinition", "parameters": { - "id": 358, + "id": 1307, "nodeType": "ParameterList", "parameters": [], - "src": "8844:2:0" + "src": "8844:2:2" }, "payable": false, "returnParameters": { - "id": 365, + "id": 1314, "nodeType": "ParameterList", "parameters": [], - "src": "8930:0:0" + "src": "8930:0:2" }, - "scope": 377, - "src": "8824:209:0", + "scope": 1326, + "src": "8824:209:2", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], - "scope": 378, - "src": "144:9008:0" + "scope": 1327, + "src": "144:9008:2" } ], - "src": "0:9152:0" + "src": "0:9152:2" }, "compiler": { "name": "solc", @@ -9222,5 +9222,5 @@ }, "networks": {}, "schemaVersion": "2.0.1", - "updatedAt": "2018-08-09T15:53:00.317Z" + "updatedAt": "2018-10-18T13:43:19.578Z" } \ No newline at end of file diff --git a/ethereum/build/contracts/JobApplicationLibrary.json b/ethereum/build/contracts/JobApplicationLibrary.json index 61499cb..cda2ff3 100644 --- a/ethereum/build/contracts/JobApplicationLibrary.json +++ b/ethereum/build/contracts/JobApplicationLibrary.json @@ -27,91 +27,91 @@ ], "bytecode": "0x610d95610030600b82828239805160001a6073146000811461002057610022565bfe5b5030600052607381538281f30073000000000000000000000000000000000000000030146080604052600436106100575763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416639038c886811461005c575b600080fd5b81801561006857600080fd5b5061009073ffffffffffffffffffffffffffffffffffffffff600435811690602435166100b9565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b600082826100c561010d565b73ffffffffffffffffffffffffffffffffffffffff928316815291166020820152604080519182900301906000f080158015610105573d6000803e3d6000fd5b509392505050565b604051610c4c8061011e83390190560060806040526000805460ff1916905534801561001a57600080fd5b50604051604080610c4c833981016040819052815160209092015160018054600160a060020a031916600160a060020a03808416919091179091556000805461010060a860020a0319166101009286169290920291909117908190554260025590917f6ad037c505eea6fc4312e7006a92c508ba229fdd5aca3a7c821a3ea70f864f2a9160ff16908082600b8111156100af57fe5b60ff16815260200191505060405180910390a15050610b79806100d36000396000f3006080604052600436106100d75763ffffffff60e060020a600035041663038e514f81146100dc57806305c180c31461010357806308283c0d1461011a578063325a19f11461012f57806342578d3c146101445780634fd6137c1461015957806359c884c21461016e57806363b6853f1461018357806373d4a13a146101985780637c2c5af7146101fa578063819a625f1461020f57806388e687ea14610224578063b4d2231c14610255578063b91956681461026a578063c040e6b81461027f578063d5165327146102b8578063ebc4f86a146102cd575b600080fd5b3480156100e857600080fd5b506100f16102e2565b60408051918252519081900360200190f35b34801561010f57600080fd5b506101186102e8565b005b34801561012657600080fd5b506101186103ff565b34801561013b57600080fd5b506100f16104ae565b34801561015057600080fd5b506101186104b4565b34801561016557600080fd5b50610118610592565b34801561017a57600080fd5b50610118610670565b34801561018f57600080fd5b50610118610737565b3480156101a457600080fd5b506101ad6107fe565b6040518086600b8111156101bd57fe5b60ff168152600160a060020a0395861660208201529390941660408085019190915260608401929092526080830152519081900360a00192509050f35b34801561020657600080fd5b50610118610837565b34801561021b57600080fd5b50610118610882565b34801561023057600080fd5b50610239610949565b60408051600160a060020a039092168252519081900360200190f35b34801561026157600080fd5b50610118610958565b34801561027657600080fd5b50610118610a1f565b34801561028b57600080fd5b50610294610a6a565b6040518082600b8111156102a457fe5b60ff16815260200191505060405180910390f35b3480156102c457600080fd5b50610239610a73565b3480156102d957600080fd5b50610118610a87565b60035481565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561033b57600080fd5b505af115801561034f573d6000803e3d6000fd5b505050506040513d602081101561036557600080fd5b5051600160a060020a0316331461037b57600080fd5b600980610386610a6a565b600b81111561039157fe5b1461039b57600080fd5b60008054600b919060ff19166001835b02179055506000546040517f6ad037c505eea6fc4312e7006a92c508ba229fdd5aca3a7c821a3ea70f864f2a9160ff16908082600b8111156103e957fe5b60ff16815260200191505060405180910390a150565b600154600160a060020a0316331461041657600080fd5b6000610420610a6a565b600b81111561042b57fe5b14806104495750600161043c610a6a565b600b81111561044757fe5b145b151561045457600080fd5b6000805460ff1916600217908190556040517f6ad037c505eea6fc4312e7006a92c508ba229fdd5aca3a7c821a3ea70f864f2a9160ff16908082600b81111561049957fe5b60ff16815260200191505060405180910390a1565b60025481565b600154600160a060020a03163314806105535750600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561051b57600080fd5b505af115801561052f573d6000803e3d6000fd5b505050506040513d602081101561054557600080fd5b5051600160a060020a031633145b151561055e57600080fd5b600480610569610a6a565b600b81111561057457fe5b1461057e57600080fd5b600080546009919060ff19166001836103ab565b600154600160a060020a03163314806106315750600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156105f957600080fd5b505af115801561060d573d6000803e3d6000fd5b505050506040513d602081101561062357600080fd5b5051600160a060020a031633145b151561063c57600080fd5b600980610647610a6a565b600b81111561065257fe5b1461065c57600080fd5b60008054600a919060ff19166001836103ab565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156106c357600080fd5b505af11580156106d7573d6000803e3d6000fd5b505050506040513d60208110156106ed57600080fd5b5051600160a060020a0316331461070357600080fd5b60018061070e610a6a565b600b81111561071957fe5b1461072357600080fd5b600080546007919060ff19166001836103ab565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561078a57600080fd5b505af115801561079e573d6000803e3d6000fd5b505050506040513d60208110156107b457600080fd5b5051600160a060020a031633146107ca57600080fd5b6000806107d5610a6a565b600b8111156107e057fe5b146107ea57600080fd5b600080546008919060ff19166001836103ab565b600080600080600061080e610a6a565b6000546001546002549298610100909204600160a060020a039081169850169550909350909150565b600154600160a060020a0316331461084e57600080fd5b600780610859610a6a565b600b81111561086457fe5b1461086e57600080fd5b600080546005919060ff19166001836103ab565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156108d557600080fd5b505af11580156108e9573d6000803e3d6000fd5b505050506040513d60208110156108ff57600080fd5b5051600160a060020a0316331461091557600080fd5b600080610920610a6a565b600b81111561092b57fe5b1461093557600080fd5b600080546006919060ff19166001836103ab565b600154600160a060020a031681565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156109ab57600080fd5b505af11580156109bf573d6000803e3d6000fd5b505050506040513d60208110156109d557600080fd5b5051600160a060020a031633146109eb57600080fd5b6006806109f6610a6a565b600b811115610a0157fe5b14610a0b57600080fd5b600080546003919060ff19166001836103ab565b600154600160a060020a03163314610a3657600080fd5b600780610a41610a6a565b600b811115610a4c57fe5b14610a5657600080fd5b600080546004919060ff19166001836103ab565b60005460ff1690565b6000546101009004600160a060020a031681565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015610ada57600080fd5b505af1158015610aee573d6000803e3d6000fd5b505050506040513d6020811015610b0457600080fd5b5051600160a060020a03163314610b1a57600080fd5b600680610b25610a6a565b600b811115610b3057fe5b14610b3a57600080fd5b600080546001919060ff191682806103ab5600a165627a7a723058203fae80c41f742e2b31e63b2b30dce150ef64093459a2b128b2a41f2f9208c7b10029a165627a7a72305820811bacacd2789e41afea3ebaac432683e05b6b2183dcdb57ca52f6c90f26ecc30029", "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600436106100575763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416639038c886811461005c575b600080fd5b81801561006857600080fd5b5061009073ffffffffffffffffffffffffffffffffffffffff600435811690602435166100b9565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b600082826100c561010d565b73ffffffffffffffffffffffffffffffffffffffff928316815291166020820152604080519182900301906000f080158015610105573d6000803e3d6000fd5b509392505050565b604051610c4c8061011e83390190560060806040526000805460ff1916905534801561001a57600080fd5b50604051604080610c4c833981016040819052815160209092015160018054600160a060020a031916600160a060020a03808416919091179091556000805461010060a860020a0319166101009286169290920291909117908190554260025590917f6ad037c505eea6fc4312e7006a92c508ba229fdd5aca3a7c821a3ea70f864f2a9160ff16908082600b8111156100af57fe5b60ff16815260200191505060405180910390a15050610b79806100d36000396000f3006080604052600436106100d75763ffffffff60e060020a600035041663038e514f81146100dc57806305c180c31461010357806308283c0d1461011a578063325a19f11461012f57806342578d3c146101445780634fd6137c1461015957806359c884c21461016e57806363b6853f1461018357806373d4a13a146101985780637c2c5af7146101fa578063819a625f1461020f57806388e687ea14610224578063b4d2231c14610255578063b91956681461026a578063c040e6b81461027f578063d5165327146102b8578063ebc4f86a146102cd575b600080fd5b3480156100e857600080fd5b506100f16102e2565b60408051918252519081900360200190f35b34801561010f57600080fd5b506101186102e8565b005b34801561012657600080fd5b506101186103ff565b34801561013b57600080fd5b506100f16104ae565b34801561015057600080fd5b506101186104b4565b34801561016557600080fd5b50610118610592565b34801561017a57600080fd5b50610118610670565b34801561018f57600080fd5b50610118610737565b3480156101a457600080fd5b506101ad6107fe565b6040518086600b8111156101bd57fe5b60ff168152600160a060020a0395861660208201529390941660408085019190915260608401929092526080830152519081900360a00192509050f35b34801561020657600080fd5b50610118610837565b34801561021b57600080fd5b50610118610882565b34801561023057600080fd5b50610239610949565b60408051600160a060020a039092168252519081900360200190f35b34801561026157600080fd5b50610118610958565b34801561027657600080fd5b50610118610a1f565b34801561028b57600080fd5b50610294610a6a565b6040518082600b8111156102a457fe5b60ff16815260200191505060405180910390f35b3480156102c457600080fd5b50610239610a73565b3480156102d957600080fd5b50610118610a87565b60035481565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561033b57600080fd5b505af115801561034f573d6000803e3d6000fd5b505050506040513d602081101561036557600080fd5b5051600160a060020a0316331461037b57600080fd5b600980610386610a6a565b600b81111561039157fe5b1461039b57600080fd5b60008054600b919060ff19166001835b02179055506000546040517f6ad037c505eea6fc4312e7006a92c508ba229fdd5aca3a7c821a3ea70f864f2a9160ff16908082600b8111156103e957fe5b60ff16815260200191505060405180910390a150565b600154600160a060020a0316331461041657600080fd5b6000610420610a6a565b600b81111561042b57fe5b14806104495750600161043c610a6a565b600b81111561044757fe5b145b151561045457600080fd5b6000805460ff1916600217908190556040517f6ad037c505eea6fc4312e7006a92c508ba229fdd5aca3a7c821a3ea70f864f2a9160ff16908082600b81111561049957fe5b60ff16815260200191505060405180910390a1565b60025481565b600154600160a060020a03163314806105535750600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561051b57600080fd5b505af115801561052f573d6000803e3d6000fd5b505050506040513d602081101561054557600080fd5b5051600160a060020a031633145b151561055e57600080fd5b600480610569610a6a565b600b81111561057457fe5b1461057e57600080fd5b600080546009919060ff19166001836103ab565b600154600160a060020a03163314806106315750600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156105f957600080fd5b505af115801561060d573d6000803e3d6000fd5b505050506040513d602081101561062357600080fd5b5051600160a060020a031633145b151561063c57600080fd5b600980610647610a6a565b600b81111561065257fe5b1461065c57600080fd5b60008054600a919060ff19166001836103ab565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156106c357600080fd5b505af11580156106d7573d6000803e3d6000fd5b505050506040513d60208110156106ed57600080fd5b5051600160a060020a0316331461070357600080fd5b60018061070e610a6a565b600b81111561071957fe5b1461072357600080fd5b600080546007919060ff19166001836103ab565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b15801561078a57600080fd5b505af115801561079e573d6000803e3d6000fd5b505050506040513d60208110156107b457600080fd5b5051600160a060020a031633146107ca57600080fd5b6000806107d5610a6a565b600b8111156107e057fe5b146107ea57600080fd5b600080546008919060ff19166001836103ab565b600080600080600061080e610a6a565b6000546001546002549298610100909204600160a060020a039081169850169550909350909150565b600154600160a060020a0316331461084e57600080fd5b600780610859610a6a565b600b81111561086457fe5b1461086e57600080fd5b600080546005919060ff19166001836103ab565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156108d557600080fd5b505af11580156108e9573d6000803e3d6000fd5b505050506040513d60208110156108ff57600080fd5b5051600160a060020a0316331461091557600080fd5b600080610920610a6a565b600b81111561092b57fe5b1461093557600080fd5b600080546006919060ff19166001836103ab565b600154600160a060020a031681565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b1580156109ab57600080fd5b505af11580156109bf573d6000803e3d6000fd5b505050506040513d60208110156109d557600080fd5b5051600160a060020a031633146109eb57600080fd5b6006806109f6610a6a565b600b811115610a0157fe5b14610a0b57600080fd5b600080546003919060ff19166001836103ab565b600154600160a060020a03163314610a3657600080fd5b600780610a41610a6a565b600b811115610a4c57fe5b14610a5657600080fd5b600080546004919060ff19166001836103ab565b60005460ff1690565b6000546101009004600160a060020a031681565b600060019054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff1660e060020a028152600401602060405180830381600087803b158015610ada57600080fd5b505af1158015610aee573d6000803e3d6000fd5b505050506040513d6020811015610b0457600080fd5b5051600160a060020a03163314610b1a57600080fd5b600680610b25610a6a565b600b811115610b3057fe5b14610b3a57600080fd5b600080546001919060ff191682806103ab5600a165627a7a723058203fae80c41f742e2b31e63b2b30dce150ef64093459a2b128b2a41f2f9208c7b10029a165627a7a72305820811bacacd2789e41afea3ebaac432683e05b6b2183dcdb57ca52f6c90f26ecc30029", - "sourceMap": "183:226:1:-;;132:2:-1;166:7;155:9;146:7;137:37;252:7;246:14;243:1;238:23;232:4;229:33;270:1;265:20;;;;222:63;;265:20;274:9;222:63;;298:9;295:1;288:20;328:4;319:7;311:22;352:7;343;336:24", - "deployedSourceMap": "183:226:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;222:182;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;222:182:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;307:22;376:7;385:10;359:37;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;359:37:1;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;347:49:1;222:182;-1:-1:-1;;;222:182:1:o;183:226::-;;;;;;;;;;:::o", + "sourceMap": "183:226:3:-;;132:2:-1;166:7;155:9;146:7;137:37;252:7;246:14;243:1;238:23;232:4;229:33;270:1;265:20;;;;222:63;;265:20;274:9;222:63;;298:9;295:1;288:20;328:4;319:7;311:22;352:7;343;336:24", + "deployedSourceMap": "183:226:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;222:182;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;222:182:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;307:22;376:7;385:10;359:37;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;359:37:3;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;347:49:3;222:182;-1:-1:-1;;;222:182:3:o;183:226::-;;;;;;;;;;:::o", "source": "pragma solidity 0.4.24;\r\n\r\n// /// @title JobApplicantLibrary\r\n// /// @dev An collection of helper tools for a JobApplicant\r\n\r\nimport \"./JobApplicant.sol\";\r\nimport \"./Listing.sol\";\r\n\r\nlibrary JobApplicationLibrary {\r\n\r\n function newApplicant(Listing listing, address _applicant)\r\n public\r\n returns (JobApplicant applicant)\r\n {\r\n applicant = new JobApplicant(listing, _applicant);\r\n }\r\n\r\n}\r\n", "sourcePath": "C:\\i\\HT\\hellonetmarket\\ethereum\\contracts\\JobApplicationLibrary.sol", "ast": { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/JobApplicationLibrary.sol", "exportedSymbols": { "JobApplicationLibrary": [ - 400 + 1349 ] }, - "id": 401, + "id": 1350, "nodeType": "SourceUnit", "nodes": [ { - "id": 379, + "id": 1328, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", - "src": "0:23:1" + "src": "0:23:3" }, { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/JobApplicant.sol", "file": "./JobApplicant.sol", - "id": 380, + "id": 1329, "nodeType": "ImportDirective", - "scope": 401, - "sourceUnit": 378, - "src": "126:28:1", + "scope": 1350, + "sourceUnit": 1327, + "src": "126:28:3", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/Listing.sol", "file": "./Listing.sol", - "id": 381, + "id": 1330, "nodeType": "ImportDirective", - "scope": 401, - "sourceUnit": 606, - "src": "156:23:1", + "scope": 1350, + "sourceUnit": 1555, + "src": "156:23:3", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [], "contractDependencies": [ - 377 + 1326 ], "contractKind": "library", "documentation": null, "fullyImplemented": true, - "id": 400, + "id": 1349, "linearizedBaseContracts": [ - 400 + 1349 ], "name": "JobApplicationLibrary", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 398, + "id": 1347, "nodeType": "Block", - "src": "336:68:1", + "src": "336:68:3", "statements": [ { "expression": { "argumentTypes": null, - "id": 396, + "id": 1345, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 390, + "id": 1339, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 388, - "src": "347:9:1", + "referencedDeclaration": 1337, + "src": "347:9:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, @@ -122,25 +122,25 @@ "arguments": [ { "argumentTypes": null, - "id": 393, + "id": 1342, "name": "listing", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 383, - "src": "376:7:1", + "referencedDeclaration": 1332, + "src": "376:7:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, { "argumentTypes": null, - "id": 394, + "id": 1343, "name": "_applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 385, - "src": "385:10:1", + "referencedDeclaration": 1334, + "src": "385:10:3", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -150,7 +150,7 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" }, { @@ -158,31 +158,31 @@ "typeString": "address" } ], - "id": 392, + "id": 1341, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "NewExpression", - "src": "359:16:1", + "src": "359:16:3", "typeDescriptions": { - "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_address_$returns$_t_contract$_JobApplicant_$377_$", + "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_address_$returns$_t_contract$_JobApplicant_$1326_$", "typeString": "function (address,address) returns (contract JobApplicant)" }, "typeName": { "contractScope": null, - "id": 391, + "id": 1340, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "363:12:1", + "referencedDeclaration": 1326, + "src": "363:12:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } } }, - "id": 395, + "id": 1344, "isConstant": false, "isLValue": false, "isPure": false, @@ -190,26 +190,26 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "359:37:1", + "src": "359:37:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, - "src": "347:49:1", + "src": "347:49:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, - "id": 397, + "id": 1346, "nodeType": "ExpressionStatement", - "src": "347:49:1" + "src": "347:49:3" } ] }, "documentation": null, - "id": 399, + "id": 1348, "implemented": true, "isConstructor": false, "isDeclaredConst": false, @@ -217,31 +217,31 @@ "name": "newApplicant", "nodeType": "FunctionDefinition", "parameters": { - "id": 386, + "id": 1335, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 383, + "id": 1332, "name": "listing", "nodeType": "VariableDeclaration", - "scope": 399, - "src": "244:15:1", + "scope": 1348, + "src": "244:15:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" }, "typeName": { "contractScope": null, - "id": 382, + "id": 1331, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "244:7:1", + "referencedDeclaration": 1554, + "src": "244:7:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -250,11 +250,11 @@ }, { "constant": false, - "id": 385, + "id": 1334, "name": "_applicant", "nodeType": "VariableDeclaration", - "scope": 399, - "src": "261:18:1", + "scope": 1348, + "src": "261:18:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -262,10 +262,10 @@ "typeString": "address" }, "typeName": { - "id": 384, + "id": 1333, "name": "address", "nodeType": "ElementaryTypeName", - "src": "261:7:1", + "src": "261:7:3", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -275,35 +275,35 @@ "visibility": "internal" } ], - "src": "243:37:1" + "src": "243:37:3" }, "payable": false, "returnParameters": { - "id": 389, + "id": 1338, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 388, + "id": 1337, "name": "applicant", "nodeType": "VariableDeclaration", - "scope": 399, - "src": "307:22:1", + "scope": 1348, + "src": "307:22:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" }, "typeName": { "contractScope": null, - "id": 387, + "id": 1336, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "307:12:1", + "referencedDeclaration": 1326, + "src": "307:12:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, @@ -311,102 +311,102 @@ "visibility": "internal" } ], - "src": "306:24:1" + "src": "306:24:3" }, - "scope": 400, - "src": "222:182:1", + "scope": 1349, + "src": "222:182:3", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], - "scope": 401, - "src": "183:226:1" + "scope": 1350, + "src": "183:226:3" } ], - "src": "0:411:1" + "src": "0:411:3" }, "legacyAST": { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/JobApplicationLibrary.sol", "exportedSymbols": { "JobApplicationLibrary": [ - 400 + 1349 ] }, - "id": 401, + "id": 1350, "nodeType": "SourceUnit", "nodes": [ { - "id": 379, + "id": 1328, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", - "src": "0:23:1" + "src": "0:23:3" }, { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/JobApplicant.sol", "file": "./JobApplicant.sol", - "id": 380, + "id": 1329, "nodeType": "ImportDirective", - "scope": 401, - "sourceUnit": 378, - "src": "126:28:1", + "scope": 1350, + "sourceUnit": 1327, + "src": "126:28:3", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/Listing.sol", "file": "./Listing.sol", - "id": 381, + "id": 1330, "nodeType": "ImportDirective", - "scope": 401, - "sourceUnit": 606, - "src": "156:23:1", + "scope": 1350, + "sourceUnit": 1555, + "src": "156:23:3", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [], "contractDependencies": [ - 377 + 1326 ], "contractKind": "library", "documentation": null, "fullyImplemented": true, - "id": 400, + "id": 1349, "linearizedBaseContracts": [ - 400 + 1349 ], "name": "JobApplicationLibrary", "nodeType": "ContractDefinition", "nodes": [ { "body": { - "id": 398, + "id": 1347, "nodeType": "Block", - "src": "336:68:1", + "src": "336:68:3", "statements": [ { "expression": { "argumentTypes": null, - "id": 396, + "id": 1345, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 390, + "id": 1339, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 388, - "src": "347:9:1", + "referencedDeclaration": 1337, + "src": "347:9:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, @@ -417,25 +417,25 @@ "arguments": [ { "argumentTypes": null, - "id": 393, + "id": 1342, "name": "listing", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 383, - "src": "376:7:1", + "referencedDeclaration": 1332, + "src": "376:7:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, { "argumentTypes": null, - "id": 394, + "id": 1343, "name": "_applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 385, - "src": "385:10:1", + "referencedDeclaration": 1334, + "src": "385:10:3", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -445,7 +445,7 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" }, { @@ -453,31 +453,31 @@ "typeString": "address" } ], - "id": 392, + "id": 1341, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "NewExpression", - "src": "359:16:1", + "src": "359:16:3", "typeDescriptions": { - "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_address_$returns$_t_contract$_JobApplicant_$377_$", + "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_address_$returns$_t_contract$_JobApplicant_$1326_$", "typeString": "function (address,address) returns (contract JobApplicant)" }, "typeName": { "contractScope": null, - "id": 391, + "id": 1340, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "363:12:1", + "referencedDeclaration": 1326, + "src": "363:12:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } } }, - "id": 395, + "id": 1344, "isConstant": false, "isLValue": false, "isPure": false, @@ -485,26 +485,26 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "359:37:1", + "src": "359:37:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, - "src": "347:49:1", + "src": "347:49:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, - "id": 397, + "id": 1346, "nodeType": "ExpressionStatement", - "src": "347:49:1" + "src": "347:49:3" } ] }, "documentation": null, - "id": 399, + "id": 1348, "implemented": true, "isConstructor": false, "isDeclaredConst": false, @@ -512,31 +512,31 @@ "name": "newApplicant", "nodeType": "FunctionDefinition", "parameters": { - "id": 386, + "id": 1335, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 383, + "id": 1332, "name": "listing", "nodeType": "VariableDeclaration", - "scope": 399, - "src": "244:15:1", + "scope": 1348, + "src": "244:15:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" }, "typeName": { "contractScope": null, - "id": 382, + "id": 1331, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "244:7:1", + "referencedDeclaration": 1554, + "src": "244:7:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -545,11 +545,11 @@ }, { "constant": false, - "id": 385, + "id": 1334, "name": "_applicant", "nodeType": "VariableDeclaration", - "scope": 399, - "src": "261:18:1", + "scope": 1348, + "src": "261:18:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -557,10 +557,10 @@ "typeString": "address" }, "typeName": { - "id": 384, + "id": 1333, "name": "address", "nodeType": "ElementaryTypeName", - "src": "261:7:1", + "src": "261:7:3", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -570,35 +570,35 @@ "visibility": "internal" } ], - "src": "243:37:1" + "src": "243:37:3" }, "payable": false, "returnParameters": { - "id": 389, + "id": 1338, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 388, + "id": 1337, "name": "applicant", "nodeType": "VariableDeclaration", - "scope": 399, - "src": "307:22:1", + "scope": 1348, + "src": "307:22:3", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" }, "typeName": { "contractScope": null, - "id": 387, + "id": 1336, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "307:12:1", + "referencedDeclaration": 1326, + "src": "307:12:3", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, @@ -606,20 +606,20 @@ "visibility": "internal" } ], - "src": "306:24:1" + "src": "306:24:3" }, - "scope": 400, - "src": "222:182:1", + "scope": 1349, + "src": "222:182:3", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], - "scope": 401, - "src": "183:226:1" + "scope": 1350, + "src": "183:226:3" } ], - "src": "0:411:1" + "src": "0:411:3" }, "compiler": { "name": "solc", @@ -637,8 +637,26 @@ "links": {}, "address": "0xf12b5dd4ead5f743c6baa640b0216200e89b60da", "transactionHash": "0x8a27407debcc7157baab60bf9b9473313c9262e767704e608b1e3fb0591325ae" + }, + "1538849010791": { + "events": {}, + "links": {}, + "address": "0xc2d20493431f8f40a554b2be92958d4d00200f55", + "transactionHash": "0xefc1064d45daf4e66c01a1bcbf0a311d5653cfdd9d249955254dd11287ae100f" + }, + "1539360877990": { + "events": {}, + "links": {}, + "address": "0xf1ba4d207a40ac007ee579866af735c36608ac9d", + "transactionHash": "0x6a851e0bc940026ade59d1f9b96d1ae6dc1b09ece41ecfe68a41653b3549d590" + }, + "1539420319630": { + "events": {}, + "links": {}, + "address": "0xe0b601a1612fdb93ec5a7fa40e574fb5ca4b0e78", + "transactionHash": "0xfdafb5910972103d7705e2374ae0cf929baaa779cac7e207358c19dfa976a19f" } }, "schemaVersion": "2.0.1", - "updatedAt": "2018-08-09T15:53:00.312Z" + "updatedAt": "2018-10-18T13:43:19.582Z" } \ No newline at end of file diff --git a/ethereum/build/contracts/Listing.json b/ethereum/build/contracts/Listing.json index 57d79c4..1ce2f2a 100644 --- a/ethereum/build/contracts/Listing.json +++ b/ethereum/build/contracts/Listing.json @@ -305,49 +305,49 @@ ], "bytecode": "0x608060405234801561001057600080fd5b5060405160c08061073a83398101604090815281516020830151918301516060840151608085015160a09095015160008054600160a060020a03909516600160a060020a0319958616179055600180549094163317909355600293909355600555600691909155600491909155600355426007819055621275000160085561069d8061009d6000396000f3006080604052600436106100e55763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632d71426d81146100ea578063325a19f11461012857806343d726d61461014f578063455772d2146101665780634665096d146101cb5780634b91b955146101e057806356c1a053146101f5578063631fa7b71461020a57806363de53231461021f57806373d4a13a14610237578063883c22c5146102a45780638da5cb5b146102b9578063bc65793e146102ce578063c623674f146102e3578063eea3f82d146102f8578063f7d2219014610310575b600080fd5b3480156100f657600080fd5b506100ff610325565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561013457600080fd5b5061013d610341565b60408051918252519081900360200190f35b34801561015b57600080fd5b50610164610347565b005b34801561017257600080fd5b5061017b61039b565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156101b757818101518382015260200161019f565b505050509050019250505060405180910390f35b3480156101d757600080fd5b5061013d61040a565b3480156101ec57600080fd5b5061013d610410565b34801561020157600080fd5b50610164610416565b34801561021657600080fd5b5061013d61058e565b34801561022b57600080fd5b506100ff600435610594565b34801561024357600080fd5b5061024c6105c9565b6040805173ffffffffffffffffffffffffffffffffffffffff90991689526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b3480156102b057600080fd5b5061013d610604565b3480156102c557600080fd5b506100ff61060a565b3480156102da57600080fd5b5061013d610626565b3480156102ef57600080fd5b5061013d61062c565b34801561030457600080fd5b506100ff600435610632565b34801561031c57600080fd5b5061013d61066b565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60075481565b60005473ffffffffffffffffffffffffffffffffffffffff16331461036b57600080fd5b600060068190556040517ffa378a7d48087b5b4be3b8236f6f8829009c67d0dc3a6a431e43385d52ea2d1d9190a1565b6060600980548060200260200160405190810160405280929190818152602001828054801561040057602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff1681526001909101906020018083116103d5575b5050505050905090565b60085481565b60065481565b600854600090421061042757600080fd5b604080517f9038c886000000000000000000000000000000000000000000000000000000008152306004820152336024820152905173__JobApplicationLibrary_________________91639038c886916044808301926020929190829003018186803b15801561049757600080fd5b505af41580156104ab573d6000803e3d6000fd5b505050506040513d60208110156104c157600080fd5b5051600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01805473ffffffffffffffffffffffffffffffffffffffff831673ffffffffffffffffffffffffffffffffffffffff19909116811790915560408051918252519192507f4353a90ced767b2d04726c58d6595ee553129185698c163fbb141f000fe6dbe5919081900360200190a16040517ffa378a7d48087b5b4be3b8236f6f8829009c67d0dc3a6a431e43385d52ea2d1d90600090a150565b60095490565b60098054829081106105a257fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60005460025460055460065460045460035460075460085473ffffffffffffffffffffffffffffffffffffffff909716969091929394959697565b60055481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b60025481565b600060098281548110151561064357fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1692915050565b600454815600a165627a7a7230582090b6420d9e2c03b67c2596da4a5dc977d67715bf13e5e73cf5ea54d8ac6e7df70029", "deployedBytecode": "0x6080604052600436106100e55763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632d71426d81146100ea578063325a19f11461012857806343d726d61461014f578063455772d2146101665780634665096d146101cb5780634b91b955146101e057806356c1a053146101f5578063631fa7b71461020a57806363de53231461021f57806373d4a13a14610237578063883c22c5146102a45780638da5cb5b146102b9578063bc65793e146102ce578063c623674f146102e3578063eea3f82d146102f8578063f7d2219014610310575b600080fd5b3480156100f657600080fd5b506100ff610325565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561013457600080fd5b5061013d610341565b60408051918252519081900360200190f35b34801561015b57600080fd5b50610164610347565b005b34801561017257600080fd5b5061017b61039b565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156101b757818101518382015260200161019f565b505050509050019250505060405180910390f35b3480156101d757600080fd5b5061013d61040a565b3480156101ec57600080fd5b5061013d610410565b34801561020157600080fd5b50610164610416565b34801561021657600080fd5b5061013d61058e565b34801561022b57600080fd5b506100ff600435610594565b34801561024357600080fd5b5061024c6105c9565b6040805173ffffffffffffffffffffffffffffffffffffffff90991689526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b3480156102b057600080fd5b5061013d610604565b3480156102c557600080fd5b506100ff61060a565b3480156102da57600080fd5b5061013d610626565b3480156102ef57600080fd5b5061013d61062c565b34801561030457600080fd5b506100ff600435610632565b34801561031c57600080fd5b5061013d61066b565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60075481565b60005473ffffffffffffffffffffffffffffffffffffffff16331461036b57600080fd5b600060068190556040517ffa378a7d48087b5b4be3b8236f6f8829009c67d0dc3a6a431e43385d52ea2d1d9190a1565b6060600980548060200260200160405190810160405280929190818152602001828054801561040057602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff1681526001909101906020018083116103d5575b5050505050905090565b60085481565b60065481565b600854600090421061042757600080fd5b604080517f9038c886000000000000000000000000000000000000000000000000000000008152306004820152336024820152905173__JobApplicationLibrary_________________91639038c886916044808301926020929190829003018186803b15801561049757600080fd5b505af41580156104ab573d6000803e3d6000fd5b505050506040513d60208110156104c157600080fd5b5051600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01805473ffffffffffffffffffffffffffffffffffffffff831673ffffffffffffffffffffffffffffffffffffffff19909116811790915560408051918252519192507f4353a90ced767b2d04726c58d6595ee553129185698c163fbb141f000fe6dbe5919081900360200190a16040517ffa378a7d48087b5b4be3b8236f6f8829009c67d0dc3a6a431e43385d52ea2d1d90600090a150565b60095490565b60098054829081106105a257fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60005460025460055460065460045460035460075460085473ffffffffffffffffffffffffffffffffffffffff909716969091929394959697565b60055481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b60025481565b600060098281548110151561064357fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1692915050565b600454815600a165627a7a7230582090b6420d9e2c03b67c2596da4a5dc977d67715bf13e5e73cf5ea54d8ac6e7df70029", - "sourceMap": "209:5968:2:-;;;1097:825;8:9:-1;5:2;;;30:1;27;20:12;5:2;1097:825:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1548:5;:16;;-1:-1:-1;;;;;1548:16:2;;;-1:-1:-1;;;;;;1548:16:2;;;;;;;1575:29;;;;;1594:10;1575:29;;;;1647:8;:22;;;;1680:12;:29;1720:21;:46;;;;1777:12;:29;;;;1817:12;:29;1869:3;1857:7;:15;;;1907:7;1897:17;1883:10;:31;209:5968;;;;;;", - "deployedSourceMap": "209:5968:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;498:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;498:30:2;;;;;;;;;;;;;;;;;;;;;;;969:19;;8:9:-1;5:2;;;30:1;27;20:12;5:2;969:19:2;;;;;;;;;;;;;;;;;;;;5933:133;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5933:133:2;;;;;;4457:152;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4457:152:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4457:152:2;;;;;;;;;;;;;;;;;995:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;995:22:2;;;;929:33;;8:9:-1;5:2;;;30:1;27;20:12;5:2;929:33:2;;;;3188:502;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3188:502:2;;;;3994:130;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3994:130:2;;;;1056:32;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1056:32:2;;;;;2530:341;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2530:341:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;898:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;898:24:2;;;;471:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;471:20:2;;;;836:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;836:24:2;;;;806:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;806:23:2;;;;4281:168;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4281:168:2;;;;;867:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;867:24:2;;;;498:30;;;;;;:::o;969:19::-;;;;:::o;5933:133::-;2265:5;;;;2251:10;:19;2243:28;;;;;;6026:1;6002:21;:25;;;6043:15;;;;6026:1;6043:15;5933:133::o;4457:152::-;4528:14;4580:10;4560:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4457:152;:::o;995:22::-;;;;:::o;929:33::-;;;;:::o;3188:502::-;3309:10;;3377:22;;3303:3;:16;3295:25;;;;;;3402:52;;;;;;3437:4;3402:52;;;;3443:10;3402:52;;;;;;:21;;:34;;:52;;;;;;;;;;;;;;:21;:52;;;5:2:-1;;;;30:1;27;20:12;5:2;3402:52:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3402:52:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3402:52:2;3467:10;27::-1;;39:1;23:18;;45:23;;-1:-1;3467:26:2;;;;;;;;;;;-1:-1:-1;;3467:26:2;;;;;;;;3626:25;;;;;;;3402:52;;-1:-1:-1;3626:25:2;;;;;;3402:52;3626:25;;;3667:15;;;;;;;3188:502;:::o;3994:130::-;4099:10;:17;3994:130;:::o;1056:32::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1056:32:2;:::o;2530:341::-;2582:14;2761:5;2768:8;;2778:12;;2792:21;;2815:12;;2829;;2843:7;;2852:10;;2761:5;;;;;2530:341;;;;;;;;:::o;898:24::-;;;;:::o;471:20::-;;;;;;:::o;836:24::-;;;;:::o;806:23::-;;;;:::o;4281:168::-;4362:12;4412:10;4423:6;4412:18;;;;;;;;;;;;;;;;;;;;;;;4281:168;-1:-1:-1;;4281:168:2:o;867:24::-;;;;:::o", + "sourceMap": "209:5968:4:-;;;1097:825;8:9:-1;5:2;;;30:1;27;20:12;5:2;1097:825:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1548:5;:16;;-1:-1:-1;;;;;1548:16:4;;;-1:-1:-1;;;;;;1548:16:4;;;;;;;1575:29;;;;;1594:10;1575:29;;;;1647:8;:22;;;;1680:12;:29;1720:21;:46;;;;1777:12;:29;;;;1817:12;:29;1869:3;1857:7;:15;;;1907:7;1897:17;1883:10;:31;209:5968;;;;;;", + "deployedSourceMap": "209:5968:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;498:30;;8:9:-1;5:2;;;30:1;27;20:12;5:2;498:30:4;;;;;;;;;;;;;;;;;;;;;;;969:19;;8:9:-1;5:2;;;30:1;27;20:12;5:2;969:19:4;;;;;;;;;;;;;;;;;;;;5933:133;;8:9:-1;5:2;;;30:1;27;20:12;5:2;5933:133:4;;;;;;4457:152;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4457:152:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4457:152:4;;;;;;;;;;;;;;;;;995:22;;8:9:-1;5:2;;;30:1;27;20:12;5:2;995:22:4;;;;929:33;;8:9:-1;5:2;;;30:1;27;20:12;5:2;929:33:4;;;;3188:502;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3188:502:4;;;;3994:130;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3994:130:4;;;;1056:32;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1056:32:4;;;;;2530:341;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2530:341:4;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;898:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;898:24:4;;;;471:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;471:20:4;;;;836:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;836:24:4;;;;806:23;;8:9:-1;5:2;;;30:1;27;20:12;5:2;806:23:4;;;;4281:168;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;4281:168:4;;;;;867:24;;8:9:-1;5:2;;;30:1;27;20:12;5:2;867:24:4;;;;498:30;;;;;;:::o;969:19::-;;;;:::o;5933:133::-;2265:5;;;;2251:10;:19;2243:28;;;;;;6026:1;6002:21;:25;;;6043:15;;;;6026:1;6043:15;5933:133::o;4457:152::-;4528:14;4580:10;4560:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4457:152;:::o;995:22::-;;;;:::o;929:33::-;;;;:::o;3188:502::-;3309:10;;3377:22;;3303:3;:16;3295:25;;;;;;3402:52;;;;;;3437:4;3402:52;;;;3443:10;3402:52;;;;;;:21;;:34;;:52;;;;;;;;;;;;;;:21;:52;;;5:2:-1;;;;30:1;27;20:12;5:2;3402:52:4;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;3402:52:4;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3402:52:4;3467:10;27::-1;;39:1;23:18;;45:23;;-1:-1;3467:26:4;;;;;;;;;;;-1:-1:-1;;3467:26:4;;;;;;;;3626:25;;;;;;;3402:52;;-1:-1:-1;3626:25:4;;;;;;3402:52;3626:25;;;3667:15;;;;;;;3188:502;:::o;3994:130::-;4099:10;:17;3994:130;:::o;1056:32::-;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1056:32:4;:::o;2530:341::-;2582:14;2761:5;2768:8;;2778:12;;2792:21;;2815:12;;2829;;2843:7;;2852:10;;2761:5;;;;;2530:341;;;;;;;;:::o;898:24::-;;;;:::o;471:20::-;;;;;;:::o;836:24::-;;;;:::o;806:23::-;;;;:::o;4281:168::-;4362:12;4412:10;4423:6;4412:18;;;;;;;;;;;;;;;;;;;;;;;4281:168;-1:-1:-1;;4281:168:4:o;867:24::-;;;;:::o", "source": "pragma solidity 0.4.24;\r\n\r\n/// @title Listing\r\n/// @dev To an individual Job Listing, an job applicant can apply and employ can hire\r\n\r\nimport \"./JobApplicant.sol\";\r\nimport \"./JobApplicationLibrary.sol\";\r\n\r\n\r\ncontract Listing {\r\n\r\n /*\r\n * Events\r\n */\r\n\r\n event ListingApplied(JobApplicant _jobApplicantContract);\r\n event ListingChange();\r\n\r\n/*\r\n*\tData Storage\r\n*\t------------\r\n*\tWorkingHours\r\n*\tResourceType\r\n*\tresourceRate\r\n*\ttotalResourceRequired\r\n*/\r\n\r\n address public owner;\r\n address public ListingRegistry; // TODO: Define interface for real ListingRegistry ?\r\n\r\n // Assume IPFS defaults for hash: function:0x12=sha2, size:0x20=256 bits\r\n // See: https://ethereum.stackexchange.com/a/17112/20332\r\n // This assumption may have to change in future, but saves space now\r\n\r\n bytes32 public ipfsHash;\r\n uint public workingHours;\r\n uint public resourceType;\r\n uint public resourceRate;\r\n uint public totalResourceRequired;\r\n uint public created;\r\n uint public expiration;\r\n\r\n // Hire[] public hiring;\r\n JobApplicant[] public applicants;\r\n\r\n constructor (\r\n address _owner,\r\n bytes32 _ipfsHash,\r\n uint _resourceRate,\r\n uint _totalResourceRequired,\r\n uint _resourceType,\r\n uint _workingHours\r\n )\r\n\r\n////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n//\t\t\tData Structure\r\n////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n public\r\n {\r\n owner\t\t\t= _owner;\r\n ListingRegistry\t\t= msg.sender; // ListingRegistry(msg.sender);\r\n ipfsHash\t\t\t= _ipfsHash;\r\n resourceRate\t\t= _resourceRate;\r\n totalResourceRequired\t= _totalResourceRequired;\r\n resourceType\t\t= _resourceType;\r\n workingHours\t\t= _workingHours;\r\n created\t\t\t= now;\r\n expiration\t\t= created + 14 days;\r\n }\r\n\r\n////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n//\t\t\tCheck whether, modifer is the contract owner of the listing\r\n////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n modifier isEmployer() {\r\n require(msg.sender == owner);\r\n _;\r\n }\r\n\r\n////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n//\t\t\tListing Data\r\n////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function data()\r\n public\r\n view\r\n returns (address _owner, bytes32 _ipfsHash, uint _resourceRate, uint _totalResourceRequired, uint _resourceType,uint _workingHours,uint _created, uint _expiration)\r\n {\r\n return (owner, ipfsHash, resourceRate, totalResourceRequired, resourceType, workingHours, created, expiration);\r\n }\r\n\r\n/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n /// @dev ApplyToJob()\t\t--> An applicant can apply for a Job Listing\r\n/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function applyToJob()\r\n public \r\n {\r\n\r\n // Ensure that we are not past the expiration\r\n require(now < expiration);\r\n\r\n // Create Job Application contract\r\n JobApplicant applicant = JobApplicationLibrary.newApplicant(this, msg.sender);\r\n\r\n applicants.push(applicant);\r\n\r\n // TODO STAN: How to call function *AND* transfer value??\r\n // applicant.pay.value(msg.value)();\r\n\r\n emit ListingApplied(applicant);\r\n emit ListingChange();\r\n }\r\n\r\n////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n///\t@dev totalJobApplicants(): Return number of applicants for a given Job Listing\r\n////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function totalJobApplicants()\r\n public\r\n constant\r\n returns (uint)\r\n {\r\n return applicants.length;\r\n }\r\n\r\n /// @dev getApplicant(): Return Job Application info for a given Job Listing\r\n /// @param _index the index of the Listing we want info about\r\n function getApplicant(uint _index)\r\n public\r\n constant\r\n returns (JobApplicant)\r\n {\r\n return (\r\n applicants[_index]\r\n );\r\n }\r\n\r\n function getApplicants()\r\n public\r\n constant\r\n returns (JobApplicant[])\r\n {\r\n return (\r\n applicants\r\n );\r\n }\r\n\r\n////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n///\t\t\tHiring Contract Starts\t\t\t\t\t\t\t //\r\n////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n// function hireApplicant(uint _agentApply)\r\n// public\r\n// payable\r\n// {\r\n// // Ensure that this is not trying to hire more than required agents\r\n// // require(_agentApply <= totalResourceRequired);\r\n\r\n// // Ensure that we are not past the expiration\r\n// require(now < expiration);\r\n\r\n// // Create Job Application contract\r\n// JobApplicant applicant = JobApplicationLibrary.newApplicant(this, msg.sender);\r\n\r\n// // Count units as sold\r\n// //totalResourceRequired -= _agentApply;\r\n\r\n// applicants.push(applicant);\r\n\r\n// // TODO STAN: How to call function *AND* transfer value??\r\n// // applicant.pay.value(msg.value)();\r\n\r\n// emit ListingApplied(applicant);\r\n// emit ListingChange();\r\n// }\r\n\r\n////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n /// @dev close(): Allows an employer to close the Job Listing from further applicants\r\n////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n function close()\r\n public\r\n isEmployer\r\n {\r\n totalResourceRequired = 0;\r\n emit ListingChange();\r\n }\r\n////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\r\n}\r\n\r\n\r\n\r\n\r\n", "sourcePath": "C:\\i\\HT\\hellonetmarket\\ethereum\\contracts\\Listing.sol", "ast": { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/Listing.sol", "exportedSymbols": { "Listing": [ - 605 + 1554 ] }, - "id": 606, + "id": 1555, "nodeType": "SourceUnit", "nodes": [ { - "id": 402, + "id": 1351, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", - "src": "0:23:2" + "src": "0:23:4" }, { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/JobApplicant.sol", "file": "./JobApplicant.sol", - "id": 403, + "id": 1352, "nodeType": "ImportDirective", - "scope": 606, - "sourceUnit": 378, - "src": "136:28:2", + "scope": 1555, + "sourceUnit": 1327, + "src": "136:28:4", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/JobApplicationLibrary.sol", "file": "./JobApplicationLibrary.sol", - "id": 404, + "id": 1353, "nodeType": "ImportDirective", - "scope": 606, - "sourceUnit": 401, - "src": "166:37:2", + "scope": 1555, + "sourceUnit": 1350, + "src": "166:37:4", "symbolAliases": [], "unitAlias": "" }, @@ -357,9 +357,9 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 605, + "id": 1554, "linearizedBaseContracts": [ - 605 + 1554 ], "name": "Listing", "nodeType": "ContractDefinition", @@ -367,36 +367,36 @@ { "anonymous": false, "documentation": null, - "id": 408, + "id": 1357, "name": "ListingApplied", "nodeType": "EventDefinition", "parameters": { - "id": 407, + "id": 1356, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 406, + "id": 1355, "indexed": false, "name": "_jobApplicantContract", "nodeType": "VariableDeclaration", - "scope": 408, - "src": "284:34:2", + "scope": 1357, + "src": "284:34:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" }, "typeName": { "contractScope": null, - "id": 405, + "id": 1354, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "284:12:2", + "referencedDeclaration": 1326, + "src": "284:12:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, @@ -404,31 +404,31 @@ "visibility": "internal" } ], - "src": "283:36:2" + "src": "283:36:4" }, - "src": "263:57:2" + "src": "263:57:4" }, { "anonymous": false, "documentation": null, - "id": 410, + "id": 1359, "name": "ListingChange", "nodeType": "EventDefinition", "parameters": { - "id": 409, + "id": 1358, "nodeType": "ParameterList", "parameters": [], - "src": "345:2:2" + "src": "345:2:4" }, - "src": "326:22:2" + "src": "326:22:4" }, { "constant": false, - "id": 412, + "id": 1361, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "471:20:2", + "scope": 1554, + "src": "471:20:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -436,10 +436,10 @@ "typeString": "address" }, "typeName": { - "id": 411, + "id": 1360, "name": "address", "nodeType": "ElementaryTypeName", - "src": "471:7:2", + "src": "471:7:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -450,11 +450,11 @@ }, { "constant": false, - "id": 414, + "id": 1363, "name": "ListingRegistry", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "498:30:2", + "scope": 1554, + "src": "498:30:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -462,10 +462,10 @@ "typeString": "address" }, "typeName": { - "id": 413, + "id": 1362, "name": "address", "nodeType": "ElementaryTypeName", - "src": "498:7:2", + "src": "498:7:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -476,11 +476,11 @@ }, { "constant": false, - "id": 416, + "id": 1365, "name": "ipfsHash", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "806:23:2", + "scope": 1554, + "src": "806:23:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -488,10 +488,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 415, + "id": 1364, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "806:7:2", + "src": "806:7:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -502,11 +502,11 @@ }, { "constant": false, - "id": 418, + "id": 1367, "name": "workingHours", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "836:24:2", + "scope": 1554, + "src": "836:24:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -514,10 +514,10 @@ "typeString": "uint256" }, "typeName": { - "id": 417, + "id": 1366, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "836:4:2", + "src": "836:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -528,11 +528,11 @@ }, { "constant": false, - "id": 420, + "id": 1369, "name": "resourceType", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "867:24:2", + "scope": 1554, + "src": "867:24:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -540,10 +540,10 @@ "typeString": "uint256" }, "typeName": { - "id": 419, + "id": 1368, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "867:4:2", + "src": "867:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -554,11 +554,11 @@ }, { "constant": false, - "id": 422, + "id": 1371, "name": "resourceRate", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "898:24:2", + "scope": 1554, + "src": "898:24:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -566,10 +566,10 @@ "typeString": "uint256" }, "typeName": { - "id": 421, + "id": 1370, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "898:4:2", + "src": "898:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -580,11 +580,11 @@ }, { "constant": false, - "id": 424, + "id": 1373, "name": "totalResourceRequired", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "929:33:2", + "scope": 1554, + "src": "929:33:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -592,10 +592,10 @@ "typeString": "uint256" }, "typeName": { - "id": 423, + "id": 1372, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "929:4:2", + "src": "929:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -606,11 +606,11 @@ }, { "constant": false, - "id": 426, + "id": 1375, "name": "created", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "969:19:2", + "scope": 1554, + "src": "969:19:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -618,10 +618,10 @@ "typeString": "uint256" }, "typeName": { - "id": 425, + "id": 1374, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "969:4:2", + "src": "969:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -632,11 +632,11 @@ }, { "constant": false, - "id": 428, + "id": 1377, "name": "expiration", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "995:22:2", + "scope": 1554, + "src": "995:22:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -644,10 +644,10 @@ "typeString": "uint256" }, "typeName": { - "id": 427, + "id": 1376, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "995:4:2", + "src": "995:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -658,36 +658,36 @@ }, { "constant": false, - "id": 431, + "id": 1380, "name": "applicants", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "1056:32:2", + "scope": 1554, + "src": "1056:32:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage", "typeString": "contract JobApplicant[]" }, "typeName": { "baseType": { "contractScope": null, - "id": 429, + "id": 1378, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "1056:12:2", + "referencedDeclaration": 1326, + "src": "1056:12:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, - "id": 430, + "id": 1379, "length": null, "nodeType": "ArrayTypeName", - "src": "1056:14:2", + "src": "1056:14:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage_ptr", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage_ptr", "typeString": "contract JobApplicant[]" } }, @@ -696,26 +696,26 @@ }, { "body": { - "id": 485, + "id": 1434, "nodeType": "Block", - "src": "1537:385:2", + "src": "1537:385:4", "statements": [ { "expression": { "argumentTypes": null, - "id": 448, + "id": 1397, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 446, + "id": 1395, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 412, - "src": "1548:5:2", + "referencedDeclaration": 1361, + "src": "1548:5:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -725,43 +725,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 447, + "id": 1396, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 433, - "src": "1558:6:2", + "referencedDeclaration": 1382, + "src": "1558:6:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "1548:16:2", + "src": "1548:16:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 449, + "id": 1398, "nodeType": "ExpressionStatement", - "src": "1548:16:2" + "src": "1548:16:4" }, { "expression": { "argumentTypes": null, - "id": 453, + "id": 1402, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 450, + "id": 1399, "name": "ListingRegistry", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 414, - "src": "1575:15:2", + "referencedDeclaration": 1363, + "src": "1575:15:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -773,18 +773,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 451, + "id": 1400, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "1594:3:2", + "referencedDeclaration": 1965, + "src": "1594:3:4", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 452, + "id": 1401, "isConstant": false, "isLValue": false, "isPure": false, @@ -792,38 +792,38 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "1594:10:2", + "src": "1594:10:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "1575:29:2", + "src": "1575:29:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 454, + "id": 1403, "nodeType": "ExpressionStatement", - "src": "1575:29:2" + "src": "1575:29:4" }, { "expression": { "argumentTypes": null, - "id": 457, + "id": 1406, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 455, + "id": 1404, "name": "ipfsHash", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 416, - "src": "1647:8:2", + "referencedDeclaration": 1365, + "src": "1647:8:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -833,43 +833,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 456, + "id": 1405, "name": "_ipfsHash", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 435, - "src": "1660:9:2", + "referencedDeclaration": 1384, + "src": "1660:9:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, - "src": "1647:22:2", + "src": "1647:22:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, - "id": 458, + "id": 1407, "nodeType": "ExpressionStatement", - "src": "1647:22:2" + "src": "1647:22:4" }, { "expression": { "argumentTypes": null, - "id": 461, + "id": 1410, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 459, + "id": 1408, "name": "resourceRate", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 422, - "src": "1680:12:2", + "referencedDeclaration": 1371, + "src": "1680:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -879,43 +879,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 460, + "id": 1409, "name": "_resourceRate", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 437, - "src": "1696:13:2", + "referencedDeclaration": 1386, + "src": "1696:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1680:29:2", + "src": "1680:29:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 462, + "id": 1411, "nodeType": "ExpressionStatement", - "src": "1680:29:2" + "src": "1680:29:4" }, { "expression": { "argumentTypes": null, - "id": 465, + "id": 1414, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 463, + "id": 1412, "name": "totalResourceRequired", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 424, - "src": "1720:21:2", + "referencedDeclaration": 1373, + "src": "1720:21:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -925,43 +925,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 464, + "id": 1413, "name": "_totalResourceRequired", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 439, - "src": "1744:22:2", + "referencedDeclaration": 1388, + "src": "1744:22:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1720:46:2", + "src": "1720:46:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 466, + "id": 1415, "nodeType": "ExpressionStatement", - "src": "1720:46:2" + "src": "1720:46:4" }, { "expression": { "argumentTypes": null, - "id": 469, + "id": 1418, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 467, + "id": 1416, "name": "resourceType", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 420, - "src": "1777:12:2", + "referencedDeclaration": 1369, + "src": "1777:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -971,43 +971,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 468, + "id": 1417, "name": "_resourceType", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 441, - "src": "1793:13:2", + "referencedDeclaration": 1390, + "src": "1793:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1777:29:2", + "src": "1777:29:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 470, + "id": 1419, "nodeType": "ExpressionStatement", - "src": "1777:29:2" + "src": "1777:29:4" }, { "expression": { "argumentTypes": null, - "id": 473, + "id": 1422, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 471, + "id": 1420, "name": "workingHours", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 418, - "src": "1817:12:2", + "referencedDeclaration": 1367, + "src": "1817:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1017,43 +1017,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 472, + "id": 1421, "name": "_workingHours", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 443, - "src": "1833:13:2", + "referencedDeclaration": 1392, + "src": "1833:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1817:29:2", + "src": "1817:29:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 474, + "id": 1423, "nodeType": "ExpressionStatement", - "src": "1817:29:2" + "src": "1817:29:4" }, { "expression": { "argumentTypes": null, - "id": 477, + "id": 1426, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 475, + "id": 1424, "name": "created", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 426, - "src": "1857:7:2", + "referencedDeclaration": 1375, + "src": "1857:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1063,43 +1063,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 476, + "id": 1425, "name": "now", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 870, - "src": "1869:3:2", + "referencedDeclaration": 1967, + "src": "1869:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1857:15:2", + "src": "1857:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 478, + "id": 1427, "nodeType": "ExpressionStatement", - "src": "1857:15:2" + "src": "1857:15:4" }, { "expression": { "argumentTypes": null, - "id": 483, + "id": 1432, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 479, + "id": 1428, "name": "expiration", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 428, - "src": "1883:10:2", + "referencedDeclaration": 1377, + "src": "1883:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1113,19 +1113,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 482, + "id": 1431, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 480, + "id": 1429, "name": "created", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 426, - "src": "1897:7:2", + "referencedDeclaration": 1375, + "src": "1897:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1136,14 +1136,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3134", - "id": 481, + "id": 1430, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "1907:7:2", + "src": "1907:7:4", "subdenomination": "days", "typeDescriptions": { "typeIdentifier": "t_rational_1209600_by_1", @@ -1151,26 +1151,26 @@ }, "value": "14" }, - "src": "1897:17:2", + "src": "1897:17:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1883:31:2", + "src": "1883:31:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 484, + "id": 1433, "nodeType": "ExpressionStatement", - "src": "1883:31:2" + "src": "1883:31:4" } ] }, "documentation": null, - "id": 486, + "id": 1435, "implemented": true, "isConstructor": true, "isDeclaredConst": false, @@ -1178,16 +1178,16 @@ "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 444, + "id": 1393, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 433, + "id": 1382, "name": "_owner", "nodeType": "VariableDeclaration", - "scope": 486, - "src": "1118:14:2", + "scope": 1435, + "src": "1118:14:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1195,10 +1195,10 @@ "typeString": "address" }, "typeName": { - "id": 432, + "id": 1381, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1118:7:2", + "src": "1118:7:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1209,11 +1209,11 @@ }, { "constant": false, - "id": 435, + "id": 1384, "name": "_ipfsHash", "nodeType": "VariableDeclaration", - "scope": 486, - "src": "1141:17:2", + "scope": 1435, + "src": "1141:17:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1221,10 +1221,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 434, + "id": 1383, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "1141:7:2", + "src": "1141:7:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -1235,11 +1235,11 @@ }, { "constant": false, - "id": 437, + "id": 1386, "name": "_resourceRate", "nodeType": "VariableDeclaration", - "scope": 486, - "src": "1167:18:2", + "scope": 1435, + "src": "1167:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1247,10 +1247,10 @@ "typeString": "uint256" }, "typeName": { - "id": 436, + "id": 1385, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1167:4:2", + "src": "1167:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1261,11 +1261,11 @@ }, { "constant": false, - "id": 439, + "id": 1388, "name": "_totalResourceRequired", "nodeType": "VariableDeclaration", - "scope": 486, - "src": "1194:27:2", + "scope": 1435, + "src": "1194:27:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1273,10 +1273,10 @@ "typeString": "uint256" }, "typeName": { - "id": 438, + "id": 1387, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1194:4:2", + "src": "1194:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1287,11 +1287,11 @@ }, { "constant": false, - "id": 441, + "id": 1390, "name": "_resourceType", "nodeType": "VariableDeclaration", - "scope": 486, - "src": "1230:18:2", + "scope": 1435, + "src": "1230:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1299,10 +1299,10 @@ "typeString": "uint256" }, "typeName": { - "id": 440, + "id": 1389, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1230:4:2", + "src": "1230:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1313,11 +1313,11 @@ }, { "constant": false, - "id": 443, + "id": 1392, "name": "_workingHours", "nodeType": "VariableDeclaration", - "scope": 486, - "src": "1257:18:2", + "scope": 1435, + "src": "1257:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1325,10 +1325,10 @@ "typeString": "uint256" }, "typeName": { - "id": 442, + "id": 1391, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1257:4:2", + "src": "1257:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1338,26 +1338,26 @@ "visibility": "internal" } ], - "src": "1109:173:2" + "src": "1109:173:4" }, "payable": false, "returnParameters": { - "id": 445, + "id": 1394, "nodeType": "ParameterList", "parameters": [], - "src": "1537:0:2" + "src": "1537:0:4" }, - "scope": 605, - "src": "1097:825:2", + "scope": 1554, + "src": "1097:825:4", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 496, + "id": 1445, "nodeType": "Block", - "src": "2232:59:2", + "src": "2232:59:4", "statements": [ { "expression": { @@ -1369,7 +1369,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 492, + "id": 1441, "isConstant": false, "isLValue": false, "isPure": false, @@ -1378,18 +1378,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 489, + "id": 1438, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "2251:3:2", + "referencedDeclaration": 1965, + "src": "2251:3:4", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 490, + "id": 1439, "isConstant": false, "isLValue": false, "isPure": false, @@ -1397,7 +1397,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "2251:10:2", + "src": "2251:10:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1407,18 +1407,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 491, + "id": 1440, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 412, - "src": "2265:5:2", + "referencedDeclaration": 1361, + "src": "2265:5:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2251:19:2", + "src": "2251:19:4", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1432,21 +1432,21 @@ "typeString": "bool" } ], - "id": 488, + "id": 1437, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "2243:7:2", + "referencedDeclaration": 1968, + "src": "2243:7:4", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 493, + "id": 1442, "isConstant": false, "isLValue": false, "isPure": false, @@ -1454,41 +1454,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2243:28:2", + "src": "2243:28:4", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 494, + "id": 1443, "nodeType": "ExpressionStatement", - "src": "2243:28:2" + "src": "2243:28:4" }, { - "id": 495, + "id": 1444, "nodeType": "PlaceholderStatement", - "src": "2282:1:2" + "src": "2282:1:4" } ] }, "documentation": "/////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 497, + "id": 1446, "name": "isEmployer", "nodeType": "ModifierDefinition", "parameters": { - "id": 487, + "id": 1436, "nodeType": "ParameterList", "parameters": [], - "src": "2229:2:2" + "src": "2229:2:4" }, - "src": "2210:81:2", + "src": "2210:81:4", "visibility": "internal" }, { "body": { - "id": 526, + "id": 1475, "nodeType": "Block", - "src": "2742:129:2", + "src": "2742:129:4", "statements": [ { "expression": { @@ -1496,12 +1496,12 @@ "components": [ { "argumentTypes": null, - "id": 516, + "id": 1465, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 412, - "src": "2761:5:2", + "referencedDeclaration": 1361, + "src": "2761:5:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1509,12 +1509,12 @@ }, { "argumentTypes": null, - "id": 517, + "id": 1466, "name": "ipfsHash", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 416, - "src": "2768:8:2", + "referencedDeclaration": 1365, + "src": "2768:8:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -1522,12 +1522,12 @@ }, { "argumentTypes": null, - "id": 518, + "id": 1467, "name": "resourceRate", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 422, - "src": "2778:12:2", + "referencedDeclaration": 1371, + "src": "2778:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1535,12 +1535,12 @@ }, { "argumentTypes": null, - "id": 519, + "id": 1468, "name": "totalResourceRequired", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 424, - "src": "2792:21:2", + "referencedDeclaration": 1373, + "src": "2792:21:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1548,12 +1548,12 @@ }, { "argumentTypes": null, - "id": 520, + "id": 1469, "name": "resourceType", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 420, - "src": "2815:12:2", + "referencedDeclaration": 1369, + "src": "2815:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1561,12 +1561,12 @@ }, { "argumentTypes": null, - "id": 521, + "id": 1470, "name": "workingHours", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 418, - "src": "2829:12:2", + "referencedDeclaration": 1367, + "src": "2829:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1574,12 +1574,12 @@ }, { "argumentTypes": null, - "id": 522, + "id": 1471, "name": "created", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 426, - "src": "2843:7:2", + "referencedDeclaration": 1375, + "src": "2843:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1587,40 +1587,40 @@ }, { "argumentTypes": null, - "id": 523, + "id": 1472, "name": "expiration", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 428, - "src": "2852:10:2", + "referencedDeclaration": 1377, + "src": "2852:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], - "id": 524, + "id": 1473, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", - "src": "2760:103:2", + "src": "2760:103:4", "typeDescriptions": { "typeIdentifier": "t_tuple$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$", "typeString": "tuple(address,bytes32,uint256,uint256,uint256,uint256,uint256,uint256)" } }, - "functionReturnParameters": 515, - "id": 525, + "functionReturnParameters": 1464, + "id": 1474, "nodeType": "Return", - "src": "2753:110:2" + "src": "2753:110:4" } ] }, "documentation": "/////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 527, + "id": 1476, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -1628,23 +1628,23 @@ "name": "data", "nodeType": "FunctionDefinition", "parameters": { - "id": 498, + "id": 1447, "nodeType": "ParameterList", "parameters": [], - "src": "2543:2:2" + "src": "2543:2:4" }, "payable": false, "returnParameters": { - "id": 515, + "id": 1464, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 500, + "id": 1449, "name": "_owner", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2582:14:2", + "scope": 1476, + "src": "2582:14:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1652,10 +1652,10 @@ "typeString": "address" }, "typeName": { - "id": 499, + "id": 1448, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2582:7:2", + "src": "2582:7:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1666,11 +1666,11 @@ }, { "constant": false, - "id": 502, + "id": 1451, "name": "_ipfsHash", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2598:17:2", + "scope": 1476, + "src": "2598:17:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1678,10 +1678,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 501, + "id": 1450, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "2598:7:2", + "src": "2598:7:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -1692,11 +1692,11 @@ }, { "constant": false, - "id": 504, + "id": 1453, "name": "_resourceRate", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2617:18:2", + "scope": 1476, + "src": "2617:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1704,10 +1704,10 @@ "typeString": "uint256" }, "typeName": { - "id": 503, + "id": 1452, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2617:4:2", + "src": "2617:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1718,11 +1718,11 @@ }, { "constant": false, - "id": 506, + "id": 1455, "name": "_totalResourceRequired", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2637:27:2", + "scope": 1476, + "src": "2637:27:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1730,10 +1730,10 @@ "typeString": "uint256" }, "typeName": { - "id": 505, + "id": 1454, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2637:4:2", + "src": "2637:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1744,11 +1744,11 @@ }, { "constant": false, - "id": 508, + "id": 1457, "name": "_resourceType", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2666:18:2", + "scope": 1476, + "src": "2666:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1756,10 +1756,10 @@ "typeString": "uint256" }, "typeName": { - "id": 507, + "id": 1456, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2666:4:2", + "src": "2666:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1770,11 +1770,11 @@ }, { "constant": false, - "id": 510, + "id": 1459, "name": "_workingHours", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2685:18:2", + "scope": 1476, + "src": "2685:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1782,10 +1782,10 @@ "typeString": "uint256" }, "typeName": { - "id": 509, + "id": 1458, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2685:4:2", + "src": "2685:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1796,11 +1796,11 @@ }, { "constant": false, - "id": 512, + "id": 1461, "name": "_created", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2704:13:2", + "scope": 1476, + "src": "2704:13:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1808,10 +1808,10 @@ "typeString": "uint256" }, "typeName": { - "id": 511, + "id": 1460, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2704:4:2", + "src": "2704:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1822,11 +1822,11 @@ }, { "constant": false, - "id": 514, + "id": 1463, "name": "_expiration", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2719:16:2", + "scope": 1476, + "src": "2719:16:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1834,10 +1834,10 @@ "typeString": "uint256" }, "typeName": { - "id": 513, + "id": 1462, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2719:4:2", + "src": "2719:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1847,19 +1847,19 @@ "visibility": "internal" } ], - "src": "2581:155:2" + "src": "2581:155:4" }, - "scope": 605, - "src": "2530:341:2", + "scope": 1554, + "src": "2530:341:4", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 558, + "id": 1507, "nodeType": "Block", - "src": "3231:459:2", + "src": "3231:459:4", "statements": [ { "expression": { @@ -1871,19 +1871,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 533, + "id": 1482, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 531, + "id": 1480, "name": "now", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 870, - "src": "3303:3:2", + "referencedDeclaration": 1967, + "src": "3303:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1893,18 +1893,18 @@ "operator": "<", "rightExpression": { "argumentTypes": null, - "id": 532, + "id": 1481, "name": "expiration", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 428, - "src": "3309:10:2", + "referencedDeclaration": 1377, + "src": "3309:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "3303:16:2", + "src": "3303:16:4", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -1918,21 +1918,21 @@ "typeString": "bool" } ], - "id": 530, + "id": 1479, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "3295:7:2", + "referencedDeclaration": 1968, + "src": "3295:7:4", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 534, + "id": 1483, "isConstant": false, "isLValue": false, "isPure": false, @@ -1940,43 +1940,43 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3295:25:2", + "src": "3295:25:4", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 535, + "id": 1484, "nodeType": "ExpressionStatement", - "src": "3295:25:2" + "src": "3295:25:4" }, { "assignments": [ - 537 + 1486 ], "declarations": [ { "constant": false, - "id": 537, + "id": 1486, "name": "applicant", "nodeType": "VariableDeclaration", - "scope": 559, - "src": "3377:22:2", + "scope": 1508, + "src": "3377:22:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" }, "typeName": { "contractScope": null, - "id": 536, + "id": 1485, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "3377:12:2", + "referencedDeclaration": 1326, + "src": "3377:12:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, @@ -1984,20 +1984,20 @@ "visibility": "internal" } ], - "id": 544, + "id": 1493, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 540, + "id": 1489, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 883, - "src": "3437:4:2", + "referencedDeclaration": 1984, + "src": "3437:4:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -2005,18 +2005,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 541, + "id": 1490, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "3443:3:2", + "referencedDeclaration": 1965, + "src": "3443:3:4", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 542, + "id": 1491, "isConstant": false, "isLValue": false, "isPure": false, @@ -2024,7 +2024,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3443:10:2", + "src": "3443:10:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2034,7 +2034,7 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" }, { @@ -2044,32 +2044,32 @@ ], "expression": { "argumentTypes": null, - "id": 538, + "id": 1487, "name": "JobApplicationLibrary", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 400, - "src": "3402:21:2", + "referencedDeclaration": 1349, + "src": "3402:21:4", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_JobApplicationLibrary_$400_$", + "typeIdentifier": "t_type$_t_contract$_JobApplicationLibrary_$1349_$", "typeString": "type(library JobApplicationLibrary)" } }, - "id": 539, + "id": 1488, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "newApplicant", "nodeType": "MemberAccess", - "referencedDeclaration": 399, - "src": "3402:34:2", + "referencedDeclaration": 1348, + "src": "3402:34:4", "typeDescriptions": { - "typeIdentifier": "t_function_delegatecall_nonpayable$_t_contract$_Listing_$605_$_t_address_$returns$_t_contract$_JobApplicant_$377_$", + "typeIdentifier": "t_function_delegatecall_nonpayable$_t_contract$_Listing_$1554_$_t_address_$returns$_t_contract$_JobApplicant_$1326_$", "typeString": "function (contract Listing,address) returns (contract JobApplicant)" } }, - "id": 543, + "id": 1492, "isConstant": false, "isLValue": false, "isPure": false, @@ -2077,14 +2077,14 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3402:52:2", + "src": "3402:52:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, "nodeType": "VariableDeclarationStatement", - "src": "3377:77:2" + "src": "3377:77:4" }, { "expression": { @@ -2092,14 +2092,14 @@ "arguments": [ { "argumentTypes": null, - "id": 548, + "id": 1497, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 537, - "src": "3483:9:2", + "referencedDeclaration": 1486, + "src": "3483:9:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } } @@ -2107,24 +2107,24 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } ], "expression": { "argumentTypes": null, - "id": 545, + "id": 1494, "name": "applicants", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 431, - "src": "3467:10:2", + "referencedDeclaration": 1380, + "src": "3467:10:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage", "typeString": "contract JobApplicant[] storage ref" } }, - "id": 547, + "id": 1496, "isConstant": false, "isLValue": false, "isPure": false, @@ -2132,13 +2132,13 @@ "memberName": "push", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3467:15:2", + "src": "3467:15:4", "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_JobApplicant_$377_$returns$_t_uint256_$", + "typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_JobApplicant_$1326_$returns$_t_uint256_$", "typeString": "function (contract JobApplicant) returns (uint256)" } }, - "id": 549, + "id": 1498, "isConstant": false, "isLValue": false, "isPure": false, @@ -2146,15 +2146,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3467:26:2", + "src": "3467:26:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 550, + "id": 1499, "nodeType": "ExpressionStatement", - "src": "3467:26:2" + "src": "3467:26:4" }, { "eventCall": { @@ -2162,14 +2162,14 @@ "arguments": [ { "argumentTypes": null, - "id": 552, + "id": 1501, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 537, - "src": "3641:9:2", + "referencedDeclaration": 1486, + "src": "3641:9:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } } @@ -2177,22 +2177,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } ], - "id": 551, + "id": 1500, "name": "ListingApplied", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 408, - "src": "3626:14:2", + "referencedDeclaration": 1357, + "src": "3626:14:4", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_contract$_JobApplicant_$377_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_contract$_JobApplicant_$1326_$returns$__$", "typeString": "function (contract JobApplicant)" } }, - "id": 553, + "id": 1502, "isConstant": false, "isLValue": false, "isPure": false, @@ -2200,15 +2200,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3626:25:2", + "src": "3626:25:4", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 554, + "id": 1503, "nodeType": "EmitStatement", - "src": "3621:30:2" + "src": "3621:30:4" }, { "eventCall": { @@ -2216,18 +2216,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 555, + "id": 1504, "name": "ListingChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 410, - "src": "3667:13:2", + "referencedDeclaration": 1359, + "src": "3667:13:4", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$__$returns$__$", "typeString": "function ()" } }, - "id": 556, + "id": 1505, "isConstant": false, "isLValue": false, "isPure": false, @@ -2235,20 +2235,20 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3667:15:2", + "src": "3667:15:4", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 557, + "id": 1506, "nodeType": "EmitStatement", - "src": "3662:20:2" + "src": "3662:20:4" } ] }, "documentation": "//////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n @dev ApplyToJob()\t\t--> An applicant can apply for a Job Listing\r\n//////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 559, + "id": 1508, "implemented": true, "isConstructor": false, "isDeclaredConst": false, @@ -2256,47 +2256,47 @@ "name": "applyToJob", "nodeType": "FunctionDefinition", "parameters": { - "id": 528, + "id": 1477, "nodeType": "ParameterList", "parameters": [], - "src": "3207:2:2" + "src": "3207:2:4" }, "payable": false, "returnParameters": { - "id": 529, + "id": 1478, "nodeType": "ParameterList", "parameters": [], - "src": "3231:0:2" + "src": "3231:0:4" }, - "scope": 605, - "src": "3188:502:2", + "scope": 1554, + "src": "3188:502:4", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 567, + "id": 1516, "nodeType": "Block", - "src": "4081:43:2", + "src": "4081:43:4", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 564, + "id": 1513, "name": "applicants", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 431, - "src": "4099:10:2", + "referencedDeclaration": 1380, + "src": "4099:10:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage", "typeString": "contract JobApplicant[] storage ref" } }, - "id": 565, + "id": 1514, "isConstant": false, "isLValue": true, "isPure": false, @@ -2304,21 +2304,21 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4099:17:2", + "src": "4099:17:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 563, - "id": 566, + "functionReturnParameters": 1512, + "id": 1515, "nodeType": "Return", - "src": "4092:24:2" + "src": "4092:24:4" } ] }, "documentation": "/////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t@dev totalJobApplicants(): Return number of applicants for a given Job Listing\r\n/////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 568, + "id": 1517, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -2326,23 +2326,23 @@ "name": "totalJobApplicants", "nodeType": "FunctionDefinition", "parameters": { - "id": 560, + "id": 1509, "nodeType": "ParameterList", "parameters": [], - "src": "4021:2:2" + "src": "4021:2:4" }, "payable": false, "returnParameters": { - "id": 563, + "id": 1512, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 562, + "id": 1511, "name": "", "nodeType": "VariableDeclaration", - "scope": 568, - "src": "4070:4:2", + "scope": 1517, + "src": "4070:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2350,10 +2350,10 @@ "typeString": "uint256" }, "typeName": { - "id": 561, + "id": 1510, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "4070:4:2", + "src": "4070:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2363,19 +2363,19 @@ "visibility": "internal" } ], - "src": "4069:6:2" + "src": "4069:6:4" }, - "scope": 605, - "src": "3994:130:2", + "scope": 1554, + "src": "3994:130:4", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 580, + "id": 1529, "nodeType": "Block", - "src": "4381:68:2", + "src": "4381:68:4", "statements": [ { "expression": { @@ -2385,26 +2385,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 575, + "id": 1524, "name": "applicants", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 431, - "src": "4412:10:2", + "referencedDeclaration": 1380, + "src": "4412:10:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage", "typeString": "contract JobApplicant[] storage ref" } }, - "id": 577, + "id": 1526, "indexExpression": { "argumentTypes": null, - "id": 576, + "id": 1525, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 570, - "src": "4423:6:2", + "referencedDeclaration": 1519, + "src": "4423:6:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2415,35 +2415,35 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "4412:18:2", + "src": "4412:18:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } } ], - "id": 578, + "id": 1527, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", - "src": "4399:42:2", + "src": "4399:42:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, - "functionReturnParameters": 574, - "id": 579, + "functionReturnParameters": 1523, + "id": 1528, "nodeType": "Return", - "src": "4392:49:2" + "src": "4392:49:4" } ] }, "documentation": "@dev getApplicant(): Return Job Application info for a given Job Listing\r\n @param _index the index of the Listing we want info about\r", - "id": 581, + "id": 1530, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -2451,16 +2451,16 @@ "name": "getApplicant", "nodeType": "FunctionDefinition", "parameters": { - "id": 571, + "id": 1520, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 570, + "id": 1519, "name": "_index", "nodeType": "VariableDeclaration", - "scope": 581, - "src": "4303:11:2", + "scope": 1530, + "src": "4303:11:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2468,10 +2468,10 @@ "typeString": "uint256" }, "typeName": { - "id": 569, + "id": 1518, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "4303:4:2", + "src": "4303:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2481,35 +2481,35 @@ "visibility": "internal" } ], - "src": "4302:13:2" + "src": "4302:13:4" }, "payable": false, "returnParameters": { - "id": 574, + "id": 1523, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 573, + "id": 1522, "name": "", "nodeType": "VariableDeclaration", - "scope": 581, - "src": "4362:12:2", + "scope": 1530, + "src": "4362:12:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" }, "typeName": { "contractScope": null, - "id": 572, + "id": 1521, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "4362:12:2", + "referencedDeclaration": 1326, + "src": "4362:12:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, @@ -2517,19 +2517,19 @@ "visibility": "internal" } ], - "src": "4361:14:2" + "src": "4361:14:4" }, - "scope": 605, - "src": "4281:168:2", + "scope": 1554, + "src": "4281:168:4", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 590, + "id": 1539, "nodeType": "Block", - "src": "4549:60:2", + "src": "4549:60:4", "statements": [ { "expression": { @@ -2537,40 +2537,40 @@ "components": [ { "argumentTypes": null, - "id": 587, + "id": 1536, "name": "applicants", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 431, - "src": "4580:10:2", + "referencedDeclaration": 1380, + "src": "4580:10:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage", "typeString": "contract JobApplicant[] storage ref" } } ], - "id": 588, + "id": 1537, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", - "src": "4567:34:2", + "src": "4567:34:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage", "typeString": "contract JobApplicant[] storage ref" } }, - "functionReturnParameters": 586, - "id": 589, + "functionReturnParameters": 1535, + "id": 1538, "nodeType": "Return", - "src": "4560:41:2" + "src": "4560:41:4" } ] }, "documentation": null, - "id": 591, + "id": 1540, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -2578,48 +2578,48 @@ "name": "getApplicants", "nodeType": "FunctionDefinition", "parameters": { - "id": 582, + "id": 1531, "nodeType": "ParameterList", "parameters": [], - "src": "4479:2:2" + "src": "4479:2:4" }, "payable": false, "returnParameters": { - "id": 586, + "id": 1535, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 585, + "id": 1534, "name": "", "nodeType": "VariableDeclaration", - "scope": 591, - "src": "4528:14:2", + "scope": 1540, + "src": "4528:14:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_memory_ptr", "typeString": "contract JobApplicant[]" }, "typeName": { "baseType": { "contractScope": null, - "id": 583, + "id": 1532, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "4528:12:2", + "referencedDeclaration": 1326, + "src": "4528:12:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, - "id": 584, + "id": 1533, "length": null, "nodeType": "ArrayTypeName", - "src": "4528:14:2", + "src": "4528:14:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage_ptr", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage_ptr", "typeString": "contract JobApplicant[]" } }, @@ -2627,36 +2627,36 @@ "visibility": "internal" } ], - "src": "4527:16:2" + "src": "4527:16:4" }, - "scope": 605, - "src": "4457:152:2", + "scope": 1554, + "src": "4457:152:4", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 603, + "id": 1552, "nodeType": "Block", - "src": "5991:75:2", + "src": "5991:75:4", "statements": [ { "expression": { "argumentTypes": null, - "id": 598, + "id": 1547, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 596, + "id": 1545, "name": "totalResourceRequired", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 424, - "src": "6002:21:2", + "referencedDeclaration": 1373, + "src": "6002:21:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2667,14 +2667,14 @@ "rightHandSide": { "argumentTypes": null, "hexValue": "30", - "id": 597, + "id": 1546, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6026:1:2", + "src": "6026:1:4", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -2682,15 +2682,15 @@ }, "value": "0" }, - "src": "6002:25:2", + "src": "6002:25:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 599, + "id": 1548, "nodeType": "ExpressionStatement", - "src": "6002:25:2" + "src": "6002:25:4" }, { "eventCall": { @@ -2698,18 +2698,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 600, + "id": 1549, "name": "ListingChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 410, - "src": "6043:13:2", + "referencedDeclaration": 1359, + "src": "6043:13:4", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$__$returns$__$", "typeString": "function ()" } }, - "id": 601, + "id": 1550, "isConstant": false, "isLValue": false, "isPure": false, @@ -2717,111 +2717,111 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6043:15:2", + "src": "6043:15:4", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 602, + "id": 1551, "nodeType": "EmitStatement", - "src": "6038:20:2" + "src": "6038:20:4" } ] }, "documentation": "/////////////////////////////////////////////////////////////////////////////////////////////////////\r\n @dev close(): Allows an employer to close the Job Listing from further applicants\r\n/////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 604, + "id": 1553, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 594, + "id": 1543, "modifierName": { "argumentTypes": null, - "id": 593, + "id": 1542, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 497, - "src": "5975:10:2", + "referencedDeclaration": 1446, + "src": "5975:10:4", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "5975:10:2" + "src": "5975:10:4" } ], "name": "close", "nodeType": "FunctionDefinition", "parameters": { - "id": 592, + "id": 1541, "nodeType": "ParameterList", "parameters": [], - "src": "5947:2:2" + "src": "5947:2:4" }, "payable": false, "returnParameters": { - "id": 595, + "id": 1544, "nodeType": "ParameterList", "parameters": [], - "src": "5991:0:2" + "src": "5991:0:4" }, - "scope": 605, - "src": "5933:133:2", + "scope": 1554, + "src": "5933:133:4", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], - "scope": 606, - "src": "209:5968:2" + "scope": 1555, + "src": "209:5968:4" } ], - "src": "0:6187:2" + "src": "0:6187:4" }, "legacyAST": { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/Listing.sol", "exportedSymbols": { "Listing": [ - 605 + 1554 ] }, - "id": 606, + "id": 1555, "nodeType": "SourceUnit", "nodes": [ { - "id": 402, + "id": 1351, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", - "src": "0:23:2" + "src": "0:23:4" }, { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/JobApplicant.sol", "file": "./JobApplicant.sol", - "id": 403, + "id": 1352, "nodeType": "ImportDirective", - "scope": 606, - "sourceUnit": 378, - "src": "136:28:2", + "scope": 1555, + "sourceUnit": 1327, + "src": "136:28:4", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/JobApplicationLibrary.sol", "file": "./JobApplicationLibrary.sol", - "id": 404, + "id": 1353, "nodeType": "ImportDirective", - "scope": 606, - "sourceUnit": 401, - "src": "166:37:2", + "scope": 1555, + "sourceUnit": 1350, + "src": "166:37:4", "symbolAliases": [], "unitAlias": "" }, @@ -2831,9 +2831,9 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 605, + "id": 1554, "linearizedBaseContracts": [ - 605 + 1554 ], "name": "Listing", "nodeType": "ContractDefinition", @@ -2841,36 +2841,36 @@ { "anonymous": false, "documentation": null, - "id": 408, + "id": 1357, "name": "ListingApplied", "nodeType": "EventDefinition", "parameters": { - "id": 407, + "id": 1356, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 406, + "id": 1355, "indexed": false, "name": "_jobApplicantContract", "nodeType": "VariableDeclaration", - "scope": 408, - "src": "284:34:2", + "scope": 1357, + "src": "284:34:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" }, "typeName": { "contractScope": null, - "id": 405, + "id": 1354, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "284:12:2", + "referencedDeclaration": 1326, + "src": "284:12:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, @@ -2878,31 +2878,31 @@ "visibility": "internal" } ], - "src": "283:36:2" + "src": "283:36:4" }, - "src": "263:57:2" + "src": "263:57:4" }, { "anonymous": false, "documentation": null, - "id": 410, + "id": 1359, "name": "ListingChange", "nodeType": "EventDefinition", "parameters": { - "id": 409, + "id": 1358, "nodeType": "ParameterList", "parameters": [], - "src": "345:2:2" + "src": "345:2:4" }, - "src": "326:22:2" + "src": "326:22:4" }, { "constant": false, - "id": 412, + "id": 1361, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "471:20:2", + "scope": 1554, + "src": "471:20:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2910,10 +2910,10 @@ "typeString": "address" }, "typeName": { - "id": 411, + "id": 1360, "name": "address", "nodeType": "ElementaryTypeName", - "src": "471:7:2", + "src": "471:7:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2924,11 +2924,11 @@ }, { "constant": false, - "id": 414, + "id": 1363, "name": "ListingRegistry", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "498:30:2", + "scope": 1554, + "src": "498:30:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2936,10 +2936,10 @@ "typeString": "address" }, "typeName": { - "id": 413, + "id": 1362, "name": "address", "nodeType": "ElementaryTypeName", - "src": "498:7:2", + "src": "498:7:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2950,11 +2950,11 @@ }, { "constant": false, - "id": 416, + "id": 1365, "name": "ipfsHash", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "806:23:2", + "scope": 1554, + "src": "806:23:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2962,10 +2962,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 415, + "id": 1364, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "806:7:2", + "src": "806:7:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -2976,11 +2976,11 @@ }, { "constant": false, - "id": 418, + "id": 1367, "name": "workingHours", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "836:24:2", + "scope": 1554, + "src": "836:24:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -2988,10 +2988,10 @@ "typeString": "uint256" }, "typeName": { - "id": 417, + "id": 1366, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "836:4:2", + "src": "836:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3002,11 +3002,11 @@ }, { "constant": false, - "id": 420, + "id": 1369, "name": "resourceType", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "867:24:2", + "scope": 1554, + "src": "867:24:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -3014,10 +3014,10 @@ "typeString": "uint256" }, "typeName": { - "id": 419, + "id": 1368, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "867:4:2", + "src": "867:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3028,11 +3028,11 @@ }, { "constant": false, - "id": 422, + "id": 1371, "name": "resourceRate", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "898:24:2", + "scope": 1554, + "src": "898:24:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -3040,10 +3040,10 @@ "typeString": "uint256" }, "typeName": { - "id": 421, + "id": 1370, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "898:4:2", + "src": "898:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3054,11 +3054,11 @@ }, { "constant": false, - "id": 424, + "id": 1373, "name": "totalResourceRequired", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "929:33:2", + "scope": 1554, + "src": "929:33:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -3066,10 +3066,10 @@ "typeString": "uint256" }, "typeName": { - "id": 423, + "id": 1372, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "929:4:2", + "src": "929:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3080,11 +3080,11 @@ }, { "constant": false, - "id": 426, + "id": 1375, "name": "created", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "969:19:2", + "scope": 1554, + "src": "969:19:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -3092,10 +3092,10 @@ "typeString": "uint256" }, "typeName": { - "id": 425, + "id": 1374, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "969:4:2", + "src": "969:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3106,11 +3106,11 @@ }, { "constant": false, - "id": 428, + "id": 1377, "name": "expiration", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "995:22:2", + "scope": 1554, + "src": "995:22:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -3118,10 +3118,10 @@ "typeString": "uint256" }, "typeName": { - "id": 427, + "id": 1376, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "995:4:2", + "src": "995:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3132,36 +3132,36 @@ }, { "constant": false, - "id": 431, + "id": 1380, "name": "applicants", "nodeType": "VariableDeclaration", - "scope": 605, - "src": "1056:32:2", + "scope": 1554, + "src": "1056:32:4", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage", "typeString": "contract JobApplicant[]" }, "typeName": { "baseType": { "contractScope": null, - "id": 429, + "id": 1378, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "1056:12:2", + "referencedDeclaration": 1326, + "src": "1056:12:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, - "id": 430, + "id": 1379, "length": null, "nodeType": "ArrayTypeName", - "src": "1056:14:2", + "src": "1056:14:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage_ptr", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage_ptr", "typeString": "contract JobApplicant[]" } }, @@ -3170,26 +3170,26 @@ }, { "body": { - "id": 485, + "id": 1434, "nodeType": "Block", - "src": "1537:385:2", + "src": "1537:385:4", "statements": [ { "expression": { "argumentTypes": null, - "id": 448, + "id": 1397, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 446, + "id": 1395, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 412, - "src": "1548:5:2", + "referencedDeclaration": 1361, + "src": "1548:5:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3199,43 +3199,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 447, + "id": 1396, "name": "_owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 433, - "src": "1558:6:2", + "referencedDeclaration": 1382, + "src": "1558:6:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "1548:16:2", + "src": "1548:16:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 449, + "id": 1398, "nodeType": "ExpressionStatement", - "src": "1548:16:2" + "src": "1548:16:4" }, { "expression": { "argumentTypes": null, - "id": 453, + "id": 1402, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 450, + "id": 1399, "name": "ListingRegistry", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 414, - "src": "1575:15:2", + "referencedDeclaration": 1363, + "src": "1575:15:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3247,18 +3247,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 451, + "id": 1400, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "1594:3:2", + "referencedDeclaration": 1965, + "src": "1594:3:4", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 452, + "id": 1401, "isConstant": false, "isLValue": false, "isPure": false, @@ -3266,38 +3266,38 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "1594:10:2", + "src": "1594:10:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "1575:29:2", + "src": "1575:29:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 454, + "id": 1403, "nodeType": "ExpressionStatement", - "src": "1575:29:2" + "src": "1575:29:4" }, { "expression": { "argumentTypes": null, - "id": 457, + "id": 1406, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 455, + "id": 1404, "name": "ipfsHash", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 416, - "src": "1647:8:2", + "referencedDeclaration": 1365, + "src": "1647:8:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -3307,43 +3307,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 456, + "id": 1405, "name": "_ipfsHash", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 435, - "src": "1660:9:2", + "referencedDeclaration": 1384, + "src": "1660:9:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, - "src": "1647:22:2", + "src": "1647:22:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, - "id": 458, + "id": 1407, "nodeType": "ExpressionStatement", - "src": "1647:22:2" + "src": "1647:22:4" }, { "expression": { "argumentTypes": null, - "id": 461, + "id": 1410, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 459, + "id": 1408, "name": "resourceRate", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 422, - "src": "1680:12:2", + "referencedDeclaration": 1371, + "src": "1680:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3353,43 +3353,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 460, + "id": 1409, "name": "_resourceRate", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 437, - "src": "1696:13:2", + "referencedDeclaration": 1386, + "src": "1696:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1680:29:2", + "src": "1680:29:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 462, + "id": 1411, "nodeType": "ExpressionStatement", - "src": "1680:29:2" + "src": "1680:29:4" }, { "expression": { "argumentTypes": null, - "id": 465, + "id": 1414, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 463, + "id": 1412, "name": "totalResourceRequired", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 424, - "src": "1720:21:2", + "referencedDeclaration": 1373, + "src": "1720:21:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3399,43 +3399,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 464, + "id": 1413, "name": "_totalResourceRequired", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 439, - "src": "1744:22:2", + "referencedDeclaration": 1388, + "src": "1744:22:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1720:46:2", + "src": "1720:46:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 466, + "id": 1415, "nodeType": "ExpressionStatement", - "src": "1720:46:2" + "src": "1720:46:4" }, { "expression": { "argumentTypes": null, - "id": 469, + "id": 1418, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 467, + "id": 1416, "name": "resourceType", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 420, - "src": "1777:12:2", + "referencedDeclaration": 1369, + "src": "1777:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3445,43 +3445,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 468, + "id": 1417, "name": "_resourceType", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 441, - "src": "1793:13:2", + "referencedDeclaration": 1390, + "src": "1793:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1777:29:2", + "src": "1777:29:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 470, + "id": 1419, "nodeType": "ExpressionStatement", - "src": "1777:29:2" + "src": "1777:29:4" }, { "expression": { "argumentTypes": null, - "id": 473, + "id": 1422, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 471, + "id": 1420, "name": "workingHours", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 418, - "src": "1817:12:2", + "referencedDeclaration": 1367, + "src": "1817:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3491,43 +3491,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 472, + "id": 1421, "name": "_workingHours", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 443, - "src": "1833:13:2", + "referencedDeclaration": 1392, + "src": "1833:13:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1817:29:2", + "src": "1817:29:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 474, + "id": 1423, "nodeType": "ExpressionStatement", - "src": "1817:29:2" + "src": "1817:29:4" }, { "expression": { "argumentTypes": null, - "id": 477, + "id": 1426, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 475, + "id": 1424, "name": "created", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 426, - "src": "1857:7:2", + "referencedDeclaration": 1375, + "src": "1857:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3537,43 +3537,43 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 476, + "id": 1425, "name": "now", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 870, - "src": "1869:3:2", + "referencedDeclaration": 1967, + "src": "1869:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1857:15:2", + "src": "1857:15:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 478, + "id": 1427, "nodeType": "ExpressionStatement", - "src": "1857:15:2" + "src": "1857:15:4" }, { "expression": { "argumentTypes": null, - "id": 483, + "id": 1432, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 479, + "id": 1428, "name": "expiration", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 428, - "src": "1883:10:2", + "referencedDeclaration": 1377, + "src": "1883:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3587,19 +3587,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 482, + "id": 1431, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 480, + "id": 1429, "name": "created", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 426, - "src": "1897:7:2", + "referencedDeclaration": 1375, + "src": "1897:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3610,14 +3610,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "3134", - "id": 481, + "id": 1430, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "1907:7:2", + "src": "1907:7:4", "subdenomination": "days", "typeDescriptions": { "typeIdentifier": "t_rational_1209600_by_1", @@ -3625,26 +3625,26 @@ }, "value": "14" }, - "src": "1897:17:2", + "src": "1897:17:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1883:31:2", + "src": "1883:31:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 484, + "id": 1433, "nodeType": "ExpressionStatement", - "src": "1883:31:2" + "src": "1883:31:4" } ] }, "documentation": null, - "id": 486, + "id": 1435, "implemented": true, "isConstructor": true, "isDeclaredConst": false, @@ -3652,16 +3652,16 @@ "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 444, + "id": 1393, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 433, + "id": 1382, "name": "_owner", "nodeType": "VariableDeclaration", - "scope": 486, - "src": "1118:14:2", + "scope": 1435, + "src": "1118:14:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3669,10 +3669,10 @@ "typeString": "address" }, "typeName": { - "id": 432, + "id": 1381, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1118:7:2", + "src": "1118:7:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3683,11 +3683,11 @@ }, { "constant": false, - "id": 435, + "id": 1384, "name": "_ipfsHash", "nodeType": "VariableDeclaration", - "scope": 486, - "src": "1141:17:2", + "scope": 1435, + "src": "1141:17:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3695,10 +3695,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 434, + "id": 1383, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "1141:7:2", + "src": "1141:7:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -3709,11 +3709,11 @@ }, { "constant": false, - "id": 437, + "id": 1386, "name": "_resourceRate", "nodeType": "VariableDeclaration", - "scope": 486, - "src": "1167:18:2", + "scope": 1435, + "src": "1167:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3721,10 +3721,10 @@ "typeString": "uint256" }, "typeName": { - "id": 436, + "id": 1385, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1167:4:2", + "src": "1167:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3735,11 +3735,11 @@ }, { "constant": false, - "id": 439, + "id": 1388, "name": "_totalResourceRequired", "nodeType": "VariableDeclaration", - "scope": 486, - "src": "1194:27:2", + "scope": 1435, + "src": "1194:27:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3747,10 +3747,10 @@ "typeString": "uint256" }, "typeName": { - "id": 438, + "id": 1387, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1194:4:2", + "src": "1194:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3761,11 +3761,11 @@ }, { "constant": false, - "id": 441, + "id": 1390, "name": "_resourceType", "nodeType": "VariableDeclaration", - "scope": 486, - "src": "1230:18:2", + "scope": 1435, + "src": "1230:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3773,10 +3773,10 @@ "typeString": "uint256" }, "typeName": { - "id": 440, + "id": 1389, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1230:4:2", + "src": "1230:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3787,11 +3787,11 @@ }, { "constant": false, - "id": 443, + "id": 1392, "name": "_workingHours", "nodeType": "VariableDeclaration", - "scope": 486, - "src": "1257:18:2", + "scope": 1435, + "src": "1257:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3799,10 +3799,10 @@ "typeString": "uint256" }, "typeName": { - "id": 442, + "id": 1391, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1257:4:2", + "src": "1257:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3812,26 +3812,26 @@ "visibility": "internal" } ], - "src": "1109:173:2" + "src": "1109:173:4" }, "payable": false, "returnParameters": { - "id": 445, + "id": 1394, "nodeType": "ParameterList", "parameters": [], - "src": "1537:0:2" + "src": "1537:0:4" }, - "scope": 605, - "src": "1097:825:2", + "scope": 1554, + "src": "1097:825:4", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 496, + "id": 1445, "nodeType": "Block", - "src": "2232:59:2", + "src": "2232:59:4", "statements": [ { "expression": { @@ -3843,7 +3843,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 492, + "id": 1441, "isConstant": false, "isLValue": false, "isPure": false, @@ -3852,18 +3852,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 489, + "id": 1438, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "2251:3:2", + "referencedDeclaration": 1965, + "src": "2251:3:4", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 490, + "id": 1439, "isConstant": false, "isLValue": false, "isPure": false, @@ -3871,7 +3871,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "2251:10:2", + "src": "2251:10:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3881,18 +3881,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 491, + "id": 1440, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 412, - "src": "2265:5:2", + "referencedDeclaration": 1361, + "src": "2265:5:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "2251:19:2", + "src": "2251:19:4", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -3906,21 +3906,21 @@ "typeString": "bool" } ], - "id": 488, + "id": 1437, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "2243:7:2", + "referencedDeclaration": 1968, + "src": "2243:7:4", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 493, + "id": 1442, "isConstant": false, "isLValue": false, "isPure": false, @@ -3928,41 +3928,41 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2243:28:2", + "src": "2243:28:4", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 494, + "id": 1443, "nodeType": "ExpressionStatement", - "src": "2243:28:2" + "src": "2243:28:4" }, { - "id": 495, + "id": 1444, "nodeType": "PlaceholderStatement", - "src": "2282:1:2" + "src": "2282:1:4" } ] }, "documentation": "/////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 497, + "id": 1446, "name": "isEmployer", "nodeType": "ModifierDefinition", "parameters": { - "id": 487, + "id": 1436, "nodeType": "ParameterList", "parameters": [], - "src": "2229:2:2" + "src": "2229:2:4" }, - "src": "2210:81:2", + "src": "2210:81:4", "visibility": "internal" }, { "body": { - "id": 526, + "id": 1475, "nodeType": "Block", - "src": "2742:129:2", + "src": "2742:129:4", "statements": [ { "expression": { @@ -3970,12 +3970,12 @@ "components": [ { "argumentTypes": null, - "id": 516, + "id": 1465, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 412, - "src": "2761:5:2", + "referencedDeclaration": 1361, + "src": "2761:5:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3983,12 +3983,12 @@ }, { "argumentTypes": null, - "id": 517, + "id": 1466, "name": "ipfsHash", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 416, - "src": "2768:8:2", + "referencedDeclaration": 1365, + "src": "2768:8:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -3996,12 +3996,12 @@ }, { "argumentTypes": null, - "id": 518, + "id": 1467, "name": "resourceRate", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 422, - "src": "2778:12:2", + "referencedDeclaration": 1371, + "src": "2778:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4009,12 +4009,12 @@ }, { "argumentTypes": null, - "id": 519, + "id": 1468, "name": "totalResourceRequired", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 424, - "src": "2792:21:2", + "referencedDeclaration": 1373, + "src": "2792:21:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4022,12 +4022,12 @@ }, { "argumentTypes": null, - "id": 520, + "id": 1469, "name": "resourceType", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 420, - "src": "2815:12:2", + "referencedDeclaration": 1369, + "src": "2815:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4035,12 +4035,12 @@ }, { "argumentTypes": null, - "id": 521, + "id": 1470, "name": "workingHours", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 418, - "src": "2829:12:2", + "referencedDeclaration": 1367, + "src": "2829:12:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4048,12 +4048,12 @@ }, { "argumentTypes": null, - "id": 522, + "id": 1471, "name": "created", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 426, - "src": "2843:7:2", + "referencedDeclaration": 1375, + "src": "2843:7:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4061,40 +4061,40 @@ }, { "argumentTypes": null, - "id": 523, + "id": 1472, "name": "expiration", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 428, - "src": "2852:10:2", + "referencedDeclaration": 1377, + "src": "2852:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], - "id": 524, + "id": 1473, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", - "src": "2760:103:2", + "src": "2760:103:4", "typeDescriptions": { "typeIdentifier": "t_tuple$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$", "typeString": "tuple(address,bytes32,uint256,uint256,uint256,uint256,uint256,uint256)" } }, - "functionReturnParameters": 515, - "id": 525, + "functionReturnParameters": 1464, + "id": 1474, "nodeType": "Return", - "src": "2753:110:2" + "src": "2753:110:4" } ] }, "documentation": "/////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 527, + "id": 1476, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -4102,23 +4102,23 @@ "name": "data", "nodeType": "FunctionDefinition", "parameters": { - "id": 498, + "id": 1447, "nodeType": "ParameterList", "parameters": [], - "src": "2543:2:2" + "src": "2543:2:4" }, "payable": false, "returnParameters": { - "id": 515, + "id": 1464, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 500, + "id": 1449, "name": "_owner", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2582:14:2", + "scope": 1476, + "src": "2582:14:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4126,10 +4126,10 @@ "typeString": "address" }, "typeName": { - "id": 499, + "id": 1448, "name": "address", "nodeType": "ElementaryTypeName", - "src": "2582:7:2", + "src": "2582:7:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4140,11 +4140,11 @@ }, { "constant": false, - "id": 502, + "id": 1451, "name": "_ipfsHash", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2598:17:2", + "scope": 1476, + "src": "2598:17:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4152,10 +4152,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 501, + "id": 1450, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "2598:7:2", + "src": "2598:7:4", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -4166,11 +4166,11 @@ }, { "constant": false, - "id": 504, + "id": 1453, "name": "_resourceRate", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2617:18:2", + "scope": 1476, + "src": "2617:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4178,10 +4178,10 @@ "typeString": "uint256" }, "typeName": { - "id": 503, + "id": 1452, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2617:4:2", + "src": "2617:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4192,11 +4192,11 @@ }, { "constant": false, - "id": 506, + "id": 1455, "name": "_totalResourceRequired", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2637:27:2", + "scope": 1476, + "src": "2637:27:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4204,10 +4204,10 @@ "typeString": "uint256" }, "typeName": { - "id": 505, + "id": 1454, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2637:4:2", + "src": "2637:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4218,11 +4218,11 @@ }, { "constant": false, - "id": 508, + "id": 1457, "name": "_resourceType", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2666:18:2", + "scope": 1476, + "src": "2666:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4230,10 +4230,10 @@ "typeString": "uint256" }, "typeName": { - "id": 507, + "id": 1456, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2666:4:2", + "src": "2666:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4244,11 +4244,11 @@ }, { "constant": false, - "id": 510, + "id": 1459, "name": "_workingHours", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2685:18:2", + "scope": 1476, + "src": "2685:18:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4256,10 +4256,10 @@ "typeString": "uint256" }, "typeName": { - "id": 509, + "id": 1458, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2685:4:2", + "src": "2685:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4270,11 +4270,11 @@ }, { "constant": false, - "id": 512, + "id": 1461, "name": "_created", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2704:13:2", + "scope": 1476, + "src": "2704:13:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4282,10 +4282,10 @@ "typeString": "uint256" }, "typeName": { - "id": 511, + "id": 1460, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2704:4:2", + "src": "2704:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4296,11 +4296,11 @@ }, { "constant": false, - "id": 514, + "id": 1463, "name": "_expiration", "nodeType": "VariableDeclaration", - "scope": 527, - "src": "2719:16:2", + "scope": 1476, + "src": "2719:16:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4308,10 +4308,10 @@ "typeString": "uint256" }, "typeName": { - "id": 513, + "id": 1462, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2719:4:2", + "src": "2719:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4321,19 +4321,19 @@ "visibility": "internal" } ], - "src": "2581:155:2" + "src": "2581:155:4" }, - "scope": 605, - "src": "2530:341:2", + "scope": 1554, + "src": "2530:341:4", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 558, + "id": 1507, "nodeType": "Block", - "src": "3231:459:2", + "src": "3231:459:4", "statements": [ { "expression": { @@ -4345,19 +4345,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 533, + "id": 1482, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 531, + "id": 1480, "name": "now", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 870, - "src": "3303:3:2", + "referencedDeclaration": 1967, + "src": "3303:3:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4367,18 +4367,18 @@ "operator": "<", "rightExpression": { "argumentTypes": null, - "id": 532, + "id": 1481, "name": "expiration", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 428, - "src": "3309:10:2", + "referencedDeclaration": 1377, + "src": "3309:10:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "3303:16:2", + "src": "3303:16:4", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -4392,21 +4392,21 @@ "typeString": "bool" } ], - "id": 530, + "id": 1479, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 871, - "src": "3295:7:2", + "referencedDeclaration": 1968, + "src": "3295:7:4", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", "typeString": "function (bool) pure" } }, - "id": 534, + "id": 1483, "isConstant": false, "isLValue": false, "isPure": false, @@ -4414,43 +4414,43 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3295:25:2", + "src": "3295:25:4", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 535, + "id": 1484, "nodeType": "ExpressionStatement", - "src": "3295:25:2" + "src": "3295:25:4" }, { "assignments": [ - 537 + 1486 ], "declarations": [ { "constant": false, - "id": 537, + "id": 1486, "name": "applicant", "nodeType": "VariableDeclaration", - "scope": 559, - "src": "3377:22:2", + "scope": 1508, + "src": "3377:22:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" }, "typeName": { "contractScope": null, - "id": 536, + "id": 1485, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "3377:12:2", + "referencedDeclaration": 1326, + "src": "3377:12:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, @@ -4458,20 +4458,20 @@ "visibility": "internal" } ], - "id": 544, + "id": 1493, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 540, + "id": 1489, "name": "this", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 883, - "src": "3437:4:2", + "referencedDeclaration": 1984, + "src": "3437:4:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -4479,18 +4479,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 541, + "id": 1490, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "3443:3:2", + "referencedDeclaration": 1965, + "src": "3443:3:4", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 542, + "id": 1491, "isConstant": false, "isLValue": false, "isPure": false, @@ -4498,7 +4498,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3443:10:2", + "src": "3443:10:4", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4508,7 +4508,7 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" }, { @@ -4518,32 +4518,32 @@ ], "expression": { "argumentTypes": null, - "id": 538, + "id": 1487, "name": "JobApplicationLibrary", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 400, - "src": "3402:21:2", + "referencedDeclaration": 1349, + "src": "3402:21:4", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_JobApplicationLibrary_$400_$", + "typeIdentifier": "t_type$_t_contract$_JobApplicationLibrary_$1349_$", "typeString": "type(library JobApplicationLibrary)" } }, - "id": 539, + "id": 1488, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "newApplicant", "nodeType": "MemberAccess", - "referencedDeclaration": 399, - "src": "3402:34:2", + "referencedDeclaration": 1348, + "src": "3402:34:4", "typeDescriptions": { - "typeIdentifier": "t_function_delegatecall_nonpayable$_t_contract$_Listing_$605_$_t_address_$returns$_t_contract$_JobApplicant_$377_$", + "typeIdentifier": "t_function_delegatecall_nonpayable$_t_contract$_Listing_$1554_$_t_address_$returns$_t_contract$_JobApplicant_$1326_$", "typeString": "function (contract Listing,address) returns (contract JobApplicant)" } }, - "id": 543, + "id": 1492, "isConstant": false, "isLValue": false, "isPure": false, @@ -4551,14 +4551,14 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3402:52:2", + "src": "3402:52:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, "nodeType": "VariableDeclarationStatement", - "src": "3377:77:2" + "src": "3377:77:4" }, { "expression": { @@ -4566,14 +4566,14 @@ "arguments": [ { "argumentTypes": null, - "id": 548, + "id": 1497, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 537, - "src": "3483:9:2", + "referencedDeclaration": 1486, + "src": "3483:9:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } } @@ -4581,24 +4581,24 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } ], "expression": { "argumentTypes": null, - "id": 545, + "id": 1494, "name": "applicants", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 431, - "src": "3467:10:2", + "referencedDeclaration": 1380, + "src": "3467:10:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage", "typeString": "contract JobApplicant[] storage ref" } }, - "id": 547, + "id": 1496, "isConstant": false, "isLValue": false, "isPure": false, @@ -4606,13 +4606,13 @@ "memberName": "push", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3467:15:2", + "src": "3467:15:4", "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_JobApplicant_$377_$returns$_t_uint256_$", + "typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_JobApplicant_$1326_$returns$_t_uint256_$", "typeString": "function (contract JobApplicant) returns (uint256)" } }, - "id": 549, + "id": 1498, "isConstant": false, "isLValue": false, "isPure": false, @@ -4620,15 +4620,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3467:26:2", + "src": "3467:26:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 550, + "id": 1499, "nodeType": "ExpressionStatement", - "src": "3467:26:2" + "src": "3467:26:4" }, { "eventCall": { @@ -4636,14 +4636,14 @@ "arguments": [ { "argumentTypes": null, - "id": 552, + "id": 1501, "name": "applicant", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 537, - "src": "3641:9:2", + "referencedDeclaration": 1486, + "src": "3641:9:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } } @@ -4651,22 +4651,22 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } ], - "id": 551, + "id": 1500, "name": "ListingApplied", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 408, - "src": "3626:14:2", + "referencedDeclaration": 1357, + "src": "3626:14:4", "typeDescriptions": { - "typeIdentifier": "t_function_event_nonpayable$_t_contract$_JobApplicant_$377_$returns$__$", + "typeIdentifier": "t_function_event_nonpayable$_t_contract$_JobApplicant_$1326_$returns$__$", "typeString": "function (contract JobApplicant)" } }, - "id": 553, + "id": 1502, "isConstant": false, "isLValue": false, "isPure": false, @@ -4674,15 +4674,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3626:25:2", + "src": "3626:25:4", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 554, + "id": 1503, "nodeType": "EmitStatement", - "src": "3621:30:2" + "src": "3621:30:4" }, { "eventCall": { @@ -4690,18 +4690,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 555, + "id": 1504, "name": "ListingChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 410, - "src": "3667:13:2", + "referencedDeclaration": 1359, + "src": "3667:13:4", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$__$returns$__$", "typeString": "function ()" } }, - "id": 556, + "id": 1505, "isConstant": false, "isLValue": false, "isPure": false, @@ -4709,20 +4709,20 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3667:15:2", + "src": "3667:15:4", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 557, + "id": 1506, "nodeType": "EmitStatement", - "src": "3662:20:2" + "src": "3662:20:4" } ] }, "documentation": "//////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r\n @dev ApplyToJob()\t\t--> An applicant can apply for a Job Listing\r\n//////////////////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 559, + "id": 1508, "implemented": true, "isConstructor": false, "isDeclaredConst": false, @@ -4730,47 +4730,47 @@ "name": "applyToJob", "nodeType": "FunctionDefinition", "parameters": { - "id": 528, + "id": 1477, "nodeType": "ParameterList", "parameters": [], - "src": "3207:2:2" + "src": "3207:2:4" }, "payable": false, "returnParameters": { - "id": 529, + "id": 1478, "nodeType": "ParameterList", "parameters": [], - "src": "3231:0:2" + "src": "3231:0:4" }, - "scope": 605, - "src": "3188:502:2", + "scope": 1554, + "src": "3188:502:4", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 567, + "id": 1516, "nodeType": "Block", - "src": "4081:43:2", + "src": "4081:43:4", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 564, + "id": 1513, "name": "applicants", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 431, - "src": "4099:10:2", + "referencedDeclaration": 1380, + "src": "4099:10:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage", "typeString": "contract JobApplicant[] storage ref" } }, - "id": 565, + "id": 1514, "isConstant": false, "isLValue": true, "isPure": false, @@ -4778,21 +4778,21 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4099:17:2", + "src": "4099:17:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 563, - "id": 566, + "functionReturnParameters": 1512, + "id": 1515, "nodeType": "Return", - "src": "4092:24:2" + "src": "4092:24:4" } ] }, "documentation": "/////////////////////////////////////////////////////////////////////////////////////////////////////\r\n\t@dev totalJobApplicants(): Return number of applicants for a given Job Listing\r\n/////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 568, + "id": 1517, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -4800,23 +4800,23 @@ "name": "totalJobApplicants", "nodeType": "FunctionDefinition", "parameters": { - "id": 560, + "id": 1509, "nodeType": "ParameterList", "parameters": [], - "src": "4021:2:2" + "src": "4021:2:4" }, "payable": false, "returnParameters": { - "id": 563, + "id": 1512, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 562, + "id": 1511, "name": "", "nodeType": "VariableDeclaration", - "scope": 568, - "src": "4070:4:2", + "scope": 1517, + "src": "4070:4:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4824,10 +4824,10 @@ "typeString": "uint256" }, "typeName": { - "id": 561, + "id": 1510, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "4070:4:2", + "src": "4070:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4837,19 +4837,19 @@ "visibility": "internal" } ], - "src": "4069:6:2" + "src": "4069:6:4" }, - "scope": 605, - "src": "3994:130:2", + "scope": 1554, + "src": "3994:130:4", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 580, + "id": 1529, "nodeType": "Block", - "src": "4381:68:2", + "src": "4381:68:4", "statements": [ { "expression": { @@ -4859,26 +4859,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 575, + "id": 1524, "name": "applicants", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 431, - "src": "4412:10:2", + "referencedDeclaration": 1380, + "src": "4412:10:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage", "typeString": "contract JobApplicant[] storage ref" } }, - "id": 577, + "id": 1526, "indexExpression": { "argumentTypes": null, - "id": 576, + "id": 1525, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 570, - "src": "4423:6:2", + "referencedDeclaration": 1519, + "src": "4423:6:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4889,35 +4889,35 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "4412:18:2", + "src": "4412:18:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } } ], - "id": 578, + "id": 1527, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", - "src": "4399:42:2", + "src": "4399:42:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, - "functionReturnParameters": 574, - "id": 579, + "functionReturnParameters": 1523, + "id": 1528, "nodeType": "Return", - "src": "4392:49:2" + "src": "4392:49:4" } ] }, "documentation": "@dev getApplicant(): Return Job Application info for a given Job Listing\r\n @param _index the index of the Listing we want info about\r", - "id": 581, + "id": 1530, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -4925,16 +4925,16 @@ "name": "getApplicant", "nodeType": "FunctionDefinition", "parameters": { - "id": 571, + "id": 1520, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 570, + "id": 1519, "name": "_index", "nodeType": "VariableDeclaration", - "scope": 581, - "src": "4303:11:2", + "scope": 1530, + "src": "4303:11:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4942,10 +4942,10 @@ "typeString": "uint256" }, "typeName": { - "id": 569, + "id": 1518, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "4303:4:2", + "src": "4303:4:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4955,35 +4955,35 @@ "visibility": "internal" } ], - "src": "4302:13:2" + "src": "4302:13:4" }, "payable": false, "returnParameters": { - "id": 574, + "id": 1523, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 573, + "id": 1522, "name": "", "nodeType": "VariableDeclaration", - "scope": 581, - "src": "4362:12:2", + "scope": 1530, + "src": "4362:12:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" }, "typeName": { "contractScope": null, - "id": 572, + "id": 1521, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "4362:12:2", + "referencedDeclaration": 1326, + "src": "4362:12:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, @@ -4991,19 +4991,19 @@ "visibility": "internal" } ], - "src": "4361:14:2" + "src": "4361:14:4" }, - "scope": 605, - "src": "4281:168:2", + "scope": 1554, + "src": "4281:168:4", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 590, + "id": 1539, "nodeType": "Block", - "src": "4549:60:2", + "src": "4549:60:4", "statements": [ { "expression": { @@ -5011,40 +5011,40 @@ "components": [ { "argumentTypes": null, - "id": 587, + "id": 1536, "name": "applicants", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 431, - "src": "4580:10:2", + "referencedDeclaration": 1380, + "src": "4580:10:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage", "typeString": "contract JobApplicant[] storage ref" } } ], - "id": 588, + "id": 1537, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", - "src": "4567:34:2", + "src": "4567:34:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage", "typeString": "contract JobApplicant[] storage ref" } }, - "functionReturnParameters": 586, - "id": 589, + "functionReturnParameters": 1535, + "id": 1538, "nodeType": "Return", - "src": "4560:41:2" + "src": "4560:41:4" } ] }, "documentation": null, - "id": 591, + "id": 1540, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -5052,48 +5052,48 @@ "name": "getApplicants", "nodeType": "FunctionDefinition", "parameters": { - "id": 582, + "id": 1531, "nodeType": "ParameterList", "parameters": [], - "src": "4479:2:2" + "src": "4479:2:4" }, "payable": false, "returnParameters": { - "id": 586, + "id": 1535, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 585, + "id": 1534, "name": "", "nodeType": "VariableDeclaration", - "scope": 591, - "src": "4528:14:2", + "scope": 1540, + "src": "4528:14:4", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_memory_ptr", "typeString": "contract JobApplicant[]" }, "typeName": { "baseType": { "contractScope": null, - "id": 583, + "id": 1532, "name": "JobApplicant", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 377, - "src": "4528:12:2", + "referencedDeclaration": 1326, + "src": "4528:12:4", "typeDescriptions": { - "typeIdentifier": "t_contract$_JobApplicant_$377", + "typeIdentifier": "t_contract$_JobApplicant_$1326", "typeString": "contract JobApplicant" } }, - "id": 584, + "id": 1533, "length": null, "nodeType": "ArrayTypeName", - "src": "4528:14:2", + "src": "4528:14:4", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_JobApplicant_$377_$dyn_storage_ptr", + "typeIdentifier": "t_array$_t_contract$_JobApplicant_$1326_$dyn_storage_ptr", "typeString": "contract JobApplicant[]" } }, @@ -5101,36 +5101,36 @@ "visibility": "internal" } ], - "src": "4527:16:2" + "src": "4527:16:4" }, - "scope": 605, - "src": "4457:152:2", + "scope": 1554, + "src": "4457:152:4", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 603, + "id": 1552, "nodeType": "Block", - "src": "5991:75:2", + "src": "5991:75:4", "statements": [ { "expression": { "argumentTypes": null, - "id": 598, + "id": 1547, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 596, + "id": 1545, "name": "totalResourceRequired", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 424, - "src": "6002:21:2", + "referencedDeclaration": 1373, + "src": "6002:21:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5141,14 +5141,14 @@ "rightHandSide": { "argumentTypes": null, "hexValue": "30", - "id": 597, + "id": 1546, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "6026:1:2", + "src": "6026:1:4", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -5156,15 +5156,15 @@ }, "value": "0" }, - "src": "6002:25:2", + "src": "6002:25:4", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 599, + "id": 1548, "nodeType": "ExpressionStatement", - "src": "6002:25:2" + "src": "6002:25:4" }, { "eventCall": { @@ -5172,18 +5172,18 @@ "arguments": [], "expression": { "argumentTypes": [], - "id": 600, + "id": 1549, "name": "ListingChange", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 410, - "src": "6043:13:2", + "referencedDeclaration": 1359, + "src": "6043:13:4", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$__$returns$__$", "typeString": "function ()" } }, - "id": 601, + "id": 1550, "isConstant": false, "isLValue": false, "isPure": false, @@ -5191,71 +5191,71 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "6043:15:2", + "src": "6043:15:4", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 602, + "id": 1551, "nodeType": "EmitStatement", - "src": "6038:20:2" + "src": "6038:20:4" } ] }, "documentation": "/////////////////////////////////////////////////////////////////////////////////////////////////////\r\n @dev close(): Allows an employer to close the Job Listing from further applicants\r\n/////////////////////////////////////////////////////////////////////////////////////////////////////\r", - "id": 604, + "id": 1553, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 594, + "id": 1543, "modifierName": { "argumentTypes": null, - "id": 593, + "id": 1542, "name": "isEmployer", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 497, - "src": "5975:10:2", + "referencedDeclaration": 1446, + "src": "5975:10:4", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "5975:10:2" + "src": "5975:10:4" } ], "name": "close", "nodeType": "FunctionDefinition", "parameters": { - "id": 592, + "id": 1541, "nodeType": "ParameterList", "parameters": [], - "src": "5947:2:2" + "src": "5947:2:4" }, "payable": false, "returnParameters": { - "id": 595, + "id": 1544, "nodeType": "ParameterList", "parameters": [], - "src": "5991:0:2" + "src": "5991:0:4" }, - "scope": 605, - "src": "5933:133:2", + "scope": 1554, + "src": "5933:133:4", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], - "scope": 606, - "src": "209:5968:2" + "scope": 1555, + "src": "209:5968:4" } ], - "src": "0:6187:2" + "src": "0:6187:4" }, "compiler": { "name": "solc", @@ -5273,8 +5273,26 @@ "links": { "JobApplicationLibrary": "0xf12b5dd4ead5f743c6baa640b0216200e89b60da" } + }, + "1538849010791": { + "events": {}, + "links": { + "JobApplicationLibrary": "0xc2d20493431f8f40a554b2be92958d4d00200f55" + } + }, + "1539360877990": { + "events": {}, + "links": { + "JobApplicationLibrary": "0xf1ba4d207a40ac007ee579866af735c36608ac9d" + } + }, + "1539420319630": { + "events": {}, + "links": { + "JobApplicationLibrary": "0xe0b601a1612fdb93ec5a7fa40e574fb5ca4b0e78" + } } }, "schemaVersion": "2.0.1", - "updatedAt": "2018-08-09T15:53:00.310Z" + "updatedAt": "2018-10-18T13:43:19.572Z" } \ No newline at end of file diff --git a/ethereum/build/contracts/ListingsRegistry.json b/ethereum/build/contracts/ListingsRegistry.json index a05b246..8dfc4ed 100644 --- a/ethereum/build/contracts/ListingsRegistry.json +++ b/ethereum/build/contracts/ListingsRegistry.json @@ -223,52 +223,52 @@ ], "bytecode": "0x608060405234801561001057600080fd5b5060008054600160a060020a031916331790556111ac806100326000396000f30060806040526004361061008d5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663107a274a811461009257806336a8c793146100ee5780636519bfa6146101305780637afd81f51461019b5780637d1fbc9b146101b05780638da5cb5b146101d4578063de74e57b14610205578063f1b2d6a31461021d575b600080fd5b34801561009e57600080fd5b506100aa600435610232565b60408051600160a060020a039889168152969097166020870152858701949094526060850192909252608084015260a083015260c082015290519081900360e00190f35b3480156100fa57600080fd5b5061011e600435602435604435606435608435600160a060020a0360a4351661068f565b60408051918252519081900360200190f35b34801561013c57600080fd5b5061014b6004356024356107f5565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561018757818101518382015260200161016f565b505050509050019250505060405180910390f35b3480156101a757600080fd5b5061011e6108aa565b3480156101bc57600080fd5b5061011e6004356024356044356064356084356108b0565b3480156101e057600080fd5b506101e961099d565b60408051600160a060020a039092168252519081900360200190f35b34801561021157600080fd5b506101e96004356109ac565b34801561022957600080fd5b5061014b6109d4565b600080600080600080600060018881548110151561024c57fe5b60009182526020909120015460018054600160a060020a03909216918a90811061027257fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156102e657600080fd5b505af11580156102fa573d6000803e3d6000fd5b505050506040513d602081101561031057600080fd5b5051600180548b90811061032057fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a031663c623674f6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561039457600080fd5b505af11580156103a8573d6000803e3d6000fd5b505050506040513d60208110156103be57600080fd5b5051600180548c9081106103ce57fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a031663bc65793e6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561044257600080fd5b505af1158015610456573d6000803e3d6000fd5b505050506040513d602081101561046c57600080fd5b5051600180548d90811061047c57fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a031663f7d221906040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156104f057600080fd5b505af1158015610504573d6000803e3d6000fd5b505050506040513d602081101561051a57600080fd5b5051600180548e90811061052a57fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a031663883c22c56040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561059e57600080fd5b505af11580156105b2573d6000803e3d6000fd5b505050506040513d60208110156105c857600080fd5b5051600180548f9081106105d857fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a0316634b91b9556040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561064c57600080fd5b505af1158015610660573d6000803e3d6000fd5b505050506040513d602081101561067657600080fd5b5051959e949d50929b5090995097509550909350915050565b60008054600160a060020a0316331461070957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f6e6c792063616c6c61626c65206279207265676973747279206f776e657200604482015290519081900360640190fd5b6001828888888888610719610a36565b600160a060020a03909616865260208601949094526040808601939093526060850191909152608084015260a0830191909152519081900360c001906000f08015801561076a573d6000803e3d6000fd5b508154600180820184556000938452602093849020909101805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03939093169290921790915554604080516000199092018252517fd8562534ed9a3ce564a595a66dbcc871a37cff70205ea8bc8d0276dcaa4d1009929181900390910190a1506001549695505050505050565b60015460609082906000908590038211156108135760015485900391505b8160405190808252806020026020018201604052801561083d578160200160208202803883390190505b509250600090505b818110156108a2576001805486830190811061085d57fe5b6000918252602090912001548351600160a060020a039091169084908390811061088357fe5b600160a060020a03909216602092830290910190910152600101610845565b505092915050565b60015490565b600060013387878787876108c2610a36565b600160a060020a03909616865260208601949094526040808601939093526060850191909152608084015260a0830191909152519081900360c001906000f080158015610913573d6000803e3d6000fd5b508154600180820184556000938452602093849020909101805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03939093169290921790915554604080516000199092018252517fd8562534ed9a3ce564a595a66dbcc871a37cff70205ea8bc8d0276dcaa4d1009929181900390910190a15060015495945050505050565b600054600160a060020a031681565b60018054829081106109ba57fe5b600091825260209091200154600160a060020a0316905081565b60606001805480602002602001604051908101604052809291908181526020018280548015610a2c57602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311610a0e575b5050505050905090565b60405161073a80610a47833901905600608060405234801561001057600080fd5b5060405160c08061073a83398101604090815281516020830151918301516060840151608085015160a09095015160008054600160a060020a03909516600160a060020a0319958616179055600180549094163317909355600293909355600555600691909155600491909155600355426007819055621275000160085561069d8061009d6000396000f3006080604052600436106100e55763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632d71426d81146100ea578063325a19f11461012857806343d726d61461014f578063455772d2146101665780634665096d146101cb5780634b91b955146101e057806356c1a053146101f5578063631fa7b71461020a57806363de53231461021f57806373d4a13a14610237578063883c22c5146102a45780638da5cb5b146102b9578063bc65793e146102ce578063c623674f146102e3578063eea3f82d146102f8578063f7d2219014610310575b600080fd5b3480156100f657600080fd5b506100ff610325565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561013457600080fd5b5061013d610341565b60408051918252519081900360200190f35b34801561015b57600080fd5b50610164610347565b005b34801561017257600080fd5b5061017b61039b565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156101b757818101518382015260200161019f565b505050509050019250505060405180910390f35b3480156101d757600080fd5b5061013d61040a565b3480156101ec57600080fd5b5061013d610410565b34801561020157600080fd5b50610164610416565b34801561021657600080fd5b5061013d61058e565b34801561022b57600080fd5b506100ff600435610594565b34801561024357600080fd5b5061024c6105c9565b6040805173ffffffffffffffffffffffffffffffffffffffff90991689526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b3480156102b057600080fd5b5061013d610604565b3480156102c557600080fd5b506100ff61060a565b3480156102da57600080fd5b5061013d610626565b3480156102ef57600080fd5b5061013d61062c565b34801561030457600080fd5b506100ff600435610632565b34801561031c57600080fd5b5061013d61066b565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60075481565b60005473ffffffffffffffffffffffffffffffffffffffff16331461036b57600080fd5b600060068190556040517ffa378a7d48087b5b4be3b8236f6f8829009c67d0dc3a6a431e43385d52ea2d1d9190a1565b6060600980548060200260200160405190810160405280929190818152602001828054801561040057602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff1681526001909101906020018083116103d5575b5050505050905090565b60085481565b60065481565b600854600090421061042757600080fd5b604080517f9038c886000000000000000000000000000000000000000000000000000000008152306004820152336024820152905173__JobApplicationLibrary_________________91639038c886916044808301926020929190829003018186803b15801561049757600080fd5b505af41580156104ab573d6000803e3d6000fd5b505050506040513d60208110156104c157600080fd5b5051600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01805473ffffffffffffffffffffffffffffffffffffffff831673ffffffffffffffffffffffffffffffffffffffff19909116811790915560408051918252519192507f4353a90ced767b2d04726c58d6595ee553129185698c163fbb141f000fe6dbe5919081900360200190a16040517ffa378a7d48087b5b4be3b8236f6f8829009c67d0dc3a6a431e43385d52ea2d1d90600090a150565b60095490565b60098054829081106105a257fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60005460025460055460065460045460035460075460085473ffffffffffffffffffffffffffffffffffffffff909716969091929394959697565b60055481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b60025481565b600060098281548110151561064357fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1692915050565b600454815600a165627a7a7230582090b6420d9e2c03b67c2596da4a5dc977d67715bf13e5e73cf5ea54d8ac6e7df70029a165627a7a723058204f1a3c58adfeff5500a523831704c41056c004f4d3c2d4092082db0fe22b8cc40029", "deployedBytecode": "0x60806040526004361061008d5763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663107a274a811461009257806336a8c793146100ee5780636519bfa6146101305780637afd81f51461019b5780637d1fbc9b146101b05780638da5cb5b146101d4578063de74e57b14610205578063f1b2d6a31461021d575b600080fd5b34801561009e57600080fd5b506100aa600435610232565b60408051600160a060020a039889168152969097166020870152858701949094526060850192909252608084015260a083015260c082015290519081900360e00190f35b3480156100fa57600080fd5b5061011e600435602435604435606435608435600160a060020a0360a4351661068f565b60408051918252519081900360200190f35b34801561013c57600080fd5b5061014b6004356024356107f5565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561018757818101518382015260200161016f565b505050509050019250505060405180910390f35b3480156101a757600080fd5b5061011e6108aa565b3480156101bc57600080fd5b5061011e6004356024356044356064356084356108b0565b3480156101e057600080fd5b506101e961099d565b60408051600160a060020a039092168252519081900360200190f35b34801561021157600080fd5b506101e96004356109ac565b34801561022957600080fd5b5061014b6109d4565b600080600080600080600060018881548110151561024c57fe5b60009182526020909120015460018054600160a060020a03909216918a90811061027257fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a0316638da5cb5b6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156102e657600080fd5b505af11580156102fa573d6000803e3d6000fd5b505050506040513d602081101561031057600080fd5b5051600180548b90811061032057fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a031663c623674f6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561039457600080fd5b505af11580156103a8573d6000803e3d6000fd5b505050506040513d60208110156103be57600080fd5b5051600180548c9081106103ce57fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a031663bc65793e6040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561044257600080fd5b505af1158015610456573d6000803e3d6000fd5b505050506040513d602081101561046c57600080fd5b5051600180548d90811061047c57fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a031663f7d221906040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b1580156104f057600080fd5b505af1158015610504573d6000803e3d6000fd5b505050506040513d602081101561051a57600080fd5b5051600180548e90811061052a57fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a031663883c22c56040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561059e57600080fd5b505af11580156105b2573d6000803e3d6000fd5b505050506040513d60208110156105c857600080fd5b5051600180548f9081106105d857fe5b9060005260206000200160009054906101000a9004600160a060020a0316600160a060020a0316634b91b9556040518163ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401602060405180830381600087803b15801561064c57600080fd5b505af1158015610660573d6000803e3d6000fd5b505050506040513d602081101561067657600080fd5b5051959e949d50929b5090995097509550909350915050565b60008054600160a060020a0316331461070957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f4f6e6c792063616c6c61626c65206279207265676973747279206f776e657200604482015290519081900360640190fd5b6001828888888888610719610a36565b600160a060020a03909616865260208601949094526040808601939093526060850191909152608084015260a0830191909152519081900360c001906000f08015801561076a573d6000803e3d6000fd5b508154600180820184556000938452602093849020909101805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03939093169290921790915554604080516000199092018252517fd8562534ed9a3ce564a595a66dbcc871a37cff70205ea8bc8d0276dcaa4d1009929181900390910190a1506001549695505050505050565b60015460609082906000908590038211156108135760015485900391505b8160405190808252806020026020018201604052801561083d578160200160208202803883390190505b509250600090505b818110156108a2576001805486830190811061085d57fe5b6000918252602090912001548351600160a060020a039091169084908390811061088357fe5b600160a060020a03909216602092830290910190910152600101610845565b505092915050565b60015490565b600060013387878787876108c2610a36565b600160a060020a03909616865260208601949094526040808601939093526060850191909152608084015260a0830191909152519081900360c001906000f080158015610913573d6000803e3d6000fd5b508154600180820184556000938452602093849020909101805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03939093169290921790915554604080516000199092018252517fd8562534ed9a3ce564a595a66dbcc871a37cff70205ea8bc8d0276dcaa4d1009929181900390910190a15060015495945050505050565b600054600160a060020a031681565b60018054829081106109ba57fe5b600091825260209091200154600160a060020a0316905081565b60606001805480602002602001604051908101604052809291908181526020018280548015610a2c57602002820191906000526020600020905b8154600160a060020a03168152600190910190602001808311610a0e575b5050505050905090565b60405161073a80610a47833901905600608060405234801561001057600080fd5b5060405160c08061073a83398101604090815281516020830151918301516060840151608085015160a09095015160008054600160a060020a03909516600160a060020a0319958616179055600180549094163317909355600293909355600555600691909155600491909155600355426007819055621275000160085561069d8061009d6000396000f3006080604052600436106100e55763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416632d71426d81146100ea578063325a19f11461012857806343d726d61461014f578063455772d2146101665780634665096d146101cb5780634b91b955146101e057806356c1a053146101f5578063631fa7b71461020a57806363de53231461021f57806373d4a13a14610237578063883c22c5146102a45780638da5cb5b146102b9578063bc65793e146102ce578063c623674f146102e3578063eea3f82d146102f8578063f7d2219014610310575b600080fd5b3480156100f657600080fd5b506100ff610325565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561013457600080fd5b5061013d610341565b60408051918252519081900360200190f35b34801561015b57600080fd5b50610164610347565b005b34801561017257600080fd5b5061017b61039b565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156101b757818101518382015260200161019f565b505050509050019250505060405180910390f35b3480156101d757600080fd5b5061013d61040a565b3480156101ec57600080fd5b5061013d610410565b34801561020157600080fd5b50610164610416565b34801561021657600080fd5b5061013d61058e565b34801561022b57600080fd5b506100ff600435610594565b34801561024357600080fd5b5061024c6105c9565b6040805173ffffffffffffffffffffffffffffffffffffffff90991689526020890197909752878701959095526060870193909352608086019190915260a085015260c084015260e083015251908190036101000190f35b3480156102b057600080fd5b5061013d610604565b3480156102c557600080fd5b506100ff61060a565b3480156102da57600080fd5b5061013d610626565b3480156102ef57600080fd5b5061013d61062c565b34801561030457600080fd5b506100ff600435610632565b34801561031c57600080fd5b5061013d61066b565b60015473ffffffffffffffffffffffffffffffffffffffff1681565b60075481565b60005473ffffffffffffffffffffffffffffffffffffffff16331461036b57600080fd5b600060068190556040517ffa378a7d48087b5b4be3b8236f6f8829009c67d0dc3a6a431e43385d52ea2d1d9190a1565b6060600980548060200260200160405190810160405280929190818152602001828054801561040057602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff1681526001909101906020018083116103d5575b5050505050905090565b60085481565b60065481565b600854600090421061042757600080fd5b604080517f9038c886000000000000000000000000000000000000000000000000000000008152306004820152336024820152905173__JobApplicationLibrary_________________91639038c886916044808301926020929190829003018186803b15801561049757600080fd5b505af41580156104ab573d6000803e3d6000fd5b505050506040513d60208110156104c157600080fd5b5051600980546001810182556000919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af01805473ffffffffffffffffffffffffffffffffffffffff831673ffffffffffffffffffffffffffffffffffffffff19909116811790915560408051918252519192507f4353a90ced767b2d04726c58d6595ee553129185698c163fbb141f000fe6dbe5919081900360200190a16040517ffa378a7d48087b5b4be3b8236f6f8829009c67d0dc3a6a431e43385d52ea2d1d90600090a150565b60095490565b60098054829081106105a257fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60005460025460055460065460045460035460075460085473ffffffffffffffffffffffffffffffffffffffff909716969091929394959697565b60055481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60035481565b60025481565b600060098281548110151561064357fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1692915050565b600454815600a165627a7a7230582090b6420d9e2c03b67c2596da4a5dc977d67715bf13e5e73cf5ea54d8ac6e7df70029a165627a7a723058204f1a3c58adfeff5500a523831704c41056c004f4d3c2d4092082db0fe22b8cc40029", - "sourceMap": "199:4133:3:-;;;479:114;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;567:5:3;:18;;-1:-1:-1;;;;;;567:18:3;575:10;567:18;;;199:4133;;;;;;", - "deployedSourceMap": "199:4133:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1024:715;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1024:715:3;;;;;;;;;-1:-1:-1;;;;;1024:715:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3776:553;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3776:553:3;;;;;;;;;;;-1:-1:-1;;;;;3776:553:3;;;;;;;;;;;;;;;;;;;;;1747:438;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1747:438:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1747:438:3;;;;;;;;;;;;;;;;;657:124;;8:9:-1;5:2;;;30:1;27;20:12;5:2;657:124:3;;;;2868:430;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2868:430:3;;;;;;;;;;;;;350:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;350:20:3;;;;;;;;-1:-1:-1;;;;;350:20:3;;;;;;;;;;;;;;407:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;407:25:3;;;;;793:88;;8:9:-1;5:2;;;30:1;27;20:12;5:2;793:88:3;;;;1024:715;1103:7;1112;1121;1130:4;1136;1141;1147;1442:8;1451:6;1442:16;;;;;;;;;;;;;;;;;;;;;1471;;-1:-1:-1;;;;;1442:16:3;;;;1480:6;;1471:16;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1471:16:3;-1:-1:-1;;;;;1471:22:3;;:24;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1471:24:3;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1471:24:3;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1471:24:3;1508:8;:16;;1517:6;;1508:16;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1508:16:3;-1:-1:-1;;;;;1508:25:3;;:27;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1508:27:3;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1508:27:3;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1508:27:3;1548:8;:16;;1557:6;;1548:16;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1548:16:3;-1:-1:-1;;;;;1548:29:3;;:31;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1548:31:3;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1548:31:3;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1548:31:3;1592:8;:16;;1601:6;;1592:16;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1592:16:3;-1:-1:-1;;;;;1592:29:3;;:31;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1592:31:3;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1592:31:3;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1592:31:3;1636:8;:16;;1645:6;;1636:16;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1636:16:3;-1:-1:-1;;;;;1636:29:3;;:31;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1636:31:3;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1636:31:3;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1636:31:3;1680:8;:16;;1689:6;;1680:16;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1680:16:3;-1:-1:-1;;;;;1680:38:3;;:40;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1680:40:3;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1680:40:3;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1680:40:3;1422:309;;;;-1:-1:-1;1422:309:3;;-1:-1:-1;1422:309:3;;-1:-1:-1;1422:309:3;-1:-1:-1;1422:309:3;-1:-1:-1;1680:40:3;;-1:-1:-1;1024:715:3;-1:-1:-1;;1024:715:3:o;3776:553::-;4024:4;4069:5;;-1:-1:-1;;;;;4069:5:3;4055:10;:19;4046:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4121:8;4147:15;4165:9;4176:13;4191;4205;4219:22;4135:107;;:::i;:::-;-1:-1:-1;;;;;4135:107:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;27:10;;39:1;23:18;;;45:23;;-1:-1;4121:122:3;;;;;;;;;;;;;-1:-1:-1;;4121:122:3;-1:-1:-1;;;;;4121:122:3;;;;;;;;;;;4270:15;4259:29;;;-1:-1:-1;;4270:17:3;;;4259:29;;;;;;;;;;;;;;-1:-1:-1;4306:8:3;:15;3776:553;;;;;;;;:::o;1747:438::-;1917:8;:15;1835:16;;1886:7;;1869:14;;1917:24;;;1908:33;;1904:99;;;1967:8;:15;:24;;;;-1:-1:-1;1904:99:3;2038:6;2024:21;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;2024:21:3;;2015:30;;2073:1;2061:13;;2056:96;2080:6;2076:1;:10;2056:96;;;2120:8;:20;;2129:10;;;;2120:20;;;;;;;;;;;;;;;;2108:9;;-1:-1:-1;;;;;2120:20:3;;;;2108:6;;2115:1;;2108:9;;;;;;-1:-1:-1;;;;;2108:32:3;;;:9;;;;;;;;;;:32;2088:3;;2056:96;;;1747:438;;;;;;:::o;657:124::-;758:8;:15;657:124;:::o;2868:430::-;3074:4;3096:8;3122:10;3134:9;3145:13;3160;3174;3188:22;3110:101;;:::i;:::-;-1:-1:-1;;;;;3110:101:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;27:10;;39:1;23:18;;;45:23;;-1:-1;3096:116:3;;;;;;;;;;;;;-1:-1:-1;;3096:116:3;-1:-1:-1;;;;;3096:116:3;;;;;;;;;;;3239:15;3228:29;;;-1:-1:-1;;3239:17:3;;;3228:29;;;;;;;;;;;;;;-1:-1:-1;3275:8:3;:15;2868:430;;;;;;;:::o;350:20::-;;;-1:-1:-1;;;;;350:20:3;;:::o;407:25::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;407:25:3;;-1:-1:-1;407:25:3;:::o;793:88::-;837:9;865:8;858:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;858:15:3;;;;;;;;;;;;;;;;;;;;;;;793:88;:::o;199:4133::-;;;;;;;;;;:::o", + "sourceMap": "199:4133:5:-;;;479:114;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;567:5:5;:18;;-1:-1:-1;;;;;;567:18:5;575:10;567:18;;;199:4133;;;;;;", + "deployedSourceMap": "199:4133:5:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1024:715;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1024:715:5;;;;;;;;;-1:-1:-1;;;;;1024:715:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3776:553;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;3776:553:5;;;;;;;;;;;-1:-1:-1;;;;;3776:553:5;;;;;;;;;;;;;;;;;;;;;1747:438;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;1747:438:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1747:438:5;;;;;;;;;;;;;;;;;657:124;;8:9:-1;5:2;;;30:1;27;20:12;5:2;657:124:5;;;;2868:430;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;2868:430:5;;;;;;;;;;;;;350:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;350:20:5;;;;;;;;-1:-1:-1;;;;;350:20:5;;;;;;;;;;;;;;407:25;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;407:25:5;;;;;793:88;;8:9:-1;5:2;;;30:1;27;20:12;5:2;793:88:5;;;;1024:715;1103:7;1112;1121;1130:4;1136;1141;1147;1442:8;1451:6;1442:16;;;;;;;;;;;;;;;;;;;;;1471;;-1:-1:-1;;;;;1442:16:5;;;;1480:6;;1471:16;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1471:16:5;-1:-1:-1;;;;;1471:22:5;;:24;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1471:24:5;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1471:24:5;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1471:24:5;1508:8;:16;;1517:6;;1508:16;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1508:16:5;-1:-1:-1;;;;;1508:25:5;;:27;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1508:27:5;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1508:27:5;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1508:27:5;1548:8;:16;;1557:6;;1548:16;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1548:16:5;-1:-1:-1;;;;;1548:29:5;;:31;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1548:31:5;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1548:31:5;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1548:31:5;1592:8;:16;;1601:6;;1592:16;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1592:16:5;-1:-1:-1;;;;;1592:29:5;;:31;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1592:31:5;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1592:31:5;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1592:31:5;1636:8;:16;;1645:6;;1636:16;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1636:16:5;-1:-1:-1;;;;;1636:29:5;;:31;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1636:31:5;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1636:31:5;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1636:31:5;1680:8;:16;;1689:6;;1680:16;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1680:16:5;-1:-1:-1;;;;;1680:38:5;;:40;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1680:40:5;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1680:40:5;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1680:40:5;1422:309;;;;-1:-1:-1;1422:309:5;;-1:-1:-1;1422:309:5;;-1:-1:-1;1422:309:5;-1:-1:-1;1422:309:5;-1:-1:-1;1680:40:5;;-1:-1:-1;1024:715:5;-1:-1:-1;;1024:715:5:o;3776:553::-;4024:4;4069:5;;-1:-1:-1;;;;;4069:5:5;4055:10;:19;4046:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4121:8;4147:15;4165:9;4176:13;4191;4205;4219:22;4135:107;;:::i;:::-;-1:-1:-1;;;;;4135:107:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;27:10;;39:1;23:18;;;45:23;;-1:-1;4121:122:5;;;;;;;;;;;;;-1:-1:-1;;4121:122:5;-1:-1:-1;;;;;4121:122:5;;;;;;;;;;;4270:15;4259:29;;;-1:-1:-1;;4270:17:5;;;4259:29;;;;;;;;;;;;;;-1:-1:-1;4306:8:5;:15;3776:553;;;;;;;;:::o;1747:438::-;1917:8;:15;1835:16;;1886:7;;1869:14;;1917:24;;;1908:33;;1904:99;;;1967:8;:15;:24;;;;-1:-1:-1;1904:99:5;2038:6;2024:21;;;;;;;;;;;;;;;;;;;;;;29:2:-1;21:6;17:15;117:4;105:10;97:6;88:34;136:17;;-1:-1;2024:21:5;;2015:30;;2073:1;2061:13;;2056:96;2080:6;2076:1;:10;2056:96;;;2120:8;:20;;2129:10;;;;2120:20;;;;;;;;;;;;;;;;2108:9;;-1:-1:-1;;;;;2120:20:5;;;;2108:6;;2115:1;;2108:9;;;;;;-1:-1:-1;;;;;2108:32:5;;;:9;;;;;;;;;;:32;2088:3;;2056:96;;;1747:438;;;;;;:::o;657:124::-;758:8;:15;657:124;:::o;2868:430::-;3074:4;3096:8;3122:10;3134:9;3145:13;3160;3174;3188:22;3110:101;;:::i;:::-;-1:-1:-1;;;;;3110:101:5;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;27:10;;39:1;23:18;;;45:23;;-1:-1;3096:116:5;;;;;;;;;;;;;-1:-1:-1;;3096:116:5;-1:-1:-1;;;;;3096:116:5;;;;;;;;;;;3239:15;3228:29;;;-1:-1:-1;;3239:17:5;;;3228:29;;;;;;;;;;;;;;-1:-1:-1;3275:8:5;:15;2868:430;;;;;;;:::o;350:20::-;;;-1:-1:-1;;;;;350:20:5;;:::o;407:25::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;407:25:5;;-1:-1:-1;407:25:5;:::o;793:88::-;837:9;865:8;858:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;858:15:5;;;;;;;;;;;;;;;;;;;;;;;793:88;:::o;199:4133::-;;;;;;;;;;:::o", "source": "pragma solidity 0.4.24;\r\n\r\n/// @title Job Listing\r\n/// @dev Used to keep marketplace of job listings from the companies\r\n/// @author Waheed Rahuman waheed@hellotoken.io\r\n\r\nimport \"./Listing.sol\";\r\n\r\ncontract ListingsRegistry {\r\n\r\n /*\r\n * Events\r\n */\r\n\r\n event NewListing(uint _index);\r\n\r\n /*\r\n * Storage\r\n */\r\n\r\n // Contract owner\r\n address public owner;\r\n\r\n // Array of all listings\r\n Listing[] public listings;\r\n\r\n /*\r\n * Public functions\r\n */\r\n\r\n constructor()\r\n public\r\n {\r\n // Defines HelloToken admin address \r\n owner = msg.sender;\r\n }\r\n\r\n /// @dev listingsLength(): Return number of listings\r\n function listingsLength()\r\n public\r\n constant\r\n returns (uint)\r\n {\r\n return listings.length;\r\n }\r\n \r\n function getListings() public view returns (Listing[]){\r\n return listings;\r\n }\r\n\r\n /// @dev getListing(): Return listing info for a given listing\r\n /// @param _index the index of the listing we want info about\r\n function getListing(uint _index)\r\n public\r\n constant\r\n returns (Listing, address, bytes32, uint, uint,uint, uint)\r\n {\r\n // Test in truffle deelop:\r\n // ListingsRegistry.deployed().then(function(instance){ return instance.getListing.call(0) })\r\n\r\n // TODO (Stan): Determine if less gas to do one array lookup into var, and\r\n // return var struct parts\r\n return (\r\n listings[_index],\r\n listings[_index].owner(),\r\n listings[_index].ipfsHash(),\r\n listings[_index].workingHours(),\r\n listings[_index].resourceType(),\r\n listings[_index].resourceRate(),\r\n listings[_index].totalResourceRequired()\r\n );\r\n }\r\n\r\n function fetchPage(uint256 cursor, uint256 howMany)\r\n public\r\n view\r\n returns (Listing[] values)\r\n {\r\n uint256 length = howMany;\r\n if (length > listings.length - cursor) {\r\n length = listings.length - cursor;\r\n }\r\n\r\n values = new Listing[](length);\r\n for (uint256 i = 0; i < length; i++) {\r\n values[i] = listings[cursor + i];\r\n }\r\n\r\n return values;\r\n }\r\n\r\n /// Sample Remix invocation:\r\n /// [\"0x01\",\"0x7d\",\"0xfd\",\"0x85\",\"0xd4\",\"0xf6\",\"0xcb\",\"0x4d\",\"0xcd\",\"0x71\",\"0x5a\",\"0x88\",\"0x10\",\"0x1f\",\"0x7b\",\"0x1f\",\"0x06\",\"0xcd\",\"0x1e\",\"0x00\",\"0x9b\",\"0x23\",\"0x27\",\"0xa0\",\"0x80\",\"0x9d\",\"0x01\",\"0xeb\",\"0x9c\",\"0x91\",\"0xf2\",\"0x31\"],\"3140000000000000000\",42\r\n\r\n /*\r\n *\t@dev create(); Create a new job requirements\r\n *\tData Storage\r\n *\t------------\r\n *\t_ipfsHash\t\tHash\tHash of data on ipfsHash\r\n *\t_workingHours\t\tunint\tNo of working hours required\r\n *\t_resourceType\t\tunint\tResource type Agent or Auditor\r\n *\t_resourceRate\t\tunint\tRate offered per hour in wei\r\n *\t_totalResourceRequired\tNumber\tNo of agents/auditors required\r\n */\r\n\r\n function create(\r\n bytes32 _ipfsHash,\r\n uint _workingHours,\r\n uint _resourceType,\r\n uint _resourceRate,\r\n uint _totalResourceRequired\r\n )\r\n public\r\n returns (uint)\r\n {\r\n listings.push(new Listing(msg.sender, _ipfsHash, _workingHours, _resourceType,_resourceRate,_totalResourceRequired));\r\n emit NewListing(listings.length-1);\r\n return listings.length;\r\n }\r\n\r\n\r\n /*\r\n *\t@dev createOnBehalf(); Migrate job posting as admin\r\n *\tData Storage\r\n *\t------------\r\n *\t_ipfsHash\t\tHash\tHash of data on ipfsHash\r\n *\t_workingHours\t\tunint\tNo of working hours required\r\n *\t_resourceType\t\tunint\tResource type Agent or Auditor\r\n *\t_resourceRate\t\tunint\tRate offered per hour in wei\r\n *\t_totalResourceRequired\tNumber\tNo of agents/auditors required\r\n *\t_creatorAddress\t\tAddress\tAdding listing on behalf of someone (Only by admin)\r\n */\r\n\r\n function createOnBehalf(\r\n bytes32 _ipfsHash,\r\n uint _workingHours,\r\n uint _resourceType,\r\n uint _resourceRate,\r\n uint _totalResourceRequired,\r\n address _creatorAddress\r\n )\r\n public\r\n returns (uint)\r\n {\r\n require (msg.sender == owner, \"Only callable by registry owner\");\r\n listings.push(new Listing(_creatorAddress, _ipfsHash, _workingHours, _resourceType,_resourceRate,_totalResourceRequired));\r\n emit NewListing(listings.length-1);\r\n return listings.length;\r\n }\r\n}", "sourcePath": "C:\\i\\HT\\hellonetmarket\\ethereum\\contracts\\ListingsRegistry.sol", "ast": { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/ListingsRegistry.sol", "exportedSymbols": { "ListingsRegistry": [ - 853 + 1802 ] }, - "id": 854, + "id": 1803, "nodeType": "SourceUnit", "nodes": [ { - "id": 607, + "id": 1556, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", - "src": "0:23:3" + "src": "0:23:5" }, { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/Listing.sol", "file": "./Listing.sol", - "id": 608, + "id": 1557, "nodeType": "ImportDirective", - "scope": 854, - "sourceUnit": 606, - "src": "172:23:3", + "scope": 1803, + "sourceUnit": 1555, + "src": "172:23:5", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [], "contractDependencies": [ - 605 + 1554 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 853, + "id": 1802, "linearizedBaseContracts": [ - 853 + 1802 ], "name": "ListingsRegistry", "nodeType": "ContractDefinition", @@ -276,21 +276,21 @@ { "anonymous": false, "documentation": null, - "id": 612, + "id": 1561, "name": "NewListing", "nodeType": "EventDefinition", "parameters": { - "id": 611, + "id": 1560, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 610, + "id": 1559, "indexed": false, "name": "_index", "nodeType": "VariableDeclaration", - "scope": 612, - "src": "279:11:3", + "scope": 1561, + "src": "279:11:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -298,10 +298,10 @@ "typeString": "uint256" }, "typeName": { - "id": 609, + "id": 1558, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "279:4:3", + "src": "279:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -311,17 +311,17 @@ "visibility": "internal" } ], - "src": "278:13:3" + "src": "278:13:5" }, - "src": "262:30:3" + "src": "262:30:5" }, { "constant": false, - "id": 614, + "id": 1563, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 853, - "src": "350:20:3", + "scope": 1802, + "src": "350:20:5", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -329,10 +329,10 @@ "typeString": "address" }, "typeName": { - "id": 613, + "id": 1562, "name": "address", "nodeType": "ElementaryTypeName", - "src": "350:7:3", + "src": "350:7:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -343,36 +343,36 @@ }, { "constant": false, - "id": 617, + "id": 1566, "name": "listings", "nodeType": "VariableDeclaration", - "scope": 853, - "src": "407:25:3", + "scope": 1802, + "src": "407:25:5", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[]" }, "typeName": { "baseType": { "contractScope": null, - "id": 615, + "id": 1564, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "407:7:3", + "referencedDeclaration": 1554, + "src": "407:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 616, + "id": 1565, "length": null, "nodeType": "ArrayTypeName", - "src": "407:9:3", + "src": "407:9:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage_ptr", "typeString": "contract Listing[]" } }, @@ -381,26 +381,26 @@ }, { "body": { - "id": 625, + "id": 1574, "nodeType": "Block", - "src": "512:81:3", + "src": "512:81:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 623, + "id": 1572, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 620, + "id": 1569, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 614, - "src": "567:5:3", + "referencedDeclaration": 1563, + "src": "567:5:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -412,18 +412,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 621, + "id": 1570, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "575:3:3", + "referencedDeclaration": 1965, + "src": "575:3:5", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 622, + "id": 1571, "isConstant": false, "isLValue": false, "isPure": false, @@ -431,26 +431,26 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "575:10:3", + "src": "575:10:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "567:18:3", + "src": "567:18:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 624, + "id": 1573, "nodeType": "ExpressionStatement", - "src": "567:18:3" + "src": "567:18:5" } ] }, "documentation": null, - "id": 626, + "id": 1575, "implemented": true, "isConstructor": true, "isDeclaredConst": false, @@ -458,47 +458,47 @@ "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 618, + "id": 1567, "nodeType": "ParameterList", "parameters": [], - "src": "490:2:3" + "src": "490:2:5" }, "payable": false, "returnParameters": { - "id": 619, + "id": 1568, "nodeType": "ParameterList", "parameters": [], - "src": "512:0:3" + "src": "512:0:5" }, - "scope": 853, - "src": "479:114:3", + "scope": 1802, + "src": "479:114:5", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 634, + "id": 1583, "nodeType": "Block", - "src": "740:41:3", + "src": "740:41:5", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 631, + "id": 1580, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "758:8:3", + "referencedDeclaration": 1566, + "src": "758:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 632, + "id": 1581, "isConstant": false, "isLValue": true, "isPure": false, @@ -506,21 +506,21 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "758:15:3", + "src": "758:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 630, - "id": 633, + "functionReturnParameters": 1579, + "id": 1582, "nodeType": "Return", - "src": "751:22:3" + "src": "751:22:5" } ] }, "documentation": "@dev listingsLength(): Return number of listings\r", - "id": 635, + "id": 1584, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -528,23 +528,23 @@ "name": "listingsLength", "nodeType": "FunctionDefinition", "parameters": { - "id": 627, + "id": 1576, "nodeType": "ParameterList", "parameters": [], - "src": "680:2:3" + "src": "680:2:5" }, "payable": false, "returnParameters": { - "id": 630, + "id": 1579, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 629, + "id": 1578, "name": "", "nodeType": "VariableDeclaration", - "scope": 635, - "src": "729:4:3", + "scope": 1584, + "src": "729:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -552,10 +552,10 @@ "typeString": "uint256" }, "typeName": { - "id": 628, + "id": 1577, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "729:4:3", + "src": "729:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -565,43 +565,43 @@ "visibility": "internal" } ], - "src": "728:6:3" + "src": "728:6:5" }, - "scope": 853, - "src": "657:124:3", + "scope": 1802, + "src": "657:124:5", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 643, + "id": 1592, "nodeType": "Block", - "src": "847:34:3", + "src": "847:34:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 641, + "id": 1590, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "865:8:3", + "referencedDeclaration": 1566, + "src": "865:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "functionReturnParameters": 640, - "id": 642, + "functionReturnParameters": 1589, + "id": 1591, "nodeType": "Return", - "src": "858:15:3" + "src": "858:15:5" } ] }, "documentation": null, - "id": 644, + "id": 1593, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -609,48 +609,48 @@ "name": "getListings", "nodeType": "FunctionDefinition", "parameters": { - "id": 636, + "id": 1585, "nodeType": "ParameterList", "parameters": [], - "src": "813:2:3" + "src": "813:2:5" }, "payable": false, "returnParameters": { - "id": 640, + "id": 1589, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 639, + "id": 1588, "name": "", "nodeType": "VariableDeclaration", - "scope": 644, - "src": "837:9:3", + "scope": 1593, + "src": "837:9:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory_ptr", "typeString": "contract Listing[]" }, "typeName": { "baseType": { "contractScope": null, - "id": 637, + "id": 1586, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "837:7:3", + "referencedDeclaration": 1554, + "src": "837:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 638, + "id": 1587, "length": null, "nodeType": "ArrayTypeName", - "src": "837:9:3", + "src": "837:9:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage_ptr", "typeString": "contract Listing[]" } }, @@ -658,19 +658,19 @@ "visibility": "internal" } ], - "src": "836:11:3" + "src": "836:11:5" }, - "scope": 853, - "src": "793:88:3", + "scope": 1802, + "src": "793:88:5", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 698, + "id": 1647, "nodeType": "Block", - "src": "1158:581:3", + "src": "1158:581:5", "statements": [ { "expression": { @@ -680,26 +680,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 663, + "id": 1612, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1442:8:3", + "referencedDeclaration": 1566, + "src": "1442:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 665, + "id": 1614, "indexExpression": { "argumentTypes": null, - "id": 664, + "id": 1613, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1451:6:3", + "referencedDeclaration": 1595, + "src": "1451:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -710,9 +710,9 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1442:16:3", + "src": "1442:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -725,26 +725,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 666, + "id": 1615, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1471:8:3", + "referencedDeclaration": 1566, + "src": "1471:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 668, + "id": 1617, "indexExpression": { "argumentTypes": null, - "id": 667, + "id": 1616, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1480:6:3", + "referencedDeclaration": 1595, + "src": "1480:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -755,27 +755,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1471:16:3", + "src": "1471:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 669, + "id": 1618, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", - "referencedDeclaration": 412, - "src": "1471:22:3", + "referencedDeclaration": 1361, + "src": "1471:22:5", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_address_$", "typeString": "function () view external returns (address)" } }, - "id": 670, + "id": 1619, "isConstant": false, "isLValue": false, "isPure": false, @@ -783,7 +783,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1471:24:3", + "src": "1471:24:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -798,26 +798,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 671, + "id": 1620, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1508:8:3", + "referencedDeclaration": 1566, + "src": "1508:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 673, + "id": 1622, "indexExpression": { "argumentTypes": null, - "id": 672, + "id": 1621, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1517:6:3", + "referencedDeclaration": 1595, + "src": "1517:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -828,27 +828,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1508:16:3", + "src": "1508:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 674, + "id": 1623, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "ipfsHash", "nodeType": "MemberAccess", - "referencedDeclaration": 416, - "src": "1508:25:3", + "referencedDeclaration": 1365, + "src": "1508:25:5", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_bytes32_$", "typeString": "function () view external returns (bytes32)" } }, - "id": 675, + "id": 1624, "isConstant": false, "isLValue": false, "isPure": false, @@ -856,7 +856,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1508:27:3", + "src": "1508:27:5", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -871,26 +871,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 676, + "id": 1625, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1548:8:3", + "referencedDeclaration": 1566, + "src": "1548:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 678, + "id": 1627, "indexExpression": { "argumentTypes": null, - "id": 677, + "id": 1626, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1557:6:3", + "referencedDeclaration": 1595, + "src": "1557:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -901,27 +901,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1548:16:3", + "src": "1548:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 679, + "id": 1628, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "workingHours", "nodeType": "MemberAccess", - "referencedDeclaration": 418, - "src": "1548:29:3", + "referencedDeclaration": 1367, + "src": "1548:29:5", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$", "typeString": "function () view external returns (uint256)" } }, - "id": 680, + "id": 1629, "isConstant": false, "isLValue": false, "isPure": false, @@ -929,7 +929,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1548:31:3", + "src": "1548:31:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -944,26 +944,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 681, + "id": 1630, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1592:8:3", + "referencedDeclaration": 1566, + "src": "1592:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 683, + "id": 1632, "indexExpression": { "argumentTypes": null, - "id": 682, + "id": 1631, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1601:6:3", + "referencedDeclaration": 1595, + "src": "1601:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -974,27 +974,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1592:16:3", + "src": "1592:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 684, + "id": 1633, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "resourceType", "nodeType": "MemberAccess", - "referencedDeclaration": 420, - "src": "1592:29:3", + "referencedDeclaration": 1369, + "src": "1592:29:5", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$", "typeString": "function () view external returns (uint256)" } }, - "id": 685, + "id": 1634, "isConstant": false, "isLValue": false, "isPure": false, @@ -1002,7 +1002,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1592:31:3", + "src": "1592:31:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1017,26 +1017,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 686, + "id": 1635, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1636:8:3", + "referencedDeclaration": 1566, + "src": "1636:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 688, + "id": 1637, "indexExpression": { "argumentTypes": null, - "id": 687, + "id": 1636, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1645:6:3", + "referencedDeclaration": 1595, + "src": "1645:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1047,27 +1047,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1636:16:3", + "src": "1636:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 689, + "id": 1638, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "resourceRate", "nodeType": "MemberAccess", - "referencedDeclaration": 422, - "src": "1636:29:3", + "referencedDeclaration": 1371, + "src": "1636:29:5", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$", "typeString": "function () view external returns (uint256)" } }, - "id": 690, + "id": 1639, "isConstant": false, "isLValue": false, "isPure": false, @@ -1075,7 +1075,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1636:31:3", + "src": "1636:31:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1090,26 +1090,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 691, + "id": 1640, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1680:8:3", + "referencedDeclaration": 1566, + "src": "1680:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 693, + "id": 1642, "indexExpression": { "argumentTypes": null, - "id": 692, + "id": 1641, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1689:6:3", + "referencedDeclaration": 1595, + "src": "1689:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1120,27 +1120,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1680:16:3", + "src": "1680:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 694, + "id": 1643, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "totalResourceRequired", "nodeType": "MemberAccess", - "referencedDeclaration": 424, - "src": "1680:38:3", + "referencedDeclaration": 1373, + "src": "1680:38:5", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$", "typeString": "function () view external returns (uint256)" } }, - "id": 695, + "id": 1644, "isConstant": false, "isLValue": false, "isPure": false, @@ -1148,35 +1148,35 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1680:40:3", + "src": "1680:40:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], - "id": 696, + "id": 1645, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", - "src": "1429:302:3", + "src": "1429:302:5", "typeDescriptions": { - "typeIdentifier": "t_tuple$_t_contract$_Listing_$605_$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$", + "typeIdentifier": "t_tuple$_t_contract$_Listing_$1554_$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$", "typeString": "tuple(contract Listing,address,bytes32,uint256,uint256,uint256,uint256)" } }, - "functionReturnParameters": 662, - "id": 697, + "functionReturnParameters": 1611, + "id": 1646, "nodeType": "Return", - "src": "1422:309:3" + "src": "1422:309:5" } ] }, "documentation": "@dev getListing(): Return listing info for a given listing\r\n @param _index the index of the listing we want info about\r", - "id": 699, + "id": 1648, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -1184,16 +1184,16 @@ "name": "getListing", "nodeType": "FunctionDefinition", "parameters": { - "id": 647, + "id": 1596, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 646, + "id": 1595, "name": "_index", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1044:11:3", + "scope": 1648, + "src": "1044:11:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1201,10 +1201,10 @@ "typeString": "uint256" }, "typeName": { - "id": 645, + "id": 1594, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1044:4:3", + "src": "1044:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1214,35 +1214,35 @@ "visibility": "internal" } ], - "src": "1043:13:3" + "src": "1043:13:5" }, "payable": false, "returnParameters": { - "id": 662, + "id": 1611, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 649, + "id": 1598, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1103:7:3", + "scope": 1648, + "src": "1103:7:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" }, "typeName": { "contractScope": null, - "id": 648, + "id": 1597, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "1103:7:3", + "referencedDeclaration": 1554, + "src": "1103:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -1251,11 +1251,11 @@ }, { "constant": false, - "id": 651, + "id": 1600, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1112:7:3", + "scope": 1648, + "src": "1112:7:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1263,10 +1263,10 @@ "typeString": "address" }, "typeName": { - "id": 650, + "id": 1599, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1112:7:3", + "src": "1112:7:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1277,11 +1277,11 @@ }, { "constant": false, - "id": 653, + "id": 1602, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1121:7:3", + "scope": 1648, + "src": "1121:7:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1289,10 +1289,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 652, + "id": 1601, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "1121:7:3", + "src": "1121:7:5", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -1303,11 +1303,11 @@ }, { "constant": false, - "id": 655, + "id": 1604, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1130:4:3", + "scope": 1648, + "src": "1130:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1315,10 +1315,10 @@ "typeString": "uint256" }, "typeName": { - "id": 654, + "id": 1603, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1130:4:3", + "src": "1130:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1329,11 +1329,11 @@ }, { "constant": false, - "id": 657, + "id": 1606, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1136:4:3", + "scope": 1648, + "src": "1136:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1341,10 +1341,10 @@ "typeString": "uint256" }, "typeName": { - "id": 656, + "id": 1605, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1136:4:3", + "src": "1136:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1355,11 +1355,11 @@ }, { "constant": false, - "id": 659, + "id": 1608, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1141:4:3", + "scope": 1648, + "src": "1141:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1367,10 +1367,10 @@ "typeString": "uint256" }, "typeName": { - "id": 658, + "id": 1607, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1141:4:3", + "src": "1141:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1381,11 +1381,11 @@ }, { "constant": false, - "id": 661, + "id": 1610, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1147:4:3", + "scope": 1648, + "src": "1147:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1393,10 +1393,10 @@ "typeString": "uint256" }, "typeName": { - "id": 660, + "id": 1609, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1147:4:3", + "src": "1147:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1406,32 +1406,32 @@ "visibility": "internal" } ], - "src": "1102:50:3" + "src": "1102:50:5" }, - "scope": 853, - "src": "1024:715:3", + "scope": 1802, + "src": "1024:715:5", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 760, + "id": 1709, "nodeType": "Block", - "src": "1858:327:3", + "src": "1858:327:5", "statements": [ { "assignments": [ - 710 + 1659 ], "declarations": [ { "constant": false, - "id": 710, + "id": 1659, "name": "length", "nodeType": "VariableDeclaration", - "scope": 761, - "src": "1869:14:3", + "scope": 1710, + "src": "1869:14:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1439,10 +1439,10 @@ "typeString": "uint256" }, "typeName": { - "id": 709, + "id": 1658, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1869:7:3", + "src": "1869:7:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1452,22 +1452,22 @@ "visibility": "internal" } ], - "id": 712, + "id": 1661, "initialValue": { "argumentTypes": null, - "id": 711, + "id": 1660, "name": "howMany", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 703, - "src": "1886:7:3", + "referencedDeclaration": 1652, + "src": "1886:7:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "1869:24:3" + "src": "1869:24:5" }, { "condition": { @@ -1476,19 +1476,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 718, + "id": 1667, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 713, + "id": 1662, "name": "length", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 710, - "src": "1908:6:3", + "referencedDeclaration": 1659, + "src": "1908:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1502,7 +1502,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 717, + "id": 1666, "isConstant": false, "isLValue": false, "isPure": false, @@ -1511,18 +1511,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 714, + "id": 1663, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1917:8:3", + "referencedDeclaration": 1566, + "src": "1917:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 715, + "id": 1664, "isConstant": false, "isLValue": true, "isPure": false, @@ -1530,7 +1530,7 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "1917:15:3", + "src": "1917:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1540,54 +1540,54 @@ "operator": "-", "rightExpression": { "argumentTypes": null, - "id": 716, + "id": 1665, "name": "cursor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 701, - "src": "1935:6:3", + "referencedDeclaration": 1650, + "src": "1935:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1917:24:3", + "src": "1917:24:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1908:33:3", + "src": "1908:33:5", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 727, + "id": 1676, "nodeType": "IfStatement", - "src": "1904:99:3", + "src": "1904:99:5", "trueBody": { - "id": 726, + "id": 1675, "nodeType": "Block", - "src": "1943:60:3", + "src": "1943:60:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 724, + "id": 1673, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 719, + "id": 1668, "name": "length", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 710, - "src": "1958:6:3", + "referencedDeclaration": 1659, + "src": "1958:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1601,7 +1601,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 723, + "id": 1672, "isConstant": false, "isLValue": false, "isPure": false, @@ -1610,18 +1610,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 720, + "id": 1669, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1967:8:3", + "referencedDeclaration": 1566, + "src": "1967:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 721, + "id": 1670, "isConstant": false, "isLValue": true, "isPure": false, @@ -1629,7 +1629,7 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "1967:15:3", + "src": "1967:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1639,32 +1639,32 @@ "operator": "-", "rightExpression": { "argumentTypes": null, - "id": 722, + "id": 1671, "name": "cursor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 701, - "src": "1985:6:3", + "referencedDeclaration": 1650, + "src": "1985:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1967:24:3", + "src": "1967:24:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1958:33:3", + "src": "1958:33:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 725, + "id": 1674, "nodeType": "ExpressionStatement", - "src": "1958:33:3" + "src": "1958:33:5" } ] } @@ -1672,21 +1672,21 @@ { "expression": { "argumentTypes": null, - "id": 734, + "id": 1683, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 728, + "id": 1677, "name": "values", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 707, - "src": "2015:6:3", + "referencedDeclaration": 1656, + "src": "2015:6:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory_ptr", "typeString": "contract Listing[] memory" } }, @@ -1697,12 +1697,12 @@ "arguments": [ { "argumentTypes": null, - "id": 732, + "id": 1681, "name": "length", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 710, - "src": "2038:6:3", + "referencedDeclaration": 1659, + "src": "2038:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1716,41 +1716,41 @@ "typeString": "uint256" } ], - "id": 731, + "id": 1680, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", - "src": "2024:13:3", + "src": "2024:13:5", "typeDescriptions": { - "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_contract$_Listing_$605_$dyn_memory_$", + "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_contract$_Listing_$1554_$dyn_memory_$", "typeString": "function (uint256) pure returns (contract Listing[] memory)" }, "typeName": { "baseType": { "contractScope": null, - "id": 729, + "id": 1678, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "2028:7:3", + "referencedDeclaration": 1554, + "src": "2028:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 730, + "id": 1679, "length": null, "nodeType": "ArrayTypeName", - "src": "2028:9:3", + "src": "2028:9:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage_ptr", "typeString": "contract Listing[]" } } }, - "id": 733, + "id": 1682, "isConstant": false, "isLValue": false, "isPure": false, @@ -1758,32 +1758,32 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2024:21:3", + "src": "2024:21:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory", "typeString": "contract Listing[] memory" } }, - "src": "2015:30:3", + "src": "2015:30:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory_ptr", "typeString": "contract Listing[] memory" } }, - "id": 735, + "id": 1684, "nodeType": "ExpressionStatement", - "src": "2015:30:3" + "src": "2015:30:5" }, { "body": { - "id": 756, + "id": 1705, "nodeType": "Block", - "src": "2093:59:3", + "src": "2093:59:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 754, + "id": 1703, "isConstant": false, "isLValue": false, "isPure": false, @@ -1792,26 +1792,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 746, + "id": 1695, "name": "values", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 707, - "src": "2108:6:3", + "referencedDeclaration": 1656, + "src": "2108:6:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory_ptr", "typeString": "contract Listing[] memory" } }, - "id": 748, + "id": 1697, "indexExpression": { "argumentTypes": null, - "id": 747, + "id": 1696, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 737, - "src": "2115:1:3", + "referencedDeclaration": 1686, + "src": "2115:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1822,9 +1822,9 @@ "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", - "src": "2108:9:3", + "src": "2108:9:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -1834,37 +1834,37 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 749, + "id": 1698, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "2120:8:3", + "referencedDeclaration": 1566, + "src": "2120:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 753, + "id": 1702, "indexExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 752, + "id": 1701, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 750, + "id": 1699, "name": "cursor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 701, - "src": "2129:6:3", + "referencedDeclaration": 1650, + "src": "2129:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1874,18 +1874,18 @@ "operator": "+", "rightExpression": { "argumentTypes": null, - "id": 751, + "id": 1700, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 737, - "src": "2138:1:3", + "referencedDeclaration": 1686, + "src": "2138:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "2129:10:3", + "src": "2129:10:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1896,21 +1896,21 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "2120:20:3", + "src": "2120:20:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "src": "2108:32:3", + "src": "2108:32:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 755, + "id": 1704, "nodeType": "ExpressionStatement", - "src": "2108:32:3" + "src": "2108:32:5" } ] }, @@ -1920,19 +1920,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 742, + "id": 1691, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 740, + "id": 1689, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 737, - "src": "2076:1:3", + "referencedDeclaration": 1686, + "src": "2076:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1942,36 +1942,36 @@ "operator": "<", "rightExpression": { "argumentTypes": null, - "id": 741, + "id": 1690, "name": "length", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 710, - "src": "2080:6:3", + "referencedDeclaration": 1659, + "src": "2080:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "2076:10:3", + "src": "2076:10:5", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "id": 757, + "id": 1706, "initializationExpression": { "assignments": [ - 737 + 1686 ], "declarations": [ { "constant": false, - "id": 737, + "id": 1686, "name": "i", "nodeType": "VariableDeclaration", - "scope": 761, - "src": "2061:9:3", + "scope": 1710, + "src": "2061:9:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1979,10 +1979,10 @@ "typeString": "uint256" }, "typeName": { - "id": 736, + "id": 1685, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2061:7:3", + "src": "2061:7:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1992,18 +1992,18 @@ "visibility": "internal" } ], - "id": 739, + "id": 1688, "initialValue": { "argumentTypes": null, "hexValue": "30", - "id": 738, + "id": 1687, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "2073:1:3", + "src": "2073:1:5", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -2012,12 +2012,12 @@ "value": "0" }, "nodeType": "VariableDeclarationStatement", - "src": "2061:13:3" + "src": "2061:13:5" }, "loopExpression": { "expression": { "argumentTypes": null, - "id": 744, + "id": 1693, "isConstant": false, "isLValue": false, "isPure": false, @@ -2025,15 +2025,15 @@ "nodeType": "UnaryOperation", "operator": "++", "prefix": false, - "src": "2088:3:3", + "src": "2088:3:5", "subExpression": { "argumentTypes": null, - "id": 743, + "id": 1692, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 737, - "src": "2088:1:3", + "referencedDeclaration": 1686, + "src": "2088:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2044,36 +2044,36 @@ "typeString": "uint256" } }, - "id": 745, + "id": 1694, "nodeType": "ExpressionStatement", - "src": "2088:3:3" + "src": "2088:3:5" }, "nodeType": "ForStatement", - "src": "2056:96:3" + "src": "2056:96:5" }, { "expression": { "argumentTypes": null, - "id": 758, + "id": 1707, "name": "values", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 707, - "src": "2171:6:3", + "referencedDeclaration": 1656, + "src": "2171:6:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory_ptr", "typeString": "contract Listing[] memory" } }, - "functionReturnParameters": 708, - "id": 759, + "functionReturnParameters": 1657, + "id": 1708, "nodeType": "Return", - "src": "2164:13:3" + "src": "2164:13:5" } ] }, "documentation": null, - "id": 761, + "id": 1710, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -2081,16 +2081,16 @@ "name": "fetchPage", "nodeType": "FunctionDefinition", "parameters": { - "id": 704, + "id": 1653, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 701, + "id": 1650, "name": "cursor", "nodeType": "VariableDeclaration", - "scope": 761, - "src": "1766:14:3", + "scope": 1710, + "src": "1766:14:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2098,10 +2098,10 @@ "typeString": "uint256" }, "typeName": { - "id": 700, + "id": 1649, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1766:7:3", + "src": "1766:7:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2112,11 +2112,11 @@ }, { "constant": false, - "id": 703, + "id": 1652, "name": "howMany", "nodeType": "VariableDeclaration", - "scope": 761, - "src": "1782:15:3", + "scope": 1710, + "src": "1782:15:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2124,10 +2124,10 @@ "typeString": "uint256" }, "typeName": { - "id": 702, + "id": 1651, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1782:7:3", + "src": "1782:7:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2137,45 +2137,45 @@ "visibility": "internal" } ], - "src": "1765:33:3" + "src": "1765:33:5" }, "payable": false, "returnParameters": { - "id": 708, + "id": 1657, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 707, + "id": 1656, "name": "values", "nodeType": "VariableDeclaration", - "scope": 761, - "src": "1835:16:3", + "scope": 1710, + "src": "1835:16:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory_ptr", "typeString": "contract Listing[]" }, "typeName": { "baseType": { "contractScope": null, - "id": 705, + "id": 1654, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "1835:7:3", + "referencedDeclaration": 1554, + "src": "1835:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 706, + "id": 1655, "length": null, "nodeType": "ArrayTypeName", - "src": "1835:9:3", + "src": "1835:9:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage_ptr", "typeString": "contract Listing[]" } }, @@ -2183,19 +2183,19 @@ "visibility": "internal" } ], - "src": "1834:18:3" + "src": "1834:18:5" }, - "scope": 853, - "src": "1747:438:3", + "scope": 1802, + "src": "1747:438:5", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 801, + "id": 1750, "nodeType": "Block", - "src": "3085:213:3", + "src": "3085:213:5", "statements": [ { "expression": { @@ -2208,18 +2208,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 781, + "id": 1730, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "3122:3:3", + "referencedDeclaration": 1965, + "src": "3122:3:5", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 782, + "id": 1731, "isConstant": false, "isLValue": false, "isPure": false, @@ -2227,7 +2227,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3122:10:3", + "src": "3122:10:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2235,12 +2235,12 @@ }, { "argumentTypes": null, - "id": 783, + "id": 1732, "name": "_ipfsHash", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 763, - "src": "3134:9:3", + "referencedDeclaration": 1712, + "src": "3134:9:5", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -2248,12 +2248,12 @@ }, { "argumentTypes": null, - "id": 784, + "id": 1733, "name": "_workingHours", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 765, - "src": "3145:13:3", + "referencedDeclaration": 1714, + "src": "3145:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2261,12 +2261,12 @@ }, { "argumentTypes": null, - "id": 785, + "id": 1734, "name": "_resourceType", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 767, - "src": "3160:13:3", + "referencedDeclaration": 1716, + "src": "3160:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2274,12 +2274,12 @@ }, { "argumentTypes": null, - "id": 786, + "id": 1735, "name": "_resourceRate", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 769, - "src": "3174:13:3", + "referencedDeclaration": 1718, + "src": "3174:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2287,12 +2287,12 @@ }, { "argumentTypes": null, - "id": 787, + "id": 1736, "name": "_totalResourceRequired", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 771, - "src": "3188:22:3", + "referencedDeclaration": 1720, + "src": "3188:22:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2326,31 +2326,31 @@ "typeString": "uint256" } ], - "id": 780, + "id": 1729, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "NewExpression", - "src": "3110:11:3", + "src": "3110:11:5", "typeDescriptions": { - "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_contract$_Listing_$605_$", + "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_contract$_Listing_$1554_$", "typeString": "function (address,bytes32,uint256,uint256,uint256,uint256) returns (contract Listing)" }, "typeName": { "contractScope": null, - "id": 779, + "id": 1728, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "3114:7:3", + "referencedDeclaration": 1554, + "src": "3114:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } } }, - "id": 788, + "id": 1737, "isConstant": false, "isLValue": false, "isPure": false, @@ -2358,9 +2358,9 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3110:101:3", + "src": "3110:101:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } } @@ -2368,24 +2368,24 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } ], "expression": { "argumentTypes": null, - "id": 776, + "id": 1725, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "3096:8:3", + "referencedDeclaration": 1566, + "src": "3096:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 778, + "id": 1727, "isConstant": false, "isLValue": false, "isPure": false, @@ -2393,13 +2393,13 @@ "memberName": "push", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3096:13:3", + "src": "3096:13:5", "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_Listing_$605_$returns$_t_uint256_$", + "typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_Listing_$1554_$returns$_t_uint256_$", "typeString": "function (contract Listing) returns (uint256)" } }, - "id": 789, + "id": 1738, "isConstant": false, "isLValue": false, "isPure": false, @@ -2407,15 +2407,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3096:116:3", + "src": "3096:116:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 790, + "id": 1739, "nodeType": "ExpressionStatement", - "src": "3096:116:3" + "src": "3096:116:5" }, { "eventCall": { @@ -2427,7 +2427,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 795, + "id": 1744, "isConstant": false, "isLValue": false, "isPure": false, @@ -2436,18 +2436,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 792, + "id": 1741, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "3239:8:3", + "referencedDeclaration": 1566, + "src": "3239:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 793, + "id": 1742, "isConstant": false, "isLValue": true, "isPure": false, @@ -2455,7 +2455,7 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3239:15:3", + "src": "3239:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2466,14 +2466,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "31", - "id": 794, + "id": 1743, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "3255:1:3", + "src": "3255:1:5", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", @@ -2481,7 +2481,7 @@ }, "value": "1" }, - "src": "3239:17:3", + "src": "3239:17:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2495,18 +2495,18 @@ "typeString": "uint256" } ], - "id": 791, + "id": 1740, "name": "NewListing", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 612, - "src": "3228:10:3", + "referencedDeclaration": 1561, + "src": "3228:10:5", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, - "id": 796, + "id": 1745, "isConstant": false, "isLValue": false, "isPure": false, @@ -2514,33 +2514,33 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3228:29:3", + "src": "3228:29:5", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 797, + "id": 1746, "nodeType": "EmitStatement", - "src": "3223:34:3" + "src": "3223:34:5" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 798, + "id": 1747, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "3275:8:3", + "referencedDeclaration": 1566, + "src": "3275:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 799, + "id": 1748, "isConstant": false, "isLValue": true, "isPure": false, @@ -2548,21 +2548,21 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3275:15:3", + "src": "3275:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 775, - "id": 800, + "functionReturnParameters": 1724, + "id": 1749, "nodeType": "Return", - "src": "3268:22:3" + "src": "3268:22:5" } ] }, "documentation": "Sample Remix invocation:\r\n [\"0x01\",\"0x7d\",\"0xfd\",\"0x85\",\"0xd4\",\"0xf6\",\"0xcb\",\"0x4d\",\"0xcd\",\"0x71\",\"0x5a\",\"0x88\",\"0x10\",\"0x1f\",\"0x7b\",\"0x1f\",\"0x06\",\"0xcd\",\"0x1e\",\"0x00\",\"0x9b\",\"0x23\",\"0x27\",\"0xa0\",\"0x80\",\"0x9d\",\"0x01\",\"0xeb\",\"0x9c\",\"0x91\",\"0xf2\",\"0x31\"],\"3140000000000000000\",42\r", - "id": 802, + "id": 1751, "implemented": true, "isConstructor": false, "isDeclaredConst": false, @@ -2570,16 +2570,16 @@ "name": "create", "nodeType": "FunctionDefinition", "parameters": { - "id": 772, + "id": 1721, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 763, + "id": 1712, "name": "_ipfsHash", "nodeType": "VariableDeclaration", - "scope": 802, - "src": "2894:17:3", + "scope": 1751, + "src": "2894:17:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2587,10 +2587,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 762, + "id": 1711, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "2894:7:3", + "src": "2894:7:5", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -2601,11 +2601,11 @@ }, { "constant": false, - "id": 765, + "id": 1714, "name": "_workingHours", "nodeType": "VariableDeclaration", - "scope": 802, - "src": "2922:18:3", + "scope": 1751, + "src": "2922:18:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2613,10 +2613,10 @@ "typeString": "uint256" }, "typeName": { - "id": 764, + "id": 1713, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2922:4:3", + "src": "2922:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2627,11 +2627,11 @@ }, { "constant": false, - "id": 767, + "id": 1716, "name": "_resourceType", "nodeType": "VariableDeclaration", - "scope": 802, - "src": "2951:18:3", + "scope": 1751, + "src": "2951:18:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2639,10 +2639,10 @@ "typeString": "uint256" }, "typeName": { - "id": 766, + "id": 1715, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2951:4:3", + "src": "2951:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2653,11 +2653,11 @@ }, { "constant": false, - "id": 769, + "id": 1718, "name": "_resourceRate", "nodeType": "VariableDeclaration", - "scope": 802, - "src": "2980:18:3", + "scope": 1751, + "src": "2980:18:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2665,10 +2665,10 @@ "typeString": "uint256" }, "typeName": { - "id": 768, + "id": 1717, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2980:4:3", + "src": "2980:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2679,11 +2679,11 @@ }, { "constant": false, - "id": 771, + "id": 1720, "name": "_totalResourceRequired", "nodeType": "VariableDeclaration", - "scope": 802, - "src": "3009:27:3", + "scope": 1751, + "src": "3009:27:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2691,10 +2691,10 @@ "typeString": "uint256" }, "typeName": { - "id": 770, + "id": 1719, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "3009:4:3", + "src": "3009:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2704,20 +2704,20 @@ "visibility": "internal" } ], - "src": "2883:160:3" + "src": "2883:160:5" }, "payable": false, "returnParameters": { - "id": 775, + "id": 1724, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 774, + "id": 1723, "name": "", "nodeType": "VariableDeclaration", - "scope": 802, - "src": "3074:4:3", + "scope": 1751, + "src": "3074:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -2725,10 +2725,10 @@ "typeString": "uint256" }, "typeName": { - "id": 773, + "id": 1722, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "3074:4:3", + "src": "3074:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2738,19 +2738,19 @@ "visibility": "internal" } ], - "src": "3073:6:3" + "src": "3073:6:5" }, - "scope": 853, - "src": "2868:430:3", + "scope": 1802, + "src": "2868:430:5", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 851, + "id": 1800, "nodeType": "Block", - "src": "4035:294:3", + "src": "4035:294:5", "statements": [ { "expression": { @@ -2762,7 +2762,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 823, + "id": 1772, "isConstant": false, "isLValue": false, "isPure": false, @@ -2771,18 +2771,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 820, + "id": 1769, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "4055:3:3", + "referencedDeclaration": 1965, + "src": "4055:3:5", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 821, + "id": 1770, "isConstant": false, "isLValue": false, "isPure": false, @@ -2790,7 +2790,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4055:10:3", + "src": "4055:10:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2800,18 +2800,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 822, + "id": 1771, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 614, - "src": "4069:5:3", + "referencedDeclaration": 1563, + "src": "4069:5:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "4055:19:3", + "src": "4055:19:5", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -2820,14 +2820,14 @@ { "argumentTypes": null, "hexValue": "4f6e6c792063616c6c61626c65206279207265676973747279206f776e6572", - "id": 824, + "id": 1773, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "4076:33:3", + "src": "4076:33:5", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_a20a2dd5a23f4821a72bf6d8995e30bd3c3d788da1cb47c7a01d91ed1e1d92b0", @@ -2847,21 +2847,21 @@ "typeString": "literal_string \"Only callable by registry owner\"" } ], - "id": 819, + "id": 1768, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 872, - "src": "4046:7:3", + "referencedDeclaration": 1969, + "src": "4046:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 825, + "id": 1774, "isConstant": false, "isLValue": false, "isPure": false, @@ -2869,15 +2869,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4046:64:3", + "src": "4046:64:5", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 826, + "id": 1775, "nodeType": "ExpressionStatement", - "src": "4046:64:3" + "src": "4046:64:5" }, { "expression": { @@ -2888,12 +2888,12 @@ "arguments": [ { "argumentTypes": null, - "id": 832, + "id": 1781, "name": "_creatorAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 814, - "src": "4147:15:3", + "referencedDeclaration": 1763, + "src": "4147:15:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -2901,12 +2901,12 @@ }, { "argumentTypes": null, - "id": 833, + "id": 1782, "name": "_ipfsHash", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 804, - "src": "4165:9:3", + "referencedDeclaration": 1753, + "src": "4165:9:5", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -2914,12 +2914,12 @@ }, { "argumentTypes": null, - "id": 834, + "id": 1783, "name": "_workingHours", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 806, - "src": "4176:13:3", + "referencedDeclaration": 1755, + "src": "4176:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2927,12 +2927,12 @@ }, { "argumentTypes": null, - "id": 835, + "id": 1784, "name": "_resourceType", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 808, - "src": "4191:13:3", + "referencedDeclaration": 1757, + "src": "4191:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2940,12 +2940,12 @@ }, { "argumentTypes": null, - "id": 836, + "id": 1785, "name": "_resourceRate", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 810, - "src": "4205:13:3", + "referencedDeclaration": 1759, + "src": "4205:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2953,12 +2953,12 @@ }, { "argumentTypes": null, - "id": 837, + "id": 1786, "name": "_totalResourceRequired", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 812, - "src": "4219:22:3", + "referencedDeclaration": 1761, + "src": "4219:22:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -2992,31 +2992,31 @@ "typeString": "uint256" } ], - "id": 831, + "id": 1780, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "NewExpression", - "src": "4135:11:3", + "src": "4135:11:5", "typeDescriptions": { - "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_contract$_Listing_$605_$", + "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_contract$_Listing_$1554_$", "typeString": "function (address,bytes32,uint256,uint256,uint256,uint256) returns (contract Listing)" }, "typeName": { "contractScope": null, - "id": 830, + "id": 1779, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "4139:7:3", + "referencedDeclaration": 1554, + "src": "4139:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } } }, - "id": 838, + "id": 1787, "isConstant": false, "isLValue": false, "isPure": false, @@ -3024,9 +3024,9 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4135:107:3", + "src": "4135:107:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } } @@ -3034,24 +3034,24 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } ], "expression": { "argumentTypes": null, - "id": 827, + "id": 1776, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "4121:8:3", + "referencedDeclaration": 1566, + "src": "4121:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 829, + "id": 1778, "isConstant": false, "isLValue": false, "isPure": false, @@ -3059,13 +3059,13 @@ "memberName": "push", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4121:13:3", + "src": "4121:13:5", "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_Listing_$605_$returns$_t_uint256_$", + "typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_Listing_$1554_$returns$_t_uint256_$", "typeString": "function (contract Listing) returns (uint256)" } }, - "id": 839, + "id": 1788, "isConstant": false, "isLValue": false, "isPure": false, @@ -3073,15 +3073,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4121:122:3", + "src": "4121:122:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 840, + "id": 1789, "nodeType": "ExpressionStatement", - "src": "4121:122:3" + "src": "4121:122:5" }, { "eventCall": { @@ -3093,7 +3093,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 845, + "id": 1794, "isConstant": false, "isLValue": false, "isPure": false, @@ -3102,18 +3102,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 842, + "id": 1791, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "4270:8:3", + "referencedDeclaration": 1566, + "src": "4270:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 843, + "id": 1792, "isConstant": false, "isLValue": true, "isPure": false, @@ -3121,7 +3121,7 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4270:15:3", + "src": "4270:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3132,14 +3132,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "31", - "id": 844, + "id": 1793, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "4286:1:3", + "src": "4286:1:5", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", @@ -3147,7 +3147,7 @@ }, "value": "1" }, - "src": "4270:17:3", + "src": "4270:17:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3161,18 +3161,18 @@ "typeString": "uint256" } ], - "id": 841, + "id": 1790, "name": "NewListing", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 612, - "src": "4259:10:3", + "referencedDeclaration": 1561, + "src": "4259:10:5", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, - "id": 846, + "id": 1795, "isConstant": false, "isLValue": false, "isPure": false, @@ -3180,33 +3180,33 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4259:29:3", + "src": "4259:29:5", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 847, + "id": 1796, "nodeType": "EmitStatement", - "src": "4254:34:3" + "src": "4254:34:5" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 848, + "id": 1797, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "4306:8:3", + "referencedDeclaration": 1566, + "src": "4306:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 849, + "id": 1798, "isConstant": false, "isLValue": true, "isPure": false, @@ -3214,21 +3214,21 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4306:15:3", + "src": "4306:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 818, - "id": 850, + "functionReturnParameters": 1767, + "id": 1799, "nodeType": "Return", - "src": "4299:22:3" + "src": "4299:22:5" } ] }, "documentation": null, - "id": 852, + "id": 1801, "implemented": true, "isConstructor": false, "isDeclaredConst": false, @@ -3236,16 +3236,16 @@ "name": "createOnBehalf", "nodeType": "FunctionDefinition", "parameters": { - "id": 815, + "id": 1764, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 804, + "id": 1753, "name": "_ipfsHash", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "3810:17:3", + "scope": 1801, + "src": "3810:17:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3253,10 +3253,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 803, + "id": 1752, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "3810:7:3", + "src": "3810:7:5", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -3267,11 +3267,11 @@ }, { "constant": false, - "id": 806, + "id": 1755, "name": "_workingHours", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "3838:18:3", + "scope": 1801, + "src": "3838:18:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3279,10 +3279,10 @@ "typeString": "uint256" }, "typeName": { - "id": 805, + "id": 1754, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "3838:4:3", + "src": "3838:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3293,11 +3293,11 @@ }, { "constant": false, - "id": 808, + "id": 1757, "name": "_resourceType", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "3867:18:3", + "scope": 1801, + "src": "3867:18:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3305,10 +3305,10 @@ "typeString": "uint256" }, "typeName": { - "id": 807, + "id": 1756, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "3867:4:3", + "src": "3867:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3319,11 +3319,11 @@ }, { "constant": false, - "id": 810, + "id": 1759, "name": "_resourceRate", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "3896:18:3", + "scope": 1801, + "src": "3896:18:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3331,10 +3331,10 @@ "typeString": "uint256" }, "typeName": { - "id": 809, + "id": 1758, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "3896:4:3", + "src": "3896:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3345,11 +3345,11 @@ }, { "constant": false, - "id": 812, + "id": 1761, "name": "_totalResourceRequired", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "3925:27:3", + "scope": 1801, + "src": "3925:27:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3357,10 +3357,10 @@ "typeString": "uint256" }, "typeName": { - "id": 811, + "id": 1760, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "3925:4:3", + "src": "3925:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3371,11 +3371,11 @@ }, { "constant": false, - "id": 814, + "id": 1763, "name": "_creatorAddress", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "3963:23:3", + "scope": 1801, + "src": "3963:23:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3383,10 +3383,10 @@ "typeString": "address" }, "typeName": { - "id": 813, + "id": 1762, "name": "address", "nodeType": "ElementaryTypeName", - "src": "3963:7:3", + "src": "3963:7:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3396,20 +3396,20 @@ "visibility": "internal" } ], - "src": "3799:194:3" + "src": "3799:194:5" }, "payable": false, "returnParameters": { - "id": 818, + "id": 1767, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 817, + "id": 1766, "name": "", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "4024:4:3", + "scope": 1801, + "src": "4024:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3417,10 +3417,10 @@ "typeString": "uint256" }, "typeName": { - "id": 816, + "id": 1765, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "4024:4:3", + "src": "4024:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3430,63 +3430,63 @@ "visibility": "internal" } ], - "src": "4023:6:3" + "src": "4023:6:5" }, - "scope": 853, - "src": "3776:553:3", + "scope": 1802, + "src": "3776:553:5", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], - "scope": 854, - "src": "199:4133:3" + "scope": 1803, + "src": "199:4133:5" } ], - "src": "0:4332:3" + "src": "0:4332:5" }, "legacyAST": { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/ListingsRegistry.sol", "exportedSymbols": { "ListingsRegistry": [ - 853 + 1802 ] }, - "id": 854, + "id": 1803, "nodeType": "SourceUnit", "nodes": [ { - "id": 607, + "id": 1556, "literals": [ "solidity", "0.4", ".24" ], "nodeType": "PragmaDirective", - "src": "0:23:3" + "src": "0:23:5" }, { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/Listing.sol", "file": "./Listing.sol", - "id": 608, + "id": 1557, "nodeType": "ImportDirective", - "scope": 854, - "sourceUnit": 606, - "src": "172:23:3", + "scope": 1803, + "sourceUnit": 1555, + "src": "172:23:5", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [], "contractDependencies": [ - 605 + 1554 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 853, + "id": 1802, "linearizedBaseContracts": [ - 853 + 1802 ], "name": "ListingsRegistry", "nodeType": "ContractDefinition", @@ -3494,21 +3494,21 @@ { "anonymous": false, "documentation": null, - "id": 612, + "id": 1561, "name": "NewListing", "nodeType": "EventDefinition", "parameters": { - "id": 611, + "id": 1560, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 610, + "id": 1559, "indexed": false, "name": "_index", "nodeType": "VariableDeclaration", - "scope": 612, - "src": "279:11:3", + "scope": 1561, + "src": "279:11:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3516,10 +3516,10 @@ "typeString": "uint256" }, "typeName": { - "id": 609, + "id": 1558, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "279:4:3", + "src": "279:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3529,17 +3529,17 @@ "visibility": "internal" } ], - "src": "278:13:3" + "src": "278:13:5" }, - "src": "262:30:3" + "src": "262:30:5" }, { "constant": false, - "id": 614, + "id": 1563, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 853, - "src": "350:20:3", + "scope": 1802, + "src": "350:20:5", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -3547,10 +3547,10 @@ "typeString": "address" }, "typeName": { - "id": 613, + "id": 1562, "name": "address", "nodeType": "ElementaryTypeName", - "src": "350:7:3", + "src": "350:7:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3561,36 +3561,36 @@ }, { "constant": false, - "id": 617, + "id": 1566, "name": "listings", "nodeType": "VariableDeclaration", - "scope": 853, - "src": "407:25:3", + "scope": 1802, + "src": "407:25:5", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[]" }, "typeName": { "baseType": { "contractScope": null, - "id": 615, + "id": 1564, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "407:7:3", + "referencedDeclaration": 1554, + "src": "407:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 616, + "id": 1565, "length": null, "nodeType": "ArrayTypeName", - "src": "407:9:3", + "src": "407:9:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage_ptr", "typeString": "contract Listing[]" } }, @@ -3599,26 +3599,26 @@ }, { "body": { - "id": 625, + "id": 1574, "nodeType": "Block", - "src": "512:81:3", + "src": "512:81:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 623, + "id": 1572, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 620, + "id": 1569, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 614, - "src": "567:5:3", + "referencedDeclaration": 1563, + "src": "567:5:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -3630,18 +3630,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 621, + "id": 1570, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "575:3:3", + "referencedDeclaration": 1965, + "src": "575:3:5", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 622, + "id": 1571, "isConstant": false, "isLValue": false, "isPure": false, @@ -3649,26 +3649,26 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "575:10:3", + "src": "575:10:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "567:18:3", + "src": "567:18:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 624, + "id": 1573, "nodeType": "ExpressionStatement", - "src": "567:18:3" + "src": "567:18:5" } ] }, "documentation": null, - "id": 626, + "id": 1575, "implemented": true, "isConstructor": true, "isDeclaredConst": false, @@ -3676,47 +3676,47 @@ "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 618, + "id": 1567, "nodeType": "ParameterList", "parameters": [], - "src": "490:2:3" + "src": "490:2:5" }, "payable": false, "returnParameters": { - "id": 619, + "id": 1568, "nodeType": "ParameterList", "parameters": [], - "src": "512:0:3" + "src": "512:0:5" }, - "scope": 853, - "src": "479:114:3", + "scope": 1802, + "src": "479:114:5", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 634, + "id": 1583, "nodeType": "Block", - "src": "740:41:3", + "src": "740:41:5", "statements": [ { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 631, + "id": 1580, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "758:8:3", + "referencedDeclaration": 1566, + "src": "758:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 632, + "id": 1581, "isConstant": false, "isLValue": true, "isPure": false, @@ -3724,21 +3724,21 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "758:15:3", + "src": "758:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 630, - "id": 633, + "functionReturnParameters": 1579, + "id": 1582, "nodeType": "Return", - "src": "751:22:3" + "src": "751:22:5" } ] }, "documentation": "@dev listingsLength(): Return number of listings\r", - "id": 635, + "id": 1584, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -3746,23 +3746,23 @@ "name": "listingsLength", "nodeType": "FunctionDefinition", "parameters": { - "id": 627, + "id": 1576, "nodeType": "ParameterList", "parameters": [], - "src": "680:2:3" + "src": "680:2:5" }, "payable": false, "returnParameters": { - "id": 630, + "id": 1579, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 629, + "id": 1578, "name": "", "nodeType": "VariableDeclaration", - "scope": 635, - "src": "729:4:3", + "scope": 1584, + "src": "729:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -3770,10 +3770,10 @@ "typeString": "uint256" }, "typeName": { - "id": 628, + "id": 1577, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "729:4:3", + "src": "729:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3783,43 +3783,43 @@ "visibility": "internal" } ], - "src": "728:6:3" + "src": "728:6:5" }, - "scope": 853, - "src": "657:124:3", + "scope": 1802, + "src": "657:124:5", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 643, + "id": 1592, "nodeType": "Block", - "src": "847:34:3", + "src": "847:34:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 641, + "id": 1590, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "865:8:3", + "referencedDeclaration": 1566, + "src": "865:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "functionReturnParameters": 640, - "id": 642, + "functionReturnParameters": 1589, + "id": 1591, "nodeType": "Return", - "src": "858:15:3" + "src": "858:15:5" } ] }, "documentation": null, - "id": 644, + "id": 1593, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -3827,48 +3827,48 @@ "name": "getListings", "nodeType": "FunctionDefinition", "parameters": { - "id": 636, + "id": 1585, "nodeType": "ParameterList", "parameters": [], - "src": "813:2:3" + "src": "813:2:5" }, "payable": false, "returnParameters": { - "id": 640, + "id": 1589, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 639, + "id": 1588, "name": "", "nodeType": "VariableDeclaration", - "scope": 644, - "src": "837:9:3", + "scope": 1593, + "src": "837:9:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory_ptr", "typeString": "contract Listing[]" }, "typeName": { "baseType": { "contractScope": null, - "id": 637, + "id": 1586, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "837:7:3", + "referencedDeclaration": 1554, + "src": "837:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 638, + "id": 1587, "length": null, "nodeType": "ArrayTypeName", - "src": "837:9:3", + "src": "837:9:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage_ptr", "typeString": "contract Listing[]" } }, @@ -3876,19 +3876,19 @@ "visibility": "internal" } ], - "src": "836:11:3" + "src": "836:11:5" }, - "scope": 853, - "src": "793:88:3", + "scope": 1802, + "src": "793:88:5", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 698, + "id": 1647, "nodeType": "Block", - "src": "1158:581:3", + "src": "1158:581:5", "statements": [ { "expression": { @@ -3898,26 +3898,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 663, + "id": 1612, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1442:8:3", + "referencedDeclaration": 1566, + "src": "1442:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 665, + "id": 1614, "indexExpression": { "argumentTypes": null, - "id": 664, + "id": 1613, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1451:6:3", + "referencedDeclaration": 1595, + "src": "1451:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3928,9 +3928,9 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1442:16:3", + "src": "1442:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -3943,26 +3943,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 666, + "id": 1615, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1471:8:3", + "referencedDeclaration": 1566, + "src": "1471:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 668, + "id": 1617, "indexExpression": { "argumentTypes": null, - "id": 667, + "id": 1616, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1480:6:3", + "referencedDeclaration": 1595, + "src": "1480:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -3973,27 +3973,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1471:16:3", + "src": "1471:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 669, + "id": 1618, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "owner", "nodeType": "MemberAccess", - "referencedDeclaration": 412, - "src": "1471:22:3", + "referencedDeclaration": 1361, + "src": "1471:22:5", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_address_$", "typeString": "function () view external returns (address)" } }, - "id": 670, + "id": 1619, "isConstant": false, "isLValue": false, "isPure": false, @@ -4001,7 +4001,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1471:24:3", + "src": "1471:24:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4016,26 +4016,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 671, + "id": 1620, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1508:8:3", + "referencedDeclaration": 1566, + "src": "1508:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 673, + "id": 1622, "indexExpression": { "argumentTypes": null, - "id": 672, + "id": 1621, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1517:6:3", + "referencedDeclaration": 1595, + "src": "1517:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4046,27 +4046,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1508:16:3", + "src": "1508:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 674, + "id": 1623, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "ipfsHash", "nodeType": "MemberAccess", - "referencedDeclaration": 416, - "src": "1508:25:3", + "referencedDeclaration": 1365, + "src": "1508:25:5", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_bytes32_$", "typeString": "function () view external returns (bytes32)" } }, - "id": 675, + "id": 1624, "isConstant": false, "isLValue": false, "isPure": false, @@ -4074,7 +4074,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1508:27:3", + "src": "1508:27:5", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -4089,26 +4089,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 676, + "id": 1625, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1548:8:3", + "referencedDeclaration": 1566, + "src": "1548:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 678, + "id": 1627, "indexExpression": { "argumentTypes": null, - "id": 677, + "id": 1626, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1557:6:3", + "referencedDeclaration": 1595, + "src": "1557:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4119,27 +4119,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1548:16:3", + "src": "1548:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 679, + "id": 1628, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "workingHours", "nodeType": "MemberAccess", - "referencedDeclaration": 418, - "src": "1548:29:3", + "referencedDeclaration": 1367, + "src": "1548:29:5", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$", "typeString": "function () view external returns (uint256)" } }, - "id": 680, + "id": 1629, "isConstant": false, "isLValue": false, "isPure": false, @@ -4147,7 +4147,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1548:31:3", + "src": "1548:31:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4162,26 +4162,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 681, + "id": 1630, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1592:8:3", + "referencedDeclaration": 1566, + "src": "1592:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 683, + "id": 1632, "indexExpression": { "argumentTypes": null, - "id": 682, + "id": 1631, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1601:6:3", + "referencedDeclaration": 1595, + "src": "1601:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4192,27 +4192,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1592:16:3", + "src": "1592:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 684, + "id": 1633, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "resourceType", "nodeType": "MemberAccess", - "referencedDeclaration": 420, - "src": "1592:29:3", + "referencedDeclaration": 1369, + "src": "1592:29:5", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$", "typeString": "function () view external returns (uint256)" } }, - "id": 685, + "id": 1634, "isConstant": false, "isLValue": false, "isPure": false, @@ -4220,7 +4220,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1592:31:3", + "src": "1592:31:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4235,26 +4235,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 686, + "id": 1635, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1636:8:3", + "referencedDeclaration": 1566, + "src": "1636:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 688, + "id": 1637, "indexExpression": { "argumentTypes": null, - "id": 687, + "id": 1636, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1645:6:3", + "referencedDeclaration": 1595, + "src": "1645:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4265,27 +4265,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1636:16:3", + "src": "1636:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 689, + "id": 1638, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "resourceRate", "nodeType": "MemberAccess", - "referencedDeclaration": 422, - "src": "1636:29:3", + "referencedDeclaration": 1371, + "src": "1636:29:5", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$", "typeString": "function () view external returns (uint256)" } }, - "id": 690, + "id": 1639, "isConstant": false, "isLValue": false, "isPure": false, @@ -4293,7 +4293,7 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1636:31:3", + "src": "1636:31:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4308,26 +4308,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 691, + "id": 1640, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1680:8:3", + "referencedDeclaration": 1566, + "src": "1680:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 693, + "id": 1642, "indexExpression": { "argumentTypes": null, - "id": 692, + "id": 1641, "name": "_index", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 646, - "src": "1689:6:3", + "referencedDeclaration": 1595, + "src": "1689:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4338,27 +4338,27 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "1680:16:3", + "src": "1680:16:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 694, + "id": 1643, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "totalResourceRequired", "nodeType": "MemberAccess", - "referencedDeclaration": 424, - "src": "1680:38:3", + "referencedDeclaration": 1373, + "src": "1680:38:5", "typeDescriptions": { "typeIdentifier": "t_function_external_view$__$returns$_t_uint256_$", "typeString": "function () view external returns (uint256)" } }, - "id": 695, + "id": 1644, "isConstant": false, "isLValue": false, "isPure": false, @@ -4366,35 +4366,35 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "1680:40:3", + "src": "1680:40:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } } ], - "id": 696, + "id": 1645, "isConstant": false, "isInlineArray": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "TupleExpression", - "src": "1429:302:3", + "src": "1429:302:5", "typeDescriptions": { - "typeIdentifier": "t_tuple$_t_contract$_Listing_$605_$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$", + "typeIdentifier": "t_tuple$_t_contract$_Listing_$1554_$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$", "typeString": "tuple(contract Listing,address,bytes32,uint256,uint256,uint256,uint256)" } }, - "functionReturnParameters": 662, - "id": 697, + "functionReturnParameters": 1611, + "id": 1646, "nodeType": "Return", - "src": "1422:309:3" + "src": "1422:309:5" } ] }, "documentation": "@dev getListing(): Return listing info for a given listing\r\n @param _index the index of the listing we want info about\r", - "id": 699, + "id": 1648, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -4402,16 +4402,16 @@ "name": "getListing", "nodeType": "FunctionDefinition", "parameters": { - "id": 647, + "id": 1596, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 646, + "id": 1595, "name": "_index", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1044:11:3", + "scope": 1648, + "src": "1044:11:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4419,10 +4419,10 @@ "typeString": "uint256" }, "typeName": { - "id": 645, + "id": 1594, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1044:4:3", + "src": "1044:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4432,35 +4432,35 @@ "visibility": "internal" } ], - "src": "1043:13:3" + "src": "1043:13:5" }, "payable": false, "returnParameters": { - "id": 662, + "id": 1611, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 649, + "id": 1598, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1103:7:3", + "scope": 1648, + "src": "1103:7:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" }, "typeName": { "contractScope": null, - "id": 648, + "id": 1597, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "1103:7:3", + "referencedDeclaration": 1554, + "src": "1103:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -4469,11 +4469,11 @@ }, { "constant": false, - "id": 651, + "id": 1600, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1112:7:3", + "scope": 1648, + "src": "1112:7:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4481,10 +4481,10 @@ "typeString": "address" }, "typeName": { - "id": 650, + "id": 1599, "name": "address", "nodeType": "ElementaryTypeName", - "src": "1112:7:3", + "src": "1112:7:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -4495,11 +4495,11 @@ }, { "constant": false, - "id": 653, + "id": 1602, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1121:7:3", + "scope": 1648, + "src": "1121:7:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4507,10 +4507,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 652, + "id": 1601, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "1121:7:3", + "src": "1121:7:5", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -4521,11 +4521,11 @@ }, { "constant": false, - "id": 655, + "id": 1604, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1130:4:3", + "scope": 1648, + "src": "1130:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4533,10 +4533,10 @@ "typeString": "uint256" }, "typeName": { - "id": 654, + "id": 1603, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1130:4:3", + "src": "1130:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4547,11 +4547,11 @@ }, { "constant": false, - "id": 657, + "id": 1606, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1136:4:3", + "scope": 1648, + "src": "1136:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4559,10 +4559,10 @@ "typeString": "uint256" }, "typeName": { - "id": 656, + "id": 1605, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1136:4:3", + "src": "1136:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4573,11 +4573,11 @@ }, { "constant": false, - "id": 659, + "id": 1608, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1141:4:3", + "scope": 1648, + "src": "1141:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4585,10 +4585,10 @@ "typeString": "uint256" }, "typeName": { - "id": 658, + "id": 1607, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1141:4:3", + "src": "1141:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4599,11 +4599,11 @@ }, { "constant": false, - "id": 661, + "id": 1610, "name": "", "nodeType": "VariableDeclaration", - "scope": 699, - "src": "1147:4:3", + "scope": 1648, + "src": "1147:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4611,10 +4611,10 @@ "typeString": "uint256" }, "typeName": { - "id": 660, + "id": 1609, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "1147:4:3", + "src": "1147:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4624,32 +4624,32 @@ "visibility": "internal" } ], - "src": "1102:50:3" + "src": "1102:50:5" }, - "scope": 853, - "src": "1024:715:3", + "scope": 1802, + "src": "1024:715:5", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 760, + "id": 1709, "nodeType": "Block", - "src": "1858:327:3", + "src": "1858:327:5", "statements": [ { "assignments": [ - 710 + 1659 ], "declarations": [ { "constant": false, - "id": 710, + "id": 1659, "name": "length", "nodeType": "VariableDeclaration", - "scope": 761, - "src": "1869:14:3", + "scope": 1710, + "src": "1869:14:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -4657,10 +4657,10 @@ "typeString": "uint256" }, "typeName": { - "id": 709, + "id": 1658, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1869:7:3", + "src": "1869:7:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4670,22 +4670,22 @@ "visibility": "internal" } ], - "id": 712, + "id": 1661, "initialValue": { "argumentTypes": null, - "id": 711, + "id": 1660, "name": "howMany", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 703, - "src": "1886:7:3", + "referencedDeclaration": 1652, + "src": "1886:7:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "VariableDeclarationStatement", - "src": "1869:24:3" + "src": "1869:24:5" }, { "condition": { @@ -4694,19 +4694,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 718, + "id": 1667, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 713, + "id": 1662, "name": "length", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 710, - "src": "1908:6:3", + "referencedDeclaration": 1659, + "src": "1908:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4720,7 +4720,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 717, + "id": 1666, "isConstant": false, "isLValue": false, "isPure": false, @@ -4729,18 +4729,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 714, + "id": 1663, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1917:8:3", + "referencedDeclaration": 1566, + "src": "1917:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 715, + "id": 1664, "isConstant": false, "isLValue": true, "isPure": false, @@ -4748,7 +4748,7 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "1917:15:3", + "src": "1917:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4758,54 +4758,54 @@ "operator": "-", "rightExpression": { "argumentTypes": null, - "id": 716, + "id": 1665, "name": "cursor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 701, - "src": "1935:6:3", + "referencedDeclaration": 1650, + "src": "1935:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1917:24:3", + "src": "1917:24:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1908:33:3", + "src": "1908:33:5", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 727, + "id": 1676, "nodeType": "IfStatement", - "src": "1904:99:3", + "src": "1904:99:5", "trueBody": { - "id": 726, + "id": 1675, "nodeType": "Block", - "src": "1943:60:3", + "src": "1943:60:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 724, + "id": 1673, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 719, + "id": 1668, "name": "length", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 710, - "src": "1958:6:3", + "referencedDeclaration": 1659, + "src": "1958:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4819,7 +4819,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 723, + "id": 1672, "isConstant": false, "isLValue": false, "isPure": false, @@ -4828,18 +4828,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 720, + "id": 1669, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "1967:8:3", + "referencedDeclaration": 1566, + "src": "1967:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 721, + "id": 1670, "isConstant": false, "isLValue": true, "isPure": false, @@ -4847,7 +4847,7 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "1967:15:3", + "src": "1967:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4857,32 +4857,32 @@ "operator": "-", "rightExpression": { "argumentTypes": null, - "id": 722, + "id": 1671, "name": "cursor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 701, - "src": "1985:6:3", + "referencedDeclaration": 1650, + "src": "1985:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1967:24:3", + "src": "1967:24:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "1958:33:3", + "src": "1958:33:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 725, + "id": 1674, "nodeType": "ExpressionStatement", - "src": "1958:33:3" + "src": "1958:33:5" } ] } @@ -4890,21 +4890,21 @@ { "expression": { "argumentTypes": null, - "id": 734, + "id": 1683, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 728, + "id": 1677, "name": "values", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 707, - "src": "2015:6:3", + "referencedDeclaration": 1656, + "src": "2015:6:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory_ptr", "typeString": "contract Listing[] memory" } }, @@ -4915,12 +4915,12 @@ "arguments": [ { "argumentTypes": null, - "id": 732, + "id": 1681, "name": "length", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 710, - "src": "2038:6:3", + "referencedDeclaration": 1659, + "src": "2038:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -4934,41 +4934,41 @@ "typeString": "uint256" } ], - "id": 731, + "id": 1680, "isConstant": false, "isLValue": false, "isPure": true, "lValueRequested": false, "nodeType": "NewExpression", - "src": "2024:13:3", + "src": "2024:13:5", "typeDescriptions": { - "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_contract$_Listing_$605_$dyn_memory_$", + "typeIdentifier": "t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_contract$_Listing_$1554_$dyn_memory_$", "typeString": "function (uint256) pure returns (contract Listing[] memory)" }, "typeName": { "baseType": { "contractScope": null, - "id": 729, + "id": 1678, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "2028:7:3", + "referencedDeclaration": 1554, + "src": "2028:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 730, + "id": 1679, "length": null, "nodeType": "ArrayTypeName", - "src": "2028:9:3", + "src": "2028:9:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage_ptr", "typeString": "contract Listing[]" } } }, - "id": 733, + "id": 1682, "isConstant": false, "isLValue": false, "isPure": false, @@ -4976,32 +4976,32 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "2024:21:3", + "src": "2024:21:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory", "typeString": "contract Listing[] memory" } }, - "src": "2015:30:3", + "src": "2015:30:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory_ptr", "typeString": "contract Listing[] memory" } }, - "id": 735, + "id": 1684, "nodeType": "ExpressionStatement", - "src": "2015:30:3" + "src": "2015:30:5" }, { "body": { - "id": 756, + "id": 1705, "nodeType": "Block", - "src": "2093:59:3", + "src": "2093:59:5", "statements": [ { "expression": { "argumentTypes": null, - "id": 754, + "id": 1703, "isConstant": false, "isLValue": false, "isPure": false, @@ -5010,26 +5010,26 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 746, + "id": 1695, "name": "values", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 707, - "src": "2108:6:3", + "referencedDeclaration": 1656, + "src": "2108:6:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory_ptr", "typeString": "contract Listing[] memory" } }, - "id": 748, + "id": 1697, "indexExpression": { "argumentTypes": null, - "id": 747, + "id": 1696, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 737, - "src": "2115:1:3", + "referencedDeclaration": 1686, + "src": "2115:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5040,9 +5040,9 @@ "isPure": false, "lValueRequested": true, "nodeType": "IndexAccess", - "src": "2108:9:3", + "src": "2108:9:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, @@ -5052,37 +5052,37 @@ "argumentTypes": null, "baseExpression": { "argumentTypes": null, - "id": 749, + "id": 1698, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "2120:8:3", + "referencedDeclaration": 1566, + "src": "2120:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 753, + "id": 1702, "indexExpression": { "argumentTypes": null, "commonType": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 752, + "id": 1701, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 750, + "id": 1699, "name": "cursor", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 701, - "src": "2129:6:3", + "referencedDeclaration": 1650, + "src": "2129:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5092,18 +5092,18 @@ "operator": "+", "rightExpression": { "argumentTypes": null, - "id": 751, + "id": 1700, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 737, - "src": "2138:1:3", + "referencedDeclaration": 1686, + "src": "2138:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "2129:10:3", + "src": "2129:10:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5114,21 +5114,21 @@ "isPure": false, "lValueRequested": false, "nodeType": "IndexAccess", - "src": "2120:20:3", + "src": "2120:20:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "src": "2108:32:3", + "src": "2108:32:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 755, + "id": 1704, "nodeType": "ExpressionStatement", - "src": "2108:32:3" + "src": "2108:32:5" } ] }, @@ -5138,19 +5138,19 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 742, + "id": 1691, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftExpression": { "argumentTypes": null, - "id": 740, + "id": 1689, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 737, - "src": "2076:1:3", + "referencedDeclaration": 1686, + "src": "2076:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5160,36 +5160,36 @@ "operator": "<", "rightExpression": { "argumentTypes": null, - "id": 741, + "id": 1690, "name": "length", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 710, - "src": "2080:6:3", + "referencedDeclaration": 1659, + "src": "2080:6:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "2076:10:3", + "src": "2076:10:5", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, - "id": 757, + "id": 1706, "initializationExpression": { "assignments": [ - 737 + 1686 ], "declarations": [ { "constant": false, - "id": 737, + "id": 1686, "name": "i", "nodeType": "VariableDeclaration", - "scope": 761, - "src": "2061:9:3", + "scope": 1710, + "src": "2061:9:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5197,10 +5197,10 @@ "typeString": "uint256" }, "typeName": { - "id": 736, + "id": 1685, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "2061:7:3", + "src": "2061:7:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5210,18 +5210,18 @@ "visibility": "internal" } ], - "id": 739, + "id": 1688, "initialValue": { "argumentTypes": null, "hexValue": "30", - "id": 738, + "id": 1687, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "2073:1:3", + "src": "2073:1:5", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_0_by_1", @@ -5230,12 +5230,12 @@ "value": "0" }, "nodeType": "VariableDeclarationStatement", - "src": "2061:13:3" + "src": "2061:13:5" }, "loopExpression": { "expression": { "argumentTypes": null, - "id": 744, + "id": 1693, "isConstant": false, "isLValue": false, "isPure": false, @@ -5243,15 +5243,15 @@ "nodeType": "UnaryOperation", "operator": "++", "prefix": false, - "src": "2088:3:3", + "src": "2088:3:5", "subExpression": { "argumentTypes": null, - "id": 743, + "id": 1692, "name": "i", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 737, - "src": "2088:1:3", + "referencedDeclaration": 1686, + "src": "2088:1:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5262,36 +5262,36 @@ "typeString": "uint256" } }, - "id": 745, + "id": 1694, "nodeType": "ExpressionStatement", - "src": "2088:3:3" + "src": "2088:3:5" }, "nodeType": "ForStatement", - "src": "2056:96:3" + "src": "2056:96:5" }, { "expression": { "argumentTypes": null, - "id": 758, + "id": 1707, "name": "values", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 707, - "src": "2171:6:3", + "referencedDeclaration": 1656, + "src": "2171:6:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory_ptr", "typeString": "contract Listing[] memory" } }, - "functionReturnParameters": 708, - "id": 759, + "functionReturnParameters": 1657, + "id": 1708, "nodeType": "Return", - "src": "2164:13:3" + "src": "2164:13:5" } ] }, "documentation": null, - "id": 761, + "id": 1710, "implemented": true, "isConstructor": false, "isDeclaredConst": true, @@ -5299,16 +5299,16 @@ "name": "fetchPage", "nodeType": "FunctionDefinition", "parameters": { - "id": 704, + "id": 1653, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 701, + "id": 1650, "name": "cursor", "nodeType": "VariableDeclaration", - "scope": 761, - "src": "1766:14:3", + "scope": 1710, + "src": "1766:14:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5316,10 +5316,10 @@ "typeString": "uint256" }, "typeName": { - "id": 700, + "id": 1649, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1766:7:3", + "src": "1766:7:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5330,11 +5330,11 @@ }, { "constant": false, - "id": 703, + "id": 1652, "name": "howMany", "nodeType": "VariableDeclaration", - "scope": 761, - "src": "1782:15:3", + "scope": 1710, + "src": "1782:15:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5342,10 +5342,10 @@ "typeString": "uint256" }, "typeName": { - "id": 702, + "id": 1651, "name": "uint256", "nodeType": "ElementaryTypeName", - "src": "1782:7:3", + "src": "1782:7:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5355,45 +5355,45 @@ "visibility": "internal" } ], - "src": "1765:33:3" + "src": "1765:33:5" }, "payable": false, "returnParameters": { - "id": 708, + "id": 1657, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 707, + "id": 1656, "name": "values", "nodeType": "VariableDeclaration", - "scope": 761, - "src": "1835:16:3", + "scope": 1710, + "src": "1835:16:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_memory_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_memory_ptr", "typeString": "contract Listing[]" }, "typeName": { "baseType": { "contractScope": null, - "id": 705, + "id": 1654, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "1835:7:3", + "referencedDeclaration": 1554, + "src": "1835:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } }, - "id": 706, + "id": 1655, "length": null, "nodeType": "ArrayTypeName", - "src": "1835:9:3", + "src": "1835:9:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage_ptr", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage_ptr", "typeString": "contract Listing[]" } }, @@ -5401,19 +5401,19 @@ "visibility": "internal" } ], - "src": "1834:18:3" + "src": "1834:18:5" }, - "scope": 853, - "src": "1747:438:3", + "scope": 1802, + "src": "1747:438:5", "stateMutability": "view", "superFunction": null, "visibility": "public" }, { "body": { - "id": 801, + "id": 1750, "nodeType": "Block", - "src": "3085:213:3", + "src": "3085:213:5", "statements": [ { "expression": { @@ -5426,18 +5426,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 781, + "id": 1730, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "3122:3:3", + "referencedDeclaration": 1965, + "src": "3122:3:5", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 782, + "id": 1731, "isConstant": false, "isLValue": false, "isPure": false, @@ -5445,7 +5445,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3122:10:3", + "src": "3122:10:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -5453,12 +5453,12 @@ }, { "argumentTypes": null, - "id": 783, + "id": 1732, "name": "_ipfsHash", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 763, - "src": "3134:9:3", + "referencedDeclaration": 1712, + "src": "3134:9:5", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -5466,12 +5466,12 @@ }, { "argumentTypes": null, - "id": 784, + "id": 1733, "name": "_workingHours", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 765, - "src": "3145:13:3", + "referencedDeclaration": 1714, + "src": "3145:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5479,12 +5479,12 @@ }, { "argumentTypes": null, - "id": 785, + "id": 1734, "name": "_resourceType", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 767, - "src": "3160:13:3", + "referencedDeclaration": 1716, + "src": "3160:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5492,12 +5492,12 @@ }, { "argumentTypes": null, - "id": 786, + "id": 1735, "name": "_resourceRate", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 769, - "src": "3174:13:3", + "referencedDeclaration": 1718, + "src": "3174:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5505,12 +5505,12 @@ }, { "argumentTypes": null, - "id": 787, + "id": 1736, "name": "_totalResourceRequired", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 771, - "src": "3188:22:3", + "referencedDeclaration": 1720, + "src": "3188:22:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5544,31 +5544,31 @@ "typeString": "uint256" } ], - "id": 780, + "id": 1729, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "NewExpression", - "src": "3110:11:3", + "src": "3110:11:5", "typeDescriptions": { - "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_contract$_Listing_$605_$", + "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_contract$_Listing_$1554_$", "typeString": "function (address,bytes32,uint256,uint256,uint256,uint256) returns (contract Listing)" }, "typeName": { "contractScope": null, - "id": 779, + "id": 1728, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "3114:7:3", + "referencedDeclaration": 1554, + "src": "3114:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } } }, - "id": 788, + "id": 1737, "isConstant": false, "isLValue": false, "isPure": false, @@ -5576,9 +5576,9 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3110:101:3", + "src": "3110:101:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } } @@ -5586,24 +5586,24 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } ], "expression": { "argumentTypes": null, - "id": 776, + "id": 1725, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "3096:8:3", + "referencedDeclaration": 1566, + "src": "3096:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 778, + "id": 1727, "isConstant": false, "isLValue": false, "isPure": false, @@ -5611,13 +5611,13 @@ "memberName": "push", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3096:13:3", + "src": "3096:13:5", "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_Listing_$605_$returns$_t_uint256_$", + "typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_Listing_$1554_$returns$_t_uint256_$", "typeString": "function (contract Listing) returns (uint256)" } }, - "id": 789, + "id": 1738, "isConstant": false, "isLValue": false, "isPure": false, @@ -5625,15 +5625,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3096:116:3", + "src": "3096:116:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 790, + "id": 1739, "nodeType": "ExpressionStatement", - "src": "3096:116:3" + "src": "3096:116:5" }, { "eventCall": { @@ -5645,7 +5645,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 795, + "id": 1744, "isConstant": false, "isLValue": false, "isPure": false, @@ -5654,18 +5654,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 792, + "id": 1741, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "3239:8:3", + "referencedDeclaration": 1566, + "src": "3239:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 793, + "id": 1742, "isConstant": false, "isLValue": true, "isPure": false, @@ -5673,7 +5673,7 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3239:15:3", + "src": "3239:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5684,14 +5684,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "31", - "id": 794, + "id": 1743, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "3255:1:3", + "src": "3255:1:5", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", @@ -5699,7 +5699,7 @@ }, "value": "1" }, - "src": "3239:17:3", + "src": "3239:17:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5713,18 +5713,18 @@ "typeString": "uint256" } ], - "id": 791, + "id": 1740, "name": "NewListing", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 612, - "src": "3228:10:3", + "referencedDeclaration": 1561, + "src": "3228:10:5", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, - "id": 796, + "id": 1745, "isConstant": false, "isLValue": false, "isPure": false, @@ -5732,33 +5732,33 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "3228:29:3", + "src": "3228:29:5", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 797, + "id": 1746, "nodeType": "EmitStatement", - "src": "3223:34:3" + "src": "3223:34:5" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 798, + "id": 1747, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "3275:8:3", + "referencedDeclaration": 1566, + "src": "3275:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 799, + "id": 1748, "isConstant": false, "isLValue": true, "isPure": false, @@ -5766,21 +5766,21 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "3275:15:3", + "src": "3275:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 775, - "id": 800, + "functionReturnParameters": 1724, + "id": 1749, "nodeType": "Return", - "src": "3268:22:3" + "src": "3268:22:5" } ] }, "documentation": "Sample Remix invocation:\r\n [\"0x01\",\"0x7d\",\"0xfd\",\"0x85\",\"0xd4\",\"0xf6\",\"0xcb\",\"0x4d\",\"0xcd\",\"0x71\",\"0x5a\",\"0x88\",\"0x10\",\"0x1f\",\"0x7b\",\"0x1f\",\"0x06\",\"0xcd\",\"0x1e\",\"0x00\",\"0x9b\",\"0x23\",\"0x27\",\"0xa0\",\"0x80\",\"0x9d\",\"0x01\",\"0xeb\",\"0x9c\",\"0x91\",\"0xf2\",\"0x31\"],\"3140000000000000000\",42\r", - "id": 802, + "id": 1751, "implemented": true, "isConstructor": false, "isDeclaredConst": false, @@ -5788,16 +5788,16 @@ "name": "create", "nodeType": "FunctionDefinition", "parameters": { - "id": 772, + "id": 1721, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 763, + "id": 1712, "name": "_ipfsHash", "nodeType": "VariableDeclaration", - "scope": 802, - "src": "2894:17:3", + "scope": 1751, + "src": "2894:17:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5805,10 +5805,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 762, + "id": 1711, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "2894:7:3", + "src": "2894:7:5", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -5819,11 +5819,11 @@ }, { "constant": false, - "id": 765, + "id": 1714, "name": "_workingHours", "nodeType": "VariableDeclaration", - "scope": 802, - "src": "2922:18:3", + "scope": 1751, + "src": "2922:18:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5831,10 +5831,10 @@ "typeString": "uint256" }, "typeName": { - "id": 764, + "id": 1713, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2922:4:3", + "src": "2922:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5845,11 +5845,11 @@ }, { "constant": false, - "id": 767, + "id": 1716, "name": "_resourceType", "nodeType": "VariableDeclaration", - "scope": 802, - "src": "2951:18:3", + "scope": 1751, + "src": "2951:18:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5857,10 +5857,10 @@ "typeString": "uint256" }, "typeName": { - "id": 766, + "id": 1715, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2951:4:3", + "src": "2951:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5871,11 +5871,11 @@ }, { "constant": false, - "id": 769, + "id": 1718, "name": "_resourceRate", "nodeType": "VariableDeclaration", - "scope": 802, - "src": "2980:18:3", + "scope": 1751, + "src": "2980:18:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5883,10 +5883,10 @@ "typeString": "uint256" }, "typeName": { - "id": 768, + "id": 1717, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "2980:4:3", + "src": "2980:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5897,11 +5897,11 @@ }, { "constant": false, - "id": 771, + "id": 1720, "name": "_totalResourceRequired", "nodeType": "VariableDeclaration", - "scope": 802, - "src": "3009:27:3", + "scope": 1751, + "src": "3009:27:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5909,10 +5909,10 @@ "typeString": "uint256" }, "typeName": { - "id": 770, + "id": 1719, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "3009:4:3", + "src": "3009:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5922,20 +5922,20 @@ "visibility": "internal" } ], - "src": "2883:160:3" + "src": "2883:160:5" }, "payable": false, "returnParameters": { - "id": 775, + "id": 1724, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 774, + "id": 1723, "name": "", "nodeType": "VariableDeclaration", - "scope": 802, - "src": "3074:4:3", + "scope": 1751, + "src": "3074:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -5943,10 +5943,10 @@ "typeString": "uint256" }, "typeName": { - "id": 773, + "id": 1722, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "3074:4:3", + "src": "3074:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -5956,19 +5956,19 @@ "visibility": "internal" } ], - "src": "3073:6:3" + "src": "3073:6:5" }, - "scope": 853, - "src": "2868:430:3", + "scope": 1802, + "src": "2868:430:5", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 851, + "id": 1800, "nodeType": "Block", - "src": "4035:294:3", + "src": "4035:294:5", "statements": [ { "expression": { @@ -5980,7 +5980,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 823, + "id": 1772, "isConstant": false, "isLValue": false, "isPure": false, @@ -5989,18 +5989,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 820, + "id": 1769, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 868, - "src": "4055:3:3", + "referencedDeclaration": 1965, + "src": "4055:3:5", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 821, + "id": 1770, "isConstant": false, "isLValue": false, "isPure": false, @@ -6008,7 +6008,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4055:10:3", + "src": "4055:10:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6018,18 +6018,18 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 822, + "id": 1771, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 614, - "src": "4069:5:3", + "referencedDeclaration": 1563, + "src": "4069:5:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "4055:19:3", + "src": "4055:19:5", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" @@ -6038,14 +6038,14 @@ { "argumentTypes": null, "hexValue": "4f6e6c792063616c6c61626c65206279207265676973747279206f776e6572", - "id": 824, + "id": 1773, "isConstant": false, "isLValue": false, "isPure": true, "kind": "string", "lValueRequested": false, "nodeType": "Literal", - "src": "4076:33:3", + "src": "4076:33:5", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_stringliteral_a20a2dd5a23f4821a72bf6d8995e30bd3c3d788da1cb47c7a01d91ed1e1d92b0", @@ -6065,21 +6065,21 @@ "typeString": "literal_string \"Only callable by registry owner\"" } ], - "id": 819, + "id": 1768, "name": "require", "nodeType": "Identifier", "overloadedDeclarations": [ - 871, - 872 + 1968, + 1969 ], - "referencedDeclaration": 872, - "src": "4046:7:3", + "referencedDeclaration": 1969, + "src": "4046:7:5", "typeDescriptions": { "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$", "typeString": "function (bool,string memory) pure" } }, - "id": 825, + "id": 1774, "isConstant": false, "isLValue": false, "isPure": false, @@ -6087,15 +6087,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4046:64:3", + "src": "4046:64:5", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 826, + "id": 1775, "nodeType": "ExpressionStatement", - "src": "4046:64:3" + "src": "4046:64:5" }, { "expression": { @@ -6106,12 +6106,12 @@ "arguments": [ { "argumentTypes": null, - "id": 832, + "id": 1781, "name": "_creatorAddress", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 814, - "src": "4147:15:3", + "referencedDeclaration": 1763, + "src": "4147:15:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6119,12 +6119,12 @@ }, { "argumentTypes": null, - "id": 833, + "id": 1782, "name": "_ipfsHash", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 804, - "src": "4165:9:3", + "referencedDeclaration": 1753, + "src": "4165:9:5", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -6132,12 +6132,12 @@ }, { "argumentTypes": null, - "id": 834, + "id": 1783, "name": "_workingHours", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 806, - "src": "4176:13:3", + "referencedDeclaration": 1755, + "src": "4176:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6145,12 +6145,12 @@ }, { "argumentTypes": null, - "id": 835, + "id": 1784, "name": "_resourceType", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 808, - "src": "4191:13:3", + "referencedDeclaration": 1757, + "src": "4191:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6158,12 +6158,12 @@ }, { "argumentTypes": null, - "id": 836, + "id": 1785, "name": "_resourceRate", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 810, - "src": "4205:13:3", + "referencedDeclaration": 1759, + "src": "4205:13:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6171,12 +6171,12 @@ }, { "argumentTypes": null, - "id": 837, + "id": 1786, "name": "_totalResourceRequired", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 812, - "src": "4219:22:3", + "referencedDeclaration": 1761, + "src": "4219:22:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6210,31 +6210,31 @@ "typeString": "uint256" } ], - "id": 831, + "id": 1780, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "nodeType": "NewExpression", - "src": "4135:11:3", + "src": "4135:11:5", "typeDescriptions": { - "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_contract$_Listing_$605_$", + "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_bytes32_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$returns$_t_contract$_Listing_$1554_$", "typeString": "function (address,bytes32,uint256,uint256,uint256,uint256) returns (contract Listing)" }, "typeName": { "contractScope": null, - "id": 830, + "id": 1779, "name": "Listing", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 605, - "src": "4139:7:3", + "referencedDeclaration": 1554, + "src": "4139:7:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } } }, - "id": 838, + "id": 1787, "isConstant": false, "isLValue": false, "isPure": false, @@ -6242,9 +6242,9 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4135:107:3", + "src": "4135:107:5", "typeDescriptions": { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } } @@ -6252,24 +6252,24 @@ "expression": { "argumentTypes": [ { - "typeIdentifier": "t_contract$_Listing_$605", + "typeIdentifier": "t_contract$_Listing_$1554", "typeString": "contract Listing" } ], "expression": { "argumentTypes": null, - "id": 827, + "id": 1776, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "4121:8:3", + "referencedDeclaration": 1566, + "src": "4121:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 829, + "id": 1778, "isConstant": false, "isLValue": false, "isPure": false, @@ -6277,13 +6277,13 @@ "memberName": "push", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4121:13:3", + "src": "4121:13:5", "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_Listing_$605_$returns$_t_uint256_$", + "typeIdentifier": "t_function_arraypush_nonpayable$_t_contract$_Listing_$1554_$returns$_t_uint256_$", "typeString": "function (contract Listing) returns (uint256)" } }, - "id": 839, + "id": 1788, "isConstant": false, "isLValue": false, "isPure": false, @@ -6291,15 +6291,15 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4121:122:3", + "src": "4121:122:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 840, + "id": 1789, "nodeType": "ExpressionStatement", - "src": "4121:122:3" + "src": "4121:122:5" }, { "eventCall": { @@ -6311,7 +6311,7 @@ "typeIdentifier": "t_uint256", "typeString": "uint256" }, - "id": 845, + "id": 1794, "isConstant": false, "isLValue": false, "isPure": false, @@ -6320,18 +6320,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 842, + "id": 1791, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "4270:8:3", + "referencedDeclaration": 1566, + "src": "4270:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 843, + "id": 1792, "isConstant": false, "isLValue": true, "isPure": false, @@ -6339,7 +6339,7 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4270:15:3", + "src": "4270:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6350,14 +6350,14 @@ "rightExpression": { "argumentTypes": null, "hexValue": "31", - "id": 844, + "id": 1793, "isConstant": false, "isLValue": false, "isPure": true, "kind": "number", "lValueRequested": false, "nodeType": "Literal", - "src": "4286:1:3", + "src": "4286:1:5", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_rational_1_by_1", @@ -6365,7 +6365,7 @@ }, "value": "1" }, - "src": "4270:17:3", + "src": "4270:17:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6379,18 +6379,18 @@ "typeString": "uint256" } ], - "id": 841, + "id": 1790, "name": "NewListing", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 612, - "src": "4259:10:3", + "referencedDeclaration": 1561, + "src": "4259:10:5", "typeDescriptions": { "typeIdentifier": "t_function_event_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256)" } }, - "id": 846, + "id": 1795, "isConstant": false, "isLValue": false, "isPure": false, @@ -6398,33 +6398,33 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "4259:29:3", + "src": "4259:29:5", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 847, + "id": 1796, "nodeType": "EmitStatement", - "src": "4254:34:3" + "src": "4254:34:5" }, { "expression": { "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 848, + "id": 1797, "name": "listings", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 617, - "src": "4306:8:3", + "referencedDeclaration": 1566, + "src": "4306:8:5", "typeDescriptions": { - "typeIdentifier": "t_array$_t_contract$_Listing_$605_$dyn_storage", + "typeIdentifier": "t_array$_t_contract$_Listing_$1554_$dyn_storage", "typeString": "contract Listing[] storage ref" } }, - "id": 849, + "id": 1798, "isConstant": false, "isLValue": true, "isPure": false, @@ -6432,21 +6432,21 @@ "memberName": "length", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "4306:15:3", + "src": "4306:15:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "functionReturnParameters": 818, - "id": 850, + "functionReturnParameters": 1767, + "id": 1799, "nodeType": "Return", - "src": "4299:22:3" + "src": "4299:22:5" } ] }, "documentation": null, - "id": 852, + "id": 1801, "implemented": true, "isConstructor": false, "isDeclaredConst": false, @@ -6454,16 +6454,16 @@ "name": "createOnBehalf", "nodeType": "FunctionDefinition", "parameters": { - "id": 815, + "id": 1764, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 804, + "id": 1753, "name": "_ipfsHash", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "3810:17:3", + "scope": 1801, + "src": "3810:17:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6471,10 +6471,10 @@ "typeString": "bytes32" }, "typeName": { - "id": 803, + "id": 1752, "name": "bytes32", "nodeType": "ElementaryTypeName", - "src": "3810:7:3", + "src": "3810:7:5", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" @@ -6485,11 +6485,11 @@ }, { "constant": false, - "id": 806, + "id": 1755, "name": "_workingHours", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "3838:18:3", + "scope": 1801, + "src": "3838:18:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6497,10 +6497,10 @@ "typeString": "uint256" }, "typeName": { - "id": 805, + "id": 1754, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "3838:4:3", + "src": "3838:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6511,11 +6511,11 @@ }, { "constant": false, - "id": 808, + "id": 1757, "name": "_resourceType", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "3867:18:3", + "scope": 1801, + "src": "3867:18:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6523,10 +6523,10 @@ "typeString": "uint256" }, "typeName": { - "id": 807, + "id": 1756, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "3867:4:3", + "src": "3867:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6537,11 +6537,11 @@ }, { "constant": false, - "id": 810, + "id": 1759, "name": "_resourceRate", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "3896:18:3", + "scope": 1801, + "src": "3896:18:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6549,10 +6549,10 @@ "typeString": "uint256" }, "typeName": { - "id": 809, + "id": 1758, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "3896:4:3", + "src": "3896:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6563,11 +6563,11 @@ }, { "constant": false, - "id": 812, + "id": 1761, "name": "_totalResourceRequired", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "3925:27:3", + "scope": 1801, + "src": "3925:27:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6575,10 +6575,10 @@ "typeString": "uint256" }, "typeName": { - "id": 811, + "id": 1760, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "3925:4:3", + "src": "3925:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6589,11 +6589,11 @@ }, { "constant": false, - "id": 814, + "id": 1763, "name": "_creatorAddress", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "3963:23:3", + "scope": 1801, + "src": "3963:23:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6601,10 +6601,10 @@ "typeString": "address" }, "typeName": { - "id": 813, + "id": 1762, "name": "address", "nodeType": "ElementaryTypeName", - "src": "3963:7:3", + "src": "3963:7:5", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -6614,20 +6614,20 @@ "visibility": "internal" } ], - "src": "3799:194:3" + "src": "3799:194:5" }, "payable": false, "returnParameters": { - "id": 818, + "id": 1767, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 817, + "id": 1766, "name": "", "nodeType": "VariableDeclaration", - "scope": 852, - "src": "4024:4:3", + "scope": 1801, + "src": "4024:4:5", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -6635,10 +6635,10 @@ "typeString": "uint256" }, "typeName": { - "id": 816, + "id": 1765, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "4024:4:3", + "src": "4024:4:5", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -6648,20 +6648,20 @@ "visibility": "internal" } ], - "src": "4023:6:3" + "src": "4023:6:5" }, - "scope": 853, - "src": "3776:553:3", + "scope": 1802, + "src": "3776:553:5", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], - "scope": 854, - "src": "199:4133:3" + "scope": 1803, + "src": "199:4133:5" } ], - "src": "0:4332:3" + "src": "0:4332:5" }, "compiler": { "name": "solc", @@ -6681,10 +6681,34 @@ "links": { "JobApplicationLibrary": "0xf12b5dd4ead5f743c6baa640b0216200e89b60da" }, - "address": "0x345ca3e014aaf5dca488057592ee47305d9b3e10", - "transactionHash": "0x090ba7bea96856c6df19151d25bc89d69af2ea78b96bf6d1f59ff20fe09d4ead" + "address": "0xf25186b5081ff5ce73482ad761db0eb0d25abfbf", + "transactionHash": "0xd1cf5c1c16f75ed2db2f68a4e48f97547141d9643109448b2f253c0f86a1d287" + }, + "1538849010791": { + "events": {}, + "links": { + "JobApplicationLibrary": "0xc2d20493431f8f40a554b2be92958d4d00200f55" + }, + "address": "0x537f01e1b7af9438b95e40496d6fb7ab4d2e2427", + "transactionHash": "0xd8ac307a68f5fda8df7e6710ecc1d124f83592248f4845892ad37f5519744c71" + }, + "1539360877990": { + "events": {}, + "links": { + "JobApplicationLibrary": "0xf1ba4d207a40ac007ee579866af735c36608ac9d" + }, + "address": "0x7cefc68865c7a3c8cecd81df0e6216164e984819", + "transactionHash": "0xda07fe9d40feac048e834e5e3c4803daec69859c5c06cc246f35d58e47e525d2" + }, + "1539420319630": { + "events": {}, + "links": { + "JobApplicationLibrary": "0xe0b601a1612fdb93ec5a7fa40e574fb5ca4b0e78" + }, + "address": "0xd384d07de47cf169005b508aac189d03b10a3e28", + "transactionHash": "0x56991c79fcb70e0e40f0908463b183c0bc422384efff69399ced7a5a7b8ca2e1" } }, "schemaVersion": "2.0.1", - "updatedAt": "2018-08-09T15:53:00.321Z" + "updatedAt": "2018-10-18T13:43:19.567Z" } \ No newline at end of file diff --git a/ethereum/build/contracts/Migrations.json b/ethereum/build/contracts/Migrations.json index ad19df0..e52d6e5 100644 --- a/ethereum/build/contracts/Migrations.json +++ b/ethereum/build/contracts/Migrations.json @@ -66,22 +66,22 @@ ], "bytecode": "0x608060405234801561001057600080fd5b5060008054600160a060020a0319163317905561023c806100326000396000f3006080604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630900f0108114610066578063445df0ac146100965780638da5cb5b146100bd578063fdacd576146100fb575b600080fd5b34801561007257600080fd5b5061009473ffffffffffffffffffffffffffffffffffffffff60043516610113565b005b3480156100a257600080fd5b506100ab6101c5565b60408051918252519081900360200190f35b3480156100c957600080fd5b506100d26101cb565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561010757600080fd5b506100946004356101e7565b6000805473ffffffffffffffffffffffffffffffffffffffff163314156101c1578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b1580156101a857600080fd5b505af11580156101bc573d6000803e3d6000fd5b505050505b5050565b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633141561020d5760018190555b505600a165627a7a72305820bd16cc52d8a37a1522da53bdc3a0d4402917b6796a17ab20ebda68cd1f3e3ecc0029", "deployedBytecode": "0x6080604052600436106100615763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630900f0108114610066578063445df0ac146100965780638da5cb5b146100bd578063fdacd576146100fb575b600080fd5b34801561007257600080fd5b5061009473ffffffffffffffffffffffffffffffffffffffff60043516610113565b005b3480156100a257600080fd5b506100ab6101c5565b60408051918252519081900360200190f35b3480156100c957600080fd5b506100d26101cb565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561010757600080fd5b506100946004356101e7565b6000805473ffffffffffffffffffffffffffffffffffffffff163314156101c1578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b1580156101a857600080fd5b505af11580156101bc573d6000803e3d6000fd5b505050505b5050565b60015481565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633141561020d5760018190555b505600a165627a7a72305820bd16cc52d8a37a1522da53bdc3a0d4402917b6796a17ab20ebda68cd1f3e3ecc0029", - "sourceMap": "28:500:4:-;;;188:52;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;216:5:4;:18;;-1:-1:-1;;;;;;216:18:4;224:10;216:18;;;28:500;;;;;;", - "deployedSourceMap": "28:500:4:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;357:168;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;357:168:4;;;;;;;;;78:36;;8:9:-1;5:2;;;30:1;27;20:12;5:2;78:36:4;;;;;;;;;;;;;;;;;;;;53:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53:20:4;;;;;;;;;;;;;;;;;;;;;;;246:105;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;246:105:4;;;;;357:168;420:19;168:5;;;;154:10;:19;150:26;;;453:11;420:45;;472:8;:21;;;494:24;;472:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;472:47:4;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;472:47:4;;;;150:26;357:168;;:::o;78:36::-;;;;:::o;53:20::-;;;;;;:::o;246:105::-;168:5;;;;154:10;:19;150:26;;;309:24;:36;;;150:26;246:105;:::o", + "sourceMap": "28:500:7:-;;;188:52;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;216:5:7;:18;;-1:-1:-1;;;;;;216:18:7;224:10;216:18;;;28:500;;;;;;", + "deployedSourceMap": "28:500:7:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;357:168;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;357:168:7;;;;;;;;;78:36;;8:9:-1;5:2;;;30:1;27;20:12;5:2;78:36:7;;;;;;;;;;;;;;;;;;;;53:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;53:20:7;;;;;;;;;;;;;;;;;;;;;;;246:105;;8:9:-1;5:2;;;30:1;27;20:12;5:2;-1:-1;246:105:7;;;;;357:168;420:19;168:5;;;;154:10;:19;150:26;;;453:11;420:45;;472:8;:21;;;494:24;;472:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;472:47:7;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;472:47:7;;;;150:26;357:168;;:::o;78:36::-;;;;:::o;53:20::-;;;;;;:::o;246:105::-;168:5;;;;154:10;:19;150:26;;;309:24;:36;;;150:26;246:105;:::o", "source": "pragma solidity ^0.4.24;\r\n\r\ncontract Migrations {\r\n address public owner;\r\n uint public last_completed_migration;\r\n\r\n modifier restricted() {\r\n if (msg.sender == owner) _;\r\n }\r\n\r\n constructor() public {\r\n owner = msg.sender;\r\n }\r\n\r\n function setCompleted(uint completed) public restricted {\r\n last_completed_migration = completed;\r\n }\r\n\r\n function upgrade(address new_address) public restricted {\r\n Migrations upgraded = Migrations(new_address);\r\n upgraded.setCompleted(last_completed_migration);\r\n }\r\n}\r\n", "sourcePath": "C:\\i\\HT\\hellonetmarket\\ethereum\\contracts\\Migrations.sol", "ast": { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/Migrations.sol", "exportedSymbols": { "Migrations": [ - 848 + 1950 ] }, - "id": 849, + "id": 1951, "nodeType": "SourceUnit", "nodes": [ { - "id": 793, + "id": 1895, "literals": [ "solidity", "^", @@ -89,7 +89,7 @@ ".24" ], "nodeType": "PragmaDirective", - "src": "0:24:4" + "src": "0:24:7" }, { "baseContracts": [], @@ -97,20 +97,20 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 848, + "id": 1950, "linearizedBaseContracts": [ - 848 + 1950 ], "name": "Migrations", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 795, + "id": 1897, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 848, - "src": "53:20:4", + "scope": 1950, + "src": "53:20:7", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -118,10 +118,10 @@ "typeString": "address" }, "typeName": { - "id": 794, + "id": 1896, "name": "address", "nodeType": "ElementaryTypeName", - "src": "53:7:4", + "src": "53:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -132,11 +132,11 @@ }, { "constant": false, - "id": 797, + "id": 1899, "name": "last_completed_migration", "nodeType": "VariableDeclaration", - "scope": 848, - "src": "78:36:4", + "scope": 1950, + "src": "78:36:7", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -144,10 +144,10 @@ "typeString": "uint256" }, "typeName": { - "id": 796, + "id": 1898, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "78:4:4", + "src": "78:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -158,9 +158,9 @@ }, { "body": { - "id": 805, + "id": 1907, "nodeType": "Block", - "src": "143:39:4", + "src": "143:39:7", "statements": [ { "condition": { @@ -169,7 +169,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 802, + "id": 1904, "isConstant": false, "isLValue": false, "isPure": false, @@ -178,18 +178,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 799, + "id": 1901, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 863, - "src": "154:3:4", + "referencedDeclaration": 1965, + "src": "154:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 800, + "id": 1902, "isConstant": false, "isLValue": false, "isPure": false, @@ -197,7 +197,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "154:10:4", + "src": "154:10:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -207,70 +207,70 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 801, + "id": 1903, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 795, - "src": "168:5:4", + "referencedDeclaration": 1897, + "src": "168:5:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "154:19:4", + "src": "154:19:7", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 804, + "id": 1906, "nodeType": "IfStatement", - "src": "150:26:4", + "src": "150:26:7", "trueBody": { - "id": 803, + "id": 1905, "nodeType": "PlaceholderStatement", - "src": "175:1:4" + "src": "175:1:7" } } ] }, "documentation": null, - "id": 806, + "id": 1908, "name": "restricted", "nodeType": "ModifierDefinition", "parameters": { - "id": 798, + "id": 1900, "nodeType": "ParameterList", "parameters": [], - "src": "140:2:4" + "src": "140:2:7" }, - "src": "121:61:4", + "src": "121:61:7", "visibility": "internal" }, { "body": { - "id": 814, + "id": 1916, "nodeType": "Block", - "src": "209:31:4", + "src": "209:31:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 812, + "id": 1914, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 809, + "id": 1911, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 795, - "src": "216:5:4", + "referencedDeclaration": 1897, + "src": "216:5:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -282,18 +282,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 810, + "id": 1912, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 863, - "src": "224:3:4", + "referencedDeclaration": 1965, + "src": "224:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 811, + "id": 1913, "isConstant": false, "isLValue": false, "isPure": false, @@ -301,26 +301,26 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "224:10:4", + "src": "224:10:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "216:18:4", + "src": "216:18:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 813, + "id": 1915, "nodeType": "ExpressionStatement", - "src": "216:18:4" + "src": "216:18:7" } ] }, "documentation": null, - "id": 815, + "id": 1917, "implemented": true, "isConstructor": true, "isDeclaredConst": false, @@ -328,46 +328,46 @@ "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 807, + "id": 1909, "nodeType": "ParameterList", "parameters": [], - "src": "199:2:4" + "src": "199:2:7" }, "payable": false, "returnParameters": { - "id": 808, + "id": 1910, "nodeType": "ParameterList", "parameters": [], - "src": "209:0:4" + "src": "209:0:7" }, - "scope": 848, - "src": "188:52:4", + "scope": 1950, + "src": "188:52:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 826, + "id": 1928, "nodeType": "Block", - "src": "302:49:4", + "src": "302:49:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 824, + "id": 1926, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 822, + "id": 1924, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 797, - "src": "309:24:4", + "referencedDeclaration": 1899, + "src": "309:24:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -377,68 +377,68 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 823, + "id": 1925, "name": "completed", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 817, - "src": "336:9:4", + "referencedDeclaration": 1919, + "src": "336:9:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "309:36:4", + "src": "309:36:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 825, + "id": 1927, "nodeType": "ExpressionStatement", - "src": "309:36:4" + "src": "309:36:7" } ] }, "documentation": null, - "id": 827, + "id": 1929, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 820, + "id": 1922, "modifierName": { "argumentTypes": null, - "id": 819, + "id": 1921, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 806, - "src": "291:10:4", + "referencedDeclaration": 1908, + "src": "291:10:7", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "291:10:4" + "src": "291:10:7" } ], "name": "setCompleted", "nodeType": "FunctionDefinition", "parameters": { - "id": 818, + "id": 1920, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 817, + "id": 1919, "name": "completed", "nodeType": "VariableDeclaration", - "scope": 827, - "src": "268:14:4", + "scope": 1929, + "src": "268:14:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -446,10 +446,10 @@ "typeString": "uint256" }, "typeName": { - "id": 816, + "id": 1918, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "268:4:4", + "src": "268:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -459,54 +459,54 @@ "visibility": "internal" } ], - "src": "267:16:4" + "src": "267:16:7" }, "payable": false, "returnParameters": { - "id": 821, + "id": 1923, "nodeType": "ParameterList", "parameters": [], - "src": "302:0:4" + "src": "302:0:7" }, - "scope": 848, - "src": "246:105:4", + "scope": 1950, + "src": "246:105:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 846, + "id": 1948, "nodeType": "Block", - "src": "413:112:4", + "src": "413:112:7", "statements": [ { "assignments": [ - 835 + 1937 ], "declarations": [ { "constant": false, - "id": 835, + "id": 1937, "name": "upgraded", "nodeType": "VariableDeclaration", - "scope": 847, - "src": "420:19:4", + "scope": 1949, + "src": "420:19:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$848", + "typeIdentifier": "t_contract$_Migrations_$1950", "typeString": "contract Migrations" }, "typeName": { "contractScope": null, - "id": 834, + "id": 1936, "name": "Migrations", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 848, - "src": "420:10:4", + "referencedDeclaration": 1950, + "src": "420:10:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$848", + "typeIdentifier": "t_contract$_Migrations_$1950", "typeString": "contract Migrations" } }, @@ -514,18 +514,18 @@ "visibility": "internal" } ], - "id": 839, + "id": 1941, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 837, + "id": 1939, "name": "new_address", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 829, - "src": "453:11:4", + "referencedDeclaration": 1931, + "src": "453:11:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -539,18 +539,18 @@ "typeString": "address" } ], - "id": 836, + "id": 1938, "name": "Migrations", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 848, - "src": "442:10:4", + "referencedDeclaration": 1950, + "src": "442:10:7", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Migrations_$848_$", + "typeIdentifier": "t_type$_t_contract$_Migrations_$1950_$", "typeString": "type(contract Migrations)" } }, - "id": 838, + "id": 1940, "isConstant": false, "isLValue": false, "isPure": false, @@ -558,14 +558,14 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "442:23:4", + "src": "442:23:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$848", + "typeIdentifier": "t_contract$_Migrations_$1950", "typeString": "contract Migrations" } }, "nodeType": "VariableDeclarationStatement", - "src": "420:45:4" + "src": "420:45:7" }, { "expression": { @@ -573,12 +573,12 @@ "arguments": [ { "argumentTypes": null, - "id": 843, + "id": 1945, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 797, - "src": "494:24:4", + "referencedDeclaration": 1899, + "src": "494:24:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -594,32 +594,32 @@ ], "expression": { "argumentTypes": null, - "id": 840, + "id": 1942, "name": "upgraded", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 835, - "src": "472:8:4", + "referencedDeclaration": 1937, + "src": "472:8:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$848", + "typeIdentifier": "t_contract$_Migrations_$1950", "typeString": "contract Migrations" } }, - "id": 842, + "id": 1944, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "setCompleted", "nodeType": "MemberAccess", - "referencedDeclaration": 827, - "src": "472:21:4", + "referencedDeclaration": 1929, + "src": "472:21:7", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256) external" } }, - "id": 844, + "id": 1946, "isConstant": false, "isLValue": false, "isPure": false, @@ -627,57 +627,57 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "472:47:4", + "src": "472:47:7", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 845, + "id": 1947, "nodeType": "ExpressionStatement", - "src": "472:47:4" + "src": "472:47:7" } ] }, "documentation": null, - "id": 847, + "id": 1949, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 832, + "id": 1934, "modifierName": { "argumentTypes": null, - "id": 831, + "id": 1933, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 806, - "src": "402:10:4", + "referencedDeclaration": 1908, + "src": "402:10:7", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "402:10:4" + "src": "402:10:7" } ], "name": "upgrade", "nodeType": "FunctionDefinition", "parameters": { - "id": 830, + "id": 1932, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 829, + "id": 1931, "name": "new_address", "nodeType": "VariableDeclaration", - "scope": 847, - "src": "374:19:4", + "scope": 1949, + "src": "374:19:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -685,10 +685,10 @@ "typeString": "address" }, "typeName": { - "id": 828, + "id": 1930, "name": "address", "nodeType": "ElementaryTypeName", - "src": "374:7:4", + "src": "374:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -698,40 +698,40 @@ "visibility": "internal" } ], - "src": "373:21:4" + "src": "373:21:7" }, "payable": false, "returnParameters": { - "id": 833, + "id": 1935, "nodeType": "ParameterList", "parameters": [], - "src": "413:0:4" + "src": "413:0:7" }, - "scope": 848, - "src": "357:168:4", + "scope": 1950, + "src": "357:168:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], - "scope": 849, - "src": "28:500:4" + "scope": 1951, + "src": "28:500:7" } ], - "src": "0:530:4" + "src": "0:530:7" }, "legacyAST": { "absolutePath": "/C/i/HT/hellonetmarket/ethereum/contracts/Migrations.sol", "exportedSymbols": { "Migrations": [ - 848 + 1950 ] }, - "id": 849, + "id": 1951, "nodeType": "SourceUnit", "nodes": [ { - "id": 793, + "id": 1895, "literals": [ "solidity", "^", @@ -739,7 +739,7 @@ ".24" ], "nodeType": "PragmaDirective", - "src": "0:24:4" + "src": "0:24:7" }, { "baseContracts": [], @@ -747,20 +747,20 @@ "contractKind": "contract", "documentation": null, "fullyImplemented": true, - "id": 848, + "id": 1950, "linearizedBaseContracts": [ - 848 + 1950 ], "name": "Migrations", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, - "id": 795, + "id": 1897, "name": "owner", "nodeType": "VariableDeclaration", - "scope": 848, - "src": "53:20:4", + "scope": 1950, + "src": "53:20:7", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -768,10 +768,10 @@ "typeString": "address" }, "typeName": { - "id": 794, + "id": 1896, "name": "address", "nodeType": "ElementaryTypeName", - "src": "53:7:4", + "src": "53:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -782,11 +782,11 @@ }, { "constant": false, - "id": 797, + "id": 1899, "name": "last_completed_migration", "nodeType": "VariableDeclaration", - "scope": 848, - "src": "78:36:4", + "scope": 1950, + "src": "78:36:7", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { @@ -794,10 +794,10 @@ "typeString": "uint256" }, "typeName": { - "id": 796, + "id": 1898, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "78:4:4", + "src": "78:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -808,9 +808,9 @@ }, { "body": { - "id": 805, + "id": 1907, "nodeType": "Block", - "src": "143:39:4", + "src": "143:39:7", "statements": [ { "condition": { @@ -819,7 +819,7 @@ "typeIdentifier": "t_address", "typeString": "address" }, - "id": 802, + "id": 1904, "isConstant": false, "isLValue": false, "isPure": false, @@ -828,18 +828,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 799, + "id": 1901, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 863, - "src": "154:3:4", + "referencedDeclaration": 1965, + "src": "154:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 800, + "id": 1902, "isConstant": false, "isLValue": false, "isPure": false, @@ -847,7 +847,7 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "154:10:4", + "src": "154:10:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -857,70 +857,70 @@ "operator": "==", "rightExpression": { "argumentTypes": null, - "id": 801, + "id": 1903, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 795, - "src": "168:5:4", + "referencedDeclaration": 1897, + "src": "168:5:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "154:19:4", + "src": "154:19:7", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "falseBody": null, - "id": 804, + "id": 1906, "nodeType": "IfStatement", - "src": "150:26:4", + "src": "150:26:7", "trueBody": { - "id": 803, + "id": 1905, "nodeType": "PlaceholderStatement", - "src": "175:1:4" + "src": "175:1:7" } } ] }, "documentation": null, - "id": 806, + "id": 1908, "name": "restricted", "nodeType": "ModifierDefinition", "parameters": { - "id": 798, + "id": 1900, "nodeType": "ParameterList", "parameters": [], - "src": "140:2:4" + "src": "140:2:7" }, - "src": "121:61:4", + "src": "121:61:7", "visibility": "internal" }, { "body": { - "id": 814, + "id": 1916, "nodeType": "Block", - "src": "209:31:4", + "src": "209:31:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 812, + "id": 1914, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 809, + "id": 1911, "name": "owner", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 795, - "src": "216:5:4", + "referencedDeclaration": 1897, + "src": "216:5:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -932,18 +932,18 @@ "argumentTypes": null, "expression": { "argumentTypes": null, - "id": 810, + "id": 1912, "name": "msg", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 863, - "src": "224:3:4", + "referencedDeclaration": 1965, + "src": "224:3:7", "typeDescriptions": { "typeIdentifier": "t_magic_message", "typeString": "msg" } }, - "id": 811, + "id": 1913, "isConstant": false, "isLValue": false, "isPure": false, @@ -951,26 +951,26 @@ "memberName": "sender", "nodeType": "MemberAccess", "referencedDeclaration": null, - "src": "224:10:4", + "src": "224:10:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "src": "216:18:4", + "src": "216:18:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, - "id": 813, + "id": 1915, "nodeType": "ExpressionStatement", - "src": "216:18:4" + "src": "216:18:7" } ] }, "documentation": null, - "id": 815, + "id": 1917, "implemented": true, "isConstructor": true, "isDeclaredConst": false, @@ -978,46 +978,46 @@ "name": "", "nodeType": "FunctionDefinition", "parameters": { - "id": 807, + "id": 1909, "nodeType": "ParameterList", "parameters": [], - "src": "199:2:4" + "src": "199:2:7" }, "payable": false, "returnParameters": { - "id": 808, + "id": 1910, "nodeType": "ParameterList", "parameters": [], - "src": "209:0:4" + "src": "209:0:7" }, - "scope": 848, - "src": "188:52:4", + "scope": 1950, + "src": "188:52:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 826, + "id": 1928, "nodeType": "Block", - "src": "302:49:4", + "src": "302:49:7", "statements": [ { "expression": { "argumentTypes": null, - "id": 824, + "id": 1926, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, - "id": 822, + "id": 1924, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 797, - "src": "309:24:4", + "referencedDeclaration": 1899, + "src": "309:24:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1027,68 +1027,68 @@ "operator": "=", "rightHandSide": { "argumentTypes": null, - "id": 823, + "id": 1925, "name": "completed", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 817, - "src": "336:9:4", + "referencedDeclaration": 1919, + "src": "336:9:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "src": "309:36:4", + "src": "309:36:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, - "id": 825, + "id": 1927, "nodeType": "ExpressionStatement", - "src": "309:36:4" + "src": "309:36:7" } ] }, "documentation": null, - "id": 827, + "id": 1929, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 820, + "id": 1922, "modifierName": { "argumentTypes": null, - "id": 819, + "id": 1921, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 806, - "src": "291:10:4", + "referencedDeclaration": 1908, + "src": "291:10:7", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "291:10:4" + "src": "291:10:7" } ], "name": "setCompleted", "nodeType": "FunctionDefinition", "parameters": { - "id": 818, + "id": 1920, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 817, + "id": 1919, "name": "completed", "nodeType": "VariableDeclaration", - "scope": 827, - "src": "268:14:4", + "scope": 1929, + "src": "268:14:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1096,10 +1096,10 @@ "typeString": "uint256" }, "typeName": { - "id": 816, + "id": 1918, "name": "uint", "nodeType": "ElementaryTypeName", - "src": "268:4:4", + "src": "268:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1109,54 +1109,54 @@ "visibility": "internal" } ], - "src": "267:16:4" + "src": "267:16:7" }, "payable": false, "returnParameters": { - "id": 821, + "id": 1923, "nodeType": "ParameterList", "parameters": [], - "src": "302:0:4" + "src": "302:0:7" }, - "scope": 848, - "src": "246:105:4", + "scope": 1950, + "src": "246:105:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { - "id": 846, + "id": 1948, "nodeType": "Block", - "src": "413:112:4", + "src": "413:112:7", "statements": [ { "assignments": [ - 835 + 1937 ], "declarations": [ { "constant": false, - "id": 835, + "id": 1937, "name": "upgraded", "nodeType": "VariableDeclaration", - "scope": 847, - "src": "420:19:4", + "scope": 1949, + "src": "420:19:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$848", + "typeIdentifier": "t_contract$_Migrations_$1950", "typeString": "contract Migrations" }, "typeName": { "contractScope": null, - "id": 834, + "id": 1936, "name": "Migrations", "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 848, - "src": "420:10:4", + "referencedDeclaration": 1950, + "src": "420:10:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$848", + "typeIdentifier": "t_contract$_Migrations_$1950", "typeString": "contract Migrations" } }, @@ -1164,18 +1164,18 @@ "visibility": "internal" } ], - "id": 839, + "id": 1941, "initialValue": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, - "id": 837, + "id": 1939, "name": "new_address", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 829, - "src": "453:11:4", + "referencedDeclaration": 1931, + "src": "453:11:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1189,18 +1189,18 @@ "typeString": "address" } ], - "id": 836, + "id": 1938, "name": "Migrations", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 848, - "src": "442:10:4", + "referencedDeclaration": 1950, + "src": "442:10:7", "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Migrations_$848_$", + "typeIdentifier": "t_type$_t_contract$_Migrations_$1950_$", "typeString": "type(contract Migrations)" } }, - "id": 838, + "id": 1940, "isConstant": false, "isLValue": false, "isPure": false, @@ -1208,14 +1208,14 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "442:23:4", + "src": "442:23:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$848", + "typeIdentifier": "t_contract$_Migrations_$1950", "typeString": "contract Migrations" } }, "nodeType": "VariableDeclarationStatement", - "src": "420:45:4" + "src": "420:45:7" }, { "expression": { @@ -1223,12 +1223,12 @@ "arguments": [ { "argumentTypes": null, - "id": 843, + "id": 1945, "name": "last_completed_migration", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 797, - "src": "494:24:4", + "referencedDeclaration": 1899, + "src": "494:24:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" @@ -1244,32 +1244,32 @@ ], "expression": { "argumentTypes": null, - "id": 840, + "id": 1942, "name": "upgraded", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 835, - "src": "472:8:4", + "referencedDeclaration": 1937, + "src": "472:8:7", "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$848", + "typeIdentifier": "t_contract$_Migrations_$1950", "typeString": "contract Migrations" } }, - "id": 842, + "id": 1944, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "memberName": "setCompleted", "nodeType": "MemberAccess", - "referencedDeclaration": 827, - "src": "472:21:4", + "referencedDeclaration": 1929, + "src": "472:21:7", "typeDescriptions": { "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", "typeString": "function (uint256) external" } }, - "id": 844, + "id": 1946, "isConstant": false, "isLValue": false, "isPure": false, @@ -1277,57 +1277,57 @@ "lValueRequested": false, "names": [], "nodeType": "FunctionCall", - "src": "472:47:4", + "src": "472:47:7", "typeDescriptions": { "typeIdentifier": "t_tuple$__$", "typeString": "tuple()" } }, - "id": 845, + "id": 1947, "nodeType": "ExpressionStatement", - "src": "472:47:4" + "src": "472:47:7" } ] }, "documentation": null, - "id": 847, + "id": 1949, "implemented": true, "isConstructor": false, "isDeclaredConst": false, "modifiers": [ { "arguments": null, - "id": 832, + "id": 1934, "modifierName": { "argumentTypes": null, - "id": 831, + "id": 1933, "name": "restricted", "nodeType": "Identifier", "overloadedDeclarations": [], - "referencedDeclaration": 806, - "src": "402:10:4", + "referencedDeclaration": 1908, + "src": "402:10:7", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", - "src": "402:10:4" + "src": "402:10:7" } ], "name": "upgrade", "nodeType": "FunctionDefinition", "parameters": { - "id": 830, + "id": 1932, "nodeType": "ParameterList", "parameters": [ { "constant": false, - "id": 829, + "id": 1931, "name": "new_address", "nodeType": "VariableDeclaration", - "scope": 847, - "src": "374:19:4", + "scope": 1949, + "src": "374:19:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { @@ -1335,10 +1335,10 @@ "typeString": "address" }, "typeName": { - "id": 828, + "id": 1930, "name": "address", "nodeType": "ElementaryTypeName", - "src": "374:7:4", + "src": "374:7:7", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" @@ -1348,27 +1348,27 @@ "visibility": "internal" } ], - "src": "373:21:4" + "src": "373:21:7" }, "payable": false, "returnParameters": { - "id": 833, + "id": 1935, "nodeType": "ParameterList", "parameters": [], - "src": "413:0:4" + "src": "413:0:7" }, - "scope": 848, - "src": "357:168:4", + "scope": 1950, + "src": "357:168:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], - "scope": 849, - "src": "28:500:4" + "scope": 1951, + "src": "28:500:7" } ], - "src": "0:530:4" + "src": "0:530:7" }, "compiler": { "name": "solc", @@ -1376,5 +1376,5 @@ }, "networks": {}, "schemaVersion": "2.0.1", - "updatedAt": "2018-08-09T15:53:00.313Z" + "updatedAt": "2018-10-18T13:43:19.608Z" } \ No newline at end of file diff --git a/ethereum/contracts/AuditCriteriaManager.sol b/ethereum/contracts/AuditCriteriaManager.sol new file mode 100644 index 0000000..394b80c --- /dev/null +++ b/ethereum/contracts/AuditCriteriaManager.sol @@ -0,0 +1,186 @@ +pragma solidity ^ 0.4 .18; + +contract AuditCriteriaManager { + + struct CriteriaStruct { + string criteriaText; + uint minScore; + uint maxScore; + bool isActive; + uint256 index; + } + + mapping(uint256 => CriteriaStruct) private CriteriaStructs; + uint256[] private CriteriaIndex; + + event LogNewCriteria(uint256 indexed CriteriaIndex, uint index, string CriteriaText, uint maxScore); + event LogUpdateCriteria(uint256 indexed CriteriaIndex, uint index, string CriteriaText, uint maxScore); + event LogDeleteCriteria(uint256 indexed CriteriaIndex, uint index); + event LogCriteriaStatusChange(uint256 indexed CriteriaIndex, bool criteriaStatus); + + function isCriteria(uint indexExist) + public + constant + returns(bool isIndeed) { + if (CriteriaIndex.length == 0) return false; + return (CriteriaIndex[CriteriaStructs[indexExist].index] == indexExist); + } + + function insertCriteria( + string newCriteriaText, + uint minScore, + uint maxScore, + bool isActive) + public + returns(uint256 index) { + uint256 currentIndex = getCriteriaCount(); + CriteriaStructs[currentIndex].criteriaText = newCriteriaText; + CriteriaStructs[currentIndex].minScore = minScore; + CriteriaStructs[currentIndex].maxScore = maxScore; + CriteriaStructs[currentIndex].isActive = isActive; + + CriteriaStructs[currentIndex].index = CriteriaIndex.push(currentIndex) - 1; + + emit LogNewCriteria( + currentIndex, + CriteriaStructs[currentIndex].index, + newCriteriaText, + maxScore); + return CriteriaIndex.length - 1; + } + + function deleteAllCriteria() public + { + delete CriteriaIndex; + } + + function deleteCriteria(uint256 deleteCriteriaIndex) + public + returns(uint256 index) { + if (!isCriteria(deleteCriteriaIndex)) revert(); + + uint256 rowToDelete = CriteriaStructs[deleteCriteriaIndex].index; + uint256 keyToMove = CriteriaIndex[CriteriaIndex.length - 1]; + CriteriaIndex[rowToDelete] = keyToMove; + CriteriaStructs[keyToMove].index = rowToDelete; + CriteriaIndex.length--; + + emit LogDeleteCriteria( + deleteCriteriaIndex, + rowToDelete); + emit LogUpdateCriteria( + keyToMove, + rowToDelete, + CriteriaStructs[keyToMove].criteriaText, + CriteriaStructs[keyToMove].maxScore); + return rowToDelete; + } + + function getCriteria(uint256 criteriaIndex) + public + constant + returns(string criteriaText, uint maxScore, uint minScore, bool isActive) { + if (!isCriteria(criteriaIndex)) revert(); + + return ( + CriteriaStructs[criteriaIndex].criteriaText, + CriteriaStructs[criteriaIndex].maxScore, + CriteriaStructs[criteriaIndex].minScore, + CriteriaStructs[criteriaIndex].isActive); + } + + + function getCriteriaText(uint256 criteriaIndex) + public + constant + returns(string criteriaText) { + if (!isCriteria(criteriaIndex)) revert(); + + return ( + CriteriaStructs[criteriaIndex].criteriaText); + } + + function getMaxScore(uint256 criteriaIndex) + public + constant + returns(uint maxScore) { + if (!isCriteria(criteriaIndex)) revert(); + + return (CriteriaStructs[criteriaIndex].maxScore); + } + + function getMinScore(uint256 criteriaIndex) + public + constant + returns(uint minScore) { + if (!isCriteria(criteriaIndex)) revert(); + + return (CriteriaStructs[criteriaIndex].minScore); + } + + function getStatus(uint256 criteriaIndex) + public + constant + returns(bool isActive) { + if (!isCriteria(criteriaIndex)) revert(); + + return (CriteriaStructs[criteriaIndex].isActive); + } + + function updateCriteriaText(uint256 criteriaIndex, string criteriaText) + public + returns(bool success) { + if (!isCriteria(criteriaIndex)) revert(); + + CriteriaStructs[criteriaIndex].criteriaText = criteriaText; + emit LogUpdateCriteria( + criteriaIndex, + CriteriaStructs[criteriaIndex].index, + criteriaText, + CriteriaStructs[criteriaIndex].maxScore); + return true; + } + + function updateMaxMinScore(uint256 index, uint MaxScore, uint MinScore) + public + returns(bool success) { + if (!isCriteria(index)) revert(); + + CriteriaStructs[index].maxScore = MaxScore; + CriteriaStructs[index].minScore = MinScore; + emit LogUpdateCriteria( + index, + CriteriaStructs[index].index, + CriteriaStructs[index].criteriaText, + CriteriaStructs[index].minScore); + return true; + } + + function changeStatus(uint256 index, bool status) + public + returns(bool success) { + if (!isCriteria(index)) revert(); + + CriteriaStructs[index].isActive = status; + + emit LogCriteriaStatusChange( + index, CriteriaStructs[index].isActive); + return true; + } + + + function getCriteriaCount() + public + constant + returns(uint256 count) { + return CriteriaIndex.length; + } + + function getCriteriaAtIndex(uint index) + public + constant + returns(uint256 criteriaIndex) { + return CriteriaIndex[index]; + } + +} \ No newline at end of file diff --git a/ethereum/contracts/Company.sol b/ethereum/contracts/Company.sol index 147dc4d..f5f2a0a 100644 --- a/ethereum/contracts/Company.sol +++ b/ethereum/contracts/Company.sol @@ -1,21 +1,27 @@ -pragma solidity ^0.4.18; +pragma solidity ^ 0.4 .18; contract Company { - - struct SupportAgent - { - string email; - string fName; - string lName; - string timeZone; - uint agentIndex; + + struct SupportAgent { + address agentAddress; + string email; + string fName; + string lName; + string timeZone; + uint index; } - - mapping (address => SupportAgent) supportAgents; + + mapping(uint256 => SupportAgent) private SupportAgents; address[] public supportAgentRecords; - mapping (address => bool) public isSupportAgent; + + mapping(address => uint256) private agentRecords; + + uint256[] private agentIndex; + + + mapping(address => bool) public isSupportAgent; -////////////////////////////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////////////////////////////////// modifier agentDoesNotExist(address supportagent) { require(!isSupportAgent[supportagent]); _; @@ -30,77 +36,155 @@ contract Company { require(_address != 0); _; } -////////////////////////////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////////////////////////////////// + + function addSupportAgent(address _address, string _email, string _fName, string _lName, string _timeZone) + public + returns(uint256 index) { + + + // If the first argument of `require` evaluates + // to `false`, execution terminates and all + // changes to the state and to Ether balances + // are reverted. + // This used to consume all gas in old EVM versions, but + // not anymore. + // It is often a good idea to use `require` to check if + // functions are called correctly. + // As a second argument, you can also provide an + // explanation about what went wrong. + + require( + isSupportAgent[_address] == false, + "Agent already exist !" + ); + + + require( + (bytes(_email).length < 5)==false, + "Invalid Email address !" + ); - function addSupportAgent(address _address, string _email, string _fName, string _lName, string _timeZone) public - { - SupportAgent memory supportAgent = supportAgents[_address]; + require( + (bytes(_fName).length < 3)==false, + "First name should contain minimum 3 letters" + ); - supportAgent.email = _email; - supportAgent.fName = _fName; - supportAgent.lName = _lName; - supportAgent.timeZone = _timeZone; - supportAgent.agentIndex = supportAgentRecords.length; // Row ID (Array Index) of an Agent + require( + (bytes(_lName).length < 3)==false, + "Last name should contain minimum 3 letters" + ); + + require( + (bytes(_timeZone).length < 3)==false, + "Timezone is Invalid" + ); + + uint256 currentIndex = countSupportAgents(); + isSupportAgent[_address] = true; - supportAgentRecords.push(_address) -1; + SupportAgents[currentIndex].agentAddress = _address; + SupportAgents[currentIndex].email = _email; + SupportAgents[currentIndex].fName = _fName; + SupportAgents[currentIndex].lName = _lName; + SupportAgents[currentIndex].timeZone = _timeZone; - isSupportAgent[_address] = true; + SupportAgents[currentIndex].index = agentIndex.push(currentIndex) - 1; + + agentRecords[_address] = currentIndex; + + return agentIndex.length-1; } - function removeOneSupportAgent(address _address) public returns (uint) - { - /* - Swap the last agent to position of the to-be remove agent position - */ - - uint removeThisAgent = findSupportAgentArrayIndex(_address); // Get the Array Index - - supportAgentRecords[removeThisAgent] = supportAgentRecords[supportAgentRecords.length - 1]; - - delete supportAgentRecords[supportAgentRecords.length - 1]; - - supportAgentRecords.length--; - - isSupportAgent[_address] = false; + function removeOneSupportAgent(address _address) public returns(uint) { + + require( + isSupportAgent[_address] == true, + "There is no such agent with the given address !" + ); + - return countSupportAgents(); + uint256 index = agentRecords[_address]; + + delete isSupportAgent[_address]; + delete agentRecords[_address]; + + delete SupportAgents[index]; + delete agentIndex[index]; + + agentIndex.length--; + + return countSupportAgents(); } - function removeAllSupportAgent() public returns (uint) - { - for (uint i = 0; i < supportAgentRecords.length - 1; i++) - { - - address _address = findSupportAgentAddressById(i); - isSupportAgent[_address] = false; - - delete supportAgentRecords[i]; - supportAgentRecords.length--; - } - return countSupportAgents(); + function removeAllSupportAgent() public returns(uint) { + + for (uint i=0; i < agentIndex.length; i++) + { + address agentAddress = SupportAgents[i].agentAddress; + + delete isSupportAgent[agentAddress]; + delete agentRecords[agentAddress]; + delete SupportAgents[i]; + + } + delete agentIndex; + return countSupportAgents(); } + function findAllSupportAgents() view public returns(address[]) { return supportAgentRecords; } - function findSupportAgentAddressById(uint index) view public returns (address) - { - return (supportAgentRecords[index]); + function findSupportAgentAddressById(uint index) view public returns(address) { + return (SupportAgents[index].agentAddress); } - function findSupportAgentArrayIndex(address _address) view public returns (uint) + function findSupportAgentArrayIndex(address _address) view public returns(uint) { + + require( + isSupportAgent[_address] == true, + "There is no such agent with the given address !" + ); + + return agentRecords[_address]; + + } + + + function getAgentEmail(address _address) view public returns(string) { - return (supportAgents[_address].agentIndex); + require( + isSupportAgent[_address] == true, + "There is no such agent with the given address !" + ); + + uint256 index = agentRecords[_address]; + + return (SupportAgents[index].email); } - - function findSupportAgentByAddress(address _address) view public returns (string, string, string,string) + + function findSupportAgentByAddress(address _address) view public returns(string, string, string, string) { - return (supportAgents[_address].email, supportAgents[_address].fName, supportAgents[_address].lName,supportAgents[_address].timeZone); + require( + isSupportAgent[_address] == true, + "There is no such agent with the given address !" + ); + + uint256 index = agentRecords[_address]; + + return + (SupportAgents[index].email, + SupportAgents[index].fName, + SupportAgents[index].lName, + SupportAgents[index].timeZone); } + - function countSupportAgents() view public returns (uint) { - return supportAgentRecords.length; + function countSupportAgents() view public returns(uint256) { + return agentIndex.length; } + } \ No newline at end of file diff --git a/ethereum/contracts/MasterAuditCondition.sol b/ethereum/contracts/MasterAuditCondition.sol new file mode 100644 index 0000000..9b0f223 --- /dev/null +++ b/ethereum/contracts/MasterAuditCondition.sol @@ -0,0 +1,167 @@ +pragma solidity ^0.4.24; +pragma experimental ABIEncoderV2; + +contract MasterAuditCondition { + struct MasterAuditConditionStruct{ + uint256 index; + string conditionText; + string compare; + uint value; + bool isActive; + } + + mapping(uint256 => MasterAuditConditionStruct) private MasterAuditConditionStructs; + uint256[] private Index; + + event LogInsertMasterAuditCondition(uint256 indexed currentIndex, string conditionText, string compare, uint256 value, bool isActive); + event LogUpdateMasterAuditCondition(uint256 indexed currentIndex, string conditionText, string compare, uint256 value, bool isActive); + event LogDeleteMasterAuditCondition(uint256 indexed currentIndex); + event LogChangeStatusMasterAuditCondition(uint256 indexed currentIndex, bool isActive); + + + function isExists(uint256 indexExists) + public + view + returns(bool isExist) { + if (Index.length == 0) return false; + + return (Index[MasterAuditConditionStructs[indexExists].index] == indexExists); + } + + function insert( + string conditionText, + string compare, + uint value, + bool isActive + ) + public + returns(uint256 index){ + uint256 currentIndex = getCount(); + + uint256 pushedIndex = Index.push(currentIndex) - 1; + MasterAuditConditionStruct memory newMasterAuditConditionStruct = MasterAuditConditionStruct(pushedIndex, conditionText, compare, value, isActive); + MasterAuditConditionStructs[currentIndex] = newMasterAuditConditionStruct; + + emit LogInsertMasterAuditCondition(currentIndex, conditionText, compare, value, isActive); + return currentIndex; + } + + function changeStatus(uint256 index, bool status) + public + returns(bool success) { + if (!isExists(index)) revert(); + + MasterAuditConditionStructs[index].isActive = status; + + emit LogChangeStatusMasterAuditCondition(index, MasterAuditConditionStructs[index].isActive); + return true; + } + + function update(uint256 index, string conditionText, string compare, uint256 value) + public + returns(bool success) { + if (!isExists(index)) revert(); + + MasterAuditConditionStructs[index].conditionText = conditionText; + MasterAuditConditionStructs[index].compare = compare; + MasterAuditConditionStructs[index].value = value; + + emit LogUpdateMasterAuditCondition( + MasterAuditConditionStructs[index].index, + MasterAuditConditionStructs[index].conditionText, + MasterAuditConditionStructs[index].compare, + MasterAuditConditionStructs[index].value, + MasterAuditConditionStructs[index].isActive); + + return true; + } + + function deleteMasterAuditCondition(uint256 deleteIndex) + public + returns(uint256 index){ + if (!(isExists(deleteIndex))) revert(); + + //important since deleteIndex <> MasterAuditConditionStructs[deleteIndex].index + uint256 rowToDeleteIndex = MasterAuditConditionStructs[deleteIndex].index; + //Get the Last index/key + uint256 keyToMoveIndex = Index[Index.length - 1]; + //Set the rowToDelete index as Last Index + Index[rowToDeleteIndex] = keyToMoveIndex; + //Set the moved struct's index as rowToDelete Index + MasterAuditConditionStructs[keyToMoveIndex].index = rowToDeleteIndex; + Index.length--; + + emit LogDeleteMasterAuditCondition(rowToDeleteIndex); + return rowToDeleteIndex; + } + + function deleteAll() + public{ + delete Index; + } + + function getCount() + public + view + returns(uint256 count) { + return Index.length; + } + + function getAtIndex(uint256 getIndex) + public + view + returns(uint256 index, + string conditionText, + string compare, + uint value, + bool isActive) + { + if (!(isExists(getIndex))) revert(); + + return ( MasterAuditConditionStructs[getIndex].index, + MasterAuditConditionStructs[getIndex].conditionText, + MasterAuditConditionStructs[getIndex].compare, + MasterAuditConditionStructs[getIndex].value, + MasterAuditConditionStructs[getIndex].isActive); + } + + function getConditionTextAtIndex(uint256 index) + public + view + returns(string conditionText) + { + if (!(isExists(index))) revert(); + + return MasterAuditConditionStructs[index].conditionText; + } + + function getCompareAtIndex(uint256 index) + public + view + returns(string compare) + { + if (!(isExists(index))) revert(); + + return MasterAuditConditionStructs[index].compare; + } + + function getValueAtIndex(uint256 index) + public + view + returns(uint256 value) + { + if (!(isExists(index))) revert(); + + return MasterAuditConditionStructs[index].value; + } + + function getStatusAtIndex(uint256 index) + public + view + returns(bool isActive) + { + if (!(isExists(index))) revert(); + + return MasterAuditConditionStructs[index].isActive; + } +} \ No newline at end of file diff --git a/ethereum/contracts/MasterListingCondition.sol b/ethereum/contracts/MasterListingCondition.sol new file mode 100644 index 0000000..5ef6904 --- /dev/null +++ b/ethereum/contracts/MasterListingCondition.sol @@ -0,0 +1,166 @@ +pragma solidity ^0.4.24; + +contract MasterListingCondition { + struct MasterListingConditionStruct{ + uint256 index; + string conditionText; + string compare; + uint value; + bool isActive; + } + + mapping(uint256 => MasterListingConditionStruct) private MasterListingConditionStructs; + uint256[] private Index; + + event LogInsertMasterListingCondition(uint256 indexed currentIndex, string conditionText, string compare, uint256 value, bool isActive); + event LogUpdateMasterListingCondition(uint256 indexed currentIndex, string conditionText, string compare, uint256 value, bool isActive); + event LogDeleteMasterListingCondition(uint256 indexed currentIndex); + event LogChangeStatusMasterListingCondition(uint256 indexed currentIndex, bool isActive); + + + function isExists(uint256 indexExists) + public + view + returns(bool isExist) { + if (Index.length == 0) return false; + + return (Index[MasterListingConditionStructs[indexExists].index] == indexExists); + } + + function insert( + string conditionText, + string compare, + uint value, + bool isActive + ) + public + returns(uint256 index){ + uint256 currentIndex = getCount(); + + uint256 pushedIndex = Index.push(currentIndex) - 1; + MasterListingConditionStruct memory newMasterListingConditionStruct = MasterListingConditionStruct(pushedIndex, conditionText, compare, value, isActive); + MasterListingConditionStructs[currentIndex] = newMasterListingConditionStruct; + + emit LogInsertMasterListingCondition(currentIndex, conditionText, compare, value, isActive); + return currentIndex; + } + + function changeStatus(uint256 index, bool status) + public + returns(bool success) { + if (!isExists(index)) revert(); + + MasterListingConditionStructs[index].isActive = status; + + emit LogChangeStatusMasterListingCondition(index, MasterListingConditionStructs[index].isActive); + return true; + } + + function update(uint256 index, string conditionText, string compare, uint256 value) + public + returns(bool success) { + if (!isExists(index)) revert(); + + MasterListingConditionStructs[index].conditionText = conditionText; + MasterListingConditionStructs[index].compare = compare; + MasterListingConditionStructs[index].value = value; + + emit LogUpdateMasterListingCondition( + MasterListingConditionStructs[index].index, + MasterListingConditionStructs[index].conditionText, + MasterListingConditionStructs[index].compare, + MasterListingConditionStructs[index].value, + MasterListingConditionStructs[index].isActive); + + return true; + } + + function deleteMasterListingCondition(uint256 deleteIndex) + public + returns(uint256 index){ + if (!(isExists(deleteIndex))) revert(); + + //important since deleteIndex <> MasterListingConditionStructs[deleteIndex].index + uint256 rowToDeleteIndex = MasterListingConditionStructs[deleteIndex].index; + //Get the Last index/key + uint256 keyToMoveIndex = Index[Index.length - 1]; + //Set the rowToDelete index as Last Index + Index[rowToDeleteIndex] = keyToMoveIndex; + //Set the moved struct's index as rowToDelete Index + MasterListingConditionStructs[keyToMoveIndex].index = rowToDeleteIndex; + Index.length--; + + emit LogDeleteMasterListingCondition(rowToDeleteIndex); + return rowToDeleteIndex; + } + + function deleteAll() + public{ + delete Index; + } + + function getCount() + public + view + returns(uint256 count) { + return Index.length; + } + + function getAtIndex(uint256 getIndex) + public + view + returns(uint256 index, + string conditionText, + string compare, + uint value, + bool isActive) + { + if (!(isExists(getIndex))) revert(); + + return ( MasterListingConditionStructs[getIndex].index, + MasterListingConditionStructs[getIndex].conditionText, + MasterListingConditionStructs[getIndex].compare, + MasterListingConditionStructs[getIndex].value, + MasterListingConditionStructs[getIndex].isActive); + } + + function getConditionTextAtIndex(uint256 index) + public + view + returns(string conditionText) + { + if (!(isExists(index))) revert(); + + return MasterListingConditionStructs[index].conditionText; + } + + function getCompareAtIndex(uint256 index) + public + view + returns(string compare) + { + if (!(isExists(index))) revert(); + + return MasterListingConditionStructs[index].compare; + } + + function getValueAtIndex(uint256 index) + public + view + returns(uint256 value) + { + if (!(isExists(index))) revert(); + + return MasterListingConditionStructs[index].value; + } + + function getStatusAtIndex(uint256 index) + public + view + returns(bool isActive) + { + if (!(isExists(index))) revert(); + + return MasterListingConditionStructs[index].isActive; + } +} \ No newline at end of file diff --git a/ethereum/listingsregistry.js b/ethereum/listingsregistry.js index 01d60c0..069cc5d 100644 --- a/ethereum/listingsregistry.js +++ b/ethereum/listingsregistry.js @@ -1,6 +1,6 @@ import web3 from './web3'; import ListingsRegistry from './build/contracts/ListingsRegistry.json'; -const instance = new web3.eth.Contract(ListingsRegistry.abi, '0x046eedc1f46bed64ef000f0c7f2fd7caf00058ce'); +const instance = new web3.eth.Contract(ListingsRegistry.abi, '0x7c9533d4797062cf4b59cd55711e6a4693887090'); export default instance; \ No newline at end of file diff --git a/ethereum/migrations/2_deploy_contracts.js b/ethereum/migrations/2_deploy_contracts.js index e253577..2fead20 100644 --- a/ethereum/migrations/2_deploy_contracts.js +++ b/ethereum/migrations/2_deploy_contracts.js @@ -3,6 +3,11 @@ var ListingsRegistry = artifacts.require("ListingsRegistry") var Listing = artifacts.require("Listing") var JobApplicant = artifacts.require("JobApplicant") var JobApplicantLibrary = artifacts.require("JobApplicationLibrary") +var AuditCriteriaManager = artifacts.require("AuditCriteriaManager") +var Company = artifacts.require("Company") +var MasterAuditCondition = artifacts.require("MasterAuditCondition"); +var MasterListingCondition = artifacts.require("MasterListingCondition"); + module.exports = function(deployer, network) { return deployer.then(() => { @@ -14,7 +19,9 @@ async function deployContracts(deployer) { await deployer.deploy(JobApplicantLibrary); await deployer.link(JobApplicantLibrary, ListingsRegistry); await deployer.link(JobApplicantLibrary, Listing); - + await deployer.deploy(Company); await deployer.deploy(ListingsRegistry); - + await deployer.deploy(AuditCriteriaManager); + await deployer.deploy(MasterAuditCondition); + await deployer.deploy(MasterListingCondition); } diff --git a/ethereum/test/TestAuditCriteriaManager.sol b/ethereum/test/TestAuditCriteriaManager.sol new file mode 100644 index 0000000..b0422c2 --- /dev/null +++ b/ethereum/test/TestAuditCriteriaManager.sol @@ -0,0 +1,88 @@ +pragma solidity ^ 0.4 .24; +import "truffle/Assert.sol"; +import "truffle/DeployedAddresses.sol"; +import "../contracts/AuditCriteriaManager.sol"; + +contract TestAuditCriteriaManager { + AuditCriteriaManager criteria = AuditCriteriaManager(DeployedAddresses.AuditCriteriaManager()); + + function testIsCriteria() public { + bool expected = false; + bool result = criteria.isCriteria(1); + Assert.equal(result, expected, "There is no Audit Criteria Exist"); + } + + function testSaveCriteria() public { + uint256 expected = criteria.getCriteriaCount(); + uint256 result = criteria.insertCriteria("Criteria Text",0,100,true); + Assert.equal(result, expected, "There is no Audit Criteria Exist"); + } + + function testgetCriteriaCount() public { + + uint256 row = 0; + row = addFourCriterias(); + row = row + 1; + + uint256 result = criteria.getCriteriaCount(); + + Assert.equal(result, row, "There is no Audit Criteria Exist"); + } + + function testDeleteCriteria() public + { + addFourCriterias(); + criteria.deleteCriteria(2); + uint256 results = criteria.getCriteriaCount(); + Assert.equal(results, 3, "Row deleted !"); + } + + function testDeleteAllCriteria() public + { + addFourCriterias(); + criteria.deleteAllCriteria(); + uint256 results = criteria.getCriteriaCount(); + + Assert.equal(results, 0, "All rows deleted !"); + } + + function testGetCriteriaText() public + { + addFourCriterias(); + var criteriaText = criteria.getCriteriaText(0); + Assert.equal(criteriaText, "Criteria Text 1", "Get Criteria is Success !"); + } + + function testGetStatus() public + { + addFourCriterias(); + bool isActive = criteria.getStatus(0); + Assert.equal(isActive, true, "Get Criteria is Success !"); + } + + function testGetCriteriaMaxScore() public + { + addFourCriterias(); + uint256 maxScore = criteria.getMaxScore(0); + Assert.equal(maxScore, 500, "Get Criteria is Success !"); + } + + function testGetCriteriaMinScore() public + { + addFourCriterias(); + uint256 minScore = criteria.getMinScore(0); + Assert.equal(minScore, 1, "Get Criteria is Success !"); + } + + function addFourCriterias() public + returns(uint256 rowIndex) + { + criteria.deleteAllCriteria(); + uint256 row = 0; + row = criteria.insertCriteria("Criteria Text 1",1,500,true); + row = criteria.insertCriteria("Criteria Text 2",0,100,true); + row = criteria.insertCriteria("Criteria Text 3",0,100,true); + row = criteria.insertCriteria("Criteria Text 4",0,100,true); + return row; + } +} \ No newline at end of file diff --git a/ethereum/test/TestCompany.sol b/ethereum/test/TestCompany.sol new file mode 100644 index 0000000..2fc348f --- /dev/null +++ b/ethereum/test/TestCompany.sol @@ -0,0 +1,47 @@ +pragma solidity ^ 0.4 .24; +import "truffle/Assert.sol"; +import "truffle/DeployedAddresses.sol"; +import "../contracts/Company.sol"; + +contract TestCompany { + + Company company = Company(DeployedAddresses.Company()); + + function addAgent () public { + company.addSupportAgent(0x273863Af361B3F60a071c51a402374081Fa4A4f0, + 'waheed@gmail.com', 'Waheed', 'Rahuman', 'GMT+4'); + } + + function testaddSupportAgent() public { + addAgent(); + uint256 agents = company.countSupportAgents(); + Assert.equal(agents, 1, "Agents are equal"); + } + + function testgetAgentEmail() public { + string memory email = company.getAgentEmail(0x273863Af361B3F60a071c51a402374081Fa4A4f0); + Assert.equal(email, "waheed@gmail.com", "Email is correctly fetched"); + } + + function testdeleteAll() public { + + + company.addSupportAgent(0x41d5233f434d98b73f22ce664d48be06f4eb073f, + 'waheed@gmail.com', 'Waheed', 'Rahuman', 'GMT+4'); + + uint256 agents = company.countSupportAgents(); + Assert.equal(agents, 2,"Total two agents now"); + + company.removeAllSupportAgent(); + agents = company.countSupportAgents(); + Assert.equal(agents, 0,"all Agents deleted"); + } + + function testdeleteSupportAgent() public { + addAgent(); + company.removeOneSupportAgent(0x273863Af361B3F60a071c51a402374081Fa4A4f0); + uint256 agents = company.countSupportAgents(); + Assert.equal(agents, 0, "Zero Agents"); + } + +} \ No newline at end of file diff --git a/ethereum/test/TestMasterAuditCondition.js b/ethereum/test/TestMasterAuditCondition.js new file mode 100644 index 0000000..39e72fc --- /dev/null +++ b/ethereum/test/TestMasterAuditCondition.js @@ -0,0 +1,257 @@ +const MasterAuditCondition = artifacts.require("MasterAuditCondition"); +const truffleAssert = require('truffle-assertions'); + +contract('MasterAuditCondition.js', async (accounts) => { + + it("getCount should return 0 initially", async () => { + let instance = await MasterAuditCondition.deployed(); + let count = await instance.getCount.call(); + //let count = await instance.methods.getCount().call(); + assert.equal(count.valueOf(), 0); + }) + + it("inserted values should match input", async () => { + let instance = await MasterAuditCondition.deployed(); + //Insert as Transaction + let transaction = await instance.insert('Test Condition Text', 'Test Compare', 100, true, { + from: accounts[0] + }); + + //assert the event emitted + truffleAssert.eventEmitted(transaction, 'LogInsertMasterAuditCondition', (ev) => { + return ev.currentIndex == 0 && + ev.conditionText == 'Test Condition Text' && + ev.compare == 'Test Compare' && + ev.value == 100; + }); + + //Get the Value back to test + let insertedConditionText = await instance.getConditionTextAtIndex.call(0); + let insertedCompare = await instance.getCompareAtIndex.call(0); + let insertedValue = await instance.getValueAtIndex.call(0); + + //Assert the Values + assert.equal(insertedConditionText, 'Test Condition Text'); + assert.equal(insertedCompare, 'Test Compare'); + assert.equal(insertedValue, 100); + }); + + it("getCount should return 1 after the first insert", async () => { + let instance = await MasterAuditCondition.deployed(); + let count = await instance.getCount.call(); + assert.equal(count.valueOf(), 1); + }); + + it("inserted values should match input after the second insert", async () => { + let instance = await MasterAuditCondition.deployed(); + //Insert as Transaction + let transaction = await instance.insert('Test Condition Text 2', 'Test Compare 2', 101, true, { + from: accounts[0] + }); + //Get the Value back to test + let insertedConditionText = await instance.getConditionTextAtIndex.call(1); + let insertedCompare = await instance.getCompareAtIndex.call(1); + let insertedValue = await instance.getValueAtIndex.call(1); + + //Assert the Values + assert.equal(insertedConditionText, 'Test Condition Text 2'); + assert.equal(insertedCompare, 'Test Compare 2'); + assert.equal(insertedValue, 101); + }); + + it("isExists should return true for existing index", async () => { + let instance = await MasterAuditCondition.deployed(); + let isExists = await instance.isExists.call(1); + assert.equal(isExists, true); + }); + + it("isExists should return false for non-existing index", async () => { + let instance = await MasterAuditCondition.deployed(); + let isExists = await instance.isExists.call(10); + assert.equal(isExists, false); + }); + + it("changeStatus to Inactive", async () => { + let instance = await MasterAuditCondition.deployed(); + + let indexUnderTest = 1; + //Change as Transaction + let transaction = await instance.changeStatus(indexUnderTest, false, { + from: accounts[0] + }); + + //assert the event emitted + truffleAssert.eventEmitted(transaction, 'LogChangeStatusMasterAuditCondition', (ev) => { + return ev.currentIndex == indexUnderTest && + ev.isActive == false; + }); + + //Get the Value back to test + let changedStatus = await instance.getStatusAtIndex.call(indexUnderTest); + + //Assert the Values + assert.equal(changedStatus, false); + }); + + it("changeStatus to Active", async () => { + let instance = await MasterAuditCondition.deployed(); + let indexUnderTest = 1; + + //Change as Transaction + let transaction = await instance.changeStatus(indexUnderTest, true, { + from: accounts[0] + }); + + //assert the event emitted + truffleAssert.eventEmitted(transaction, 'LogChangeStatusMasterAuditCondition', (ev) => { + return ev.currentIndex == indexUnderTest && + ev.isActive == true; + }); + + //Get the Value back to test + let changedStatus = await instance.getStatusAtIndex.call(indexUnderTest); + + //Assert the Values + assert.equal(changedStatus, true); + }); + + it("changeStatus on non-existing record should throw error", async () => { + let instance = await MasterAuditCondition.deployed(); + + //assert the revert + await truffleAssert.reverts( + instance.changeStatus(10, true, { + from: accounts[0] + }) + ); + }); + + it("updated values should match input", async () => { + let instance = await MasterAuditCondition.deployed(); + let indexUnderTest = 1; + + //Update as Transaction + let transaction = await instance.update(indexUnderTest, 'Updated Test Condition Text 2', 'Updated Test Compare 2', 202, { + from: accounts[0] + }); + + //assert the event emitted + truffleAssert.eventEmitted(transaction, 'LogUpdateMasterAuditCondition', (ev) => { + return ev.currentIndex == indexUnderTest && + ev.conditionText == 'Updated Test Condition Text 2' && + ev.compare == 'Updated Test Compare 2' && + ev.value == 202; + }); + + //Get the Value back to test + let updatedConditionText = await instance.getConditionTextAtIndex.call(indexUnderTest); + let updatedCompare = await instance.getCompareAtIndex.call(indexUnderTest); + let updatedValue = await instance.getValueAtIndex.call(indexUnderTest); + + //Assert the Values + assert.equal(updatedConditionText, 'Updated Test Condition Text 2'); + assert.equal(updatedCompare, 'Updated Test Compare 2'); + assert.equal(updatedValue, 202); + }); + + it("update on non-existing record should throw error", async () => { + let instance = await MasterAuditCondition.deployed(); + + //assert the revert + await truffleAssert.reverts( + instance.update(99, 'Updated Test Condition Text 2', 'Updated Test Compare 2', 202, { + from: accounts[0] + }) + ); + }); + + it("deleteMasterAuditCondition should delete", async () => { + let instance = await MasterAuditCondition.deployed(); + let indexUnderTest = 0; + + let countBeforeDelete = await instance.getCount.call(); + + //Insert as Transaction + let transaction = await instance.deleteMasterAuditCondition(indexUnderTest, { + from: accounts[0] + }); + + //assert the event emitted + truffleAssert.eventEmitted(transaction, 'LogDeleteMasterAuditCondition', (ev) => { + return ev.currentIndex == indexUnderTest; + }); + + //assert the revert + await truffleAssert.reverts( + instance.getAtIndex.call(countBeforeDelete) + ); + }); + + it("deleteMasterAuditCondition on non-existing record should throw error", async () => { + let instance = await MasterAuditCondition.deployed(); + + //assert the revert + await truffleAssert.reverts( + instance.deleteMasterAuditCondition(21, { + from: accounts[0] + }) + ); + }); + + it("deleteAll should delete all and getCount = 0", async () => { + let instance = await MasterAuditCondition.deployed(); + //Insert as Transaction + let transaction = await instance.deleteAll({ + from: accounts[0] + }); + //Get the Value back to test + let value = await instance.getCount.call(); + + //Assert the Values + assert.equal(value, 0); + }); + + + it("getAtIndex on non-existing record should throw error", async () => { + let instance = await MasterAuditCondition.deployed(); + + //assert the revert + await truffleAssert.reverts( + instance.getAtIndex.call(33) + ); + }); + + it("getConditionTextAtIndex on non-existing record should throw error", async () => { + let instance = await MasterAuditCondition.deployed(); + + //assert the revert + await truffleAssert.reverts( + instance.getConditionTextAtIndex.call(33) + ); + }); + + it("getCompareAtIndex on non-existing record should throw error", async () => { + let instance = await MasterAuditCondition.deployed(); + + //assert the revert + await truffleAssert.reverts( + instance.getCompareAtIndex.call(33) + ); + }); + + it("getValueAtIndex on non-existing record should throw error", async () => { + let instance = await MasterAuditCondition.deployed(); + //assert the revert + await truffleAssert.reverts( + instance.getValueAtIndex.call(33) + ); + }); + + it("getStatusAtIndex on non-existing record should throw error", async () => { + let instance = await MasterAuditCondition.deployed(); + //assert the revert + await truffleAssert.reverts( + instance.getStatusAtIndex.call(33) + ); + }); +}) \ No newline at end of file diff --git a/ethereum/test/TestMasterAuditCondition.newway.js b/ethereum/test/TestMasterAuditCondition.newway.js new file mode 100644 index 0000000..9ba4711 --- /dev/null +++ b/ethereum/test/TestMasterAuditCondition.newway.js @@ -0,0 +1,38 @@ +// // import web3 from './web3'; +// //import MasterAuditCondition from '../build/contracts/MasterAuditCondition.json'; + +// const assert = require('assert'); +// const ganache = require('ganache-cli'); +// const Web3 = require('web3'); +// const web3 = new Web3(ganache.provider()); + +// const compiledMasterAuditCondition = require('../build/contracts/MasterAuditCondition.json'); + +// let accounts; +// let masterAuditCondition; +// let deployedAddress; + +// beforeEach(async() => { +// accounts = await web3.eth.getAccounts(); + +// masterAuditCondition = await new web3.eth.Contract(compiledMasterAuditCondition.abi, '0x9fbda871d559710256a2502a2517b794b482db40'); +// }); + +// describe('MasterAuditCondition Tests', () => { +// it("getCount should return 0 initially in the first account", async () => { +// let count = await masterAuditCondition.methods.getCount().call(); +// assert.equal(count.valueOf(), 0); +// }); + +// it("insert should return index 0 after the first insert", async () => { +// //Insert as Transaction +// let transaction = await masterAuditCondition.methods.insert('Test Condition Text', 'Test Compare', 100, true); +// //Get the Value back to test +// let insertedMasterAuditCondition = await masterAuditCondition.methods.getConditionTextAtIndex(0).call(); +// //Assert the Values +// //assert.equal(masterAuditCondition.index.valueOf(), 0); +// assert.equal(insertedMasterAuditCondition.conditionText.valueOf(), 'Test Condition Text'); +// // assert.equal(masterAuditCondition.compare.valueOf(), 'Test Compare'); +// // assert.equal(masterAuditCondition.compare.value(), 100); +// }); +// }); \ No newline at end of file diff --git a/ethereum/test/TestMasterListingCondition.js b/ethereum/test/TestMasterListingCondition.js new file mode 100644 index 0000000..ec777ac --- /dev/null +++ b/ethereum/test/TestMasterListingCondition.js @@ -0,0 +1,257 @@ +const MasterListingCondition = artifacts.require("MasterListingCondition"); +const truffleAssert = require('truffle-assertions'); + +contract('MasterListingCondition', async (accounts) => { + + it("getCount should return 0 initially", async () => { + let instance = await MasterListingCondition.deployed(); + let count = await instance.getCount.call(); + //let count = await instance.methods.getCount().call(); + assert.equal(count.valueOf(), 0); + }) + + it("inserted values should match input", async () => { + let instance = await MasterListingCondition.deployed(); + //Insert as Transaction + let transaction = await instance.insert('Test Condition Text', 'Test Compare', 100, true, { + from: accounts[0] + }); + + //assert the event emitted + truffleAssert.eventEmitted(transaction, 'LogInsertMasterListingCondition', (ev) => { + return ev.currentIndex == 0 && + ev.conditionText == 'Test Condition Text' && + ev.compare == 'Test Compare' && + ev.value == 100; + }); + + //Get the Value back to test + let insertedConditionText = await instance.getConditionTextAtIndex.call(0); + let insertedCompare = await instance.getCompareAtIndex.call(0); + let insertedValue = await instance.getValueAtIndex.call(0); + + //Assert the Values + assert.equal(insertedConditionText, 'Test Condition Text'); + assert.equal(insertedCompare, 'Test Compare'); + assert.equal(insertedValue, 100); + }); + + it("getCount should return 1 after the first insert", async () => { + let instance = await MasterListingCondition.deployed(); + let count = await instance.getCount.call(); + assert.equal(count.valueOf(), 1); + }); + + it("inserted values should match input after the second insert", async () => { + let instance = await MasterListingCondition.deployed(); + //Insert as Transaction + let transaction = await instance.insert('Test Condition Text 2', 'Test Compare 2', 101, true, { + from: accounts[0] + }); + //Get the Value back to test + let insertedConditionText = await instance.getConditionTextAtIndex.call(1); + let insertedCompare = await instance.getCompareAtIndex.call(1); + let insertedValue = await instance.getValueAtIndex.call(1); + + //Assert the Values + assert.equal(insertedConditionText, 'Test Condition Text 2'); + assert.equal(insertedCompare, 'Test Compare 2'); + assert.equal(insertedValue, 101); + }); + + it("isExists should return true for existing index", async () => { + let instance = await MasterListingCondition.deployed(); + let isExists = await instance.isExists.call(1); + assert.equal(isExists, true); + }); + + it("isExists should return false for non-existing index", async () => { + let instance = await MasterListingCondition.deployed(); + let isExists = await instance.isExists.call(10); + assert.equal(isExists, false); + }); + + it("changeStatus to Inactive", async () => { + let instance = await MasterListingCondition.deployed(); + + let indexUnderTest = 1; + //Change as Transaction + let transaction = await instance.changeStatus(indexUnderTest, false, { + from: accounts[0] + }); + + //assert the event emitted + truffleAssert.eventEmitted(transaction, 'LogChangeStatusMasterListingCondition', (ev) => { + return ev.currentIndex == indexUnderTest && + ev.isActive == false; + }); + + //Get the Value back to test + let changedStatus = await instance.getStatusAtIndex.call(indexUnderTest); + + //Assert the Values + assert.equal(changedStatus, false); + }); + + it("changeStatus to Active", async () => { + let instance = await MasterListingCondition.deployed(); + let indexUnderTest = 1; + + //Change as Transaction + let transaction = await instance.changeStatus(indexUnderTest, true, { + from: accounts[0] + }); + + //assert the event emitted + truffleAssert.eventEmitted(transaction, 'LogChangeStatusMasterListingCondition', (ev) => { + return ev.currentIndex == indexUnderTest && + ev.isActive == true; + }); + + //Get the Value back to test + let changedStatus = await instance.getStatusAtIndex.call(indexUnderTest); + + //Assert the Values + assert.equal(changedStatus, true); + }); + + it("changeStatus on non-existing record should throw error", async () => { + let instance = await MasterListingCondition.deployed(); + + //assert the revert + await truffleAssert.reverts( + instance.changeStatus(10, true, { + from: accounts[0] + }) + ); + }); + + it("updated values should match input", async () => { + let instance = await MasterListingCondition.deployed(); + let indexUnderTest = 1; + + //Update as Transaction + let transaction = await instance.update(indexUnderTest, 'Updated Test Condition Text 2', 'Updated Test Compare 2', 202, { + from: accounts[0] + }); + + //assert the event emitted + truffleAssert.eventEmitted(transaction, 'LogUpdateMasterListingCondition', (ev) => { + return ev.currentIndex == indexUnderTest && + ev.conditionText == 'Updated Test Condition Text 2' && + ev.compare == 'Updated Test Compare 2' && + ev.value == 202; + }); + + //Get the Value back to test + let updatedConditionText = await instance.getConditionTextAtIndex.call(indexUnderTest); + let updatedCompare = await instance.getCompareAtIndex.call(indexUnderTest); + let updatedValue = await instance.getValueAtIndex.call(indexUnderTest); + + //Assert the Values + assert.equal(updatedConditionText, 'Updated Test Condition Text 2'); + assert.equal(updatedCompare, 'Updated Test Compare 2'); + assert.equal(updatedValue, 202); + }); + + it("update on non-existing record should throw error", async () => { + let instance = await MasterListingCondition.deployed(); + + //assert the revert + await truffleAssert.reverts( + instance.update(99, 'Updated Test Condition Text 2', 'Updated Test Compare 2', 202, { + from: accounts[0] + }) + ); + }); + + it("deleteMasterListingCondition should delete", async () => { + let instance = await MasterListingCondition.deployed(); + let indexUnderTest = 0; + + let countBeforeDelete = await instance.getCount.call(); + + //Insert as Transaction + let transaction = await instance.deleteMasterListingCondition(indexUnderTest, { + from: accounts[0] + }); + + //assert the event emitted + truffleAssert.eventEmitted(transaction, 'LogDeleteMasterListingCondition', (ev) => { + return ev.currentIndex == indexUnderTest; + }); + + //assert the revert + await truffleAssert.reverts( + instance.getAtIndex.call(countBeforeDelete) + ); + }); + + it("deleteMasterListingCondition on non-existing record should throw error", async () => { + let instance = await MasterListingCondition.deployed(); + + //assert the revert + await truffleAssert.reverts( + instance.deleteMasterListingCondition(21, { + from: accounts[0] + }) + ); + }); + + it("deleteAll should delete all and getCount = 0", async () => { + let instance = await MasterListingCondition.deployed(); + //Insert as Transaction + let transaction = await instance.deleteAll({ + from: accounts[0] + }); + //Get the Value back to test + let value = await instance.getCount.call(); + + //Assert the Values + assert.equal(value, 0); + }); + + + it("getAtIndex on non-existing record should throw error", async () => { + let instance = await MasterListingCondition.deployed(); + + //assert the revert + await truffleAssert.reverts( + instance.getAtIndex.call(33) + ); + }); + + it("getConditionTextAtIndex on non-existing record should throw error", async () => { + let instance = await MasterListingCondition.deployed(); + + //assert the revert + await truffleAssert.reverts( + instance.getConditionTextAtIndex.call(33) + ); + }); + + it("getCompareAtIndex on non-existing record should throw error", async () => { + let instance = await MasterListingCondition.deployed(); + + //assert the revert + await truffleAssert.reverts( + instance.getCompareAtIndex.call(33) + ); + }); + + it("getValueAtIndex on non-existing record should throw error", async () => { + let instance = await MasterListingCondition.deployed(); + //assert the revert + await truffleAssert.reverts( + instance.getValueAtIndex.call(33) + ); + }); + + it("getStatusAtIndex on non-existing record should throw error", async () => { + let instance = await MasterListingCondition.deployed(); + //assert the revert + await truffleAssert.reverts( + instance.getStatusAtIndex.call(33) + ); + }); +}) \ No newline at end of file diff --git a/ethereum/truffle-config.js b/ethereum/truffle-config.js index 82b1716..ac186ac 100644 --- a/ethereum/truffle-config.js +++ b/ethereum/truffle-config.js @@ -4,7 +4,7 @@ module.exports = { networks: { development: { host: "localhost", - port: 7545, + port: 8545, network_id: "*" // Match any network id } } diff --git a/ethereum/truffle.js b/ethereum/truffle.js index b3b46ca..d99a632 100644 --- a/ethereum/truffle.js +++ b/ethereum/truffle.js @@ -4,7 +4,7 @@ module.exports = { networks: { development: { host: "localhost", - port: 7545, + port: 8545, network_id: "*" // Match any network id } diff --git a/ethereum/web3.js b/ethereum/web3.js index 023f13f..a531343 100644 --- a/ethereum/web3.js +++ b/ethereum/web3.js @@ -8,8 +8,8 @@ if (typeof window !== 'undefined' && typeof window.web3 !== 'undefined') { } else { // We are on the server *OR* the user is not running metamask const provider = new Web3.providers.HttpProvider( - // 'HTTP://127.0.0.1:7545' - 'https://rinkeby.infura.io/orDImgKRzwNrVCDrAk5Q' + 'HTTP://127.0.0.1:8545' + //'https://rinkeby.infura.io/orDImgKRzwNrVCDrAk5Q' ); web3 = new Web3(provider); } diff --git a/package-lock.json b/package-lock.json index 6d0521e..7f056f0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,14 +24,21 @@ "@babel/traverse": "7.0.0-beta.42", "@babel/types": "7.0.0-beta.42", "babylon": "7.0.0-beta.42", - "convert-source-map": "1.5.1", + "convert-source-map": "1.6.0", "debug": "3.1.0", "json5": "0.5.1", - "lodash": "4.17.10", + "lodash": "4.17.11", "micromatch": "2.3.11", - "resolve": "1.5.0", - "semver": "5.5.0", + "resolve": "1.8.1", + "semver": "5.5.1", "source-map": "0.5.7" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + } } }, "@babel/generator": { @@ -41,9 +48,16 @@ "requires": { "@babel/types": "7.0.0-beta.42", "jsesc": "2.5.1", - "lodash": "4.17.10", + "lodash": "4.17.11", "source-map": "0.5.7", "trim-right": "1.0.1" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + } } }, "@babel/helper-annotate-as-pure": { @@ -89,7 +103,7 @@ "requires": { "@babel/helper-function-name": "7.0.0-beta.42", "@babel/types": "7.0.0-beta.42", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "@babel/helper-explode-assignable-expression": { @@ -133,7 +147,7 @@ "integrity": "sha512-0kTX0cjuVKUKDJmHjmAb504kNrwae0Ja32hGii7zSHDKm0tVZvvpT8Cc1yYHo6UsIkUmzEvfGwIrNYemx1jTtQ==", "requires": { "@babel/types": "7.0.0-beta.42", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "@babel/helper-module-transforms": { @@ -146,7 +160,7 @@ "@babel/helper-split-export-declaration": "7.0.0-beta.42", "@babel/template": "7.0.0-beta.42", "@babel/types": "7.0.0-beta.42", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "@babel/helper-optimise-call-expression": { @@ -167,7 +181,7 @@ "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.0.0-beta.42.tgz", "integrity": "sha512-QdwTsTPjJ63StltU6cEtqmB0Lc+L/OkK9Pz2bL9rylDF3UloyXinBA+SI/FkVyXi5HhDbBRf4T/OeVhWrsK68A==", "requires": { - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "@babel/helper-remap-async-to-generator": { @@ -200,7 +214,7 @@ "requires": { "@babel/template": "7.0.0-beta.42", "@babel/types": "7.0.0-beta.42", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "@babel/helper-split-export-declaration": { @@ -287,7 +301,7 @@ "requires": { "@babel/helper-plugin-utils": "7.0.0-beta.42", "@babel/helper-regex": "7.0.0-beta.42", - "regexpu-core": "4.1.5" + "regexpu-core": "4.2.0" } }, "@babel/plugin-syntax-async-generators": { @@ -370,7 +384,7 @@ "integrity": "sha512-qvlAR1L7gZ1gqdj81a2AEfuar3lFsr7FSad4JrN5CJinQlVn/1eJe8oB1DQ7U8ocAzDDjn3tGit9lN7uKBWZsQ==", "requires": { "@babel/helper-plugin-utils": "7.0.0-beta.42", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "@babel/plugin-transform-classes": { @@ -385,7 +399,7 @@ "@babel/helper-plugin-utils": "7.0.0-beta.42", "@babel/helper-replace-supers": "7.0.0-beta.42", "@babel/helper-split-export-declaration": "7.0.0-beta.42", - "globals": "11.5.0" + "globals": "11.8.0" } }, "@babel/plugin-transform-computed-properties": { @@ -411,7 +425,7 @@ "requires": { "@babel/helper-plugin-utils": "7.0.0-beta.42", "@babel/helper-regex": "7.0.0-beta.42", - "regexpu-core": "4.1.5" + "regexpu-core": "4.2.0" } }, "@babel/plugin-transform-duplicate-keys": { @@ -622,7 +636,7 @@ "requires": { "@babel/helper-plugin-utils": "7.0.0-beta.42", "@babel/helper-regex": "7.0.0-beta.42", - "regexpu-core": "4.1.5" + "regexpu-core": "4.2.0" } }, "@babel/preset-env": { @@ -668,7 +682,7 @@ "@babel/plugin-transform-unicode-regex": "7.0.0-beta.42", "browserslist": "3.2.8", "invariant": "2.2.4", - "semver": "5.5.0" + "semver": "5.5.1" } }, "@babel/preset-react": { @@ -701,7 +715,7 @@ "@babel/code-frame": "7.0.0-beta.42", "@babel/types": "7.0.0-beta.42", "babylon": "7.0.0-beta.42", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "@babel/traverse": { @@ -716,9 +730,9 @@ "@babel/types": "7.0.0-beta.42", "babylon": "7.0.0-beta.42", "debug": "3.1.0", - "globals": "11.5.0", + "globals": "11.8.0", "invariant": "2.2.4", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "@babel/types": { @@ -727,7 +741,7 @@ "integrity": "sha512-+pmpISmTHQqMMpHHtDLxcvtRhmn53bAxy8goJfHipS/uy/r3PLcuSdPizLW7DhtBWbtgIKZufLObfnIMoyMNsw==", "requires": { "esutils": "2.0.2", - "lodash": "4.17.10", + "lodash": "4.17.11", "to-fast-properties": "2.0.0" } }, @@ -740,6 +754,11 @@ "through2": "2.0.3" } }, + "@types/node": { + "version": "10.11.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.11.4.tgz", + "integrity": "sha512-ojnbBiKkZFYRfQpmtnnWTMw+rzGp/JiystjluW9jgN3VzRwilXddJ6aGQ9V/7iuDG06SBgn7ozW9k3zcAnYjYQ==" + }, "abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", @@ -758,14 +777,14 @@ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", "requires": { - "mime-types": "2.1.18", + "mime-types": "2.1.20", "negotiator": "0.6.1" } }, "acorn": { - "version": "5.6.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.6.1.tgz", - "integrity": "sha512-XH4o5BK5jmw9PzSGK7mNf+/xV+mPxQxGZoeC36OVsJZYV77JAG9NnI7T90hoUpI/C1TOfXWTvugRdZ9ZR3iE2Q==" + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", + "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==" }, "acorn-dynamic-import": { "version": "2.0.2", @@ -788,13 +807,13 @@ "integrity": "sha1-lLiBq3FyhtAV+iGeCPtmcJ3aWj0=" }, "ajv": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.0.tgz", - "integrity": "sha512-VDUX1oSajablmiyFyED9L1DFndg0P9h7p1F+NO8FkIzei6EPrR6Zu1n18rd5P8PqaSRd/FrWv3G1TVBqpM83gA==", + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.4.tgz", + "integrity": "sha512-4Wyjt8+t6YszqaXnLDfMmG/8AlO5Zbcsy3ATHncCzjW/NoPzAId8AK6749Ybjmdt+kUY1gP60fCu46oDxPv/mg==", "requires": { "fast-deep-equal": "2.0.1", "fast-json-stable-stringify": "2.0.0", - "json-schema-traverse": "0.3.1", + "json-schema-traverse": "0.4.1", "uri-js": "4.2.2" } }, @@ -813,11 +832,6 @@ "repeat-string": "1.6.1" } }, - "amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=" - }, "ansi-html": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz", @@ -833,7 +847,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "requires": { - "color-convert": "1.9.1" + "color-convert": "1.9.3" } }, "any-promise": { @@ -870,7 +884,7 @@ "extend-shallow": "2.0.1", "fill-range": "4.0.0", "isobject": "3.0.1", - "repeat-element": "1.1.2", + "repeat-element": "1.1.3", "snapdragon": "0.8.2", "snapdragon-node": "2.1.1", "split-string": "3.1.0", @@ -978,6 +992,25 @@ } } }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "requires": { + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "2.0.4" + } + } + } + }, "extglob": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", @@ -1099,7 +1132,7 @@ "extglob": "2.0.4", "fragment-cache": "0.2.1", "kind-of": "6.0.2", - "nanomatch": "1.2.9", + "nanomatch": "1.2.13", "object.pick": "1.3.0", "regex-not": "1.0.2", "snapdragon": "0.8.2", @@ -1170,14 +1203,17 @@ "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" }, "asn1": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", - "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "requires": { + "safer-buffer": "2.1.2" + } }, "asn1.js": { - "version": "4.10.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", - "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.0.1.tgz", + "integrity": "sha512-aO8EaEgbgqq77IEw+1jfx5c9zTbzvkfuRBuZsSsPnTHMkmd5AI4J6OtITLZFa381jReeaQL67J0GBTUu0+ZTVw==", "requires": { "bn.js": "4.11.8", "inherits": "2.0.3", @@ -1190,6 +1226,21 @@ "integrity": "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=", "requires": { "util": "0.10.3" + }, + "dependencies": { + "inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=" + }, + "util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", + "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "requires": { + "inherits": "2.0.1" + } + } } }, "assert-plus": { @@ -1197,6 +1248,11 @@ "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" }, + "assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==" + }, "assign-symbols": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", @@ -1207,7 +1263,7 @@ "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", "requires": { - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "async-each": { @@ -1234,9 +1290,9 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "atob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.1.tgz", - "integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=" + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", + "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==" }, "aws-sign2": { "version": "0.7.0", @@ -1244,16 +1300,16 @@ "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" }, "aws4": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.7.0.tgz", - "integrity": "sha512-32NDda82rhwD9/JBCCkB+MRYDp0oSvlo2IL6rQWA10PQi7tDUM3eqMSltXmY+Oyl/7N3P3qNtAlv7X0d9bI28w==" + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" }, "axios": { "version": "0.18.0", "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz", "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=", "requires": { - "follow-redirects": "1.5.0", + "follow-redirects": "1.5.8", "is-buffer": "1.1.6" } }, @@ -1306,7 +1362,7 @@ "babel-types": "6.26.0", "detect-indent": "4.0.0", "jsesc": "1.3.0", - "lodash": "4.17.10", + "lodash": "4.17.11", "source-map": "0.5.7", "trim-right": "1.0.1" }, @@ -1315,6 +1371,11 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=" + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" } } }, @@ -1347,7 +1408,7 @@ "babel-helper-function-name": "6.24.1", "babel-runtime": "6.26.0", "babel-types": "6.26.0", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "babel-helper-explode-assignable-expression": { @@ -1406,7 +1467,7 @@ "requires": { "babel-runtime": "6.26.0", "babel-types": "6.26.0", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "babel-helper-remap-async-to-generator": { @@ -1444,13 +1505,14 @@ } }, "babel-loader": { - "version": "8.0.0-beta.2", - "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.0.0-beta.2.tgz", - "integrity": "sha512-P1zch1DvQy3RGmp/1CH78uPg5gTPQQ01S9r6ipCOWVamO0UIC8gnrx7m7LsUsXa470yB6IOZxhtEEwIUclRLNw==", + "version": "8.0.0-beta.3", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-8.0.0-beta.3.tgz", + "integrity": "sha512-yvaAx7cBEjh+R2oGL2vIPmveO6daS5TYP2FSPq4b6CUYjU/ilD4HHyfLIa9KUj6OKBcR9fQcl1NvUOTWNaJ6mw==", "requires": { "find-cache-dir": "1.0.0", "loader-utils": "1.1.0", - "mkdirp": "0.5.1" + "mkdirp": "0.5.1", + "util.promisify": "1.0.0" } }, "babel-messages": { @@ -1529,7 +1591,7 @@ "babel-template": "6.26.0", "babel-traverse": "6.26.0", "babel-types": "6.26.0", - "lodash": "4.17.10" + "lodash": "4.17.11" } }, "babel-plugin-transform-es2015-classes": { @@ -1824,7 +1886,7 @@ "babel-plugin-transform-regenerator": "6.26.0", "browserslist": "3.2.8", "invariant": "2.2.4", - "semver": "5.5.0" + "semver": "5.5.1" } }, "babel-register": { @@ -1836,7 +1898,7 @@ "babel-runtime": "6.26.0", "core-js": "2.5.7", "home-or-tmp": "2.0.0", - "lodash": "4.17.10", + "lodash": "4.17.11", "mkdirp": "0.5.1", "source-map-support": "0.4.18" }, @@ -1856,10 +1918,10 @@ "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", - "convert-source-map": "1.5.1", + "convert-source-map": "1.6.0", "debug": "2.6.9", "json5": "0.5.1", - "lodash": "4.17.10", + "lodash": "4.17.11", "minimatch": "3.0.4", "path-is-absolute": "1.0.1", "private": "0.1.8", @@ -1879,6 +1941,11 @@ "requires": { "ms": "2.0.0" } + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" } } }, @@ -1900,7 +1967,7 @@ "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", - "lodash": "4.17.10" + "lodash": "4.17.11" }, "dependencies": { "babylon": { @@ -1923,7 +1990,7 @@ "debug": "2.6.9", "globals": "9.18.0", "invariant": "2.2.4", - "lodash": "4.17.10" + "lodash": "4.17.11" }, "dependencies": { "babylon": { @@ -1953,7 +2020,7 @@ "requires": { "babel-runtime": "6.26.0", "esutils": "2.0.2", - "lodash": "4.17.10", + "lodash": "4.17.11", "to-fast-properties": "1.0.3" }, "dependencies": { @@ -1988,10 +2055,10 @@ "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", - "convert-source-map": "1.5.1", + "convert-source-map": "1.6.0", "debug": "2.6.9", "json5": "0.5.1", - "lodash": "4.17.10", + "lodash": "4.17.11", "minimatch": "3.0.4", "path-is-absolute": "1.0.1", "private": "0.1.8", @@ -2011,6 +2078,16 @@ "requires": { "ms": "2.0.0" } + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" } } }, @@ -2106,26 +2183,36 @@ "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==" }, "bcrypt-pbkdf": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", - "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", "optional": true, "requires": { "tweetnacl": "0.14.5" + }, + "dependencies": { + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "optional": true + } } }, "big.js": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", - "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==" + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.1.2.tgz", + "integrity": "sha512-qG6ZOc1lY84Bn8p/z9xvJisj9F4PRyo0pOGqGNYc7gS3p1WciS/3XcLuNI3Z/yYZpMNFhHeX3YNENwgrQq0NTA==" }, "bignumber.js": { - "version": "git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2" + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-6.0.0.tgz", + "integrity": "sha512-x247jIuy60/+FtMRvscqfxtVHQf8AGx2hm9c6btkgC0x/hp9yt+teISNhvF8WlwRkCc5yF2fDECH8SIMe8j+GA==" }, "binary-extensions": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz", - "integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=" + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.12.0.tgz", + "integrity": "sha512-DYWGk01lDcxeS/K9IHPGWfT8PsJmbXRtRd2Sx72Tnb8pcYZQFF1oSDb8hJtS1vhp212q1Rzi5dUf9+nq0o9UIg==" }, "bindings": { "version": "1.3.0", @@ -2138,7 +2225,7 @@ "integrity": "sha512-xwIx/8JKoT2+IPJpFEfXoWdYwP7UVAoUxxLNfGCfVowaJE7yg1Y5B1BVPqlUNsBq5/nGwmFkwRJ8xDW4sX8OdA==", "requires": { "create-hash": "1.2.0", - "pbkdf2": "3.0.16", + "pbkdf2": "3.0.17", "randombytes": "2.0.6", "safe-buffer": "5.1.2", "unorm": "1.4.1" @@ -2248,9 +2335,9 @@ } }, "bluebird": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", - "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==" + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.2.tgz", + "integrity": "sha512-dhHTWMI7kMx5whMQntl7Vr9C6BvV10lFXDAasnqnrMYhXVCzzk6IO9Fo2L75jXHT07WrOngL1WDXOp+yYS91Yg==" }, "bn.js": { "version": "4.11.8", @@ -2298,6 +2385,14 @@ "statuses": "1.5.0" } }, + "iconv-lite": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", + "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "requires": { + "safer-buffer": "2.1.2" + } + }, "setprototypeof": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", @@ -2311,21 +2406,9 @@ "integrity": "sha512-2mfipKUXn7yLgwn8D5jZkJqd2ZyzqmYZQX/9d4On33oGNDLwxj5qQMst+nkKyEdaujQRFfrZCId+k8wehQVANg==", "requires": { "bignumber.js": "6.0.0", - "commander": "2.17.0", - "ieee754": "1.1.11", + "commander": "2.18.0", + "ieee754": "1.1.12", "json-text-sequence": "0.1.1" - }, - "dependencies": { - "bignumber.js": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-6.0.0.tgz", - "integrity": "sha512-x247jIuy60/+FtMRvscqfxtVHQf8AGx2hm9c6btkgC0x/hp9yt+teISNhvF8WlwRkCc5yF2fDECH8SIMe8j+GA==" - }, - "commander": { - "version": "2.17.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.17.0.tgz", - "integrity": "sha512-477o1hdVORiFlZxw8wgsXYCef3lh0zl/OV0FTftqiDxJSWw6dPQ2ipS4k20J2qBcsmsmLKSyr2iFrf9e3JGi4w==" - } } }, "brace-expansion": { @@ -2344,7 +2427,7 @@ "requires": { "expand-range": "1.8.2", "preserve": "0.2.0", - "repeat-element": "1.1.2" + "repeat-element": "1.1.3" } }, "brfs": { @@ -2353,7 +2436,7 @@ "integrity": "sha512-OfZpABRQQf+Xsmju8XE9bDjs+uU4vLREGolP7bDgcpsI17QREyZ4Bl+2KLxxx1kCgA0fAIhKQBaBYh+PEcCqYQ==", "requires": { "quote-stream": "1.0.2", - "resolve": "1.5.0", + "resolve": "1.8.1", "static-module": "2.2.5", "through2": "2.0.3" } @@ -2387,18 +2470,19 @@ "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", "requires": { "browserify-aes": "1.2.0", - "browserify-des": "1.0.1", + "browserify-des": "1.0.2", "evp_bytestokey": "1.0.3" } }, "browserify-des": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.1.tgz", - "integrity": "sha512-zy0Cobe3hhgpiOM32Tj7KQ3Vl91m0njwsjzZQK1L+JDf11dzP9qIvjreVinsvXrgfjhStXwUWAEpB9D7Gwmayw==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", + "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", "requires": { "cipher-base": "1.0.4", "des.js": "1.0.0", - "inherits": "2.0.3" + "inherits": "2.0.3", + "safe-buffer": "5.1.2" } }, "browserify-rsa": { @@ -2416,6 +2500,13 @@ "integrity": "sha1-P/NKMAbvFcD7NWflQbkaI0ASPRE=", "requires": { "js-sha3": "0.3.1" + }, + "dependencies": { + "js-sha3": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.3.1.tgz", + "integrity": "sha1-hhIoAhQvCChQKg0d7h2V4lO7AkM=" + } } }, "browserify-sign": { @@ -2427,7 +2518,7 @@ "browserify-rsa": "4.0.1", "create-hash": "1.2.0", "create-hmac": "1.1.7", - "elliptic": "6.4.0", + "elliptic": "6.4.1", "inherits": "2.0.3", "parse-asn1": "5.1.1" } @@ -2445,8 +2536,8 @@ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-3.2.8.tgz", "integrity": "sha512-WHVocJYavUwVgVViC0ORikPHQquXwVh939TaelZ4WDqpWgTX/FsGhl/+P4qBUAGcRvtOgDgC+xftNWWp2RUTAQ==", "requires": { - "caniuse-lite": "1.0.30000847", - "electron-to-chromium": "1.3.48" + "caniuse-lite": "1.0.30000889", + "electron-to-chromium": "1.3.74" } }, "bs58": { @@ -2487,7 +2578,7 @@ "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", "requires": { "base64-js": "1.3.0", - "ieee754": "1.1.11", + "ieee754": "1.1.12", "isarray": "1.0.0" } }, @@ -2521,14 +2612,9 @@ "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=" }, "buffer-from": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz", - "integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ==" - }, - "buffer-loader": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/buffer-loader/-/buffer-loader-0.0.1.tgz", - "integrity": "sha1-TWd8qS3YiTEIeLAqL7z6txICTPI=" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" }, "buffer-to-arraybuffer": { "version": "0.0.5", @@ -2560,9 +2646,9 @@ "resolved": "https://registry.npmjs.org/cacache/-/cacache-10.0.4.tgz", "integrity": "sha512-Dph0MzuH+rTQzGPNT9fAnrPmMmjKfST6trxJeK7NQuHRaVw24VzPRWTmg9MpcwOVQZO0E1FBICUlFeNaKPIfHA==", "requires": { - "bluebird": "3.5.1", - "chownr": "1.0.1", - "glob": "7.1.2", + "bluebird": "3.5.2", + "chownr": "1.1.1", + "glob": "7.1.3", "graceful-fs": "4.1.11", "lru-cache": "4.1.3", "mississippi": "2.0.0", @@ -2571,8 +2657,15 @@ "promise-inflight": "1.0.1", "rimraf": "2.6.2", "ssri": "5.3.0", - "unique-filename": "1.1.0", + "unique-filename": "1.1.1", "y18n": "4.0.0" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + } } }, "cache-base": { @@ -2604,9 +2697,9 @@ "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=" }, "caniuse-lite": { - "version": "1.0.30000847", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000847.tgz", - "integrity": "sha512-Weo+tRtVWcN2da782Ebx/27hFNEb+KP+uP6tdqAa+2S5bp1zOJhVH9tEpDygagrfvU4QjeuPwi/5VGsgT4SLaA==" + "version": "1.0.30000889", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30000889.tgz", + "integrity": "sha512-MFxcQ6x/LEEoaIhO7Zdb7Eg8YyNONN+WBnS5ERJ0li2yRw51+i4xXUNxnLaveTb/4ZoJqsWKEmlomhG2pYzlQA==" }, "case-sensitive-paths-webpack-plugin": { "version": "2.1.1", @@ -2634,7 +2727,7 @@ "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "supports-color": "5.5.0" } }, "checkpoint-store": { @@ -2646,9 +2739,9 @@ } }, "chokidar": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.3.tgz", - "integrity": "sha512-zW8iXYZtXMx4kux/nuZVXjkLP+CyIK5Al5FHnj1OgTKGZfp4Oy6/ymtMSKFv3GD8DviEmUPmJg9eFdJ/JzudMg==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.0.4.tgz", + "integrity": "sha512-z9n7yt9rOvIJrMhvDtDictKrkFHeihkNl6uWMmZlmL6tJtX9Cs+87oK+teBx+JIgzvbX3yZHT3eF8vpbDxHJXQ==", "requires": { "anymatch": "2.0.0", "async-each": "1.0.1", @@ -2658,9 +2751,10 @@ "inherits": "2.0.3", "is-binary-path": "1.0.1", "is-glob": "4.0.0", + "lodash.debounce": "4.0.8", "normalize-path": "2.1.1", "path-is-absolute": "1.0.1", - "readdirp": "2.1.0", + "readdirp": "2.2.1", "upath": "1.1.0" }, "dependencies": { @@ -2679,21 +2773,13 @@ "extend-shallow": "2.0.1", "fill-range": "4.0.0", "isobject": "3.0.1", - "repeat-element": "1.1.2", + "repeat-element": "1.1.3", "snapdragon": "0.8.2", "snapdragon-node": "2.1.1", "split-string": "3.1.0", "to-regex": "3.0.2" } }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "0.1.1" - } - }, "fill-range": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", @@ -2705,30 +2791,6 @@ "to-regex-range": "2.1.1" } }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "requires": { - "is-glob": "3.1.0", - "path-dirname": "1.0.2" - }, - "dependencies": { - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "requires": { - "is-extglob": "2.1.1" - } - } - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" - }, "is-glob": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", @@ -2753,18 +2815,29 @@ } }, "chownr": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.0.1.tgz", - "integrity": "sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE=" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.1.tgz", + "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==" }, "cids": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/cids/-/cids-0.5.3.tgz", - "integrity": "sha512-ujWbNP8SeLKg5KmGrxYZM4c+ttd+wwvegrdtgmbi2KNFUbQN4pqsGZaGQE3rhjayXTbKFq36bYDbKhsnD0eMsg==", + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/cids/-/cids-0.5.5.tgz", + "integrity": "sha512-oU8v+N8rViFBcj5KcsXK0gbPiMFHpP/VGlGoWQXZguJsA8ZW0X47fKt0ZPIu03U8CL1Fy+R56tO79urY6MLaSw==", "requires": { - "multibase": "0.4.0", + "class-is": "1.1.0", + "multibase": "0.5.0", "multicodec": "0.2.7", - "multihashes": "0.4.13" + "multihashes": "0.4.14" + }, + "dependencies": { + "multibase": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/multibase/-/multibase-0.5.0.tgz", + "integrity": "sha512-7epKiK8/UBzraYZvOuZa8FH/00hMfTnzTy1OQol1YBU2csAYA7rwWh+iue9plXRmVFBGvmVKMuo0oq5sD47kvw==", + "requires": { + "base-x": "3.0.4" + } + } } }, "cipher-base": { @@ -2808,9 +2881,9 @@ } }, "classnames": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.5.tgz", - "integrity": "sha1-+zgB1FNGdknvNgPH1hoCvRKb3m0=" + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.6.tgz", + "integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==" }, "cliui": { "version": "2.1.0", @@ -2820,12 +2893,19 @@ "center-align": "0.1.3", "right-align": "0.1.3", "wordwrap": "0.0.2" + }, + "dependencies": { + "wordwrap": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", + "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=" + } } }, "clone": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", - "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=" + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=" }, "clone-stats": { "version": "0.0.1", @@ -2868,9 +2948,9 @@ } }, "color-convert": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", - "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "requires": { "color-name": "1.1.3" } @@ -2881,17 +2961,17 @@ "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" }, "combined-stream": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", - "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.7.tgz", + "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", "requires": { "delayed-stream": "1.0.0" } }, "commander": { - "version": "2.13.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz", - "integrity": "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA==" + "version": "2.18.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.18.0.tgz", + "integrity": "sha512-6CYPa+JP2ftfRU2qkDK+UTVeQYosOg/2GbcjIcKPHfinyOLPVGXu/ovN86RP49Re5ndJK1N0kuiidFFuepc4ZQ==" }, "commondir": { "version": "1.0.1", @@ -2913,7 +2993,7 @@ "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", "requires": { - "buffer-from": "1.1.0", + "buffer-from": "1.1.1", "inherits": "2.0.3", "readable-stream": "2.3.6", "typedarray": "0.0.6" @@ -2943,9 +3023,12 @@ "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" }, "convert-source-map": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", - "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=" + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", + "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", + "requires": { + "safe-buffer": "5.1.2" + } }, "cookie": { "version": "0.3.1", @@ -2957,6 +3040,11 @@ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" }, + "cookiejar": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz", + "integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==" + }, "copy-concurrently": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", @@ -2992,6 +3080,13 @@ "requires": { "object-assign": "4.1.1", "vary": "1.1.2" + }, + "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + } } }, "create-ecdh": { @@ -3000,7 +3095,7 @@ "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", "requires": { "bn.js": "4.11.8", - "elliptic": "6.4.0" + "elliptic": "6.4.1" } }, "create-hash": { @@ -3010,7 +3105,7 @@ "requires": { "cipher-base": "1.0.4", "inherits": "2.0.3", - "md5.js": "1.3.4", + "md5.js": "1.3.5", "ripemd160": "2.0.2", "sha.js": "2.4.11" } @@ -3041,6 +3136,11 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.1.2.tgz", "integrity": "sha1-q4hOjn5X44qUR1POxwb3iNF2i7U=" + }, + "whatwg-fetch": { + "version": "2.0.4", + "resolved": "http://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz", + "integrity": "sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng==" } } }, @@ -3066,8 +3166,8 @@ "create-hmac": "1.1.7", "diffie-hellman": "5.0.3", "inherits": "2.0.3", - "pbkdf2": "3.0.16", - "public-encrypt": "4.0.2", + "pbkdf2": "3.0.17", + "public-encrypt": "4.0.3", "randombytes": "2.0.6", "randomfill": "1.0.4" } @@ -3078,24 +3178,14 @@ "integrity": "sha1-cV8HC/YBTyrpkqmLOSkli3E/CNU=" }, "css": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/css/-/css-2.2.3.tgz", - "integrity": "sha512-0W171WccAjQGGTKLhw4m2nnl0zPHUlTO/I8td4XzJgIB8Hg3ZZx71qT4G4eX8OVsSiaAKiUMy73E3nsbPlg2DQ==", + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/css/-/css-2.2.4.tgz", + "integrity": "sha512-oUnjmWpy0niI3x/mPL8dVEI1l7MnG3+HHyRPHf+YFSbK+svOhXpmSOcDURUh2aOCgl2grzrOPt1nHLuCVFULLw==", "requires": { "inherits": "2.0.3", - "source-map": "0.1.43", + "source-map": "0.6.1", "source-map-resolve": "0.5.2", "urix": "0.1.0" - }, - "dependencies": { - "source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", - "requires": { - "amdefine": "1.0.1" - } - } } }, "cyclist": { @@ -3108,7 +3198,7 @@ "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", "requires": { - "es5-ext": "0.10.45" + "es5-ext": "0.10.46" } }, "dashdash": { @@ -3182,6 +3272,11 @@ "strip-dirs": "2.1.0" }, "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + }, "pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", @@ -3194,7 +3289,7 @@ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", "requires": { - "mimic-response": "1.0.0" + "mimic-response": "1.0.1" } }, "decompress-tar": { @@ -3204,7 +3299,7 @@ "requires": { "file-type": "5.2.0", "is-stream": "1.1.0", - "tar-stream": "1.6.1" + "tar-stream": "1.6.2" } }, "decompress-tarbz2": { @@ -3216,7 +3311,7 @@ "file-type": "6.2.0", "is-stream": "1.1.0", "seek-bzip": "1.0.5", - "unbzip2-stream": "1.2.5" + "unbzip2-stream": "1.3.0" }, "dependencies": { "file-type": { @@ -3244,7 +3339,7 @@ "file-type": "3.9.0", "get-stream": "2.3.1", "pify": "2.3.0", - "yauzl": "2.9.1" + "yauzl": "2.10.0" }, "dependencies": { "file-type": { @@ -3261,6 +3356,11 @@ "pinkie-promise": "2.0.1" } }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + }, "pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", @@ -3292,12 +3392,11 @@ } }, "define-properties": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz", - "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", "requires": { - "foreach": "2.0.5", - "object-keys": "1.0.11" + "object-keys": "1.0.12" } }, "define-property": { @@ -3408,9 +3507,9 @@ "integrity": "sha1-9B8cEL5LAOh7XxPaaAdZ8sW/0+I=" }, "detect-node": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.3.tgz", - "integrity": "sha1-ogM8CcyOFY03dI+951B4Mr1s4Sc=" + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.4.tgz", + "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==" }, "diff": { "version": "3.3.1", @@ -3472,12 +3571,21 @@ } }, "ecc-jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", - "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", "optional": true, "requires": { - "jsbn": "0.1.1" + "jsbn": "0.1.1", + "safer-buffer": "2.1.2" + }, + "dependencies": { + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "optional": true + } } }, "ee-first": { @@ -3486,18 +3594,18 @@ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" }, "electron-to-chromium": { - "version": "1.3.48", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.48.tgz", - "integrity": "sha1-07DYWTgUBE4JLs4hCPw6ya6kuQA=" + "version": "1.3.74", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.74.tgz", + "integrity": "sha512-MJm7r64Kt1jQCLEiyfgfcu9lbO6/7jjfpH8x2FrutQ4Cb93aS+6dlfW+G65rPhVTjlTmwCfjQGCKZVEaaltOwQ==" }, "elliptic": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz", - "integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=", + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz", + "integrity": "sha512-BsXLz5sqX8OHcsh7CqBMztyXARmGQ3LWPtGjJi6DiJHq5C/qvi9P3OqgswKSDftbu8+IoI/QDTAm2fFnQ9SZSQ==", "requires": { "bn.js": "4.11.8", "brorand": "1.1.0", - "hash.js": "1.1.3", + "hash.js": "1.1.5", "hmac-drbg": "1.0.1", "inherits": "2.0.3", "minimalistic-assert": "1.0.1", @@ -3524,7 +3632,7 @@ "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", "requires": { - "iconv-lite": "0.4.23" + "iconv-lite": "0.4.24" } }, "end-of-stream": { @@ -3544,6 +3652,18 @@ "memory-fs": "0.4.1", "object-assign": "4.1.1", "tapable": "0.2.8" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + } } }, "errno": { @@ -3555,9 +3675,9 @@ } }, "error-ex": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", - "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "requires": { "is-arrayish": "0.2.1" } @@ -3575,27 +3695,27 @@ "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.12.0.tgz", "integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==", "requires": { - "es-to-primitive": "1.1.1", + "es-to-primitive": "1.2.0", "function-bind": "1.1.1", - "has": "1.0.1", - "is-callable": "1.1.3", + "has": "1.0.3", + "is-callable": "1.1.4", "is-regex": "1.0.4" } }, "es-to-primitive": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.1.1.tgz", - "integrity": "sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", + "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", "requires": { - "is-callable": "1.1.3", + "is-callable": "1.1.4", "is-date-object": "1.0.1", - "is-symbol": "1.0.1" + "is-symbol": "1.0.2" } }, "es5-ext": { - "version": "0.10.45", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.45.tgz", - "integrity": "sha512-FkfM6Vxxfmztilbxxz5UKSD4ICMf5tSpRFtDNtkAhOxZ0EKtX6qwmXNyH/sFyIbX2P/nU5AMiA9jilWsUGJzCQ==", + "version": "0.10.46", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.46.tgz", + "integrity": "sha512-24XxRvJXNFwEMpJb3nOkiRJKRoupmjYmOPVlI65Qy2SrtxwOTB+g6ODjBKOtwEHbYrhWRty9xxOWLNdClT2djw==", "requires": { "es6-iterator": "2.0.3", "es6-symbol": "3.1.1", @@ -3608,7 +3728,7 @@ "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", "requires": { "d": "1.0.0", - "es5-ext": "0.10.45", + "es5-ext": "0.10.46", "es6-symbol": "3.1.1" } }, @@ -3618,7 +3738,7 @@ "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", "requires": { "d": "1.0.0", - "es5-ext": "0.10.45", + "es5-ext": "0.10.46", "es6-iterator": "2.0.3", "es6-set": "0.1.5", "es6-symbol": "3.1.1", @@ -3631,7 +3751,7 @@ "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", "requires": { "d": "1.0.0", - "es5-ext": "0.10.45", + "es5-ext": "0.10.46", "es6-iterator": "2.0.3", "es6-symbol": "3.1.1", "event-emitter": "0.3.5" @@ -3643,7 +3763,7 @@ "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", "requires": { "d": "1.0.0", - "es5-ext": "0.10.45" + "es5-ext": "0.10.46" } }, "es6-weak-map": { @@ -3652,7 +3772,7 @@ "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", "requires": { "d": "1.0.0", - "es5-ext": "0.10.45", + "es5-ext": "0.10.46", "es6-iterator": "2.0.3", "es6-symbol": "3.1.1" } @@ -3677,14 +3797,6 @@ "esutils": "2.0.2", "optionator": "0.8.2", "source-map": "0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "optional": true - } } }, "escope": { @@ -3735,7 +3847,7 @@ "ethereumjs-tx": "1.3.7", "ethereumjs-util": "5.2.0", "ethjs-util": "0.1.6", - "json-rpc-engine": "3.7.3", + "json-rpc-engine": "3.8.0", "pify": "2.3.0", "tape": "4.9.1" }, @@ -3751,7 +3863,7 @@ "keccak": "1.4.0", "rlp": "2.1.0", "safe-buffer": "5.1.2", - "secp256k1": "3.5.0" + "secp256k1": "3.5.2" } }, "pify": { @@ -3761,6 +3873,22 @@ } } }, + "eth-ens-namehash": { + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/eth-ens-namehash/-/eth-ens-namehash-2.0.8.tgz", + "integrity": "sha1-IprEbsqG1S4MmR58sq74P/D2i88=", + "requires": { + "idna-uts46-hx": "2.3.1", + "js-sha3": "0.5.7" + }, + "dependencies": { + "js-sha3": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz", + "integrity": "sha1-DU/9gALVMzqrr0oj7tL2N0yfKOc=" + } + } + }, "eth-json-rpc-infura": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/eth-json-rpc-infura/-/eth-json-rpc-infura-3.1.2.tgz", @@ -3768,7 +3896,7 @@ "requires": { "cross-fetch": "2.2.2", "eth-json-rpc-middleware": "1.6.0", - "json-rpc-engine": "3.7.3", + "json-rpc-engine": "3.8.0", "json-rpc-error": "2.0.0", "tape": "4.9.1" } @@ -3786,7 +3914,7 @@ "ethereumjs-util": "5.2.0", "ethereumjs-vm": "2.4.0", "fetch-ponyfill": "4.1.0", - "json-rpc-engine": "3.7.3", + "json-rpc-engine": "3.8.0", "json-rpc-error": "2.0.0", "json-stable-stringify": "1.0.1", "promise-to-callback": "1.0.0", @@ -3804,7 +3932,7 @@ "keccak": "1.4.0", "rlp": "2.1.0", "safe-buffer": "5.1.2", - "secp256k1": "3.5.0" + "secp256k1": "3.5.2" } } } @@ -3815,12 +3943,24 @@ "integrity": "sha512-B8czsfkJYzn2UIEMwjc7Mbj+Cy72V+/OXH/tb44LV8jhrjizQJJ325xMOMyk3+ETa6r6oi0jsUY14+om8mQMWA==", "requires": { "bn.js": "4.11.8", - "elliptic": "6.4.0", + "elliptic": "6.4.1", "keccakjs": "0.2.1", "nano-json-stream-parser": "0.1.2", "servify": "0.1.12", "ws": "3.3.3", "xhr-request-promise": "0.1.2" + }, + "dependencies": { + "ws": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", + "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", + "requires": { + "async-limiter": "1.0.0", + "safe-buffer": "5.1.2", + "ultron": "1.1.1" + } + } } }, "eth-query": { @@ -3852,7 +3992,7 @@ "keccak": "1.4.0", "rlp": "2.1.0", "safe-buffer": "5.1.2", - "secp256k1": "3.5.0" + "secp256k1": "3.5.2" } } } @@ -3877,6 +4017,11 @@ "web3-provider-engine": "13.8.0" }, "dependencies": { + "clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=" + }, "eth-block-tracker": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/eth-block-tracker/-/eth-block-tracker-2.3.1.tgz", @@ -3887,7 +4032,7 @@ "ethereumjs-tx": "1.3.7", "ethereumjs-util": "5.2.0", "ethjs-util": "0.1.6", - "json-rpc-engine": "3.7.3", + "json-rpc-engine": "3.8.0", "pify": "2.3.0", "tape": "4.9.1" }, @@ -3916,7 +4061,7 @@ "keccak": "1.4.0", "rlp": "2.1.0", "safe-buffer": "5.1.2", - "secp256k1": "3.5.0" + "secp256k1": "3.5.2" } }, "ethereumjs-vm": { @@ -3932,7 +4077,7 @@ "ethereumjs-util": "5.2.0", "fake-merkle-patricia-tree": "1.0.1", "functional-red-black-tree": "1.0.1", - "merkle-patricia-tree": "2.3.1", + "merkle-patricia-tree": "2.3.2", "rustbn.js": "0.1.2", "safe-buffer": "5.1.2" } @@ -3960,7 +4105,7 @@ "json-stable-stringify": "1.0.1", "promise-to-callback": "1.0.0", "readable-stream": "2.3.6", - "request": "2.87.0", + "request": "2.88.0", "semaphore": "1.1.0", "solc": "0.4.24", "tape": "4.9.1", @@ -3987,13 +4132,13 @@ "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.0.tgz", "integrity": "sha512-CJAKdI0wgMbQFLlLRtZKGcy/L6pzVRgelIZqRqNbuVFM3K9VEnyfbcvz0ncWMRNCe4kaHWjwRYQcYMucmwsnWA==", "requires": { - "bn.js": "4.11.8", - "create-hash": "1.2.0", - "ethjs-util": "0.1.6", - "keccak": "1.4.0", - "rlp": "2.1.0", - "safe-buffer": "5.1.2", - "secp256k1": "3.5.0" + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "ethjs-util": "^0.1.3", + "keccak": "^1.0.2", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1", + "secp256k1": "^3.0.1" } } } @@ -4019,7 +4164,7 @@ "keccak": "1.4.0", "rlp": "2.1.0", "safe-buffer": "5.1.2", - "secp256k1": "3.5.0" + "secp256k1": "3.5.2" } } } @@ -4033,7 +4178,7 @@ "ethereum-common": "0.2.0", "ethereumjs-tx": "1.3.7", "ethereumjs-util": "5.2.0", - "merkle-patricia-tree": "2.3.1" + "merkle-patricia-tree": "2.3.2" }, "dependencies": { "ethereum-common": { @@ -4052,15 +4197,15 @@ "keccak": "1.4.0", "rlp": "2.1.0", "safe-buffer": "5.1.2", - "secp256k1": "3.5.0" + "secp256k1": "3.5.2" } } } }, "ethereumjs-common": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/ethereumjs-common/-/ethereumjs-common-0.4.0.tgz", - "integrity": "sha512-osp2mEidCsVkIeHo8QdWTykXfzq/dkTKeo4Bl4vcmHLvS2KlgvzQyIks008yiytMftyjcTARmq1AKKBb5ylXIQ==" + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/ethereumjs-common/-/ethereumjs-common-0.4.1.tgz", + "integrity": "sha512-ywYGsOeGCsMNWso5Y4GhjWI24FJv9FK7+VyVKiQgXg8ZRDPXJ7F/kJ1CnjtkjTvDF4e0yqU+FWswlqR3bmZQ9Q==" }, "ethereumjs-tx": { "version": "1.3.7", @@ -4082,7 +4227,7 @@ "keccak": "1.4.0", "rlp": "2.1.0", "safe-buffer": "5.1.2", - "secp256k1": "3.5.0" + "secp256k1": "3.5.2" } } } @@ -4096,7 +4241,7 @@ "create-hash": "1.2.0", "keccakjs": "0.2.1", "rlp": "2.1.0", - "secp256k1": "3.5.0" + "secp256k1": "3.5.2" } }, "ethereumjs-vm": { @@ -4108,11 +4253,11 @@ "async-eventemitter": "0.2.4", "ethereumjs-account": "2.0.5", "ethereumjs-block": "1.7.1", - "ethereumjs-common": "0.4.0", + "ethereumjs-common": "0.4.1", "ethereumjs-util": "5.2.0", "fake-merkle-patricia-tree": "1.0.1", "functional-red-black-tree": "1.0.1", - "merkle-patricia-tree": "2.3.1", + "merkle-patricia-tree": "2.3.2", "rustbn.js": "0.2.0", "safe-buffer": "5.1.2" }, @@ -4128,7 +4273,7 @@ "keccak": "1.4.0", "rlp": "2.1.0", "safe-buffer": "5.1.2", - "secp256k1": "3.5.0" + "secp256k1": "3.5.2" } }, "rustbn.js": { @@ -4148,7 +4293,7 @@ "ethereumjs-util": "4.5.0", "hdkey": "0.7.1", "scrypt.js": "0.2.0", - "utf8": "2.1.1", + "utf8": "2.1.2", "uuid": "2.0.3" }, "dependencies": { @@ -4159,38 +4304,97 @@ } } }, - "ethjs-unit": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/ethjs-unit/-/ethjs-unit-0.1.6.tgz", - "integrity": "sha1-xmWSHkduh7ziqdWIpv4EBbLEFpk=", + "ethers": { + "version": "4.0.0-beta.1", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-4.0.0-beta.1.tgz", + "integrity": "sha512-SoYhktEbLxf+fiux5SfCEwdzWENMvgIbMZD90I62s4GZD9nEjgEWy8ZboI3hck193Vs0bDoTohDISx84f2H2tw==", "requires": { - "bn.js": "4.11.6", - "number-to-bn": "1.7.0" + "@types/node": "10.11.4", + "aes-js": "3.0.0", + "bn.js": "4.11.8", + "elliptic": "6.3.3", + "hash.js": "1.1.3", + "js-sha3": "0.5.7", + "scrypt-js": "2.0.3", + "setimmediate": "1.0.4", + "uuid": "2.0.1", + "xmlhttprequest": "1.8.0" }, "dependencies": { - "bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha1-UzRK2xRhehP26N0s4okF0cC6MhU=" - } - } - }, - "ethjs-util": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/ethjs-util/-/ethjs-util-0.1.6.tgz", - "integrity": "sha512-CUnVOQq7gSpDHZVVrQW8ExxUETWrnrvXYvYz55wOU8Uj4VCgw56XC2B/fVqQN+f7gmrnRHSLVnFAwsCuNwji8w==", - "requires": { - "is-hex-prefixed": "1.0.0", - "strip-hex-prefix": "1.0.0" - } - }, - "event-emitter": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", - "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", + "aes-js": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", + "integrity": "sha1-4h3xCtbCBTKVvLuNq0Cwnb6ofk0=" + }, + "elliptic": { + "version": "6.3.3", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.3.3.tgz", + "integrity": "sha1-VILZZG1UvLif19mU/J4ulWiHbj8=", + "requires": { + "bn.js": "4.11.8", + "brorand": "1.1.0", + "hash.js": "1.1.3", + "inherits": "2.0.3" + } + }, + "hash.js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", + "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", + "requires": { + "inherits": "2.0.3", + "minimalistic-assert": "1.0.1" + } + }, + "js-sha3": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.5.7.tgz", + "integrity": "sha1-DU/9gALVMzqrr0oj7tL2N0yfKOc=" + }, + "setimmediate": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.4.tgz", + "integrity": "sha1-IOgd5iLUoCWIzgyNqJc8vPHTE48=" + }, + "uuid": { + "version": "2.0.1", + "resolved": "http://registry.npmjs.org/uuid/-/uuid-2.0.1.tgz", + "integrity": "sha1-wqMN7bPlNdcsz4LjQ5QaULqFM6w=" + } + } + }, + "ethjs-unit": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/ethjs-unit/-/ethjs-unit-0.1.6.tgz", + "integrity": "sha1-xmWSHkduh7ziqdWIpv4EBbLEFpk=", + "requires": { + "bn.js": "4.11.6", + "number-to-bn": "1.7.0" + }, + "dependencies": { + "bn.js": { + "version": "4.11.6", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", + "integrity": "sha1-UzRK2xRhehP26N0s4okF0cC6MhU=" + } + } + }, + "ethjs-util": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/ethjs-util/-/ethjs-util-0.1.6.tgz", + "integrity": "sha512-CUnVOQq7gSpDHZVVrQW8ExxUETWrnrvXYvYz55wOU8Uj4VCgw56XC2B/fVqQN+f7gmrnRHSLVnFAwsCuNwji8w==", + "requires": { + "is-hex-prefixed": "1.0.0", + "strip-hex-prefix": "1.0.0" + } + }, + "event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", "requires": { "d": "1.0.0", - "es5-ext": "0.10.45" + "es5-ext": "0.10.46" } }, "event-source-polyfill": { @@ -4213,7 +4417,7 @@ "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", "requires": { - "md5.js": "1.3.4", + "md5.js": "1.3.5", "safe-buffer": "5.1.2" } }, @@ -4271,7 +4475,7 @@ "on-finished": "2.3.0", "parseurl": "1.3.2", "path-to-regexp": "0.1.7", - "proxy-addr": "2.0.3", + "proxy-addr": "2.0.4", "qs": "6.5.1", "range-parser": "1.2.0", "safe-buffer": "5.1.1", @@ -4378,27 +4582,16 @@ } }, "extend": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", - "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=" + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "requires": { - "assign-symbols": "1.0.0", - "is-extendable": "1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "requires": { - "is-plain-object": "2.0.4" - } - } + "is-extendable": "0.1.1" } }, "extglob": { @@ -4407,6 +4600,13 @@ "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", "requires": { "is-extglob": "1.0.0" + }, + "dependencies": { + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=" + } } }, "extsprintf": { @@ -4427,10 +4627,10 @@ "resolved": "https://registry.npmjs.org/falafel/-/falafel-2.1.0.tgz", "integrity": "sha1-lrsXdh2rqU9G0AFzizzt86Z/4Gw=", "requires": { - "acorn": "5.6.1", + "acorn": "5.7.3", "foreach": "2.0.5", "isarray": "0.0.1", - "object-keys": "1.0.11" + "object-keys": "1.0.12" }, "dependencies": { "isarray": { @@ -4456,13 +4656,13 @@ "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=" }, "fbjs": { - "version": "0.8.16", - "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.16.tgz", - "integrity": "sha1-XmdDL1UNxBtXK/VYR7ispk5TN9s=", + "version": "0.8.17", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.17.tgz", + "integrity": "sha1-xNWY6taUkRJlPWWIsBpc3Nn5D90=", "requires": { "core-js": "1.2.7", "isomorphic-fetch": "2.2.1", - "loose-envify": "1.3.1", + "loose-envify": "1.4.0", "object-assign": "4.1.1", "promise": "7.3.1", "setimmediate": "1.0.5", @@ -4473,13 +4673,26 @@ "version": "1.2.7", "resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz", "integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=" + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + }, + "promise": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", + "requires": { + "asap": "2.0.6" + } } } }, "fd-slicer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", - "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha1-JcfInLH5B3+IkbvmHY85Dq4lbx4=", "requires": { "pend": "1.2.0" } @@ -4514,8 +4727,8 @@ "requires": { "is-number": "2.1.0", "isobject": "2.1.0", - "randomatic": "3.0.0", - "repeat-element": "1.1.2", + "randomatic": "3.1.0", + "repeat-element": "1.1.3", "repeat-string": "1.6.1" } }, @@ -4581,9 +4794,9 @@ } }, "follow-redirects": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.0.tgz", - "integrity": "sha512-fdrt472/9qQ6Kgjvb935ig6vJCuofpBUD14f9Vb+SLlm7xIe4Qva5gey8EKtv8lp7ahE1wilg3xL1znpVGtZIA==", + "version": "1.5.8", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.8.tgz", + "integrity": "sha512-sy1mXPmv7kLAMKW/8XofG7o9T+6gAjzdZK4AJF6ryqQYUa/hnzgiypoeUecZ53x7XiqKNEpNqLtS97MshW2nxg==", "requires": { "debug": "3.1.0" } @@ -4593,7 +4806,7 @@ "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", "requires": { - "is-callable": "1.1.3" + "is-callable": "1.1.4" } }, "for-in": { @@ -4631,7 +4844,17 @@ "requires": { "asynckit": "0.4.0", "combined-stream": "1.0.6", - "mime-types": "2.1.18" + "mime-types": "2.1.20" + }, + "dependencies": { + "combined-stream": { + "version": "1.0.6", + "resolved": "http://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", + "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", + "requires": { + "delayed-stream": "1.0.0" + } + } } }, "forwarded": { @@ -4701,12 +4924,22 @@ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" }, "fs-extra": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-2.1.2.tgz", - "integrity": "sha1-BGxwFjzvmq1GsOSn+kZ/si1x3jU=", + "version": "0.30.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.30.0.tgz", + "integrity": "sha1-8jP/zAjU2n1DLapEl3aYnbHfk/A=", "requires": { "graceful-fs": "4.1.11", - "jsonfile": "2.4.0" + "jsonfile": "2.4.0", + "klaw": "1.3.1", + "path-is-absolute": "1.0.1", + "rimraf": "2.6.2" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + } } }, "fs-promise": { @@ -4718,6 +4951,22 @@ "fs-extra": "2.1.2", "mz": "2.7.0", "thenify-all": "1.6.0" + }, + "dependencies": { + "fs-extra": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-2.1.2.tgz", + "integrity": "sha1-BGxwFjzvmq1GsOSn+kZ/si1x3jU=", + "requires": { + "graceful-fs": "4.1.11", + "jsonfile": "2.4.0" + } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + } } }, "fs-write-stream-atomic": { @@ -4729,6 +4978,13 @@ "iferr": "0.1.5", "imurmurhash": "0.1.4", "readable-stream": "2.3.6" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + } } }, "fs.realpath": { @@ -4742,7 +4998,7 @@ "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", "optional": true, "requires": { - "nan": "2.10.0", + "nan": "2.11.1", "node-pre-gyp": "0.10.0" }, "dependencies": { @@ -5207,6 +5463,13 @@ "inherits": "2.0.3", "mkdirp": "0.5.1", "rimraf": "2.6.2" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + } } }, "function-bind": { @@ -5219,6 +5482,25 @@ "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=" }, + "ganache-cli": { + "version": "6.1.8", + "resolved": "https://registry.npmjs.org/ganache-cli/-/ganache-cli-6.1.8.tgz", + "integrity": "sha512-yXzteu4SIgUL31mnpm9j+x6dpHUw0p/nsRVkcySKq0w+1vDxH9jMErP1QhZAJuTVE6ni4nfvGSNkaQx5cD3jfg==", + "requires": { + "source-map-support": "0.5.9" + }, + "dependencies": { + "source-map-support": { + "version": "0.5.9", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.9.tgz", + "integrity": "sha512-gR6Rw4MvUlYy83vP0vxoVNzM6t8MUXqNuRsuBmBHQDu1Fh6X015FrLdgoDKcNdkwGubozq0P4N0Q37UyFVr1EA==", + "requires": { + "buffer-from": "1.1.1", + "source-map": "0.6.1" + } + } + } + }, "gaze": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/gaze/-/gaze-0.5.2.tgz", @@ -5228,9 +5510,9 @@ } }, "get-caller-file": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", - "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=" + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==" }, "get-stream": { "version": "3.0.0", @@ -5251,9 +5533,9 @@ } }, "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", "requires": { "fs.realpath": "1.0.0", "inflight": "1.0.6", @@ -5270,14 +5552,38 @@ "requires": { "glob-parent": "2.0.0", "is-glob": "2.0.1" + }, + "dependencies": { + "glob-parent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", + "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", + "requires": { + "is-glob": "2.0.1" + } + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=" + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "requires": { + "is-extglob": "1.0.0" + } + } } }, "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "requires": { - "is-glob": "2.0.1" + "is-glob": "3.1.0", + "path-dirname": "1.0.2" } }, "glob-stream": { @@ -5285,7 +5591,7 @@ "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-5.3.5.tgz", "integrity": "sha1-pVZlqajM3EGRWofHAeMtTgFvrSI=", "requires": { - "extend": "3.0.1", + "extend": "3.0.2", "glob": "5.0.15", "glob-parent": "3.1.0", "micromatch": "2.3.11", @@ -5307,28 +5613,6 @@ "path-is-absolute": "1.0.1" } }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "requires": { - "is-glob": "3.1.0", - "path-dirname": "1.0.2" - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" - }, - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "requires": { - "is-extglob": "2.1.1" - } - }, "isarray": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", @@ -5376,12 +5660,19 @@ "requires": { "min-document": "2.19.0", "process": "0.5.2" + }, + "dependencies": { + "process": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/process/-/process-0.5.2.tgz", + "integrity": "sha1-FjjYqONML0QKkduVq5rrZ3/Bhc8=" + } } }, "globals": { - "version": "11.5.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.5.0.tgz", - "integrity": "sha512-hYyf+kI8dm3nORsiiXUQigOU62hDLfJ9G01uyGMxhc6BKsircrUhC4uJPQPUSuq2GrTmiiEt7ewxlMdBewfmKQ==" + "version": "11.8.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.8.0.tgz", + "integrity": "sha512-io6LkyPVuzCHBSQV9fmOwxZkUk6nIaGmxheLDgmuFv89j0fm2aqDbIXKAGfzCMHqz3HLF2Zf8WSG6VqMh2qFmA==" }, "globby": { "version": "6.1.0", @@ -5389,12 +5680,17 @@ "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", "requires": { "array-union": "1.0.2", - "glob": "7.1.2", + "glob": "7.1.3", "object-assign": "4.1.1", "pify": "2.3.0", "pinkie-promise": "2.0.1" }, "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + }, "pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", @@ -5422,11 +5718,6 @@ "minimatch": "0.2.14" } }, - "graceful-fs": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz", - "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=" - }, "inherits": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz", @@ -5475,9 +5766,9 @@ } }, "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz", + "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=" }, "graceful-readlink": { "version": "1.0.1", @@ -5496,8 +5787,8 @@ "requires": { "@gulp-sourcemaps/map-sources": "1.0.0", "acorn": "4.0.13", - "convert-source-map": "1.5.1", - "css": "2.2.3", + "convert-source-map": "1.6.0", + "css": "2.2.4", "debug-fabulous": "0.0.4", "detect-newline": "2.1.0", "graceful-fs": "4.1.11", @@ -5512,23 +5803,10 @@ "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=" }, - "clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=" - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", - "requires": { - "is-utf8": "0.2.1" - } + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" }, "vinyl": { "version": "1.2.0", @@ -5548,9 +5826,9 @@ "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" }, "har-validator": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", - "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.0.tgz", + "integrity": "sha512-+qnmNjI4OfH2ipQ9VQOw23bBd/ibtfbVdK2fYbY4acTDqKTW/YDp9McimZdDbG8iV9fZizUqQMD5xvriB146TA==", "requires": { "ajv": "5.5.2", "har-schema": "2.0.0" @@ -5571,13 +5849,18 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=" + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" } } }, "has": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.1.tgz", - "integrity": "sha1-hGFzP1OLCDfJNh45qauelwTcLyg=", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", "requires": { "function-bind": "1.1.1" } @@ -5677,9 +5960,9 @@ } }, "hash.js": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", - "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.5.tgz", + "integrity": "sha512-eWI5HG9Np+eHV1KQhisXWwM+4EPPYe5dFX1UZZH7k/E3JzDEazVH+VGlZi6R94ZqImq+A3D1mCEtrFIfg/E7sA==", "requires": { "inherits": "2.0.3", "minimalistic-assert": "1.0.1" @@ -5691,7 +5974,7 @@ "integrity": "sha1-yu5L6BqneSHpCbjSKN0PKayu5jI=", "requires": { "coinstring": "2.3.0", - "secp256k1": "3.5.0" + "secp256k1": "3.5.2" } }, "he": { @@ -5704,15 +5987,15 @@ "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", "requires": { - "hash.js": "1.1.3", + "hash.js": "1.1.5", "minimalistic-assert": "1.0.1", "minimalistic-crypto-utils": "1.0.1" } }, "hoist-non-react-statics": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-2.5.0.tgz", - "integrity": "sha512-6Bl6XsDT1ntE0lHbIhr4Kp2PGcleGZ66qu5Jqk8lc0Xc/IeG6gVLmwUGs/K0Us+L8VWoKgj0uWdPMataOsm31w==" + "version": "2.5.5", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz", + "integrity": "sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw==" }, "home-or-tmp": { "version": "2.0.0", @@ -5724,9 +6007,9 @@ } }, "hosted-git-info": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.6.0.tgz", - "integrity": "sha512-lIbgIIQA3lz5XaB6vxakj6sDHADJiZadYEJB+FgA+C4nubM1NwcuvUr9EJPmnH1skZqpqUzWborWo8EIUi0Sdw==" + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz", + "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==" }, "html-entities": { "version": "1.2.1", @@ -5761,7 +6044,7 @@ "requires": { "assert-plus": "1.0.0", "jsprim": "1.4.1", - "sshpk": "1.14.1" + "sshpk": "1.14.2" } }, "http-status": { @@ -5775,17 +6058,32 @@ "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=" }, "iconv-lite": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", - "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "requires": { "safer-buffer": "2.1.2" } }, + "idna-uts46-hx": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/idna-uts46-hx/-/idna-uts46-hx-2.3.1.tgz", + "integrity": "sha512-PWoF9Keq6laYdIRwwCdhTPl60xRqAloYNMQLiyUnG42VjT53oW07BXIRM+NK7eQjzXjAk2gUvX9caRxlnF9TAA==", + "requires": { + "punycode": "2.1.0" + }, + "dependencies": { + "punycode": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.0.tgz", + "integrity": "sha1-X4Y+3Im5bbCQdLrXlHvwkFbKTn0=" + } + } + }, "ieee754": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.11.tgz", - "integrity": "sha512-VhDzCKN7K8ufStx/CLj5/PDTMgph+qwN5Pkd5i0sGnVwk56zJ0lkT8Qzi1xqWLS0Wp29DgDtNeS7v8/wMoZeHg==" + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.12.tgz", + "integrity": "sha512-GguP+DRY+pJ3soyIiGPTvdiVXjZ+DbXOxGpXn3eMvNW4x4irjqXm4wHKscC+TfxSJ0yw/S1F24tqdMNsMZTiLA==" }, "iferr": { "version": "0.1.5", @@ -5836,7 +6134,7 @@ "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", "requires": { - "loose-envify": "1.3.1" + "loose-envify": "1.4.0" } }, "invert-kv": { @@ -5861,19 +6159,12 @@ "lodash.padstart": "4.6.1", "lodash.repeat": "4.1.0", "sprintf-js": "1.1.0" - }, - "dependencies": { - "jsbn": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", - "integrity": "sha1-sBMHyym2GKHtJux56RH4A8TaAEA=" - } } }, "ipaddr.js": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.6.0.tgz", - "integrity": "sha1-4/o1e3c9phnybpXwSdBVxyeW+Gs=" + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.8.0.tgz", + "integrity": "sha1-6qM9bd16zo9/b+DJygRA5wZzix4=" }, "ipfs-api": { "version": "23.0.0", @@ -5883,30 +6174,30 @@ "async": "2.6.1", "big.js": "5.1.2", "bs58": "4.0.1", - "cids": "0.5.3", + "cids": "0.5.5", "concat-stream": "1.6.2", "debug": "3.1.0", - "detect-node": "2.0.3", + "detect-node": "2.0.4", "flatmap": "0.0.3", - "glob": "7.1.2", + "glob": "7.1.3", "ipfs-block": "0.7.1", "ipfs-unixfs": "0.1.15", "ipld-dag-cbor": "0.12.1", - "ipld-dag-pb": "0.14.6", - "is-ipfs": "0.4.2", + "ipld-dag-pb": "0.14.10", + "is-ipfs": "0.4.7", "is-pull-stream": "0.0.0", "is-stream": "1.1.0", "libp2p-crypto": "0.13.0", "lru-cache": "4.1.3", "multiaddr": "5.0.0", "multibase": "0.4.0", - "multihashes": "0.4.13", + "multihashes": "0.4.14", "ndjson": "1.5.0", "once": "1.4.0", "peer-id": "0.11.0", "peer-info": "0.14.1", "promisify-es6": "1.0.3", - "pull-defer": "0.2.2", + "pull-defer": "0.2.3", "pull-pushable": "2.2.0", "pull-stream-to-stream": "1.3.4", "pump": "3.0.0", @@ -5915,39 +6206,7 @@ "stream-http": "2.8.3", "stream-to-pull-stream": "1.7.2", "streamifier": "0.1.1", - "tar-stream": "1.6.1" - }, - "dependencies": { - "base-x": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.4.tgz", - "integrity": "sha512-UYOadoSIkEI/VrRGSG6qp93rp2WdokiAiNYDfGW5qURAY8GiAQkvMbwNNSDYiVJopqv4gCna7xqf4rrNGp+5AA==", - "requires": { - "safe-buffer": "5.1.2" - } - }, - "big.js": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.1.2.tgz", - "integrity": "sha512-qG6ZOc1lY84Bn8p/z9xvJisj9F4PRyo0pOGqGNYc7gS3p1WciS/3XcLuNI3Z/yYZpMNFhHeX3YNENwgrQq0NTA==" - }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", - "requires": { - "base-x": "3.0.4" - } - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "requires": { - "end-of-stream": "1.4.1", - "once": "1.4.0" - } - } + "tar-stream": "1.6.2" } }, "ipfs-block": { @@ -5955,7 +6214,7 @@ "resolved": "https://registry.npmjs.org/ipfs-block/-/ipfs-block-0.7.1.tgz", "integrity": "sha512-ABZS9J/+OaDwc10zu6pIVdxWnOD/rkPEravk7FRVuRep7/zKSjffNhO/WuHN7Ex+MOBMz7mty0e+i6xjGnRsRQ==", "requires": { - "cids": "0.5.3", + "cids": "0.5.5", "class-is": "1.1.0" } }, @@ -6040,76 +6299,28 @@ "async": "2.6.1", "borc": "2.0.3", "bs58": "4.0.1", - "cids": "0.5.3", + "cids": "0.5.5", "is-circular": "1.0.2", - "multihashes": "0.4.13", + "multihashes": "0.4.14", "multihashing-async": "0.5.1", "traverse": "0.6.6" - }, - "dependencies": { - "base-x": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.4.tgz", - "integrity": "sha512-UYOadoSIkEI/VrRGSG6qp93rp2WdokiAiNYDfGW5qURAY8GiAQkvMbwNNSDYiVJopqv4gCna7xqf4rrNGp+5AA==", - "requires": { - "safe-buffer": "5.1.2" - } - }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", - "requires": { - "base-x": "3.0.4" - } - } } }, "ipld-dag-pb": { - "version": "0.14.6", - "resolved": "https://registry.npmjs.org/ipld-dag-pb/-/ipld-dag-pb-0.14.6.tgz", - "integrity": "sha512-ngnfHLeKoGg0DQG6GKFHcgiN+z1xApLeBYaeYAoxH7ZGi0OrBx68LKzHVGKdyNvzFFENePVSnOCJxmhmWYC3FQ==", + "version": "0.14.10", + "resolved": "https://registry.npmjs.org/ipld-dag-pb/-/ipld-dag-pb-0.14.10.tgz", + "integrity": "sha512-wtdZzLN21fg8JPYzu2gM4bNUDX65G9exXqsMAwnkeJUIeeA8Ot2BxB0ZY0wo5N26IudXNJnb4rAJKmZlsOykuw==", "requires": { "async": "2.6.1", "bs58": "4.0.1", - "buffer-loader": "0.0.1", - "cids": "0.5.3", + "cids": "0.5.5", "class-is": "1.1.0", - "is-ipfs": "0.3.2", - "multihashes": "0.4.13", + "is-ipfs": "0.4.7", "multihashing-async": "0.5.1", "protons": "1.0.1", - "pull-stream": "3.6.8", + "pull-stream": "3.6.9", "pull-traverse": "1.0.3", "stable": "0.1.8" - }, - "dependencies": { - "base-x": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.4.tgz", - "integrity": "sha512-UYOadoSIkEI/VrRGSG6qp93rp2WdokiAiNYDfGW5qURAY8GiAQkvMbwNNSDYiVJopqv4gCna7xqf4rrNGp+5AA==", - "requires": { - "safe-buffer": "5.1.2" - } - }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", - "requires": { - "base-x": "3.0.4" - } - }, - "is-ipfs": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/is-ipfs/-/is-ipfs-0.3.2.tgz", - "integrity": "sha512-82V1j4LMkYy7H4seQQzOWqo7FiW3I64/1/ryo3dhtWKfOvm7ZolLMRQQfGKs4OXWauh5rAkPnamVcRISHwhmpQ==", - "requires": { - "bs58": "4.0.1", - "cids": "0.5.3", - "multihashes": "0.4.13" - } - } } }, "is-accessor-descriptor": { @@ -6130,7 +6341,7 @@ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", "requires": { - "binary-extensions": "1.11.0" + "binary-extensions": "1.12.0" } }, "is-buffer": { @@ -6147,9 +6358,9 @@ } }, "is-callable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.3.tgz", - "integrity": "sha1-hut1OSgF3cM69xySoO7fdO52BLI=" + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", + "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==" }, "is-circular": { "version": "1.0.2", @@ -6205,9 +6416,9 @@ "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" }, "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=" + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" }, "is-finite": { "version": "1.0.2", @@ -6236,11 +6447,11 @@ "integrity": "sha1-Es+5i2W1fdPRk6MSH19uL0N2ArU=" }, "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", "requires": { - "is-extglob": "1.0.0" + "is-extglob": "2.1.1" } }, "is-hex-prefixed": { @@ -6249,32 +6460,14 @@ "integrity": "sha1-fY035q135dEnFIkTxXPggtd39VQ=" }, "is-ipfs": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/is-ipfs/-/is-ipfs-0.4.2.tgz", - "integrity": "sha512-v/73Qf9kjDq8gjMyK8gn+KrLmJh8B4uS7fVGP7UYBUxXkFquW+puPV0P8TeXNd+C6EEvaOO3If6vxQ7UkznNAg==", + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/is-ipfs/-/is-ipfs-0.4.7.tgz", + "integrity": "sha512-u+LzRRA5s2XMJnQ65R60SvRKb8R04ZITbbRMWBESLyLPlJ+J78zaXZzNZBIf4SQ0pnWioMNCpiIV4hw098MgOQ==", "requires": { "bs58": "4.0.1", - "cids": "0.5.3", + "cids": "0.5.5", "multibase": "0.4.0", - "multihashes": "0.4.13" - }, - "dependencies": { - "base-x": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.4.tgz", - "integrity": "sha512-UYOadoSIkEI/VrRGSG6qp93rp2WdokiAiNYDfGW5qURAY8GiAQkvMbwNNSDYiVJopqv4gCna7xqf4rrNGp+5AA==", - "requires": { - "safe-buffer": "5.1.2" - } - }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", - "requires": { - "base-x": "3.0.4" - } - } + "multihashes": "0.4.14" } }, "is-natural-number": { @@ -6295,21 +6488,6 @@ "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz", "integrity": "sha1-iVJojF7C/9awPsyF52ngKQMINHA=" }, - "is-odd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-odd/-/is-odd-2.0.0.tgz", - "integrity": "sha512-OTiixgpZAT1M4NHgS5IguFp/Vz2VI3U7Goh4/HA1adtwyLtSBrxYlcSYkhpAE07s4fKEcjrFxyvtQBND4vFQyQ==", - "requires": { - "is-number": "4.0.0" - }, - "dependencies": { - "is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==" - } - } - }, "is-path-cwd": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", @@ -6376,7 +6554,7 @@ "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", "requires": { - "has": "1.0.1" + "has": "1.0.3" } }, "is-retry-allowed": { @@ -6390,9 +6568,12 @@ "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" }, "is-symbol": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.1.tgz", - "integrity": "sha1-PMWfAAJRlLarLjjbrmaJJWtmBXI=" + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", + "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", + "requires": { + "has-symbols": "1.0.0" + } }, "is-typedarray": { "version": "1.0.0", @@ -6438,7 +6619,7 @@ "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", "requires": { "node-fetch": "1.7.3", - "whatwg-fetch": "2.0.4" + "whatwg-fetch": "3.0.0" } }, "isstream": { @@ -6461,9 +6642,9 @@ "integrity": "sha512-Ubldcmxp5np52/ENotGxlLe6aGMvmF4R8S6tZjsP6Knsaxd/xp3Zrh50cG93lR6nPXyUFwzN3ZSOQI0wRJNdGg==" }, "js-sha3": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.3.1.tgz", - "integrity": "sha1-hhIoAhQvCChQKg0d7h2V4lO7AkM=" + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.7.0.tgz", + "integrity": "sha512-Wpks3yBDm0UcL5qlVhwW9Jr9n9i4FfeWBFOOXP5puDS/SiudJGhw7DPyBqn3487qD4F0lsC0q3zxink37f7zeA==" }, "js-tokens": { "version": "3.0.2", @@ -6471,10 +6652,9 @@ "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=" }, "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "optional": true + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha1-sBMHyym2GKHtJux56RH4A8TaAEA=" }, "jsesc": { "version": "2.5.1", @@ -6487,16 +6667,16 @@ "integrity": "sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==" }, "json-rpc-engine": { - "version": "3.7.3", - "resolved": "https://registry.npmjs.org/json-rpc-engine/-/json-rpc-engine-3.7.3.tgz", - "integrity": "sha512-+FO3UWu/wafh/+MZ6BXy0HZU+f5plwUn82FgxpC0scJkEh5snOjFrAAtqCITPDfvfLHRUFOG5pQDUx2pspfERQ==", + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/json-rpc-engine/-/json-rpc-engine-3.8.0.tgz", + "integrity": "sha512-6QNcvm2gFuuK4TKU1uwfH0Qd/cOSb9c1lls0gbnIhciktIUQJwz6NQNAW4B1KiGPenv7IKu97V222Yo1bNhGuA==", "requires": { "async": "2.6.1", "babel-preset-env": "1.7.0", "babelify": "7.3.0", - "clone": "2.1.2", "json-rpc-error": "2.0.0", - "promise-to-callback": "1.0.0" + "promise-to-callback": "1.0.0", + "safe-event-emitter": "1.0.1" } }, "json-rpc-error": { @@ -6518,9 +6698,9 @@ "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" }, "json-schema-traverse": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "json-stable-stringify": { "version": "1.0.1", @@ -6554,6 +6734,14 @@ "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", "requires": { "graceful-fs": "4.1.11" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "optional": true + } } }, "jsonify": { @@ -6584,7 +6772,7 @@ "requires": { "bindings": "1.3.0", "inherits": "2.0.3", - "nan": "2.10.0", + "nan": "2.11.1", "safe-buffer": "5.1.2" } }, @@ -6598,9 +6786,9 @@ } }, "keyboard-key": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/keyboard-key/-/keyboard-key-1.0.1.tgz", - "integrity": "sha512-OAfjaSI917BOonwfH6LQHMZJRv5035jjZvgElouB/DM4I7l5zEjrA15RD80YwIjhN69xqEfWCZIbhBcGpb85Ig==" + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/keyboard-key/-/keyboard-key-1.0.2.tgz", + "integrity": "sha512-05cjQmw4ss/YuY2utmVim0wywDyBZGUivo8siLPkWinwGWtKlO8/4RGbPUqNycwlD3u/3D15eNRjnNAyaTDs8g==" }, "keypair": { "version": "1.0.1", @@ -6621,6 +6809,14 @@ "integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=", "requires": { "graceful-fs": "4.1.11" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "optional": true + } } }, "lazy-cache": { @@ -6775,7 +6971,7 @@ "keypair": "1.0.1", "libp2p-crypto-secp256k1": "0.2.2", "multihashing-async": "0.4.8", - "node-forge": "0.7.5", + "node-forge": "0.7.6", "pem-jwk": "1.5.1", "protons": "1.0.1", "rsa-pem-to-jwk": "1.1.3", @@ -6783,37 +6979,6 @@ "webcrypto-shim": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" }, "dependencies": { - "asn1.js": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.0.1.tgz", - "integrity": "sha512-aO8EaEgbgqq77IEw+1jfx5c9zTbzvkfuRBuZsSsPnTHMkmd5AI4J6OtITLZFa381jReeaQL67J0GBTUu0+ZTVw==", - "requires": { - "bn.js": "4.11.8", - "inherits": "2.0.3", - "minimalistic-assert": "1.0.1" - } - }, - "base-x": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.4.tgz", - "integrity": "sha512-UYOadoSIkEI/VrRGSG6qp93rp2WdokiAiNYDfGW5qURAY8GiAQkvMbwNNSDYiVJopqv4gCna7xqf4rrNGp+5AA==", - "requires": { - "safe-buffer": "5.1.2" - } - }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", - "requires": { - "base-x": "3.0.4" - } - }, - "js-sha3": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.7.0.tgz", - "integrity": "sha512-Wpks3yBDm0UcL5qlVhwW9Jr9n9i4FfeWBFOOXP5puDS/SiudJGhw7DPyBqn3487qD4F0lsC0q3zxink37f7zeA==" - }, "multihashing-async": { "version": "0.4.8", "resolved": "https://registry.npmjs.org/multihashing-async/-/multihashing-async-0.4.8.tgz", @@ -6822,15 +6987,10 @@ "async": "2.6.1", "blakejs": "1.1.0", "js-sha3": "0.7.0", - "multihashes": "0.4.13", + "multihashes": "0.4.14", "murmurhash3js": "3.0.1", "nodeify": "1.0.1" } - }, - "tweetnacl": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.0.tgz", - "integrity": "sha1-cT2LgY2kIGh0C/aDhtBHnmb8ins=" } } }, @@ -6843,14 +7003,9 @@ "multihashing-async": "0.4.8", "nodeify": "1.0.1", "safe-buffer": "5.1.2", - "secp256k1": "3.5.0" + "secp256k1": "3.5.2" }, "dependencies": { - "js-sha3": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.7.0.tgz", - "integrity": "sha512-Wpks3yBDm0UcL5qlVhwW9Jr9n9i4FfeWBFOOXP5puDS/SiudJGhw7DPyBqn3487qD4F0lsC0q3zxink37f7zeA==" - }, "multihashing-async": { "version": "0.4.8", "resolved": "https://registry.npmjs.org/multihashing-async/-/multihashing-async-0.4.8.tgz", @@ -6859,7 +7014,7 @@ "async": "2.6.1", "blakejs": "1.1.0", "js-sha3": "0.7.0", - "multihashes": "0.4.13", + "multihashes": "0.4.14", "murmurhash3js": "3.0.1", "nodeify": "1.0.1" } @@ -6877,17 +7032,27 @@ "strip-bom": "3.0.0" }, "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + }, "pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=" } } }, "loader-runner": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.3.0.tgz", - "integrity": "sha1-9IKuqC1UPgeSFwDVpG7yb9rGuKI=" + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.3.1.tgz", + "integrity": "sha512-By6ZFY7ETWOc9RFaAIb23IjJVcM4dvJC/N57nmdz9RSkMXvAXGI7SyVlAw3v8vjtDRlqThgVDVmTnr9fqMlxkw==" }, "loader-utils": { "version": "1.1.0", @@ -6897,6 +7062,13 @@ "big.js": "3.2.0", "emojis-list": "2.1.0", "json5": "0.5.1" + }, + "dependencies": { + "big.js": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", + "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==" + } } }, "locate-path": { @@ -6909,15 +7081,20 @@ } }, "lodash": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", - "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", + "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" }, "lodash.assign": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=" }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=" + }, "lodash.filter": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/lodash.filter/-/lodash.filter-4.6.0.tgz", @@ -6969,9 +7146,9 @@ "integrity": "sha1-LvpUw7HLq6m5Su4uWRSwvlf7t0k=" }, "loose-envify": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", - "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "requires": { "js-tokens": "3.0.2" } @@ -6996,44 +7173,11 @@ "integrity": "sha1-81ypHEk/e3PaDgdJUwTxezH4fuU=" }, "mafmt": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/mafmt/-/mafmt-6.0.0.tgz", - "integrity": "sha512-ikjvRXcbEu/kpSQSUlCX5mj2sRZs18rjFAR3azO7mTJ1HPtTcd1XL5y/ey5wSuRjX4dsgGIPEc9VYF3dUaudPw==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/mafmt/-/mafmt-6.0.2.tgz", + "integrity": "sha512-+ydrVDp/bo2GPTNN0378AFX66IJBlbrIBY0RaILWC9AICr9kviX5fonHeKsZiesEuuYetQeRhnZPL/J2k8vHAA==", "requires": { - "multiaddr": "4.0.0" - }, - "dependencies": { - "base-x": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.4.tgz", - "integrity": "sha512-UYOadoSIkEI/VrRGSG6qp93rp2WdokiAiNYDfGW5qURAY8GiAQkvMbwNNSDYiVJopqv4gCna7xqf4rrNGp+5AA==", - "requires": { - "safe-buffer": "5.1.2" - } - }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", - "requires": { - "base-x": "3.0.4" - } - }, - "multiaddr": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/multiaddr/-/multiaddr-4.0.0.tgz", - "integrity": "sha512-zUatrOCfBd/tJNOSoJ10d2EI2FDXB9PyPZhqUMdXE9mOyR3C+HLuOjga2Ga/eChwvEHIpTYRMoIKF2Nv7af2qQ==", - "requires": { - "bs58": "4.0.1", - "class-is": "1.1.0", - "ip": "1.1.5", - "ip-address": "5.8.9", - "lodash.filter": "4.6.0", - "lodash.map": "4.6.0", - "varint": "5.0.0", - "xtend": "4.0.1" - } - } + "multiaddr": "5.0.0" } }, "magic-string": { @@ -7082,12 +7226,13 @@ } }, "md5.js": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz", - "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=", + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", + "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", "requires": { "hash-base": "3.0.4", - "inherits": "2.0.3" + "inherits": "2.0.3", + "safe-buffer": "5.1.2" } }, "media-typer": { @@ -7151,6 +7296,13 @@ "integrity": "sha1-pd5GU42uhNQRTMXqArR3KmNGcB8=", "requires": { "source-map": "0.5.7" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + } } }, "merge-stream": { @@ -7162,9 +7314,9 @@ } }, "merkle-patricia-tree": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/merkle-patricia-tree/-/merkle-patricia-tree-2.3.1.tgz", - "integrity": "sha512-Qp9Mpb3xazznXzzGQBqHbqCpT2AR9joUOHYYPiQjYCarrdCPCnLWXo4BFv77y4xN26KR224xoU1n/qYY7RYYgw==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/merkle-patricia-tree/-/merkle-patricia-tree-2.3.2.tgz", + "integrity": "sha512-81PW5m8oz/pz3GvsAwbauj7Y00rqm81Tzad77tHBwU7pIAtN+TJnMSOJhxBKflSVYhptMMb9RskhqHqrSm1V+g==", "requires": { "async": "1.5.2", "ethereumjs-util": "5.2.0", @@ -7192,7 +7344,7 @@ "keccak": "1.4.0", "rlp": "2.1.0", "safe-buffer": "5.1.2", - "secp256k1": "3.5.0" + "secp256k1": "3.5.2" } } } @@ -7220,6 +7372,21 @@ "object.omit": "2.0.1", "parse-glob": "3.0.4", "regex-cache": "0.4.4" + }, + "dependencies": { + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=" + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "requires": { + "is-extglob": "1.0.0" + } + } } }, "miller-rabin": { @@ -7237,16 +7404,16 @@ "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==" }, "mime-db": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", - "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==" + "version": "1.36.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.36.0.tgz", + "integrity": "sha512-L+xvyD9MkoYMXb1jAmzI/lWYAxAMCPvIBSWur0PZ5nOf5euahRLVqH//FKW9mWp2lkqUgYiXPgkzfMUFi4zVDw==" }, "mime-types": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", - "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", + "version": "2.1.20", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.20.tgz", + "integrity": "sha512-HrkrPaP9vGuWbLK1B1FfgAkbqNjIuy4eHlIYnFi7kamZyLLrGlo2mpcx0bBmNpKqBtYtAfGbodDddIgddSJC2A==", "requires": { - "mime-db": "1.33.0" + "mime-db": "1.36.0" } }, "mimic-fn": { @@ -7255,9 +7422,9 @@ "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==" }, "mimic-response": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.0.tgz", - "integrity": "sha1-3z02Uqc/3ta5sLJBRub9BSNTRY4=" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" }, "min-document": { "version": "2.19.0", @@ -7303,8 +7470,19 @@ "parallel-transform": "1.1.0", "pump": "2.0.1", "pumpify": "1.5.1", - "stream-each": "1.2.2", + "stream-each": "1.2.3", "through2": "2.0.3" + }, + "dependencies": { + "pump": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "requires": { + "end-of-stream": "1.4.1", + "once": "1.4.0" + } + } } }, "mixin-deep": { @@ -7380,6 +7558,19 @@ "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==" }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "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-flag": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", @@ -7396,9 +7587,9 @@ } }, "mock-fs": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-4.5.0.tgz", - "integrity": "sha512-qqudNfOX7ZmX9vm1WIAU+gWlmxVNAnwY6UG3RkFutNywmRCUGP83tujP6IxX2DS1TmcaEZBOhYwDuYEmJYE+3w==" + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/mock-fs/-/mock-fs-4.7.0.tgz", + "integrity": "sha512-WlQNtUlzMRpvLHf8dqeUmNqfdPjGY29KrJF50Ldb4AcL+vQeR8QH3wQcFMgrhTwb1gHjZn9xggho+84tBskLgA==" }, "moment": { "version": "2.22.2", @@ -7441,24 +7632,6 @@ "lodash.map": "4.6.0", "varint": "5.0.0", "xtend": "4.0.1" - }, - "dependencies": { - "base-x": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.4.tgz", - "integrity": "sha512-UYOadoSIkEI/VrRGSG6qp93rp2WdokiAiNYDfGW5qURAY8GiAQkvMbwNNSDYiVJopqv4gCna7xqf4rrNGp+5AA==", - "requires": { - "safe-buffer": "5.1.2" - } - }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", - "requires": { - "base-x": "3.0.4" - } - } } }, "multibase": { @@ -7467,16 +7640,6 @@ "integrity": "sha512-fnYvZJWDn3eSJ7EeWvS8zbOpRwuyPHpDggSnqGXkQMvYED5NdO9nyqnZboGvAT+r/60J8KZ09tW8YJHkS22sFw==", "requires": { "base-x": "3.0.4" - }, - "dependencies": { - "base-x": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.4.tgz", - "integrity": "sha512-UYOadoSIkEI/VrRGSG6qp93rp2WdokiAiNYDfGW5qURAY8GiAQkvMbwNNSDYiVJopqv4gCna7xqf4rrNGp+5AA==", - "requires": { - "safe-buffer": "5.1.2" - } - } } }, "multicodec": { @@ -7488,30 +7651,12 @@ } }, "multihashes": { - "version": "0.4.13", - "resolved": "https://registry.npmjs.org/multihashes/-/multihashes-0.4.13.tgz", - "integrity": "sha512-HwJGEKPCpLlNlgGQA56CYh/Wsqa+c4JAq8+mheIgw7OK5T4QvNJqgp6TH8gZ4q4l1aiWeNat/H/MrFXmTuoFfQ==", + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/multihashes/-/multihashes-0.4.14.tgz", + "integrity": "sha512-V/g/EIN6nALXfS/xHUAgtfPP3mn3sPIF/i9beuGKf25QXS2QZYCpeVJbDPEannkz32B2fihzCe2D/KMrbcmefg==", "requires": { "bs58": "4.0.1", "varint": "5.0.0" - }, - "dependencies": { - "base-x": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.4.tgz", - "integrity": "sha512-UYOadoSIkEI/VrRGSG6qp93rp2WdokiAiNYDfGW5qURAY8GiAQkvMbwNNSDYiVJopqv4gCna7xqf4rrNGp+5AA==", - "requires": { - "safe-buffer": "5.1.2" - } - }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", - "requires": { - "base-x": "3.0.4" - } - } } }, "multihashing-async": { @@ -7522,16 +7667,9 @@ "async": "2.6.1", "blakejs": "1.1.0", "js-sha3": "0.7.0", - "multihashes": "0.4.13", + "multihashes": "0.4.14", "murmurhash3js": "3.0.1", "nodeify": "1.0.1" - }, - "dependencies": { - "js-sha3": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.7.0.tgz", - "integrity": "sha512-Wpks3yBDm0UcL5qlVhwW9Jr9n9i4FfeWBFOOXP5puDS/SiudJGhw7DPyBqn3487qD4F0lsC0q3zxink37f7zeA==" - } } }, "multipart-stream": { @@ -7557,12 +7695,19 @@ "any-promise": "1.3.0", "object-assign": "4.1.1", "thenify-all": "1.6.0" + }, + "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + } } }, "nan": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", - "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==" + "version": "2.11.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.11.1.tgz", + "integrity": "sha512-iji6k87OSXa0CcrLl9z+ZiYSuR2o+c0bGuNmXdrhTQTakxytAFsC56SArGYoiHlJlFoHSnvmhpceZJaXkVuOtA==" }, "nano-ipfs-store": { "version": "0.1.3", @@ -7584,16 +7729,15 @@ "integrity": "sha512-O84Y3Qx6UPRNGSApxHQ2xtp3xHOOhYK99JQaJ2phanHIA/JTIEJLvzV6bUwzVz2k3nFwEOfaqzgpUH8QME1BzA==" }, "nanomatch": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.9.tgz", - "integrity": "sha512-n8R9bS8yQ6eSXaV6jHUpKzD8gLsin02w1HSFiegwrs9E098Ylhw5jdyKPaYqvHknHaSCKTPp7C8dGCQ0q9koXA==", + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", "requires": { "arr-diff": "4.0.0", "array-unique": "0.3.2", "define-property": "2.0.2", "extend-shallow": "3.0.2", "fragment-cache": "0.2.1", - "is-odd": "2.0.0", "is-windows": "1.0.2", "kind-of": "6.0.2", "object.pick": "1.3.0", @@ -7612,6 +7756,23 @@ "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=" }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "requires": { + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "2.0.4" + } + }, "kind-of": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", @@ -7636,14 +7797,14 @@ "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=" }, "neo-async": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.5.1.tgz", - "integrity": "sha512-3KL3fvuRkZ7s4IFOMfztb7zJp3QaVWnBeGoJlgB38XnCRPj/0tLzzLG5IB8NYOHbJ8g8UGrgZv44GLDk6CxTxA==" + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.5.2.tgz", + "integrity": "sha512-vdqTKI9GBIYcAEbFAcpKPErKINfPF5zIuz3/niBfq8WUZjpT2tytLlFVrBgWdOtqI4uaA/Rb6No0hux39XXDuw==" }, "next": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/next/-/next-6.0.3.tgz", - "integrity": "sha1-t1n94uxIZPkhFs7k/NgFqvKFE2w=", + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/next/-/next-6.1.2.tgz", + "integrity": "sha512-/l0YNpHlph0l2VthNSzeADKZQJrF2Bq7a3OB0Cl91yeLYn+1y3oV9hQX/H6pj5lORai9fHGjooTwpqCOFfcnxg==", "requires": { "@babel/core": "7.0.0-beta.42", "@babel/plugin-proposal-class-properties": "7.0.0-beta.42", @@ -7657,7 +7818,7 @@ "@babel/template": "7.0.0-beta.42", "ansi-html": "0.0.7", "babel-core": "7.0.0-bridge.0", - "babel-loader": "8.0.0-beta.2", + "babel-loader": "8.0.0-beta.3", "babel-plugin-react-require": "3.0.0", "babel-plugin-transform-react-remove-prop-types": "0.4.13", "case-sensitive-paths-webpack-plugin": "2.1.1", @@ -7669,7 +7830,7 @@ "fresh": "0.5.2", "friendly-errors-webpack-plugin": "1.6.1", "glob": "7.1.2", - "hoist-non-react-statics": "2.5.0", + "hoist-non-react-statics": "2.5.5", "htmlescape": "1.1.1", "http-errors": "1.6.2", "http-status": "1.0.1", @@ -7679,7 +7840,7 @@ "path-to-regexp": "2.1.0", "prop-types": "15.6.0", "prop-types-exact": "1.1.1", - "react-hot-loader": "4.1.3", + "react-lifecycles-compat": "3.0.4", "recursive-copy": "2.0.6", "resolve": "1.5.0", "send": "0.16.1", @@ -7689,7 +7850,7 @@ "touch": "3.1.0", "uglifyjs-webpack-plugin": "1.1.6", "unfetch": "3.0.0", - "update-check": "1.4.0", + "update-check": "1.5.2", "url": "0.11.0", "uuid": "3.1.0", "walk": "2.3.9", @@ -7698,19 +7859,47 @@ "webpack-hot-middleware": "2.19.1", "webpack-sources": "1.1.0", "write-file-webpack-plugin": "4.2.0" - } - }, - "next-routes": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/next-routes/-/next-routes-1.4.2.tgz", - "integrity": "sha512-1Ljs0BEV9IGcJLKxC/WZUtmftSvmkY6DlI8fVs8dClCoR82QRzBGRka/L/XB76wE5814MMeP9qVJYQil0FE9QQ==", - "requires": { - "path-to-regexp": "2.1.0" - } - }, - "next-tick": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + }, + "dependencies": { + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "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" + } + }, + "resolve": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.5.0.tgz", + "integrity": "sha512-hgoSGrc3pjzAPHNBg+KnFcK2HwlHTs/YrAGUr6qgTVUZmXv1UEXXl0bZNBKMA9fud6lRYFdPGz0xXxycPzmmiw==", + "requires": { + "path-parse": "1.0.6" + } + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + } + } + }, + "next-routes": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/next-routes/-/next-routes-1.4.2.tgz", + "integrity": "sha512-1Ljs0BEV9IGcJLKxC/WZUtmftSvmkY6DlI8fVs8dClCoR82QRzBGRka/L/XB76wE5814MMeP9qVJYQil0FE9QQ==", + "requires": { + "path-to-regexp": "2.1.0" + } + }, + "next-tick": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=" }, "node-fetch": { @@ -7723,9 +7912,9 @@ } }, "node-forge": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.5.tgz", - "integrity": "sha512-MmbQJ2MTESTjt3Gi/3yG1wGpIMhUfcIypUCGtTizFR9IiccFwxSpfp0vtIZlkFclEqERemxfnSdZEMR9VqqEFQ==" + "version": "0.7.6", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.6.tgz", + "integrity": "sha512-sol30LUpz1jQFBjOKwbjxijiE3b6pjd74YwfD0fJOKPjF+fONKb2Yg8rYgS6+bK6VDl+/wfr4IYpC7jDzLUIfw==" }, "node-libs-browser": { "version": "2.1.0", @@ -7753,15 +7942,10 @@ "timers-browserify": "2.0.10", "tty-browserify": "0.0.0", "url": "0.11.0", - "util": "0.10.3", + "util": "0.10.4", "vm-browserify": "0.0.4" }, "dependencies": { - "process": { - "version": "0.11.10", - "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", - "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=" - }, "punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", @@ -7776,16 +7960,6 @@ "requires": { "is-promise": "1.0.1", "promise": "1.3.0" - }, - "dependencies": { - "promise": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/promise/-/promise-1.3.0.tgz", - "integrity": "sha1-5cyaTIJ45GZP/twBx9qEhCsEAXU=", - "requires": { - "is-promise": "1.0.1" - } - } } }, "nopt": { @@ -7801,10 +7975,10 @@ "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", "requires": { - "hosted-git-info": "2.6.0", + "hosted-git-info": "2.7.1", "is-builtin-module": "1.0.0", - "semver": "5.5.0", - "validate-npm-package-license": "3.0.3" + "semver": "5.5.1", + "validate-npm-package-license": "3.0.4" } }, "normalize-path": { @@ -7845,14 +8019,14 @@ } }, "oauth-sign": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=" + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" }, "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", + "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=" }, "object-copy": { "version": "0.1.0", @@ -7875,14 +8049,14 @@ } }, "object-inspect": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.6.0.tgz", - "integrity": "sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==" + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.4.1.tgz", + "integrity": "sha512-wqdhLpfCUbEsoEwl3FXwGyv8ief1k/1aUdIPCqVnupM6e8l63BEJdiF/0swtn04/8p05tG/T0FrpTlfwvljOdw==" }, "object-keys": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.11.tgz", - "integrity": "sha1-xUYBd4rVYPEULODgG8yotW0TQm0=" + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz", + "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==" }, "object-visit": { "version": "1.0.1", @@ -7904,10 +8078,19 @@ "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", "requires": { - "define-properties": "1.1.2", + "define-properties": "1.1.3", "function-bind": "1.1.1", "has-symbols": "1.0.0", - "object-keys": "1.0.11" + "object-keys": "1.0.12" + } + }, + "object.getownpropertydescriptors": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", + "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", + "requires": { + "define-properties": "1.1.3", + "es-abstract": "1.12.0" } }, "object.omit": { @@ -7963,7 +8146,7 @@ "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz", "integrity": "sha1-yQlBrVnkJzMokjB00s8ufLxuwNk=", "requires": { - "wordwrap": "0.0.2" + "wordwrap": "0.0.3" } }, "optionator": { @@ -8036,9 +8219,9 @@ "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" }, "p-limit": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.2.0.tgz", - "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", "requires": { "p-try": "1.0.0" } @@ -8048,7 +8231,7 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "requires": { - "p-limit": "1.2.0" + "p-limit": "1.3.0" } }, "p-map": { @@ -8093,7 +8276,19 @@ "browserify-aes": "1.2.0", "create-hash": "1.2.0", "evp_bytestokey": "1.0.3", - "pbkdf2": "3.0.16" + "pbkdf2": "3.0.17" + }, + "dependencies": { + "asn1.js": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.10.1.tgz", + "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", + "requires": { + "bn.js": "4.11.8", + "inherits": "2.0.3", + "minimalistic-assert": "1.0.1" + } + } } }, "parse-glob": { @@ -8105,6 +8300,21 @@ "is-dotfile": "1.0.3", "is-extglob": "1.0.0", "is-glob": "2.0.1" + }, + "dependencies": { + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=" + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "requires": { + "is-extglob": "1.0.0" + } + } } }, "parse-headers": { @@ -8121,7 +8331,7 @@ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", "requires": { - "error-ex": "1.3.1" + "error-ex": "1.3.2" } }, "parseurl": { @@ -8165,9 +8375,9 @@ "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" }, "path-parse": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", - "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=" + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" }, "path-to-regexp": { "version": "2.1.0", @@ -8190,9 +8400,9 @@ } }, "pbkdf2": { - "version": "3.0.16", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.16.tgz", - "integrity": "sha512-y4CXP3thSxqf7c0qmOF+9UeOTrifiVTIM+u7NWlq+PRsHbr7r7dpCmvzrZxa96JJUNi0Y5w9VqG5ZNeCVMoDcA==", + "version": "3.0.17", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", + "integrity": "sha512-U/il5MsrZp7mGg3mSQfn742na2T+1/vHDCG5/iTI3X9MKUuYUZVLQhyRsg06mCgDBTd57TxzgZt7P+fYfjRLtA==", "requires": { "create-hash": "1.2.0", "create-hmac": "1.1.7", @@ -8208,8 +8418,8 @@ "requires": { "async": "2.6.1", "libp2p-crypto": "0.13.0", - "lodash": "4.17.10", - "multihashes": "0.4.13" + "lodash": "4.17.11", + "multihashes": "0.4.14" } }, "peer-info": { @@ -8218,42 +8428,11 @@ "integrity": "sha512-I9K+q7sisU0gg5ej6ekbhgolwlcm1tc2wDtLmumptoLYx0DkIT8WVHtgoTnupYwRRqcYADtwddFdiXfb8QFqzg==", "requires": { "lodash.uniqby": "4.7.0", - "mafmt": "6.0.0", + "mafmt": "6.0.2", "multiaddr": "4.0.0", "peer-id": "0.10.7" }, "dependencies": { - "asn1.js": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.0.1.tgz", - "integrity": "sha512-aO8EaEgbgqq77IEw+1jfx5c9zTbzvkfuRBuZsSsPnTHMkmd5AI4J6OtITLZFa381jReeaQL67J0GBTUu0+ZTVw==", - "requires": { - "bn.js": "4.11.8", - "inherits": "2.0.3", - "minimalistic-assert": "1.0.1" - } - }, - "base-x": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.4.tgz", - "integrity": "sha512-UYOadoSIkEI/VrRGSG6qp93rp2WdokiAiNYDfGW5qURAY8GiAQkvMbwNNSDYiVJopqv4gCna7xqf4rrNGp+5AA==", - "requires": { - "safe-buffer": "5.1.2" - } - }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", - "requires": { - "base-x": "3.0.4" - } - }, - "js-sha3": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.7.0.tgz", - "integrity": "sha512-Wpks3yBDm0UcL5qlVhwW9Jr9n9i4FfeWBFOOXP5puDS/SiudJGhw7DPyBqn3487qD4F0lsC0q3zxink37f7zeA==" - }, "libp2p-crypto": { "version": "0.12.1", "resolved": "https://registry.npmjs.org/libp2p-crypto/-/libp2p-crypto-0.12.1.tgz", @@ -8266,7 +8445,7 @@ "keypair": "1.0.1", "libp2p-crypto-secp256k1": "0.2.2", "multihashing-async": "0.4.8", - "node-forge": "0.7.5", + "node-forge": "0.7.6", "pem-jwk": "1.5.1", "protons": "1.0.1", "rsa-pem-to-jwk": "1.1.3", @@ -8297,7 +8476,7 @@ "async": "2.6.1", "blakejs": "1.1.0", "js-sha3": "0.7.0", - "multihashes": "0.4.13", + "multihashes": "0.4.14", "murmurhash3js": "3.0.1", "nodeify": "1.0.1" } @@ -8309,14 +8488,9 @@ "requires": { "async": "2.6.1", "libp2p-crypto": "0.12.1", - "lodash": "4.17.10", - "multihashes": "0.4.13" + "lodash": "4.17.11", + "multihashes": "0.4.14" } - }, - "tweetnacl": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.0.tgz", - "integrity": "sha1-cT2LgY2kIGh0C/aDhtBHnmb8ins=" } } }, @@ -8413,9 +8587,9 @@ "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==" }, "process": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/process/-/process-0.5.2.tgz", - "integrity": "sha1-FjjYqONML0QKkduVq5rrZ3/Bhc8=" + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=" }, "process-nextick-args": { "version": "2.0.0", @@ -8423,11 +8597,11 @@ "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" }, "promise": { - "version": "7.3.1", - "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", - "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", + "version": "1.3.0", + "resolved": "http://registry.npmjs.org/promise/-/promise-1.3.0.tgz", + "integrity": "sha1-5cyaTIJ45GZP/twBx9qEhCsEAXU=", "requires": { - "asap": "2.0.6" + "is-promise": "1.0.1" } }, "promise-inflight": { @@ -8454,9 +8628,16 @@ "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.0.tgz", "integrity": "sha1-zq8IMCL8RrSjX2nhPvda7Q1jmFY=", "requires": { - "fbjs": "0.8.16", - "loose-envify": "1.3.1", + "fbjs": "0.8.17", + "loose-envify": "1.4.0", "object-assign": "4.1.1" + }, + "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + } } }, "prop-types-exact": { @@ -8464,7 +8645,7 @@ "resolved": "https://registry.npmjs.org/prop-types-exact/-/prop-types-exact-1.1.1.tgz", "integrity": "sha512-VrFC2QoIt7oj9bxVTAYDfDMBYV3u+VHQUOWJWk9OURT7uwPEenH879MQoAQ/reY2GZ55il6p/eCqHRs2nqm8wA==", "requires": { - "has": "1.0.1", + "has": "1.0.3", "object.assign": "4.1.0" } }, @@ -8485,12 +8666,12 @@ } }, "proxy-addr": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.3.tgz", - "integrity": "sha512-jQTChiCJteusULxjBp8+jftSQE5Obdl3k4cnmLA6WXtK6XFuWRnvVL7aCiBqaLPM8c4ph0S4tKna8XvmIwEnXQ==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz", + "integrity": "sha512-5erio2h9jp5CHGwcybmxmVqHmnCBZeewlfJ0pex+UW7Qny7OOZXTtH56TGNyBizkgiOwhJtMKrVzDTeKcySZwA==", "requires": { "forwarded": "0.1.2", - "ipaddr.js": "1.6.0" + "ipaddr.js": "1.8.0" } }, "prr": { @@ -8503,22 +8684,28 @@ "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" }, + "psl": { + "version": "1.1.29", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.29.tgz", + "integrity": "sha512-AeUmQ0oLN02flVHXWh9sSJF7mcdFq0ppid/JkErufc3hGIV/AMa8Fo9VgDo/cT2jFdOWoFvHp90qqBH54W+gjQ==" + }, "public-encrypt": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.2.tgz", - "integrity": "sha512-4kJ5Esocg8X3h8YgJsKAuoesBgB7mqH3eowiDzMUPKiRDDE7E/BqqZD1hnTByIaAFiwAw246YEltSq7tdrOH0Q==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", + "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", "requires": { "bn.js": "4.11.8", "browserify-rsa": "4.0.1", "create-hash": "1.2.0", "parse-asn1": "5.1.1", - "randombytes": "2.0.6" + "randombytes": "2.0.6", + "safe-buffer": "5.1.2" } }, "pull-defer": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/pull-defer/-/pull-defer-0.2.2.tgz", - "integrity": "sha1-CIew/7MK8ypW2+z6csFnInHwexM=" + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/pull-defer/-/pull-defer-0.2.3.tgz", + "integrity": "sha512-/An3KE7mVjZCqNhZsr22k1Tx8MACnUnHZZNPSJ0S62td8JtYr/AiRG42Vz7Syu31SoTLUzVIe61jtT/pNdjVYA==" }, "pull-pushable": { "version": "2.2.0", @@ -8526,9 +8713,9 @@ "integrity": "sha1-Xy867UethpGfAbEqLpnW8b13ZYE=" }, "pull-stream": { - "version": "3.6.8", - "resolved": "https://registry.npmjs.org/pull-stream/-/pull-stream-3.6.8.tgz", - "integrity": "sha512-wQUIptQBcM0rFsUhZoEpOT3vUn73DtTGVq3NQ86c4T7iMOSprDzeKWYq2ksXnbwiuExTKvt+8G9fzNLFQuiO+A==" + "version": "3.6.9", + "resolved": "https://registry.npmjs.org/pull-stream/-/pull-stream-3.6.9.tgz", + "integrity": "sha512-hJn4POeBrkttshdNl0AoSCVjMVSuBwuHocMerUdoZ2+oIUzrWHFTwJMlbHND7OiKLVgvz6TFj8ZUVywUMXccbw==" }, "pull-stream-to-stream": { "version": "1.3.4", @@ -8541,9 +8728,9 @@ "integrity": "sha1-dPtde+f6a9enjpeTPhmbeUWGaTg=" }, "pump": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", - "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", "requires": { "end-of-stream": "1.4.1", "once": "1.4.0" @@ -8557,6 +8744,17 @@ "duplexify": "3.6.0", "inherits": "2.0.3", "pump": "2.0.1" + }, + "dependencies": { + "pump": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "requires": { + "end-of-stream": "1.4.1", + "once": "1.4.0" + } + } } }, "punycode": { @@ -8577,6 +8775,13 @@ "decode-uri-component": "0.2.0", "object-assign": "4.1.1", "strict-uri-encode": "1.1.0" + }, + "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + } } }, "querystring": { @@ -8600,9 +8805,9 @@ } }, "randomatic": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.0.0.tgz", - "integrity": "sha512-VdxFOIEY3mNO5PtSRkkle/hPJDHvQhK21oa73K4yAc9qmp6N429gAyF1gZMOTMeS0/AYzaV/2Trcef+NaIonSA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.1.0.tgz", + "integrity": "sha512-KnGPVE0lo2WoXxIZ7cPR8YBpiol4gsSuOwDSg410oHh80ZMp5EiypNqL2K4Z77vJn6lB5rap7IkAmcUlalcnBQ==", "requires": { "is-number": "4.0.0", "kind-of": "6.0.2", @@ -8675,6 +8880,14 @@ "statuses": "1.5.0" } }, + "iconv-lite": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", + "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "requires": { + "safer-buffer": "2.1.2" + } + }, "setprototypeof": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", @@ -8694,101 +8907,389 @@ } }, "react": { - "version": "16.4.0", - "resolved": "https://registry.npmjs.org/react/-/react-16.4.0.tgz", - "integrity": "sha512-K0UrkLXSAekf5nJu89obKUM7o2vc6MMN9LYoKnCa+c+8MJRAT120xzPLENcWSRc7GYKIg0LlgJRDorrufdglQQ==", + "version": "16.5.2", + "resolved": "https://registry.npmjs.org/react/-/react-16.5.2.tgz", + "integrity": "sha512-FDCSVd3DjVTmbEAjUNX6FgfAmQ+ypJfHUsqUJOYNCBUp1h8lqmtC+0mXJ+JjsWx4KAVTkk1vKd1hLQPvEviSuw==", "requires": { - "fbjs": "0.8.16", - "loose-envify": "1.3.1", + "loose-envify": "1.4.0", "object-assign": "4.1.1", - "prop-types": "15.6.0" + "prop-types": "15.6.2", + "schedule": "0.5.0" + }, + "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + }, + "prop-types": { + "version": "15.6.2", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.2.tgz", + "integrity": "sha512-3pboPvLiWD7dkI3qf3KbUe6hKFKa52w+AE0VCqECtf+QHAKgOL37tTaNCnuX1nAAQ4ZhyP+kYVKf8rLmJ/feDQ==", + "requires": { + "loose-envify": "1.4.0", + "object-assign": "4.1.1" + } + } } }, "react-dom": { - "version": "16.4.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.4.0.tgz", - "integrity": "sha512-bbLd+HYpBEnYoNyxDe9XpSG2t9wypMohwQPvKw8Hov3nF7SJiJIgK56b46zHpBUpHb06a1iEuw7G3rbrsnNL6w==", + "version": "16.5.2", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.5.2.tgz", + "integrity": "sha512-RC8LDw8feuZOHVgzEf7f+cxBr/DnKdqp56VU0lAs1f4UfKc4cU8wU4fTq/mgnvynLQo8OtlPC19NUFh/zjZPuA==", "requires": { - "fbjs": "0.8.16", - "loose-envify": "1.3.1", + "loose-envify": "1.4.0", "object-assign": "4.1.1", - "prop-types": "15.6.0" + "prop-types": "15.6.2", + "schedule": "0.5.0" + }, + "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + }, + "prop-types": { + "version": "15.6.2", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.2.tgz", + "integrity": "sha512-3pboPvLiWD7dkI3qf3KbUe6hKFKa52w+AE0VCqECtf+QHAKgOL37tTaNCnuX1nAAQ4ZhyP+kYVKf8rLmJ/feDQ==", + "requires": { + "loose-envify": "1.4.0", + "object-assign": "4.1.1" + } + } } }, - "react-hot-loader": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/react-hot-loader/-/react-hot-loader-4.1.3.tgz", - "integrity": "sha512-CF3Y/qUfL1PkM6TPrELNsSiHGKJFRnpyLdzsk+HV4IIuQAY2g1aZXQmK4L/O8WOaldoOujxAYfRfpzrWTvmvtg==", + "react-lifecycles-compat": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", + "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==" + }, + "read-pkg": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", + "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", "requires": { - "fast-levenshtein": "2.0.6", - "global": "4.3.2", - "hoist-non-react-statics": "2.5.0", - "prop-types": "15.6.1", - "react-lifecycles-compat": "3.0.4", - "shallowequal": "1.0.2" + "load-json-file": "2.0.0", + "normalize-package-data": "2.4.0", + "path-type": "2.0.0" + } + }, + "read-pkg-up": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", + "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", + "requires": { + "find-up": "2.1.0", + "read-pkg": "2.0.0" + } + }, + "readable-stream": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", + "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.2", + "string_decoder": "1.1.1", + "util-deprecate": "1.0.2" + } + }, + "readdirp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "requires": { + "graceful-fs": "4.1.11", + "micromatch": "3.1.10", + "readable-stream": "2.3.6" }, "dependencies": { - "prop-types": { - "version": "15.6.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz", - "integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==", + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=" + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=" + }, + "braces": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", + "requires": { + "arr-flatten": "1.1.0", + "array-unique": "0.3.2", + "extend-shallow": "2.0.1", + "fill-range": "4.0.0", + "isobject": "3.0.1", + "repeat-element": "1.1.3", + "snapdragon": "0.8.2", + "snapdragon-node": "2.1.1", + "split-string": "3.1.0", + "to-regex": "3.0.2" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "requires": { + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "posix-character-classes": "0.1.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" + } + } + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "requires": { + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "2.0.4" + } + } + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "requires": { + "array-unique": "0.3.2", + "define-property": "1.0.0", + "expand-brackets": "2.1.4", + "extend-shallow": "2.0.1", + "fragment-cache": "0.2.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "requires": { + "extend-shallow": "2.0.1", + "is-number": "3.0.0", + "repeat-string": "1.6.1", + "to-regex-range": "2.1.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", "requires": { - "fbjs": "0.8.16", - "loose-envify": "1.3.1", - "object-assign": "4.1.1" + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "braces": "2.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "extglob": "2.0.4", + "fragment-cache": "0.2.1", + "kind-of": "6.0.2", + "nanomatch": "1.2.13", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" } } } }, - "react-lifecycles-compat": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", - "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==" - }, - "read-pkg": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", - "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", - "requires": { - "load-json-file": "2.0.0", - "normalize-package-data": "2.4.0", - "path-type": "2.0.0" - } - }, - "read-pkg-up": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", - "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", - "requires": { - "find-up": "2.1.0", - "read-pkg": "2.0.0" - } - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "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.2", - "string_decoder": "1.1.1", - "util-deprecate": "1.0.2" - } - }, - "readdirp": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", - "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", - "requires": { - "graceful-fs": "4.1.11", - "minimatch": "3.0.4", - "readable-stream": "2.3.6", - "set-immediate-shim": "1.0.1" - } - }, "recursive-copy": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/recursive-copy/-/recursive-copy-2.0.6.tgz", @@ -8827,16 +9328,34 @@ "requires": { "array-union": "1.0.2", "arrify": "1.0.1", - "glob": "7.1.2", + "glob": "7.1.3", "object-assign": "4.1.1", "pify": "2.3.0", "pinkie-promise": "2.0.1" } }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + }, "pify": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" + }, + "promise": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", + "requires": { + "asap": "2.0.6" + } } } }, @@ -8846,9 +9365,9 @@ "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==" }, "regenerate-unicode-properties": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-6.0.0.tgz", - "integrity": "sha512-BvXxRS7RfVWxtm7vrq+0I0j7sqZ1zeSC+yzf5HS0qLnKcZPX541gFEGB39LvGuKHrkyKXrzXug+oC7xkM1Zovw==", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-7.0.0.tgz", + "integrity": "sha512-s5NGghCE4itSlUS+0WUj88G6cfMVMmH8boTPNvABf8od+2dhT9WDlWu8n01raQAJZMOK8Ch6jSexaRO7swd6aw==", "requires": { "regenerate": "1.4.0" } @@ -8881,19 +9400,38 @@ "requires": { "extend-shallow": "3.0.2", "safe-regex": "1.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "requires": { + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "2.0.4" + } + } } }, "regexpu-core": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.1.5.tgz", - "integrity": "sha512-3xo5pFze1F8oR4F9x3aFbdtdxAxQ9WBX6gXfLgeBt7KpDI0+oDF7WVntnhsPKqobU/GAYc2pmx+y3z0JI1+z3w==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.2.0.tgz", + "integrity": "sha512-Z835VSnJJ46CNBttalHD/dB+Sj2ezmY6Xp38npwU87peK6mqOzOpV8eYktdkLTEkzzD+JsTcxd84ozd8I14+rw==", "requires": { "regenerate": "1.4.0", - "regenerate-unicode-properties": "6.0.0", + "regenerate-unicode-properties": "7.0.0", "regjsgen": "0.4.0", "regjsparser": "0.3.0", - "unicode-match-property-ecmascript": "1.0.3", - "unicode-match-property-value-ecmascript": "1.0.1" + "unicode-match-property-ecmascript": "1.0.4", + "unicode-match-property-value-ecmascript": "1.0.2" } }, "registry-auth-token": { @@ -8939,9 +9477,9 @@ "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=" }, "repeat-element": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", - "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=" + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==" }, "repeat-string": { "version": "1.6.1", @@ -8962,30 +9500,37 @@ "integrity": "sha1-KbvZIHinOfC8zitO5B6DeVNSKSQ=" }, "request": { - "version": "2.87.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.87.0.tgz", - "integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==", + "version": "2.88.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", + "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", "requires": { "aws-sign2": "0.7.0", - "aws4": "1.7.0", + "aws4": "1.8.0", "caseless": "0.12.0", - "combined-stream": "1.0.6", - "extend": "3.0.1", + "combined-stream": "1.0.7", + "extend": "3.0.2", "forever-agent": "0.6.1", "form-data": "2.3.2", - "har-validator": "5.0.3", + "har-validator": "5.1.0", "http-signature": "1.2.0", "is-typedarray": "1.0.0", "isstream": "0.1.2", "json-stringify-safe": "5.0.1", - "mime-types": "2.1.18", - "oauth-sign": "0.8.2", + "mime-types": "2.1.20", + "oauth-sign": "0.9.0", "performance-now": "2.1.0", "qs": "6.5.2", "safe-buffer": "5.1.2", - "tough-cookie": "2.3.4", + "tough-cookie": "2.4.3", "tunnel-agent": "0.6.0", - "uuid": "3.1.0" + "uuid": "3.3.2" + }, + "dependencies": { + "uuid": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" + } } }, "require-directory": { @@ -9004,11 +9549,11 @@ "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=" }, "resolve": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.5.0.tgz", - "integrity": "sha512-hgoSGrc3pjzAPHNBg+KnFcK2HwlHTs/YrAGUr6qgTVUZmXv1UEXXl0bZNBKMA9fud6lRYFdPGz0xXxycPzmmiw==", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", + "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", "requires": { - "path-parse": "1.0.5" + "path-parse": "1.0.6" } }, "resolve-url": { @@ -9042,7 +9587,7 @@ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "requires": { - "glob": "7.1.2" + "glob": "7.1.3" } }, "ripemd160": { @@ -9069,13 +9614,6 @@ "requires": { "object-assign": "2.1.1", "rsa-unpack": "0.0.6" - }, - "dependencies": { - "object-assign": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", - "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=" - } } }, "rsa-unpack": { @@ -9104,6 +9642,21 @@ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, + "safe-event-emitter": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/safe-event-emitter/-/safe-event-emitter-1.0.1.tgz", + "integrity": "sha512-e1wFe99A91XYYxoQbcq2ZJUWurxEyP8vfz7A7vuUe1s95q8r5ebraVaA1BukYJcpM6V16ugWoD9vngi8Ccu5fg==", + "requires": { + "events": "3.0.0" + }, + "dependencies": { + "events": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.0.0.tgz", + "integrity": "sha512-Dc381HFWJzEOhQ+d8pkNon++bk9h6cdAoAj4iE6Q4y6xgTzySWXlKn05/TVNpjnfRqi/X0EpJEJohPjNI3zpVA==" + } + } + }, "safe-regex": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", @@ -9122,12 +9675,27 @@ "resolved": "https://registry.npmjs.org/sandwich-stream/-/sandwich-stream-1.0.0.tgz", "integrity": "sha1-eDDkV5e1kzKH8fmyj4cZB0ViYvI=" }, + "schedule": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/schedule/-/schedule-0.5.0.tgz", + "integrity": "sha512-HUcJicG5Ou8xfR//c2rPT0lPIRR09vVvN81T9fqfVgBmhERUbDEQoYKjpBxbueJnCPpSu2ujXzOnRQt6x9o/jw==", + "requires": { + "object-assign": "4.1.1" + }, + "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + } + } + }, "schema-utils": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.5.tgz", - "integrity": "sha512-yYrjb9TX2k/J1Y5UNy3KYdZq10xhYcF8nMpAW6o3hy6Q8WSIEf9lJHG/ePnOBfziPM3fvQwfOwa13U/Fh8qTfA==", + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.4.7.tgz", + "integrity": "sha512-v/iwU6wvwGK8HbU9yi3/nhGzP0yGSuhQMzL6ySiec1FSrZZDkhm4noOSWzrNFo/jEc+SJY6jRTwuwbSXJPDUnQ==", "requires": { - "ajv": "6.5.0", + "ajv": "6.5.4", "ajv-keywords": "3.2.0" } }, @@ -9136,9 +9704,14 @@ "resolved": "https://registry.npmjs.org/scrypt/-/scrypt-6.0.3.tgz", "integrity": "sha1-BOAUpWgrU/pQwtXM4WfXGcBthw0=", "requires": { - "nan": "2.10.0" + "nan": "2.11.1" } }, + "scrypt-js": { + "version": "2.0.3", + "resolved": "http://registry.npmjs.org/scrypt-js/-/scrypt-js-2.0.3.tgz", + "integrity": "sha1-uwBAvgMEPamgEqLOqfyfhSz8h9Q=" + }, "scrypt.js": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/scrypt.js/-/scrypt.js-0.2.0.tgz", @@ -9153,21 +9726,21 @@ "resolved": "https://registry.npmjs.org/scryptsy/-/scryptsy-1.2.1.tgz", "integrity": "sha1-oyJfpLJST4AnAHYeKFW987LZIWM=", "requires": { - "pbkdf2": "3.0.16" + "pbkdf2": "3.0.17" } }, "secp256k1": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-3.5.0.tgz", - "integrity": "sha512-e5QIJl8W7Y4tT6LHffVcZAxJjvpgE5Owawv6/XCYPQljE9aP2NFFddQ8OYMKhdLshNu88FfL3qCN3/xYkXGRsA==", + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-3.5.2.tgz", + "integrity": "sha512-iin3kojdybY6NArd+UFsoTuapOF7bnJNf2UbcWXaY3z+E1sJDipl60vtzB5hbO/uquBu7z0fd4VC4Irp+xoFVQ==", "requires": { "bindings": "1.3.0", "bip66": "1.1.5", "bn.js": "4.11.8", "create-hash": "1.2.0", "drbg.js": "1.0.1", - "elliptic": "6.4.0", - "nan": "2.10.0", + "elliptic": "6.4.1", + "nan": "2.11.1", "safe-buffer": "5.1.2" } }, @@ -9190,9 +9763,9 @@ } }, "semantic-ui-css": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/semantic-ui-css/-/semantic-ui-css-2.3.1.tgz", - "integrity": "sha512-8M2OkoKZHfEnNUYB4Ha8q+tTAWN/g17X2l6HUg6n3DP4QDJLQl1xyhnRvM9UhJpsRvkRqgWgQLbRA6cl7Ep2dw==", + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/semantic-ui-css/-/semantic-ui-css-2.4.0.tgz", + "integrity": "sha512-R5fmNOWSKhRrkLeVC0n47Q1wGMs838VHWolfdeJPSKQ811j7s2jGy+9FbMEmb8u0I3Zdh92HhTEPMNlxZj5sOg==", "requires": { "jquery": "3.3.1" } @@ -9202,32 +9775,40 @@ "resolved": "https://registry.npmjs.org/semantic-ui-react/-/semantic-ui-react-0.80.2.tgz", "integrity": "sha512-1sQ8NkxoDrd2c8wM+kdZ7mz3QMEYsbM1dV7uNe4b8D9VEaHdp640Ktp9DhmyCgXIo5BqdigJcZtb0jcWWGFfQg==", "requires": { - "@babel/runtime": "7.0.0-beta.49", - "classnames": "2.2.5", - "fbjs": "0.8.16", - "keyboard-key": "1.0.1", - "lodash": "4.17.10", - "prop-types": "15.6.1" + "@babel/runtime": "7.1.2", + "classnames": "2.2.6", + "fbjs": "0.8.17", + "keyboard-key": "1.0.2", + "lodash": "4.17.11", + "prop-types": "15.6.2" }, "dependencies": { "@babel/runtime": { - "version": "7.0.0-beta.49", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.0.0-beta.49.tgz", - "integrity": "sha1-A7O/B+uYIHLI6FHdLd1RECguYb8=", + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.1.2.tgz", + "integrity": "sha512-Y3SCjmhSupzFB6wcv1KmmFucH6gDVnI30WjOcicV10ju0cZjak3Jcs67YLIXBrmZYw1xCrVeJPbycFwrqNyxpg==", "requires": { - "core-js": "2.5.7", - "regenerator-runtime": "0.11.1" + "regenerator-runtime": "0.12.1" } }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + }, "prop-types": { - "version": "15.6.1", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz", - "integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==", + "version": "15.6.2", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.2.tgz", + "integrity": "sha512-3pboPvLiWD7dkI3qf3KbUe6hKFKa52w+AE0VCqECtf+QHAKgOL37tTaNCnuX1nAAQ4ZhyP+kYVKf8rLmJ/feDQ==", "requires": { - "fbjs": "0.8.16", - "loose-envify": "1.3.1", + "loose-envify": "1.4.0", "object-assign": "4.1.1" } + }, + "regenerator-runtime": { + "version": "0.12.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz", + "integrity": "sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg==" } } }, @@ -9237,9 +9818,9 @@ "integrity": "sha512-O4OZEaNtkMd/K0i6js9SL+gqy0ZCBMgUvlSqHKi4IBdjhe7wB8pwztUk1BbZ1fmrvpwFrPbHzqd2w5pTcJH6LA==" }, "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==" + "version": "5.5.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.1.tgz", + "integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw==" }, "send": { "version": "0.16.1", @@ -9340,7 +9921,7 @@ "body-parser": "1.18.3", "cors": "2.8.4", "express": "4.16.3", - "request": "2.87.0", + "request": "2.88.0", "xhr": "2.5.0" } }, @@ -9363,16 +9944,6 @@ "is-extendable": "0.1.1", "is-plain-object": "2.0.4", "split-string": "3.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "0.1.1" - } - } } }, "setimmediate": { @@ -9400,6 +9971,13 @@ "integrity": "sha1-pmxQmN5MJbyIM27ItIF9AFvKe6k=", "requires": { "nan": "2.10.0" + }, + "dependencies": { + "nan": { + "version": "2.10.0", + "resolved": "http://registry.npmjs.org/nan/-/nan-2.10.0.tgz", + "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==" + } } }, "shallow-copy": { @@ -9407,11 +9985,6 @@ "resolved": "https://registry.npmjs.org/shallow-copy/-/shallow-copy-0.0.1.tgz", "integrity": "sha1-QV9CcC1z2BAzApLMXuhurhoRoXA=" }, - "shallowequal": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.0.2.tgz", - "integrity": "sha512-zlVXeVUKvo+HEv1e2KQF/csyeMKx2oHvatQ9l6XjCUj3agvC8XGf6R9HvIPDSmp8FNPvx7b5kaEJTRi7CqxtEw==" - }, "shebang-command": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", @@ -9475,7 +10048,7 @@ "map-cache": "0.2.2", "source-map": "0.5.7", "source-map-resolve": "0.5.2", - "use": "3.1.0" + "use": "3.1.1" }, "dependencies": { "debug": { @@ -9494,13 +10067,10 @@ "is-descriptor": "0.1.6" } }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "0.1.1" - } + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" } } }, @@ -9576,7 +10146,7 @@ "fs-extra": "0.30.0", "memorystream": "0.3.1", "require-from-string": "1.2.1", - "semver": "5.5.0", + "semver": "5.5.1", "yargs": "4.8.1" }, "dependencies": { @@ -9604,17 +10174,10 @@ "pinkie-promise": "2.0.1" } }, - "fs-extra": { - "version": "0.30.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.30.0.tgz", - "integrity": "sha1-8jP/zAjU2n1DLapEl3aYnbHfk/A=", - "requires": { - "graceful-fs": "4.1.11", - "jsonfile": "2.4.0", - "klaw": "1.3.1", - "path-is-absolute": "1.0.1", - "rimraf": "2.6.2" - } + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" }, "load-json-file": { "version": "1.1.0", @@ -9688,14 +10251,6 @@ "strip-ansi": "3.0.1" } }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", - "requires": { - "is-utf8": "0.2.1" - } - }, "which-module": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", @@ -9718,7 +10273,7 @@ "requires": { "cliui": "3.2.0", "decamelize": "1.2.0", - "get-caller-file": "1.0.2", + "get-caller-file": "1.0.3", "lodash.assign": "4.2.0", "os-locale": "1.4.0", "read-pkg-up": "1.0.1", @@ -9749,16 +10304,16 @@ "integrity": "sha512-I2UmuJSRr/T8jisiROLU3A3ltr+swpniSmNPI4Ml3ZCX6tVnDsuZzK7F2hl5jTqbZBWCEKlj5HRQiPExXLgE8A==" }, "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" }, "source-map-resolve": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", "requires": { - "atob": "2.1.1", + "atob": "2.1.2", "decode-uri-component": "0.2.0", "resolve-url": "0.2.1", "source-map-url": "0.4.0", @@ -9771,6 +10326,13 @@ "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", "requires": { "source-map": "0.5.7" + }, + "dependencies": { + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + } } }, "source-map-url": { @@ -9779,32 +10341,32 @@ "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=" }, "spdx-correct": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.0.tgz", - "integrity": "sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.2.tgz", + "integrity": "sha512-q9hedtzyXHr5S0A1vEPoK/7l8NpfkFYTq6iCY+Pno2ZbdZR6WexZFtqeVGkGxW3TEJMN914Z55EnAGMmenlIQQ==", "requires": { "spdx-expression-parse": "3.0.0", - "spdx-license-ids": "3.0.0" + "spdx-license-ids": "3.0.1" } }, "spdx-exceptions": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz", - "integrity": "sha512-4K1NsmrlCU1JJgUrtgEeTVyfx8VaYea9J9LvARxhbHtVtohPs/gFGG5yy49beySjlIMhhXZ4QqujIZEfS4l6Cg==" + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==" }, "spdx-expression-parse": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", "requires": { - "spdx-exceptions": "2.1.0", - "spdx-license-ids": "3.0.0" + "spdx-exceptions": "2.2.0", + "spdx-license-ids": "3.0.1" } }, "spdx-license-ids": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz", - "integrity": "sha512-2+EPwgbnmOIl8HjGBXXMd9NAu02vLjOO1nWw4kmeRDFyHn+M/ETfHxQUK0oXg8ctgVnl9t3rosNVsZ1jG61nDA==" + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.1.tgz", + "integrity": "sha512-TfOfPcYGBB5sDuPn3deByxPhmfegAhpDYKSOXZQN81Oyrrif8ZCodOLzK3AesELnCx03kikhyDwh0pfvvQvF8w==" }, "split-string": { "version": "3.1.0", @@ -9812,6 +10374,25 @@ "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", "requires": { "extend-shallow": "3.0.2" + }, + "dependencies": { + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "requires": { + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "2.0.4" + } + } } }, "split2": { @@ -9828,18 +10409,33 @@ "integrity": "sha1-z/yvcC2vZeo5u04PorKZzsGhvkY=" }, "sshpk": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.1.tgz", - "integrity": "sha1-Ew9Zde3a2WPx1W+SuaxsUfqfg+s=", + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz", + "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=", "requires": { - "asn1": "0.2.3", + "asn1": "0.2.4", "assert-plus": "1.0.0", - "bcrypt-pbkdf": "1.0.1", + "bcrypt-pbkdf": "1.0.2", "dashdash": "1.14.1", - "ecc-jsbn": "0.1.1", + "ecc-jsbn": "0.1.2", "getpass": "0.1.7", "jsbn": "0.1.1", + "safer-buffer": "2.1.2", "tweetnacl": "0.14.5" + }, + "dependencies": { + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "optional": true + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "optional": true + } } }, "ssri": { @@ -9893,11 +10489,11 @@ "integrity": "sha512-D8vv82E/Kpmz3TXHKG8PPsCPg+RAX6cbCOyvjM6x04qZtQ47EtJFVwRsdov3n5d6/6ynrOY9XB4JkaZwB2xoRQ==", "requires": { "concat-stream": "1.6.2", - "convert-source-map": "1.5.1", + "convert-source-map": "1.6.0", "duplexer2": "0.1.4", "escodegen": "1.9.1", "falafel": "2.1.0", - "has": "1.0.1", + "has": "1.0.3", "magic-string": "0.22.5", "merge-source-map": "1.0.4", "object-inspect": "1.4.1", @@ -9906,13 +10502,6 @@ "shallow-copy": "0.0.1", "static-eval": "2.0.0", "through2": "2.0.3" - }, - "dependencies": { - "object-inspect": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.4.1.tgz", - "integrity": "sha512-wqdhLpfCUbEsoEwl3FXwGyv8ief1k/1aUdIPCqVnupM6e8l63BEJdiF/0swtn04/8p05tG/T0FrpTlfwvljOdw==" - } } }, "statuses": { @@ -9930,9 +10519,9 @@ } }, "stream-each": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.2.tgz", - "integrity": "sha512-mc1dbFhGBxvTM3bIWmAAINbqiuAk9TATcfIQC8P+/+HJefgaiTlMn2dHvkX8qlI12KeYKSQ1Ua9RrIqrn1VPoA==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz", + "integrity": "sha512-vlMC2f8I2u/bZGqkdfLQW/13Zihpej/7PmSiMQsbYddxuTsJp8vRe2x2FvVExZg7FaOds43ROAuFJwPR4MTZLw==", "requires": { "end-of-stream": "1.4.1", "stream-shift": "1.0.0" @@ -9961,7 +10550,7 @@ "integrity": "sha1-dXYJrhzr0zx0MtSvvjH/eGULnd4=", "requires": { "looper": "3.0.0", - "pull-stream": "3.6.8" + "pull-stream": "3.6.9" } }, "streamifier": { @@ -10021,7 +10610,7 @@ "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz", "integrity": "sha1-0E3iyJ4Tf019IG8Ia17S+ua+jOo=", "requires": { - "define-properties": "1.1.2", + "define-properties": "1.1.3", "es-abstract": "1.12.0", "function-bind": "1.1.1" } @@ -10043,9 +10632,12 @@ } }, "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "requires": { + "is-utf8": "0.2.1" + } }, "strip-dirs": { "version": "2.1.0", @@ -10087,10 +10679,10 @@ "stylis-rule-sheet": "0.0.8" }, "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "convert-source-map": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", + "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=" } } }, @@ -10105,9 +10697,9 @@ "integrity": "sha512-UgR/mJxew0tbNFXzkm60G26bkyYAnzf8OqB9pX2okFYxwEUpuxQ6E5lKhHH23Fs4F5aU6axCtNZRaB8ZdVrWvQ==" }, "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "requires": { "has-flag": "3.0.0" } @@ -10117,29 +10709,43 @@ "resolved": "https://registry.npmjs.org/swarm-js/-/swarm-js-0.1.37.tgz", "integrity": "sha512-G8gi5fcXP/2upwiuOShJ258sIufBVztekgobr3cVgYXObZwJ5AXLqZn52AI+/ffft29pJexF9WNdUxjlkVehoQ==", "requires": { - "bluebird": "3.5.1", - "buffer": "5.1.0", + "bluebird": "3.5.2", + "buffer": "5.2.1", "decompress": "4.2.0", "eth-lib": "0.1.27", "fs-extra": "2.1.2", "fs-promise": "2.0.3", "got": "7.1.0", - "mime-types": "2.1.18", + "mime-types": "2.1.20", "mkdirp-promise": "5.0.1", - "mock-fs": "4.5.0", + "mock-fs": "4.7.0", "setimmediate": "1.0.5", "tar.gz": "1.0.7", "xhr-request-promise": "0.1.2" }, "dependencies": { "buffer": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.1.0.tgz", - "integrity": "sha512-YkIRgwsZwJWTnyQrsBTWefizHh+8GYj3kbL1BTiAQ/9pwpino0G7B2gp5tx/FUBqUlvtxV85KNR3mwfAtv15Yw==", + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", + "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", "requires": { "base64-js": "1.3.0", - "ieee754": "1.1.11" + "ieee754": "1.1.12" + } + }, + "fs-extra": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-2.1.2.tgz", + "integrity": "sha1-BGxwFjzvmq1GsOSn+kZ/si1x3jU=", + "requires": { + "graceful-fs": "4.1.11", + "jsonfile": "2.4.0" } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" } } }, @@ -10157,7 +10763,7 @@ "defined": "1.0.0", "for-each": "0.3.3", "function-bind": "1.1.1", - "glob": "7.1.2", + "glob": "7.1.3", "has": "1.0.3", "inherits": "2.0.3", "minimist": "1.2.0", @@ -10168,20 +10774,17 @@ "through": "2.3.8" }, "dependencies": { - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { - "function-bind": "1.1.1" - } + "object-inspect": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.6.0.tgz", + "integrity": "sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==" }, "resolve": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz", "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", "requires": { - "path-parse": "1.0.5" + "path-parse": "1.0.6" } } } @@ -10197,9 +10800,9 @@ } }, "tar-stream": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.1.tgz", - "integrity": "sha512-IFLM5wp3QrJODQFPm6/to3LJZrONdBY/otxcvDIQzu217zKye6yVR3hhi9lAjrC2Z+m/j5oDxMPb1qcd8cIvpA==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", + "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", "requires": { "bl": "1.2.2", "buffer-alloc": "1.2.0", @@ -10216,7 +10819,7 @@ "integrity": "sha512-uhGatJvds/3diZrETqMj4RxBR779LKlIE74SsMcn5JProZsfs9j0QBwWO1RW+IWNJxS2x8Zzra1+AW6OQHWphg==", "requires": { "bluebird": "2.11.0", - "commander": "2.13.0", + "commander": "2.18.0", "fstream": "1.0.11", "mout": "0.11.1", "tar": "2.2.1" @@ -10269,9 +10872,9 @@ } }, "time-stamp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-2.0.0.tgz", - "integrity": "sha1-lcakRTDhW6jW9KPsuMOj+sRto1c=" + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-2.1.0.tgz", + "integrity": "sha512-lJbq6KsFhZJtN3fPUVje1tq/hHsJOKUUcUj/MGCiQR6qWBDcyi5kxL9J7/RnaEChCn0+L/DUN2WvemDrkk4i3Q==" }, "timed-out": { "version": "4.0.1", @@ -10292,16 +10895,6 @@ "integrity": "sha1-HN+kcqnvUMI57maZm2YsoOs5k38=", "requires": { "extend-shallow": "2.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "0.1.1" - } - } } }, "to-arraybuffer": { @@ -10336,6 +10929,25 @@ "extend-shallow": "3.0.2", "regex-not": "1.0.2", "safe-regex": "1.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "requires": { + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" + } + }, + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "2.0.4" + } + } } }, "to-regex-range": { @@ -10366,10 +10978,11 @@ } }, "tough-cookie": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", - "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", + "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", "requires": { + "psl": "1.1.29", "punycode": "1.4.1" }, "dependencies": { @@ -10401,13 +11014,182 @@ "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=" }, "truffle": { - "version": "4.1.13", - "resolved": "https://registry.npmjs.org/truffle/-/truffle-4.1.13.tgz", - "integrity": "sha1-vydYaYi0/4RWPt+/MrR5QUCKdq0=", + "version": "5.0.0-beta.1", + "resolved": "https://registry.npmjs.org/truffle/-/truffle-5.0.0-beta.1.tgz", + "integrity": "sha512-U9vNwUAX0kb+pgpUWsWDFQeU2XeCHYm4swVxQdRi37mDQCOedEVgiE+Lr87LNQMAIuAY+8sG/9KF7HwVks0ncQ==", "requires": { "mocha": "4.1.0", "original-require": "1.0.1", - "solc": "0.4.24" + "solc": "0.4.25" + }, + "dependencies": { + "camelcase": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", + "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=" + }, + "cliui": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", + "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wrap-ansi": "2.1.0" + } + }, + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "requires": { + "path-exists": "2.1.0", + "pinkie-promise": "2.0.1" + } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + }, + "load-json-file": { + "version": "1.1.0", + "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "2.2.0", + "pify": "2.3.0", + "pinkie-promise": "2.0.1", + "strip-bom": "2.0.0" + } + }, + "os-locale": { + "version": "1.4.0", + "resolved": "http://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", + "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", + "requires": { + "lcid": "1.0.0" + } + }, + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "requires": { + "pinkie-promise": "2.0.1" + } + }, + "path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "requires": { + "graceful-fs": "4.1.11", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" + }, + "read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "requires": { + "load-json-file": "1.1.0", + "normalize-package-data": "2.4.0", + "path-type": "1.1.0" + } + }, + "read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "requires": { + "find-up": "1.1.2", + "read-pkg": "1.1.0" + } + }, + "solc": { + "version": "0.4.25", + "resolved": "https://registry.npmjs.org/solc/-/solc-0.4.25.tgz", + "integrity": "sha512-jU1YygRVy6zatgXrLY2rRm7HW1d7a8CkkEgNJwvH2VLpWhMFsMdWcJn6kUqZwcSz/Vm+w89dy7Z/aB5p6AFTrg==", + "requires": { + "fs-extra": "0.30.0", + "memorystream": "0.3.1", + "require-from-string": "1.2.1", + "semver": "5.5.1", + "yargs": "4.8.1" + } + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "which-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", + "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=" + }, + "window-size": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz", + "integrity": "sha1-tDFbtCFKPXBY6+7okuE/ok2YsHU=" + }, + "y18n": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=" + }, + "yargs": { + "version": "4.8.1", + "resolved": "http://registry.npmjs.org/yargs/-/yargs-4.8.1.tgz", + "integrity": "sha1-wMQpJMpKqmsObaFznfshZDn53cA=", + "requires": { + "cliui": "3.2.0", + "decamelize": "1.2.0", + "get-caller-file": "1.0.3", + "lodash.assign": "4.2.0", + "os-locale": "1.4.0", + "read-pkg-up": "1.0.1", + "require-directory": "2.1.1", + "require-main-filename": "1.0.1", + "set-blocking": "2.0.0", + "string-width": "1.0.2", + "which-module": "1.0.0", + "window-size": "0.2.0", + "y18n": "3.2.1", + "yargs-parser": "2.4.1" + } + }, + "yargs-parser": { + "version": "2.4.1", + "resolved": "http://registry.npmjs.org/yargs-parser/-/yargs-parser-2.4.1.tgz", + "integrity": "sha1-hVaN488VD/SfpRgl8DqMiA3cxcQ=", + "requires": { + "camelcase": "3.0.0", + "lodash.assign": "4.2.0" + } + } + } + }, + "truffle-assertions": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/truffle-assertions/-/truffle-assertions-0.6.2.tgz", + "integrity": "sha512-jK/uh8WEq7qNtSSmzujfjQkOE0C1h3NBOjy4nUjo57jckdxxComJ5TnrMxSb9jhXCk44jl98OxoT9zIXHIA97Q==", + "requires": { + "assertion-error": "1.1.0", + "web3": "1.0.0-beta.36" } }, "truffle-hdwallet-provider": { @@ -10418,9 +11200,12 @@ "bip39": "2.5.0", "ethereumjs-wallet": "0.6.0", "web3": "0.18.4", - "web3-provider-engine": "14.0.6" + "web3-provider-engine": "14.1.0" }, "dependencies": { + "bignumber.js": { + "version": "git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2" + }, "web3": { "version": "0.18.4", "resolved": "https://registry.npmjs.org/web3/-/web3-0.18.4.tgz", @@ -10428,7 +11213,7 @@ "requires": { "bignumber.js": "git+https://github.com/debris/bignumber.js.git#94d7146671b9719e00a09c29b01a691bc85048c2", "crypto-js": "3.1.8", - "utf8": "2.1.1", + "utf8": "2.1.2", "xhr2": "0.1.4", "xmlhttprequest": "1.8.0" } @@ -10449,10 +11234,9 @@ } }, "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "optional": true + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.0.tgz", + "integrity": "sha1-cT2LgY2kIGh0C/aDhtBHnmb8ins=" }, "type-check": { "version": "0.3.2", @@ -10468,7 +11252,7 @@ "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", "requires": { "media-typer": "0.3.0", - "mime-types": "2.1.18" + "mime-types": "2.1.20" } }, "typedarray": { @@ -10498,10 +11282,10 @@ "source-map": "0.6.1" }, "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" + "commander": { + "version": "2.13.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.13.0.tgz", + "integrity": "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA==" } } }, @@ -10518,19 +11302,12 @@ "requires": { "cacache": "10.0.4", "find-cache-dir": "1.0.0", - "schema-utils": "0.4.5", + "schema-utils": "0.4.7", "serialize-javascript": "1.5.0", "source-map": "0.6.1", "uglify-es": "3.3.9", "webpack-sources": "1.1.0", "worker-farm": "1.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } } }, "ultron": { @@ -10539,9 +11316,9 @@ "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==" }, "unbzip2-stream": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.2.5.tgz", - "integrity": "sha512-izD3jxT8xkzwtXRUZjtmRwKnZoeECrfZ8ra/ketwOcusbZEp4mjULMnJOCfTDZBgGQAAY1AJ/IgxcwkavcX9Og==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/unbzip2-stream/-/unbzip2-stream-1.3.0.tgz", + "integrity": "sha512-kE2WkurNnPUMcryNioS68DDbhoPB8Qxsd8btHSj+sd5Pjh2GsjmeHLzMSqV9HHziAo8FzVxVCJl9ZYhk7yY1pA==", "requires": { "buffer": "3.6.0", "through": "2.3.8" @@ -10558,7 +11335,7 @@ "integrity": "sha1-pyyTb3e5a/UvX357RnGAYoVR3vs=", "requires": { "base64-js": "0.0.8", - "ieee754": "1.1.11", + "ieee754": "1.1.12", "isarray": "1.0.0" } } @@ -10575,28 +11352,28 @@ "integrity": "sha1-jR4FE6Ts0OX/LUGmund3Gq6LZII=" }, "unicode-canonical-property-names-ecmascript": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.3.tgz", - "integrity": "sha512-iG/2t0F2LAU8aZYPkX5gi7ebukHnr3sWFESpb+zPQeeaQwOkfoO6ZW17YX7MdRPNG9pCy+tjzGill+Ah0Em0HA==" + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz", + "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==" }, "unicode-match-property-ecmascript": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.3.tgz", - "integrity": "sha512-nFcaBFcr08UQNF15ZgI5ISh3yUnQm7SJRRxwYrL5VYX46pS+6Q7TCTv4zbK+j6/l7rQt0mMiTL2zpmeygny6rA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz", + "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==", "requires": { - "unicode-canonical-property-names-ecmascript": "1.0.3", - "unicode-property-aliases-ecmascript": "1.0.3" + "unicode-canonical-property-names-ecmascript": "1.0.4", + "unicode-property-aliases-ecmascript": "1.0.4" } }, "unicode-match-property-value-ecmascript": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.0.1.tgz", - "integrity": "sha512-lM8B0FDZQh9yYGgiabRQcyWicB27VLOolSBRIxsO7FeQPtg+79Oe7sC8Mzr8BObDs+G9CeYmC/shHo6OggNEog==" + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.0.2.tgz", + "integrity": "sha512-Rx7yODZC1L/T8XKo/2kNzVAQaRE88AaMvI1EF/Xnj3GW2wzN6fop9DDWuFAKUVFH7vozkz26DzP0qyWLKLIVPQ==" }, "unicode-property-aliases-ecmascript": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.3.tgz", - "integrity": "sha512-TdDmDOTxEf2ad1g3ZBpM6cqKIb2nJpVlz1Q++casDryKz18tpeMBhSng9hjC1CTQCkOV9Rw2knlSB6iRo7ad1w==" + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.4.tgz", + "integrity": "sha512-2WSLa6OdYd2ng8oqiGIWnJqyFArvhn+5vgx5GTxMbUYjCYKUcuKS62YLFF0R/BDGlB1yzXjQOLtPAfHsgirEpg==" }, "union-value": { "version": "1.0.0", @@ -10609,14 +11386,6 @@ "set-value": "0.4.3" }, "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "0.1.1" - } - }, "set-value": { "version": "0.4.3", "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", @@ -10631,17 +11400,17 @@ } }, "unique-filename": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.0.tgz", - "integrity": "sha1-0F8v5AMlYIcfMOk8vnNe6iAVFPM=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", + "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", "requires": { - "unique-slug": "2.0.0" + "unique-slug": "2.0.1" } }, "unique-slug": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.0.tgz", - "integrity": "sha1-22Z258fMBimHj/GWCXx4hVrp9Ks=", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.1.tgz", + "integrity": "sha512-n9cU6+gITaVu7VGj1Z8feKMmfAjEAQGhwD9fE3zvpRRa0wEIx8ODYkVGfSc94M2OX00tUFV8wH3zYbm1I8mxFg==", "requires": { "imurmurhash": "0.1.4" } @@ -10712,9 +11481,9 @@ "integrity": "sha512-bzpH/oBhoS/QI/YtbkqCg6VEiPYjSZtrHQM6/QnJS6OL9pKUFLqb3aFh4Scvwm45+7iAgiMkLhSbaZxUqmrprw==" }, "update-check": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/update-check/-/update-check-1.4.0.tgz", - "integrity": "sha512-KSPgYhsCqS78LnMmJIcsh1BIOaOvSRPDo8x7Qcz0LF5ZsaioDyiVon5o0wqZgzkrU4jgrm5yuu9Ec/B84N6TZg==", + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/update-check/-/update-check-1.5.2.tgz", + "integrity": "sha512-1TrmYLuLj/5ZovwUS7fFd1jMH3NnFDN1y1A8dboedIDt7zs/zJMo6TwwlhYKkSeEwzleeiSBV5/3c9ufAQWDaQ==", "requires": { "registry-auth-token": "3.3.2", "registry-url": "3.1.0" @@ -10768,38 +11537,21 @@ "integrity": "sha1-FQWgOiiaSMvXpDTvuu7FBV9WM6k=" }, "use": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.0.tgz", - "integrity": "sha512-6UJEQM/L+mzC3ZJNM56Q4DFGLX/evKGRg15UJHGB9X5j5Z3AFbgZvjUh2yq/UJUY4U5dh7Fal++XbNg1uzpRAw==", - "requires": { - "kind-of": "6.0.2" - }, - "dependencies": { - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" - } - } + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==" }, "utf8": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/utf8/-/utf8-2.1.1.tgz", - "integrity": "sha1-LgHbAvfY0JRPdxBPFgnrDDBM92g=" + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/utf8/-/utf8-2.1.2.tgz", + "integrity": "sha1-H6DZJw6b6FDZsFAn9jUZv0ZFfZY=" }, "util": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", - "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", + "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", "requires": { - "inherits": "2.0.1" - }, - "dependencies": { - "inherits": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", - "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=" - } + "inherits": "2.0.3" } }, "util-deprecate": { @@ -10807,6 +11559,15 @@ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" }, + "util.promisify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/util.promisify/-/util.promisify-1.0.0.tgz", + "integrity": "sha512-i+6qA2MPhvoKLuxnJNpXAGhg7HphQOSUq2LKMZD0m15EiskXUkMvKdF4Uui0WYeCUGea+o2cw/ZuwehtfsrNkA==", + "requires": { + "define-properties": "1.1.3", + "object.getownpropertydescriptors": "2.0.3" + } + }, "utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", @@ -10818,11 +11579,11 @@ "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==" }, "validate-npm-package-license": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz", - "integrity": "sha512-63ZOUnL4SIXj4L0NixR3L1lcjO38crAbgrTpl28t8jjrfuiOBL5Iygm+60qPs/KsZGzPNg6Smnc/oY16QTjF0g==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "requires": { - "spdx-correct": "3.0.0", + "spdx-correct": "3.0.2", "spdx-expression-parse": "3.0.0" } }, @@ -10854,13 +11615,6 @@ "clone": "1.0.4", "clone-stats": "0.0.1", "replace-ext": "0.0.1" - }, - "dependencies": { - "clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=" - } } }, "vinyl-fs-browser": { @@ -10948,6 +11702,11 @@ "vinyl": "0.5.3" }, "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + }, "isarray": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", @@ -11031,29 +11790,36 @@ "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.0.tgz", "integrity": "sha512-i6dHe3EyLjMmDlU1/bGQpEw25XSjkJULPuAVKCbNRefQVq48yXKUpwg538F7AZTf9kyr57zj++pQFltUa5H7yA==", "requires": { - "chokidar": "2.0.3", + "chokidar": "2.0.4", "graceful-fs": "4.1.11", - "neo-async": "2.5.1" + "neo-async": "2.5.2" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + } } }, "web3": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3/-/web3-1.0.0-beta.34.tgz", - "integrity": "sha1-NH5WG3hAmMtVYzFfSQR5odkfKrE=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3/-/web3-1.0.0-beta.36.tgz", + "integrity": "sha512-fZDunw1V0AQS27r5pUN3eOVP7u8YAvyo6vOapdgVRolAu5LgaweP7jncYyLINqIX9ZgWdS5A090bt+ymgaYHsw==", "requires": { - "web3-bzz": "1.0.0-beta.34", - "web3-core": "1.0.0-beta.34", - "web3-eth": "1.0.0-beta.34", - "web3-eth-personal": "1.0.0-beta.34", - "web3-net": "1.0.0-beta.34", - "web3-shh": "1.0.0-beta.34", - "web3-utils": "1.0.0-beta.34" + "web3-bzz": "1.0.0-beta.36", + "web3-core": "1.0.0-beta.36", + "web3-eth": "1.0.0-beta.36", + "web3-eth-personal": "1.0.0-beta.36", + "web3-net": "1.0.0-beta.36", + "web3-shh": "1.0.0-beta.36", + "web3-utils": "1.0.0-beta.36" } }, "web3-bzz": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-bzz/-/web3-bzz-1.0.0-beta.34.tgz", - "integrity": "sha1-Bo03d3q2Xlxg+OyLmlDP5FJ3kpw=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-bzz/-/web3-bzz-1.0.0-beta.36.tgz", + "integrity": "sha512-clDRS/ziboJ5ytnrfxq80YSu9HQsT0vggnT3BkoXadrauyEE/9JNLxRu016jjUxqdkfdv4MgIPDdOS3Bv2ghiw==", "requires": { "got": "7.1.0", "swarm-js": "0.1.37", @@ -11061,110 +11827,103 @@ } }, "web3-core": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-core/-/web3-core-1.0.0-beta.34.tgz", - "integrity": "sha1-EhvoVV6fsA0sXQXd0zgdDJ5GmH4=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-core/-/web3-core-1.0.0-beta.36.tgz", + "integrity": "sha512-C2QW9CMMRZdYAiKiLkMrKRSp+gekSqTDgZTNvlxAdN1hXn4d9UmcmWSJXOmIHqr5N2ISbRod+bW+qChODxVE3Q==", "requires": { - "web3-core-helpers": "1.0.0-beta.34", - "web3-core-method": "1.0.0-beta.34", - "web3-core-requestmanager": "1.0.0-beta.34", - "web3-utils": "1.0.0-beta.34" + "web3-core-helpers": "1.0.0-beta.36", + "web3-core-method": "1.0.0-beta.36", + "web3-core-requestmanager": "1.0.0-beta.36", + "web3-utils": "1.0.0-beta.36" } }, "web3-core-helpers": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-core-helpers/-/web3-core-helpers-1.0.0-beta.34.tgz", - "integrity": "sha1-sWjaANPhnhVrwVriAyA91N/uLQM=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-core-helpers/-/web3-core-helpers-1.0.0-beta.36.tgz", + "integrity": "sha512-gu74l0htiGWuxLQuMnZqKToFvkSM+UFPE7qUuy1ZosH/h2Jd+VBWg6k4CyNYVYfP0hL5x3CN8SBmB+HMowo55A==", "requires": { "underscore": "1.8.3", - "web3-eth-iban": "1.0.0-beta.34", - "web3-utils": "1.0.0-beta.34" + "web3-eth-iban": "1.0.0-beta.36", + "web3-utils": "1.0.0-beta.36" } }, "web3-core-method": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-core-method/-/web3-core-method-1.0.0-beta.34.tgz", - "integrity": "sha1-7BY8iixJD6AqfsFVWfpzB/x8xt0=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-core-method/-/web3-core-method-1.0.0-beta.36.tgz", + "integrity": "sha512-dJsP3KkGaqBBSdxfzvLsYPOmVaSs1lR/3oKob/gtUYG7UyTnwquwliAc7OXj+gqRA2E/FHZcM83cWdl31ltdSA==", "requires": { "underscore": "1.8.3", - "web3-core-helpers": "1.0.0-beta.34", - "web3-core-promievent": "1.0.0-beta.34", - "web3-core-subscriptions": "1.0.0-beta.34", - "web3-utils": "1.0.0-beta.34" + "web3-core-helpers": "1.0.0-beta.36", + "web3-core-promievent": "1.0.0-beta.36", + "web3-core-subscriptions": "1.0.0-beta.36", + "web3-utils": "1.0.0-beta.36" } }, "web3-core-promievent": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-core-promievent/-/web3-core-promievent-1.0.0-beta.34.tgz", - "integrity": "sha1-pPT6Z4S7KT6CxglgrltWqUzQPtw=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-core-promievent/-/web3-core-promievent-1.0.0-beta.36.tgz", + "integrity": "sha512-RGIL6TjcOeJTullFLMurChPTsg94cPF6LI763y/sPYtXTDol1vVa+J5aGLp/4WW8v+s+1bSQO6zYq2ZtkbmtEQ==", "requires": { "any-promise": "1.3.0", "eventemitter3": "1.1.1" } }, "web3-core-requestmanager": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-core-requestmanager/-/web3-core-requestmanager-1.0.0-beta.34.tgz", - "integrity": "sha1-Afj2zyrmtvC3DDi64e90G1urIVw=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-core-requestmanager/-/web3-core-requestmanager-1.0.0-beta.36.tgz", + "integrity": "sha512-/CHuaMbiMDu1v8ANGYI7yFCnh1GaCWx5pKnUPJf+QTk2xAAw+Bvd97yZJIWPOK5AOPUIzxgwx9Ob/5ln6mTmYA==", "requires": { "underscore": "1.8.3", - "web3-core-helpers": "1.0.0-beta.34", - "web3-providers-http": "1.0.0-beta.34", - "web3-providers-ipc": "1.0.0-beta.34", - "web3-providers-ws": "1.0.0-beta.34" + "web3-core-helpers": "1.0.0-beta.36", + "web3-providers-http": "1.0.0-beta.36", + "web3-providers-ipc": "1.0.0-beta.36", + "web3-providers-ws": "1.0.0-beta.36" } }, "web3-core-subscriptions": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-core-subscriptions/-/web3-core-subscriptions-1.0.0-beta.34.tgz", - "integrity": "sha1-n+0UQDPyIcPPIQYDAv/a9e8t4t4=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-core-subscriptions/-/web3-core-subscriptions-1.0.0-beta.36.tgz", + "integrity": "sha512-/evyLQ8CMEYXC5aUCodDpmEnmGVYQxaIjiEIfA/85f9ifHkfzP1aOwCAjcsLsJWnwrWDagxSpjCYrDtnNabdEw==", "requires": { "eventemitter3": "1.1.1", "underscore": "1.8.3", - "web3-core-helpers": "1.0.0-beta.34" + "web3-core-helpers": "1.0.0-beta.36" } }, "web3-eth": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-eth/-/web3-eth-1.0.0-beta.34.tgz", - "integrity": "sha1-dAhgAIUMb+b1Ne9Jg31tS7YRMmg=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-eth/-/web3-eth-1.0.0-beta.36.tgz", + "integrity": "sha512-uEa0UnbnNHUB4N2O1U+LsvxzSPJ/w3azy5115IseaUdDaiz6IFFgFfFP3ssauayQNCf7v2F44GXLfPhrNeb/Sw==", "requires": { "underscore": "1.8.3", - "web3-core": "1.0.0-beta.34", - "web3-core-helpers": "1.0.0-beta.34", - "web3-core-method": "1.0.0-beta.34", - "web3-core-subscriptions": "1.0.0-beta.34", - "web3-eth-abi": "1.0.0-beta.34", - "web3-eth-accounts": "1.0.0-beta.34", - "web3-eth-contract": "1.0.0-beta.34", - "web3-eth-iban": "1.0.0-beta.34", - "web3-eth-personal": "1.0.0-beta.34", - "web3-net": "1.0.0-beta.34", - "web3-utils": "1.0.0-beta.34" + "web3-core": "1.0.0-beta.36", + "web3-core-helpers": "1.0.0-beta.36", + "web3-core-method": "1.0.0-beta.36", + "web3-core-subscriptions": "1.0.0-beta.36", + "web3-eth-abi": "1.0.0-beta.36", + "web3-eth-accounts": "1.0.0-beta.36", + "web3-eth-contract": "1.0.0-beta.36", + "web3-eth-ens": "1.0.0-beta.36", + "web3-eth-iban": "1.0.0-beta.36", + "web3-eth-personal": "1.0.0-beta.36", + "web3-net": "1.0.0-beta.36", + "web3-utils": "1.0.0-beta.36" } }, "web3-eth-abi": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-eth-abi/-/web3-eth-abi-1.0.0-beta.34.tgz", - "integrity": "sha1-A0Uz46ovfln/MXk+rqaFwO1a9no=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-eth-abi/-/web3-eth-abi-1.0.0-beta.36.tgz", + "integrity": "sha512-fBfW+7hvA0rxEMV45fO7JU+0R32ayT7aRwG9Cl6NW2/QvhFeME2qVbMIWw0q5MryPZGIN8A6366hKNuWvVidDg==", "requires": { - "bn.js": "4.11.6", + "ethers": "4.0.0-beta.1", "underscore": "1.8.3", - "web3-core-helpers": "1.0.0-beta.34", - "web3-utils": "1.0.0-beta.34" - }, - "dependencies": { - "bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha1-UzRK2xRhehP26N0s4okF0cC6MhU=" - } + "web3-utils": "1.0.0-beta.36" } }, "web3-eth-accounts": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-eth-accounts/-/web3-eth-accounts-1.0.0-beta.34.tgz", - "integrity": "sha1-4JFC7uzHl6w0WbdemyOUbTaV8zM=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-eth-accounts/-/web3-eth-accounts-1.0.0-beta.36.tgz", + "integrity": "sha512-MmgIlBEZ0ILLWV4+wfMrbeVVMU/VmQnCpgSDcw7wHKOKu47bKncJ6rVqVsUbC6d9F613Rios+Yj2Ua6SCHtmrg==", "requires": { "any-promise": "1.3.0", "crypto-browserify": "3.12.0", @@ -11172,10 +11931,10 @@ "scrypt.js": "0.2.0", "underscore": "1.8.3", "uuid": "2.0.1", - "web3-core": "1.0.0-beta.34", - "web3-core-helpers": "1.0.0-beta.34", - "web3-core-method": "1.0.0-beta.34", - "web3-utils": "1.0.0-beta.34" + "web3-core": "1.0.0-beta.36", + "web3-core-helpers": "1.0.0-beta.36", + "web3-core-method": "1.0.0-beta.36", + "web3-utils": "1.0.0-beta.36" }, "dependencies": { "eth-lib": { @@ -11184,7 +11943,7 @@ "integrity": "sha1-L5Pxex4jrsN1nNSj/iDBKGo/wco=", "requires": { "bn.js": "4.11.8", - "elliptic": "6.4.0", + "elliptic": "6.4.1", "xhr-request-promise": "0.1.2" } }, @@ -11196,27 +11955,42 @@ } }, "web3-eth-contract": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-eth-contract/-/web3-eth-contract-1.0.0-beta.34.tgz", - "integrity": "sha1-nbs4+udkOoCEJ6IBgEcOx0FckeY=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-eth-contract/-/web3-eth-contract-1.0.0-beta.36.tgz", + "integrity": "sha512-cywqcIrUsCW4fyqsHdOb24OCC8AnBol8kNiptI+IHRylyCjTNgr53bUbjrXWjmEnear90rO0QhAVjLB1a4iEbQ==", + "requires": { + "underscore": "1.8.3", + "web3-core": "1.0.0-beta.36", + "web3-core-helpers": "1.0.0-beta.36", + "web3-core-method": "1.0.0-beta.36", + "web3-core-promievent": "1.0.0-beta.36", + "web3-core-subscriptions": "1.0.0-beta.36", + "web3-eth-abi": "1.0.0-beta.36", + "web3-utils": "1.0.0-beta.36" + } + }, + "web3-eth-ens": { + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-eth-ens/-/web3-eth-ens-1.0.0-beta.36.tgz", + "integrity": "sha512-8ZdD7XoJfSX3jNlZHSLe4G837xQ0v5a8cHCcDcd1IoqoY855X9SrIQ0Xdqia9p4mR1YcH1vgmkXY9/3hsvxS7g==", "requires": { + "eth-ens-namehash": "2.0.8", "underscore": "1.8.3", - "web3-core": "1.0.0-beta.34", - "web3-core-helpers": "1.0.0-beta.34", - "web3-core-method": "1.0.0-beta.34", - "web3-core-promievent": "1.0.0-beta.34", - "web3-core-subscriptions": "1.0.0-beta.34", - "web3-eth-abi": "1.0.0-beta.34", - "web3-utils": "1.0.0-beta.34" + "web3-core": "1.0.0-beta.36", + "web3-core-helpers": "1.0.0-beta.36", + "web3-core-promievent": "1.0.0-beta.36", + "web3-eth-abi": "1.0.0-beta.36", + "web3-eth-contract": "1.0.0-beta.36", + "web3-utils": "1.0.0-beta.36" } }, "web3-eth-iban": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-eth-iban/-/web3-eth-iban-1.0.0-beta.34.tgz", - "integrity": "sha1-mvRYYFhnzPdOqXmq8yazi6alugw=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-eth-iban/-/web3-eth-iban-1.0.0-beta.36.tgz", + "integrity": "sha512-b5AEDjjhOLR4q47Hbzf65zYE+7U7JgCgrUb13RU4HMIGoMb1q4DXaJw1UH8VVHCZulevl2QBjpCyrntecMqqCQ==", "requires": { "bn.js": "4.11.6", - "web3-utils": "1.0.0-beta.34" + "web3-utils": "1.0.0-beta.36" }, "dependencies": { "bn.js": { @@ -11227,31 +12001,31 @@ } }, "web3-eth-personal": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-eth-personal/-/web3-eth-personal-1.0.0-beta.34.tgz", - "integrity": "sha1-mvuhZzQuveVCC81YlcP2w0OI8gU=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-eth-personal/-/web3-eth-personal-1.0.0-beta.36.tgz", + "integrity": "sha512-+oxvhojeWh4C/XtnlYURWRR3F5Cg7bQQNjtN1ZGnouKAZyBLoYDVVJ6OaPiveNtfC9RKnzLikn9/Uqc0xz410A==", "requires": { - "web3-core": "1.0.0-beta.34", - "web3-core-helpers": "1.0.0-beta.34", - "web3-core-method": "1.0.0-beta.34", - "web3-net": "1.0.0-beta.34", - "web3-utils": "1.0.0-beta.34" + "web3-core": "1.0.0-beta.36", + "web3-core-helpers": "1.0.0-beta.36", + "web3-core-method": "1.0.0-beta.36", + "web3-net": "1.0.0-beta.36", + "web3-utils": "1.0.0-beta.36" } }, "web3-net": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-net/-/web3-net-1.0.0-beta.34.tgz", - "integrity": "sha1-QnzqL0MYgUScjjjVIykPFz+f9j0=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-net/-/web3-net-1.0.0-beta.36.tgz", + "integrity": "sha512-BriXK0Pjr6Hc/VDq1Vn8vyOum4JB//wpCjgeGziFD6jC7Of8YaWC7AJYXje89OckzfcqX1aJyJlBwDpasNkAzQ==", "requires": { - "web3-core": "1.0.0-beta.34", - "web3-core-method": "1.0.0-beta.34", - "web3-utils": "1.0.0-beta.34" + "web3-core": "1.0.0-beta.36", + "web3-core-method": "1.0.0-beta.36", + "web3-utils": "1.0.0-beta.36" } }, "web3-provider-engine": { - "version": "14.0.6", - "resolved": "https://registry.npmjs.org/web3-provider-engine/-/web3-provider-engine-14.0.6.tgz", - "integrity": "sha512-tr5cGSyxfSC/JqiUpBlJtfZpwQf1yAA8L/zy1C6fDFm0ntR974pobJ4v4676atpZne4Ze5VFy3kPPahHe9gQiQ==", + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/web3-provider-engine/-/web3-provider-engine-14.1.0.tgz", + "integrity": "sha512-vGZtqhSUzGTiMGhJXNnB/aRDlrPZLhLnBZ2NPArkZtr8XSrwg9m08tw4+PuWg5za0TJuoE/vuPQc501HddZZWw==", "requires": { "async": "2.6.1", "backoff": "2.5.0", @@ -11268,14 +12042,18 @@ "json-stable-stringify": "1.0.1", "promise-to-callback": "1.0.0", "readable-stream": "2.3.6", - "request": "2.87.0", + "request": "2.88.0", "semaphore": "1.1.0", - "tape": "4.9.1", "ws": "5.2.2", "xhr": "2.5.0", "xtend": "4.0.1" }, "dependencies": { + "clone": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/clone/-/clone-2.1.2.tgz", + "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=" + }, "ethereumjs-util": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.2.0.tgz", @@ -11287,63 +12065,55 @@ "keccak": "1.4.0", "rlp": "2.1.0", "safe-buffer": "5.1.2", - "secp256k1": "3.5.0" - } - }, - "ws": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.2.tgz", - "integrity": "sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==", - "requires": { - "async-limiter": "1.0.0" + "secp256k1": "3.5.2" } } } }, "web3-providers-http": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-providers-http/-/web3-providers-http-1.0.0-beta.34.tgz", - "integrity": "sha1-5WG1K7tDdmKCAH1AKFv+NVDCfno=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-providers-http/-/web3-providers-http-1.0.0-beta.36.tgz", + "integrity": "sha512-KLSqMS59nRdpet9B0B64MKgtM3n9wAHTcAHJ03hv79avQNTjHxtjZm0ttcjcFUPpWDgTCtcYCa7tqaYo9Pbeog==", "requires": { - "web3-core-helpers": "1.0.0-beta.34", - "xhr2": "0.1.4" + "web3-core-helpers": "1.0.0-beta.36", + "xhr2-cookies": "1.1.0" } }, "web3-providers-ipc": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-providers-ipc/-/web3-providers-ipc-1.0.0-beta.34.tgz", - "integrity": "sha1-obd/GjBtc2SanAOQUuQMtxMo0Ao=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-providers-ipc/-/web3-providers-ipc-1.0.0-beta.36.tgz", + "integrity": "sha512-iEUrmdd2CzoWgp+75/ydom/1IaoLw95qkAzsgwjjZp1waDncHP/cvVGX74+fbUx4hRaPdchyzxCQfNpgLDmNjQ==", "requires": { "oboe": "2.1.3", "underscore": "1.8.3", - "web3-core-helpers": "1.0.0-beta.34" + "web3-core-helpers": "1.0.0-beta.36" } }, "web3-providers-ws": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-providers-ws/-/web3-providers-ws-1.0.0-beta.34.tgz", - "integrity": "sha1-fecPG4Py3jZHZ3IVa+z+9uNRbrM=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-providers-ws/-/web3-providers-ws-1.0.0-beta.36.tgz", + "integrity": "sha512-wAnENuZx75T5ZSrT2De2LOaUuPf2yRjq1VfcbD7+Zd79F3DZZLBJcPyCNVQ1U0fAXt0wfgCKl7sVw5pffqR9Bw==", "requires": { "underscore": "1.8.3", - "web3-core-helpers": "1.0.0-beta.34", + "web3-core-helpers": "1.0.0-beta.36", "websocket": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2" } }, "web3-shh": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-shh/-/web3-shh-1.0.0-beta.34.tgz", - "integrity": "sha1-l1Bh1x6uxCzO5Xb3vY9w8DhEr+A=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-shh/-/web3-shh-1.0.0-beta.36.tgz", + "integrity": "sha512-bREGHS/WprYFSvGUhyIk8RSpT2Z5SvJOKGBrsUW2nDIMWO6z0Op8E7fzC6GXY2HZfZliAqq6LirbXLgcLRWuPw==", "requires": { - "web3-core": "1.0.0-beta.34", - "web3-core-method": "1.0.0-beta.34", - "web3-core-subscriptions": "1.0.0-beta.34", - "web3-net": "1.0.0-beta.34" + "web3-core": "1.0.0-beta.36", + "web3-core-method": "1.0.0-beta.36", + "web3-core-subscriptions": "1.0.0-beta.36", + "web3-net": "1.0.0-beta.36" } }, "web3-utils": { - "version": "1.0.0-beta.34", - "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.0.0-beta.34.tgz", - "integrity": "sha1-lBH8OarvOcpOBhafdiKX2f8CCXA=", + "version": "1.0.0-beta.36", + "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.0.0-beta.36.tgz", + "integrity": "sha512-7ri74lG5fS2Th0fhYvTtiEHMB1Pmf2p7dQx1COQ3OHNI/CHNEMjzoNMEbBU6FAENrywfoFur40K4m0AOmEUq5A==", "requires": { "bn.js": "4.11.6", "eth-lib": "0.1.27", @@ -11358,6 +12128,11 @@ "version": "4.11.6", "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", "integrity": "sha1-UzRK2xRhehP26N0s4okF0cC6MhU=" + }, + "utf8": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/utf8/-/utf8-2.1.1.tgz", + "integrity": "sha1-LgHbAvfY0JRPdxBPFgnrDDBM92g=" } } }, @@ -11369,7 +12144,7 @@ "resolved": "https://registry.npmjs.org/webpack/-/webpack-3.10.0.tgz", "integrity": "sha512-fxxKXoicjdXNUMY7LIdY89tkJJJ0m1Oo8PQutZ5rLgWbV5QVKI15Cn7+/IHnRTd3vfKfiwBx6SBqlorAuNA8LA==", "requires": { - "acorn": "5.6.1", + "acorn": "5.7.3", "acorn-dynamic-import": "2.0.2", "ajv": "5.5.2", "ajv-keywords": "2.1.1", @@ -11379,7 +12154,7 @@ "interpret": "1.1.0", "json-loader": "0.5.7", "json5": "0.5.1", - "loader-runner": "2.3.0", + "loader-runner": "2.3.1", "loader-utils": "1.1.0", "memory-fs": "0.4.1", "mkdirp": "0.5.1", @@ -11419,6 +12194,16 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=" }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + }, "supports-color": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", @@ -11471,7 +12256,7 @@ "mime": "1.4.1", "path-is-absolute": "1.0.1", "range-parser": "1.2.0", - "time-stamp": "2.0.0" + "time-stamp": "2.1.0" } }, "webpack-hot-middleware": { @@ -11492,20 +12277,13 @@ "requires": { "source-list-map": "2.0.0", "source-map": "0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } } }, "websocket": { "version": "git://github.com/frozeman/WebSocket-Node.git#6c72925e3f8aaaea8dc8450f97627e85263999f2", "requires": { "debug": "2.6.9", - "nan": "2.10.0", + "nan": "2.11.1", "typedarray-to-buffer": "3.1.5", "yaeti": "0.0.6" }, @@ -11521,9 +12299,9 @@ } }, "whatwg-fetch": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz", - "integrity": "sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng==" + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz", + "integrity": "sha512-9GSJUgz1D4MfyKU7KRqwOjXCXTqWdFNvEr7eUBYchQiVc744mqK/MzXPNR2WsPkmkOa4ywfg8C2n8h+13Bey1Q==" }, "which": { "version": "1.3.1", @@ -11544,9 +12322,9 @@ "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=" }, "wordwrap": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", - "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=" + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", + "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=" }, "worker-farm": { "version": "1.6.0", @@ -11590,7 +12368,7 @@ "chalk": "1.1.3", "debug": "2.6.9", "filesize": "3.6.1", - "lodash": "4.17.10", + "lodash": "4.17.11", "mkdirp": "0.5.1", "moment": "2.22.2" }, @@ -11628,13 +12406,11 @@ } }, "ws": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", - "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.2.tgz", + "integrity": "sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==", "requires": { - "async-limiter": "1.0.0", - "safe-buffer": "5.1.2", - "ultron": "1.1.1" + "async-limiter": "1.0.0" } }, "xhr": { @@ -11660,6 +12436,13 @@ "timed-out": "4.0.1", "url-set-query": "1.0.0", "xhr": "2.5.0" + }, + "dependencies": { + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" + } } }, "xhr-request-promise": { @@ -11675,6 +12458,14 @@ "resolved": "https://registry.npmjs.org/xhr2/-/xhr2-0.1.4.tgz", "integrity": "sha1-f4dliEdxbbUCYyOBL4GMras4el8=" }, + "xhr2-cookies": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/xhr2-cookies/-/xhr2-cookies-1.1.0.tgz", + "integrity": "sha1-fXdEnQmZGX8VXLc7I99yUF7YnUg=", + "requires": { + "cookiejar": "2.1.2" + } + }, "xmlhttprequest": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1.8.0.tgz", @@ -11708,7 +12499,7 @@ "camelcase": "4.1.0", "cliui": "3.2.0", "decamelize": "1.2.0", - "get-caller-file": "1.0.2", + "get-caller-file": "1.0.3", "os-locale": "2.1.0", "read-pkg-up": "2.0.0", "require-directory": "2.1.1", @@ -11770,12 +12561,12 @@ } }, "yauzl": { - "version": "2.9.1", - "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.9.1.tgz", - "integrity": "sha1-qBmB6nCleUYTOIPwKcWCGok1mn8=", + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha1-x+sXyT4RLLEIb6bY5R+wZnt5pfk=", "requires": { "buffer-crc32": "0.2.13", - "fd-slicer": "1.0.1" + "fd-slicer": "1.1.0" } } } diff --git a/package.json b/package.json index d660755..1a0648b 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "test": "mocha", + "test": "mocha ethereum/test/*.js", "dev": "node server.js" }, "author": "", @@ -12,6 +12,7 @@ "dependencies": { "axios": "^0.18.0", "bs58": "^4.0.1", + "ganache-cli": "^6.1.8", "ipfs-api": "^23.0.0", "ipfs-js": "0.0.11", "ipfs-mini": "^1.1.2", @@ -22,8 +23,9 @@ "react-dom": "^16.4.0", "semantic-ui-css": "^2.3.1", "semantic-ui-react": "^0.80.2", - "truffle": "^4.1.13", + "truffle": "^5.0.0-beta.1", + "truffle-assertions": "^0.6.2", "truffle-hdwallet-provider": "0.0.6", - "web3": "^1.0.0-beta.34" + "web3": "^1.0.0-beta.36" } }