From 130994fb43480635fcfc3ada35c38918ce708e37 Mon Sep 17 00:00:00 2001 From: Aditya Narayan Shahi Date: Wed, 31 Oct 2018 09:31:20 +0530 Subject: [PATCH] Finishing up --- .gitignore | 3 - README.md | 22 - build/contracts/DNS.json | 6711 -- build/contracts/Migrations.json | 1387 - build/contracts/Website.json | 6695 -- chrome-ext/background.js | 165 - chrome-ext/config_resources/404.html | 165 - chrome-ext/config_resources/DNS.json | 6711 -- chrome-ext/config_resources/Website.json | 6695 -- chrome-ext/config_resources/loading.html | 70 - chrome-ext/js/jquery.min.js | 5 - chrome-ext/js/truffle-contract.min.js | 11 - chrome-ext/js/web3.min.js | 5 - chrome-ext/manifest.json | 18 - contracts/DNS.sol | 98 - contracts/Migrations.sol | 23 - contracts/Website.sol | 83 - migrations/1_initial_migration.js | 5 - migrations/2_deploy_contracts.js | 5 - node_app/DNS.json | 6711 -- node_app/Website.json | 6695 -- node_app/package-lock.json | 1096 - node_app/package.json | 17 - node_app/server.js | 107 - node_app/src/DNS.json | 6711 -- node_app/src/Website.json | 6695 -- node_app/src/css/animate.min.css | 12 - node_app/src/css/bootstrap.min.css | 5 - node_app/src/css/default.css | 106 - node_app/src/css/demo.css | 106 - node_app/src/css/font-awesome.min.css | 4 - node_app/src/css/portal.css | 149 - node_app/src/css/style.css | 692 - node_app/src/docs.pdf | Bin 105071 -> 0 bytes node_app/src/domainCheckLoading.gif | Bin 40606 -> 0 bytes node_app/src/domainViewLoading.gif | Bin 72232 -> 0 bytes node_app/src/extension.zip | Bin 204053 -> 0 bytes node_app/src/fonts/FontAwesome.otf | Bin 93888 -> 0 bytes node_app/src/fonts/fontawesome-webfont.eot | Bin 60767 -> 0 bytes node_app/src/fonts/fontawesome-webfont.svg | 565 - node_app/src/fonts/fontawesome-webfont.ttf | Bin 122092 -> 0 bytes node_app/src/fonts/fontawesome-webfont.woff | Bin 71508 -> 0 bytes node_app/src/fonts/fontawesome-webfont.woff2 | Bin 56780 -> 0 bytes .../fonts/glyphicons-halflings-regular.eot | Bin 20127 -> 0 bytes .../fonts/glyphicons-halflings-regular.svg | 288 - .../fonts/glyphicons-halflings-regular.ttf | Bin 45404 -> 0 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 23424 -> 0 bytes .../fonts/glyphicons-halflings-regular.woff2 | Bin 18028 -> 0 bytes node_app/src/images/aayush.jpg | Bin 34975 -> 0 bytes node_app/src/images/bcextension.png | Bin 186117 -> 0 bytes node_app/src/images/contact-bg.jpg | Bin 98949 -> 0 bytes node_app/src/images/divider-bg.jpg | Bin 119736 -> 0 bytes node_app/src/images/kaushal.jpeg | Bin 15815 -> 0 bytes node_app/src/images/logo7.png | Bin 11673 -> 0 bytes node_app/src/images/metamask.png | Bin 214984 -> 0 bytes node_app/src/images/ranjan.jpg | Bin 51176 -> 0 bytes node_app/src/images/shahi.jpg | Bin 37460 -> 0 bytes node_app/src/images/slider/1.jpg | Bin 440222 -> 0 bytes node_app/src/images/slider/2.jpg | Bin 11739 -> 0 bytes node_app/src/images/slider/3.jpg | Bin 788762 -> 0 bytes node_app/src/index.html | 331 - node_app/src/js/app.js | 1050 - node_app/src/js/bootstrap.min.js | 7 - node_app/src/js/buffer.js | 2020 - node_app/src/js/custom.js | 113 - node_app/src/js/imagesloaded.min.js | 6 - node_app/src/js/ipfs.js | 88514 ---------------- node_app/src/js/isotope.js | 8 - node_app/src/js/jquery.flexslider.js | 1142 - node_app/src/js/jquery.js | 6 - node_app/src/js/jquery.min.js | 5 - node_app/src/js/portal.js | 26 - node_app/src/js/smoothscroll.js | 33 - node_app/src/js/truffle-contract.min.js | 11 - node_app/src/js/web3.min.js | 5 - node_app/src/js/wow.min.js | 2 - node_app/src/lib/zip/.jshintrc | 11 - node_app/src/lib/zip/deflate.js | 2060 - node_app/src/lib/zip/inflate.js | 2155 - node_app/src/lib/zip/mime-types.js | 1002 - node_app/src/lib/zip/pako/codecs.js | 64 - node_app/src/lib/zip/tests/arraybuffer.js | 760 - node_app/src/lib/zip/tests/base64.js | 58 - node_app/src/lib/zip/tests/config.js | 22 - node_app/src/lib/zip/tests/dataview.js | 212 - node_app/src/lib/zip/tests/lorem.txt | 1 - node_app/src/lib/zip/tests/lorem.zip | Bin 739 -> 0 bytes node_app/src/lib/zip/tests/lorem2.zip | Bin 1023 -> 0 bytes node_app/src/lib/zip/tests/lorem_store.zip | Bin 1278 -> 0 bytes node_app/src/lib/zip/tests/test1.html | 14 - node_app/src/lib/zip/tests/test1.js | 45 - node_app/src/lib/zip/tests/test10.html | 15 - node_app/src/lib/zip/tests/test10.js | 33 - node_app/src/lib/zip/tests/test11.html | 15 - node_app/src/lib/zip/tests/test11.js | 66 - node_app/src/lib/zip/tests/test12.html | 15 - node_app/src/lib/zip/tests/test12.js | 65 - node_app/src/lib/zip/tests/test13.html | 14 - node_app/src/lib/zip/tests/test13.js | 73 - node_app/src/lib/zip/tests/test14.html | 14 - node_app/src/lib/zip/tests/test14.js | 79 - node_app/src/lib/zip/tests/test15.html | 14 - node_app/src/lib/zip/tests/test15.js | 93 - node_app/src/lib/zip/tests/test16.html | 15 - node_app/src/lib/zip/tests/test16.js | 46 - node_app/src/lib/zip/tests/test17.html | 16 - node_app/src/lib/zip/tests/test17.js | 40 - node_app/src/lib/zip/tests/test18.html | 17 - node_app/src/lib/zip/tests/test18.js | 45 - .../lib/zip/tests/test19-codecs-interop.html | 115 - node_app/src/lib/zip/tests/test2.html | 15 - node_app/src/lib/zip/tests/test2.js | 48 - node_app/src/lib/zip/tests/test20.html | 15 - node_app/src/lib/zip/tests/test20.js | 38 - node_app/src/lib/zip/tests/test3.html | 15 - node_app/src/lib/zip/tests/test3.js | 39 - node_app/src/lib/zip/tests/test4.html | 13 - node_app/src/lib/zip/tests/test4.js | 39 - node_app/src/lib/zip/tests/test5.html | 14 - node_app/src/lib/zip/tests/test5.js | 32 - node_app/src/lib/zip/tests/test6.html | 14 - node_app/src/lib/zip/tests/test6.js | 32 - node_app/src/lib/zip/tests/test7.html | 15 - node_app/src/lib/zip/tests/test7.js | 17 - node_app/src/lib/zip/tests/test8.html | 15 - node_app/src/lib/zip/tests/test8.js | 30 - node_app/src/lib/zip/tests/test9.html | 15 - node_app/src/lib/zip/tests/test9.js | 33 - node_app/src/lib/zip/tests/util.js | 16 - node_app/src/lib/zip/z-worker.js | 153 - node_app/src/lib/zip/zip-ext.js | 259 - node_app/src/lib/zip/zip-fs.js | 553 - node_app/src/lib/zip/zip.js | 966 - node_app/src/lib/zip/zlib-asm/codecs.js | 49 - node_app/src/loading.gif | Bin 130310 -> 0 bytes node_app/src/logo7.png | Bin 11673 -> 0 bytes node_app/src/portal.html | 136 - package-lock.json | 6372 -- package.json | 21 - pic.PNG | Bin 2340993 -> 0 bytes test/test.js | 16 - truffle-config.js | 18 - 142 files changed, 168307 deletions(-) delete mode 100644 .gitignore delete mode 100644 README.md delete mode 100644 build/contracts/DNS.json delete mode 100644 build/contracts/Migrations.json delete mode 100644 build/contracts/Website.json delete mode 100644 chrome-ext/background.js delete mode 100644 chrome-ext/config_resources/404.html delete mode 100644 chrome-ext/config_resources/DNS.json delete mode 100644 chrome-ext/config_resources/Website.json delete mode 100644 chrome-ext/config_resources/loading.html delete mode 100644 chrome-ext/js/jquery.min.js delete mode 100644 chrome-ext/js/truffle-contract.min.js delete mode 100644 chrome-ext/js/web3.min.js delete mode 100644 chrome-ext/manifest.json delete mode 100644 contracts/DNS.sol delete mode 100644 contracts/Migrations.sol delete mode 100644 contracts/Website.sol delete mode 100644 migrations/1_initial_migration.js delete mode 100644 migrations/2_deploy_contracts.js delete mode 100644 node_app/DNS.json delete mode 100644 node_app/Website.json delete mode 100644 node_app/package-lock.json delete mode 100644 node_app/package.json delete mode 100644 node_app/server.js delete mode 100644 node_app/src/DNS.json delete mode 100644 node_app/src/Website.json delete mode 100644 node_app/src/css/animate.min.css delete mode 100644 node_app/src/css/bootstrap.min.css delete mode 100644 node_app/src/css/default.css delete mode 100644 node_app/src/css/demo.css delete mode 100644 node_app/src/css/font-awesome.min.css delete mode 100644 node_app/src/css/portal.css delete mode 100644 node_app/src/css/style.css delete mode 100644 node_app/src/docs.pdf delete mode 100644 node_app/src/domainCheckLoading.gif delete mode 100644 node_app/src/domainViewLoading.gif delete mode 100644 node_app/src/extension.zip delete mode 100644 node_app/src/fonts/FontAwesome.otf delete mode 100644 node_app/src/fonts/fontawesome-webfont.eot delete mode 100644 node_app/src/fonts/fontawesome-webfont.svg delete mode 100644 node_app/src/fonts/fontawesome-webfont.ttf delete mode 100644 node_app/src/fonts/fontawesome-webfont.woff delete mode 100644 node_app/src/fonts/fontawesome-webfont.woff2 delete mode 100644 node_app/src/fonts/glyphicons-halflings-regular.eot delete mode 100644 node_app/src/fonts/glyphicons-halflings-regular.svg delete mode 100644 node_app/src/fonts/glyphicons-halflings-regular.ttf delete mode 100644 node_app/src/fonts/glyphicons-halflings-regular.woff delete mode 100644 node_app/src/fonts/glyphicons-halflings-regular.woff2 delete mode 100644 node_app/src/images/aayush.jpg delete mode 100644 node_app/src/images/bcextension.png delete mode 100644 node_app/src/images/contact-bg.jpg delete mode 100644 node_app/src/images/divider-bg.jpg delete mode 100644 node_app/src/images/kaushal.jpeg delete mode 100644 node_app/src/images/logo7.png delete mode 100644 node_app/src/images/metamask.png delete mode 100644 node_app/src/images/ranjan.jpg delete mode 100644 node_app/src/images/shahi.jpg delete mode 100644 node_app/src/images/slider/1.jpg delete mode 100644 node_app/src/images/slider/2.jpg delete mode 100644 node_app/src/images/slider/3.jpg delete mode 100644 node_app/src/index.html delete mode 100644 node_app/src/js/app.js delete mode 100644 node_app/src/js/bootstrap.min.js delete mode 100644 node_app/src/js/buffer.js delete mode 100644 node_app/src/js/custom.js delete mode 100644 node_app/src/js/imagesloaded.min.js delete mode 100644 node_app/src/js/ipfs.js delete mode 100644 node_app/src/js/isotope.js delete mode 100644 node_app/src/js/jquery.flexslider.js delete mode 100644 node_app/src/js/jquery.js delete mode 100644 node_app/src/js/jquery.min.js delete mode 100644 node_app/src/js/portal.js delete mode 100644 node_app/src/js/smoothscroll.js delete mode 100644 node_app/src/js/truffle-contract.min.js delete mode 100644 node_app/src/js/web3.min.js delete mode 100644 node_app/src/js/wow.min.js delete mode 100644 node_app/src/lib/zip/.jshintrc delete mode 100644 node_app/src/lib/zip/deflate.js delete mode 100644 node_app/src/lib/zip/inflate.js delete mode 100644 node_app/src/lib/zip/mime-types.js delete mode 100644 node_app/src/lib/zip/pako/codecs.js delete mode 100644 node_app/src/lib/zip/tests/arraybuffer.js delete mode 100644 node_app/src/lib/zip/tests/base64.js delete mode 100644 node_app/src/lib/zip/tests/config.js delete mode 100644 node_app/src/lib/zip/tests/dataview.js delete mode 100644 node_app/src/lib/zip/tests/lorem.txt delete mode 100644 node_app/src/lib/zip/tests/lorem.zip delete mode 100644 node_app/src/lib/zip/tests/lorem2.zip delete mode 100644 node_app/src/lib/zip/tests/lorem_store.zip delete mode 100644 node_app/src/lib/zip/tests/test1.html delete mode 100644 node_app/src/lib/zip/tests/test1.js delete mode 100644 node_app/src/lib/zip/tests/test10.html delete mode 100644 node_app/src/lib/zip/tests/test10.js delete mode 100644 node_app/src/lib/zip/tests/test11.html delete mode 100644 node_app/src/lib/zip/tests/test11.js delete mode 100644 node_app/src/lib/zip/tests/test12.html delete mode 100644 node_app/src/lib/zip/tests/test12.js delete mode 100644 node_app/src/lib/zip/tests/test13.html delete mode 100644 node_app/src/lib/zip/tests/test13.js delete mode 100644 node_app/src/lib/zip/tests/test14.html delete mode 100644 node_app/src/lib/zip/tests/test14.js delete mode 100644 node_app/src/lib/zip/tests/test15.html delete mode 100644 node_app/src/lib/zip/tests/test15.js delete mode 100644 node_app/src/lib/zip/tests/test16.html delete mode 100644 node_app/src/lib/zip/tests/test16.js delete mode 100644 node_app/src/lib/zip/tests/test17.html delete mode 100644 node_app/src/lib/zip/tests/test17.js delete mode 100644 node_app/src/lib/zip/tests/test18.html delete mode 100644 node_app/src/lib/zip/tests/test18.js delete mode 100644 node_app/src/lib/zip/tests/test19-codecs-interop.html delete mode 100644 node_app/src/lib/zip/tests/test2.html delete mode 100644 node_app/src/lib/zip/tests/test2.js delete mode 100644 node_app/src/lib/zip/tests/test20.html delete mode 100644 node_app/src/lib/zip/tests/test20.js delete mode 100644 node_app/src/lib/zip/tests/test3.html delete mode 100644 node_app/src/lib/zip/tests/test3.js delete mode 100644 node_app/src/lib/zip/tests/test4.html delete mode 100644 node_app/src/lib/zip/tests/test4.js delete mode 100644 node_app/src/lib/zip/tests/test5.html delete mode 100644 node_app/src/lib/zip/tests/test5.js delete mode 100644 node_app/src/lib/zip/tests/test6.html delete mode 100644 node_app/src/lib/zip/tests/test6.js delete mode 100644 node_app/src/lib/zip/tests/test7.html delete mode 100644 node_app/src/lib/zip/tests/test7.js delete mode 100644 node_app/src/lib/zip/tests/test8.html delete mode 100644 node_app/src/lib/zip/tests/test8.js delete mode 100644 node_app/src/lib/zip/tests/test9.html delete mode 100644 node_app/src/lib/zip/tests/test9.js delete mode 100644 node_app/src/lib/zip/tests/util.js delete mode 100644 node_app/src/lib/zip/z-worker.js delete mode 100644 node_app/src/lib/zip/zip-ext.js delete mode 100644 node_app/src/lib/zip/zip-fs.js delete mode 100644 node_app/src/lib/zip/zip.js delete mode 100644 node_app/src/lib/zip/zlib-asm/codecs.js delete mode 100644 node_app/src/loading.gif delete mode 100644 node_app/src/logo7.png delete mode 100644 node_app/src/portal.html delete mode 100644 package-lock.json delete mode 100644 package.json delete mode 100644 pic.PNG delete mode 100644 test/test.js delete mode 100644 truffle-config.js diff --git a/.gitignore b/.gitignore deleted file mode 100644 index d3e575d..0000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -node_app/node_modules/ -node_modules/ -truffle.js \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index b47b465..0000000 --- a/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# MissionImpossible -
-# BC Hosting(http://missionimpossible-hackabit.tech) -
-
- -

-BC hosting a product which make possible for the user to host website using blockchain technology.
-This gives us following benifits: -
    -
  1. The website becomes relaible.
  2. -
  3. The website becomes secure.
  4. -
  5. The website becomes fast.
  6. -
  7. The website becomes scalable.
  8. -
  9. The website becomes decentralized.
  10. -
  11. The website becomes cost-efficient.
  12. -
-Currently we have solutions only for static file hosting. -

-BC Hosting uses Blockchain for handling all the transactions, that provide security and reliability of all the transactions. -

-Head over to BC Hosting to join the experience. diff --git a/build/contracts/DNS.json b/build/contracts/DNS.json deleted file mode 100644 index a8d7809..0000000 --- a/build/contracts/DNS.json +++ /dev/null @@ -1,6711 +0,0 @@ -{ - "contractName": "DNS", - "abi": [ - { - "constant": true, - "inputs": [ - { - "name": "", - "type": "uint256" - } - ], - "name": "website_address", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "domain_name_length", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "createWebsite", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_name", - "type": "string" - }, - { - "name": "_file_address", - "type": "string" - } - ], - "name": "mapDNS", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_name", - "type": "string" - }, - { - "name": "_new_admin", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "checkDomainAvaibility", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "getDomainAddress", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "getDomainOwner", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "getWebsiteAddress", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_address", - "type": "address" - } - ], - "name": "getWebsiteName", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getAllDomainAddress", - "outputs": [ - { - "name": "", - "type": "address[]" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getUserWebsites", - "outputs": [ - { - "name": "", - "type": "address[]" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - } - ], - "bytecode": "0x6080604052600060015534801561001557600080fd5b50612a8f806100256000396000f3006080604052600436106100ba576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806325970115146100bf57806325e554b51461016857806334fcd96d146101d15780633bec2b441461023d5780633c8803fa146102f9578063760c11ec14610366578063848ee2fd1461041557806394310e51146104be57806397591c5a146105a0578063bc5c3de3146105cb578063c0e793c21461064c578063e35ae2a5146106d5575b600080fd5b3480156100cb57600080fd5b50610126600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610741565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017457600080fd5b506101cf600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061085c565b005b3480156101dd57600080fd5b506101e6610d38565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561022957808201518184015260208101905061020e565b505050509050019250505060405180910390f35b34801561024957600080fd5b5061027e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dc6565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102be5780820151818401526020810190506102a3565b50505050905090810190601f1680156102eb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030557600080fd5b5061032460048036038101908080359060200190929190505050610ea7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561037257600080fd5b50610413600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610ee5565b005b34801561042157600080fd5b5061047c600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506110b4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104ca57600080fd5b50610525600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506111cf565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561056557808201518184015260208101905061054a565b50505050905090810190601f1680156105925780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156105ac57600080fd5b506105b5611362565b6040518082815260200191505060405180910390f35b3480156105d757600080fd5b50610632600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611368565b604051808215151515815260200191505060405180910390f35b34801561065857600080fd5b506106d3600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113eb565b005b3480156106e157600080fd5b506106ea6115e4565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561072d578082015181840152602081019050610712565b505050509050019250505060405180910390f35b6000816007816040518082805190602001908083835b60208310151561077c5780518252602082019150602081019050602083039250610757565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615156107c857600080fd5b6004836040518082805190602001908083835b60208310151561080057805182526020820191506020810190506020830392506107db565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b60006007826040518082805190602001908083835b6020831015156108965780518252602082019150602081019050602083039250610871565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515156108e357600080fd5b33826108ed6116af565b808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561095c578082015181840152602081019050610941565b50505050905090810190601f1680156109895780820380516001836020036101000a031916815260200191505b509350505050604051809103906000f0801580156109ab573d6000803e3d6000fd5b50905060028190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000829080600181540180825580915050906001820390600052602060002001600090919290919091509080519060200190610a519291906116bf565b505060016000815480929190600101919050555060016007836040518082805190602001908083835b602083101515610a9f5780518252602082019150602081019050602083039250610a7a565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff02191690831515021790555081600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209080519060200190610b3c9291906116bf565b50336004836040518082805190602001908083835b602083101515610b765780518252602082019150602081019050602083039250610b51565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050806006836040518082805190602001908083835b602083101515610cc35780518252602082019150602081019050602083039250610c9e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60606002805480602002602001604051908101604052809291908181526020018280548015610dbc57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610d72575b5050505050905090565b6060600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e9b5780601f10610e7057610100808354040283529160200191610e9b565b820191906000526020600020905b815481529060010190602001808311610e7e57829003601f168201915b50505050509050919050565b600281815481101515610eb657fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b816004816040518082805190602001908083835b602083101515610f1e5780518252602082019150602081019050602083039250610ef9565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610fab57600080fd5b6007836040518082805190602001908083835b602083101515610fe35780518252602082019150602081019050602083039250610fbe565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561102f57600080fd5b816003846040518082805190602001908083835b6020831015156110685780518252602082019150602081019050602083039250611043565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906110ae9291906116bf565b50505050565b6000816007816040518082805190602001908083835b6020831015156110ef57805182526020820191506020810190506020830392506110ca565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561113b57600080fd5b6006836040518082805190602001908083835b602083101515611173578051825260208201915060208101905060208303925061114e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b6060816007816040518082805190602001908083835b60208310151561120a57805182526020820191506020810190506020830392506111e5565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561125657600080fd5b6003836040518082805190602001908083835b60208310151561128e5780518252602082019150602081019050602083039250611269565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113555780601f1061132a57610100808354040283529160200191611355565b820191906000526020600020905b81548152906001019060200180831161133857829003601f168201915b5050505050915050919050565b60015481565b60006007826040518082805190602001908083835b6020831015156113a2578051825260208201915060208101905060208303925061137d565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16159050919050565b816004816040518082805190602001908083835b60208310151561142457805182526020820191506020810190506020830392506113ff565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156114b157600080fd5b6007836040518082805190602001908083835b6020831015156114e957805182526020820191506020810190506020830392506114c4565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561153557600080fd5b816004846040518082805190602001908083835b60208310151561156e5780518252602082019150602081019050602083039250611549565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6060600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156116a557602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161165b575b5050505050905090565b6040516112ff8061176583390190565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061170057805160ff191683800117855561172e565b8280016001018555821561172e579182015b8281111561172d578251825591602001919060010190611712565b5b50905061173b919061173f565b5090565b61176191905b8082111561175d576000816000905550600101611745565b5090565b905600608060405260006006553480156200001657600080fd5b50604051620012ff380380620012ff8339810180604052810190808051906020019092919080518201929190505050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600190805190602001906200009d929190620000a6565b50505062000155565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000e957805160ff19168380011785556200011a565b828001600101855582156200011a579182015b8281111562000119578251825591602001919060010190620000fc565b5b5090506200012991906200012d565b5090565b6200015291905b808211156200014e57600081600090555060010162000134565b5090565b90565b61119a80620001656000396000f300608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063248bfc3b1461009e578063464ed51c1461014d5780639526419a146101fc578063a62ffbc414610227578063a991005414610252578063cbcdc4ab146102bb578063ed7c238d1461034b578063f851a440146103f1578063f880680b14610448575b600080fd5b3480156100aa57600080fd5b5061014b600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061052a565b005b34801561015957600080fd5b506101fa600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610802565b005b34801561020857600080fd5b506102116108e1565b6040518082815260200191505060405180910390f35b34801561023357600080fd5b5061023c6108eb565b6040518082815260200191505060405180910390f35b34801561025e57600080fd5b506102b9600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506108f1565b005b3480156102c757600080fd5b506102d0610cdb565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103105780820151818401526020810190506102f5565b50505050905090810190601f16801561033d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561035757600080fd5b5061037660048036038101908080359060200190929190505050610d79565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103b657808201518184015260208101905061039b565b50505050905090810190601f1680156103e35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103fd57600080fd5b50610406610e44565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561045457600080fd5b506104af600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e69565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104ef5780820151818401526020810190506104d4565b50505050905090810190601f16801561051c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561058557600080fd5b8160606000829150600090506000825114156105a057600190505b6000811415156105af57600080fd5b6003856040518082805190602001908083835b6020831015156105e757805182526020820191506020810190506020830392506105c2565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615151561063457600080fd5b836002866040518082805190602001908083835b60208310151561066d5780518252602082019150602081019050602083039250610648565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906106b3929190610ffa565b5060058590806001815401808255809150509060018203906000526020600020016000909192909190915090805190602001906106f1929190610ffa565b505060016003866040518082805190602001908083835b60208310151561072d5780518252602082019150602081019050602083039250610708565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506006546004866040518082805190602001908083835b6020831015156107b2578051825260208201915060208101905060208303925061078d565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020819055506006600081548092919060010191905055505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561085d57600080fd5b806002836040518082805190602001908083835b6020831015156108965780518252602082019150602081019050602083039250610871565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906108dc929190610ffa565b505050565b6000600654905090565b60065481565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561094f57600080fd5b6003836040518082805190602001908083835b6020831015156109875780518252602082019150602081019050602083039250610962565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615156109d357600080fd5b60006003846040518082805190602001908083835b602083101515610a0d57805182526020820191506020810190506020830392506109e8565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506003836040518082805190602001908083835b602083101515610a8f5780518252602082019150602081019050602083039250610a6a565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81549060ff02191690556004836040518082805190602001908083835b602083101515610b0a5780518252602082019150602081019050602083039250610ae5565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390205491506004836040518082805190602001908083835b602083101515610b785780518252602082019150602081019050602083039250610b53565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020600090556002836040518082805190602001908083835b602083101515610be75780518252602082019150602081019050602083039250610bc2565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390206000610c26919061107a565b8190505b600160065403811015610c9957600560018201815481101515610c4957fe5b90600052602060002001600582815481101515610c6257fe5b906000526020600020019080546001816001161561010002031660029004610c8b9291906110c2565b508080600101915050610c2a565b6005600160065403815481101515610cad57fe5b906000526020600020016000610cc3919061107a565b60066000815480929190600190039190505550505050565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d715780601f10610d4657610100808354040283529160200191610d71565b820191906000526020600020905b815481529060010190602001808311610d5457829003601f168201915b505050505081565b606060065482101515610d8b57600080fd5b600582815481101515610d9a57fe5b906000526020600020018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e385780601f10610e0d57610100808354040283529160200191610e38565b820191906000526020600020905b815481529060010190602001808311610e1b57829003601f168201915b50505050509050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606003826040518082805190602001908083835b602083101515610ea35780518252602082019150602081019050602083039250610e7e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515610eef57600080fd5b6002826040518082805190602001908083835b602083101515610f275780518252602082019150602081019050602083039250610f02565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610fee5780601f10610fc357610100808354040283529160200191610fee565b820191906000526020600020905b815481529060010190602001808311610fd157829003601f168201915b50505050509050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061103b57805160ff1916838001178555611069565b82800160010185558215611069579182015b8281111561106857825182559160200191906001019061104d565b5b5090506110769190611149565b5090565b50805460018160011615610100020316600290046000825580601f106110a057506110bf565b601f0160209004906000526020600020908101906110be9190611149565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106110fb5780548555611138565b8280016001018555821561113857600052602060002091601f016020900482015b8281111561113757825482559160010191906001019061111c565b5b5090506111459190611149565b5090565b61116b91905b8082111561116757600081600090555060010161114f565b5090565b905600a165627a7a72305820b8cf83f91137c2768d42d5f6f2dbcdad1775f3eb70ff176e2a5053422de513050029a165627a7a723058203f26de9585a095a80c658eba5a49a9db453bd8a824b566f6e7102ef69fdf48ef0029", - "deployedBytecode": "0x6080604052600436106100ba576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806325970115146100bf57806325e554b51461016857806334fcd96d146101d15780633bec2b441461023d5780633c8803fa146102f9578063760c11ec14610366578063848ee2fd1461041557806394310e51146104be57806397591c5a146105a0578063bc5c3de3146105cb578063c0e793c21461064c578063e35ae2a5146106d5575b600080fd5b3480156100cb57600080fd5b50610126600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610741565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017457600080fd5b506101cf600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061085c565b005b3480156101dd57600080fd5b506101e6610d38565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561022957808201518184015260208101905061020e565b505050509050019250505060405180910390f35b34801561024957600080fd5b5061027e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dc6565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102be5780820151818401526020810190506102a3565b50505050905090810190601f1680156102eb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030557600080fd5b5061032460048036038101908080359060200190929190505050610ea7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561037257600080fd5b50610413600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610ee5565b005b34801561042157600080fd5b5061047c600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506110b4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104ca57600080fd5b50610525600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506111cf565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561056557808201518184015260208101905061054a565b50505050905090810190601f1680156105925780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156105ac57600080fd5b506105b5611362565b6040518082815260200191505060405180910390f35b3480156105d757600080fd5b50610632600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611368565b604051808215151515815260200191505060405180910390f35b34801561065857600080fd5b506106d3600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113eb565b005b3480156106e157600080fd5b506106ea6115e4565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561072d578082015181840152602081019050610712565b505050509050019250505060405180910390f35b6000816007816040518082805190602001908083835b60208310151561077c5780518252602082019150602081019050602083039250610757565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615156107c857600080fd5b6004836040518082805190602001908083835b60208310151561080057805182526020820191506020810190506020830392506107db565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b60006007826040518082805190602001908083835b6020831015156108965780518252602082019150602081019050602083039250610871565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515156108e357600080fd5b33826108ed6116af565b808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561095c578082015181840152602081019050610941565b50505050905090810190601f1680156109895780820380516001836020036101000a031916815260200191505b509350505050604051809103906000f0801580156109ab573d6000803e3d6000fd5b50905060028190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000829080600181540180825580915050906001820390600052602060002001600090919290919091509080519060200190610a519291906116bf565b505060016000815480929190600101919050555060016007836040518082805190602001908083835b602083101515610a9f5780518252602082019150602081019050602083039250610a7a565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff02191690831515021790555081600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209080519060200190610b3c9291906116bf565b50336004836040518082805190602001908083835b602083101515610b765780518252602082019150602081019050602083039250610b51565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050806006836040518082805190602001908083835b602083101515610cc35780518252602082019150602081019050602083039250610c9e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60606002805480602002602001604051908101604052809291908181526020018280548015610dbc57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610d72575b5050505050905090565b6060600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e9b5780601f10610e7057610100808354040283529160200191610e9b565b820191906000526020600020905b815481529060010190602001808311610e7e57829003601f168201915b50505050509050919050565b600281815481101515610eb657fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b816004816040518082805190602001908083835b602083101515610f1e5780518252602082019150602081019050602083039250610ef9565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610fab57600080fd5b6007836040518082805190602001908083835b602083101515610fe35780518252602082019150602081019050602083039250610fbe565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561102f57600080fd5b816003846040518082805190602001908083835b6020831015156110685780518252602082019150602081019050602083039250611043565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906110ae9291906116bf565b50505050565b6000816007816040518082805190602001908083835b6020831015156110ef57805182526020820191506020810190506020830392506110ca565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561113b57600080fd5b6006836040518082805190602001908083835b602083101515611173578051825260208201915060208101905060208303925061114e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b6060816007816040518082805190602001908083835b60208310151561120a57805182526020820191506020810190506020830392506111e5565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561125657600080fd5b6003836040518082805190602001908083835b60208310151561128e5780518252602082019150602081019050602083039250611269565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113555780601f1061132a57610100808354040283529160200191611355565b820191906000526020600020905b81548152906001019060200180831161133857829003601f168201915b5050505050915050919050565b60015481565b60006007826040518082805190602001908083835b6020831015156113a2578051825260208201915060208101905060208303925061137d565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16159050919050565b816004816040518082805190602001908083835b60208310151561142457805182526020820191506020810190506020830392506113ff565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156114b157600080fd5b6007836040518082805190602001908083835b6020831015156114e957805182526020820191506020810190506020830392506114c4565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561153557600080fd5b816004846040518082805190602001908083835b60208310151561156e5780518252602082019150602081019050602083039250611549565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6060600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156116a557602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161165b575b5050505050905090565b6040516112ff8061176583390190565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061170057805160ff191683800117855561172e565b8280016001018555821561172e579182015b8281111561172d578251825591602001919060010190611712565b5b50905061173b919061173f565b5090565b61176191905b8082111561175d576000816000905550600101611745565b5090565b905600608060405260006006553480156200001657600080fd5b50604051620012ff380380620012ff8339810180604052810190808051906020019092919080518201929190505050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600190805190602001906200009d929190620000a6565b50505062000155565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000e957805160ff19168380011785556200011a565b828001600101855582156200011a579182015b8281111562000119578251825591602001919060010190620000fc565b5b5090506200012991906200012d565b5090565b6200015291905b808211156200014e57600081600090555060010162000134565b5090565b90565b61119a80620001656000396000f300608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063248bfc3b1461009e578063464ed51c1461014d5780639526419a146101fc578063a62ffbc414610227578063a991005414610252578063cbcdc4ab146102bb578063ed7c238d1461034b578063f851a440146103f1578063f880680b14610448575b600080fd5b3480156100aa57600080fd5b5061014b600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061052a565b005b34801561015957600080fd5b506101fa600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610802565b005b34801561020857600080fd5b506102116108e1565b6040518082815260200191505060405180910390f35b34801561023357600080fd5b5061023c6108eb565b6040518082815260200191505060405180910390f35b34801561025e57600080fd5b506102b9600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506108f1565b005b3480156102c757600080fd5b506102d0610cdb565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103105780820151818401526020810190506102f5565b50505050905090810190601f16801561033d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561035757600080fd5b5061037660048036038101908080359060200190929190505050610d79565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103b657808201518184015260208101905061039b565b50505050905090810190601f1680156103e35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103fd57600080fd5b50610406610e44565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561045457600080fd5b506104af600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e69565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104ef5780820151818401526020810190506104d4565b50505050905090810190601f16801561051c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561058557600080fd5b8160606000829150600090506000825114156105a057600190505b6000811415156105af57600080fd5b6003856040518082805190602001908083835b6020831015156105e757805182526020820191506020810190506020830392506105c2565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615151561063457600080fd5b836002866040518082805190602001908083835b60208310151561066d5780518252602082019150602081019050602083039250610648565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906106b3929190610ffa565b5060058590806001815401808255809150509060018203906000526020600020016000909192909190915090805190602001906106f1929190610ffa565b505060016003866040518082805190602001908083835b60208310151561072d5780518252602082019150602081019050602083039250610708565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506006546004866040518082805190602001908083835b6020831015156107b2578051825260208201915060208101905060208303925061078d565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020819055506006600081548092919060010191905055505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561085d57600080fd5b806002836040518082805190602001908083835b6020831015156108965780518252602082019150602081019050602083039250610871565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906108dc929190610ffa565b505050565b6000600654905090565b60065481565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561094f57600080fd5b6003836040518082805190602001908083835b6020831015156109875780518252602082019150602081019050602083039250610962565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615156109d357600080fd5b60006003846040518082805190602001908083835b602083101515610a0d57805182526020820191506020810190506020830392506109e8565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506003836040518082805190602001908083835b602083101515610a8f5780518252602082019150602081019050602083039250610a6a565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81549060ff02191690556004836040518082805190602001908083835b602083101515610b0a5780518252602082019150602081019050602083039250610ae5565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390205491506004836040518082805190602001908083835b602083101515610b785780518252602082019150602081019050602083039250610b53565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020600090556002836040518082805190602001908083835b602083101515610be75780518252602082019150602081019050602083039250610bc2565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390206000610c26919061107a565b8190505b600160065403811015610c9957600560018201815481101515610c4957fe5b90600052602060002001600582815481101515610c6257fe5b906000526020600020019080546001816001161561010002031660029004610c8b9291906110c2565b508080600101915050610c2a565b6005600160065403815481101515610cad57fe5b906000526020600020016000610cc3919061107a565b60066000815480929190600190039190505550505050565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d715780601f10610d4657610100808354040283529160200191610d71565b820191906000526020600020905b815481529060010190602001808311610d5457829003601f168201915b505050505081565b606060065482101515610d8b57600080fd5b600582815481101515610d9a57fe5b906000526020600020018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e385780601f10610e0d57610100808354040283529160200191610e38565b820191906000526020600020905b815481529060010190602001808311610e1b57829003601f168201915b50505050509050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606003826040518082805190602001908083835b602083101515610ea35780518252602082019150602081019050602083039250610e7e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515610eef57600080fd5b6002826040518082805190602001908083835b602083101515610f275780518252602082019150602081019050602083039250610f02565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610fee5780601f10610fc357610100808354040283529160200191610fee565b820191906000526020600020905b815481529060010190602001808311610fd157829003601f168201915b50505050509050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061103b57805160ff1916838001178555611069565b82800160010185558215611069579182015b8281111561106857825182559160200191906001019061104d565b5b5090506110769190611149565b5090565b50805460018160011615610100020316600290046000825580601f106110a057506110bf565b601f0160209004906000526020600020908101906110be9190611149565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106110fb5780548555611138565b8280016001018555821561113857600052602060002091601f016020900482015b8281111561113757825482559160010191906001019061111c565b5b5090506111459190611149565b5090565b61116b91905b8082111561116757600081600090555060010161114f565b5090565b905600a165627a7a72305820b8cf83f91137c2768d42d5f6f2dbcdad1775f3eb70ff176e2a5053422de513050029a165627a7a723058203f26de9585a095a80c658eba5a49a9db453bd8a824b566f6e7102ef69fdf48ef0029", - "sourceMap": "96:2643:0:-;;;172:1;139:34;;96:2643;8:9:-1;5:2;;;30:1;27;20:12;5:2;96:2643:0;;;;;;;", - "deployedSourceMap": "96:2643:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2112:131;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2112:131:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;995:489;;8:9:-1;5:2;;;30:1;27;20:12;5:2;995:489:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2508:96;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2508:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;2508:96:0;;;;;;;;;;;;;;;;;2388:115;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2388:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;2388:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;179:32;;8:9:-1;5:2;;;30:1;27;20:12;5:2;179:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1490:168;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1490:168:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2248:135;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2248:135:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1972;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1972:135:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1972:135:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;139:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;139:34:0;;;;;;;;;;;;;;;;;;;;;;;1852:115;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1852:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1663:171;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1663:171:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2609:121;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2609:121:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;2609:121:0;;;;;;;;;;;;;;;;;2112:131;2194:7;2173:5;936:18;955:5;936:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;936:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;927:35;;;;;;;;2215:16;2232:5;2215:23;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;2215:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2208:30;;2112:131;;;;:::o;995:489::-;1085:24;1054:18;1073:5;1054:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1054:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1053:26;1045:35;;;;;;;;1124:10;1136:5;1112:30;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1112:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1112:30:0;1085:57;;1147:15;1168:16;1147:38;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;1147:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1190:11;1207:5;1190:23;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;1190:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;1218:18;;:20;;;;;;;;;;;;;1271:4;1243:18;1262:5;1243:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1243:25:0;;;;;;;;;;;;;;;;;;;;;;:32;;;;;;;;;;;;;;;;;;1319:5;1280:18;:36;1299:16;1280:36;;;;;;;;;;;;;;;:44;;;;;;;;;;;;:::i;:::-;;1355:10;1329:16;1346:5;1329:23;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1329:23:0;;;;;;;;;;;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;1370:25;:37;1396:10;1370:37;;;;;;;;;;;;;;;1413:16;1370:60;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;1370:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1463:16;1435:18;1454:5;1435:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1435:25:0;;;;;;;;;;;;;;;;;;;;;;:44;;;;;;;;;;;;;;;;;;995:489;;:::o;2508:96::-;2560:10;2584:15;2577:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2508:96;:::o;2388:115::-;2450:6;2470:18;:28;2489:8;2470:28;;;;;;;;;;;;;;;2463:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2388:115;;;:::o;179:32::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1490:168::-;1560:5;828:16;845:5;828:23;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;828:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;814:37;;:10;:37;;;805:47;;;;;;;;1580:18;1599:5;1580:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1580:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1572:34;;;;;;;;1640:13;1611:19;1631:5;1611:26;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1611:26:0;;;;;;;;;;;;;;;;;;;;;:42;;;;;;;;;;;;:::i;:::-;;1490:168;;;:::o;2248:135::-;2332:7;2312:5;936:18;955:5;936:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;936:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;927:35;;;;;;;;2353:18;2372:5;2353:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;2353:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2346:32;;2248:135;;;;:::o;1972:::-;2056:6;2035:5;936:18;955:5;936:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;936:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;927:35;;;;;;;;2076:19;2096:5;2076:26;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;2076:26:0;;;;;;;;;;;;;;;;;;;;;2069:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1972:135;;;;:::o;139:34::-;;;;:::o;1852:115::-;1918:4;1937:18;1956:5;1937:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1937:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1936:26;1929:33;;1852:115;;;:::o;1663:171::-;1742:5;828:16;845:5;828:23;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;828:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;814:37;;:10;:37;;;805:47;;;;;;;;1762:18;1781:5;1762:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1762:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1754:34;;;;;;;;1819:10;1793:16;1810:5;1793:23;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1793:23:0;;;;;;;;;;;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;1663:171;;;:::o;2609:121::-;2656:10;2685:25;:37;2711:10;2685:37;;;;;;;;;;;;;;;2678:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2609:121;:::o;96:2643::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o", - "source": "pragma solidity ^0.4.19;\r\n\r\n\r\nimport \"./Website.sol\";\r\n\r\n/**\r\n * The WebFactory contract \r\n */\r\ncontract DNS {\r\n\r\n\tstring[] domain_name;\r\n\tuint public domain_name_length = 0;\r\n\r\n\taddress[] public website_address;\r\n \r\n // (DomainName => index.html hash)\r\n mapping (string => string) domain_redirect_map;\r\n\r\n // (Domain_name => Admin_Address)\r\n mapping (string => address) domain_admin_map;\r\n\r\n // (WebsiteAddress => Name)\r\n mapping (address => string) address_domain_map;\r\n // (Name => WebsiteAddress)\r\n mapping (string => address) domain_address_map;\r\n\r\n // Checks\r\n mapping (string => bool) is_domain_acquired;\r\n\r\n // Admin => address array of all website\r\n mapping(address => address[]) admin_website_address_map;\r\n\r\n modifier restricted(string _name) { \r\n \trequire (msg.sender == domain_admin_map[_name]); \r\n \t_; \r\n }\r\n\r\n modifier restricted_name(string _name) { \r\n \trequire (is_domain_acquired[_name]);\r\n \t_; \r\n }\r\n \r\n \r\n\tfunction createWebsite (string _name) public {\r\n\t\trequire(!is_domain_acquired[_name]);\r\n\t\taddress _website_address = new Website(msg.sender, _name);\r\n\t\twebsite_address.push(_website_address);\r\n\t\tdomain_name.push(_name);\r\n\t\tdomain_name_length++;\r\n\t\tis_domain_acquired[_name] = true;\r\n\t\taddress_domain_map[_website_address] = _name;\r\n\t\tdomain_admin_map[_name] = msg.sender;\r\n\t\tadmin_website_address_map[msg.sender].push(_website_address);\r\n\t\tdomain_address_map[_name] = _website_address;\r\n\t}\t\r\n\r\n\tfunction mapDNS(string _name, string _file_address) public restricted(_name) {\r\n\t\trequire(is_domain_acquired[_name]);\r\n\t\tdomain_redirect_map[_name] = _file_address;\r\n\t}\r\n\r\n\tfunction transferOwnership(string _name, address _new_admin) public restricted(_name) {\r\n\t\trequire(is_domain_acquired[_name]);\r\n\t\tdomain_admin_map[_name] = _new_admin;\r\n\t}\r\n\r\n\t// Views\r\n\r\n\tfunction checkDomainAvaibility(string _name) public view returns (bool) {\r\n\t\treturn !is_domain_acquired[_name];\r\n\t}\r\n\r\n\tfunction getDomainAddress(string _name) public restricted_name(_name) view returns (string) {\r\n\t\treturn domain_redirect_map[_name];\r\n\t}\r\n\r\n\tfunction getDomainOwner(string _name) public restricted_name(_name) view returns (address) {\r\n\t\treturn domain_admin_map[_name];\r\n\t}\r\n\r\n\tfunction getWebsiteAddress(string _name) public restricted_name(_name) view returns(address) {\r\n\t\treturn domain_address_map[_name];\r\n\t}\r\n\r\n\tfunction getWebsiteName(address _address) public view returns(string) {\r\n\t\treturn address_domain_map[_address];\r\n\t}\r\n\r\n\tfunction getAllDomainAddress() public view returns (address []) {\r\n\t\treturn website_address;\r\n\t}\r\n\r\n\tfunction getUserWebsites() public view returns(address []){\r\n return admin_website_address_map[msg.sender];\r\n }\r\n \r\n}\r\n \r\n", - "sourcePath": "/mnt/e/code/bchosting_centralized/contracts/DNS.sol", - "ast": { - "absolutePath": "/mnt/e/code/bchosting_centralized/contracts/DNS.sol", - "exportedSymbols": { - "DNS": [ - 271 - ] - }, - "id": 272, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1, - "literals": [ - "solidity", - "^", - "0.4", - ".19" - ], - "nodeType": "PragmaDirective", - "src": "0:24:0" - }, - { - "absolutePath": "/mnt/e/code/bchosting_centralized/contracts/Website.sol", - "file": "./Website.sol", - "id": 2, - "nodeType": "ImportDirective", - "scope": 272, - "sourceUnit": 595, - "src": "30:23:0", - "symbolAliases": [], - "unitAlias": "" - }, - { - "baseContracts": [], - "contractDependencies": [ - 594 - ], - "contractKind": "contract", - "documentation": "The WebFactory contract \r", - "fullyImplemented": true, - "id": 271, - "linearizedBaseContracts": [ - 271 - ], - "name": "DNS", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": false, - "id": 5, - "name": "domain_name", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "115:20:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string[]" - }, - "typeName": { - "baseType": { - "id": 3, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "115:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "id": 4, - "length": null, - "nodeType": "ArrayTypeName", - "src": "115:8:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", - "typeString": "string[]" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 8, - "name": "domain_name_length", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "139:34:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 6, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "139:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "30", - "id": 7, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "172:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "visibility": "public" - }, - { - "constant": false, - "id": 11, - "name": "website_address", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "179:32:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 9, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "179:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 10, - "length": null, - "nodeType": "ArrayTypeName", - "src": "179:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 15, - "name": "domain_redirect_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "264:46:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "typeName": { - "id": 14, - "keyType": { - "id": 12, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "273:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "264:26:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "valueType": { - "id": 13, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "283:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 19, - "name": "domain_admin_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "358:44:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "typeName": { - "id": 18, - "keyType": { - "id": 16, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "367:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "358:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "valueType": { - "id": 17, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "377:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 23, - "name": "address_domain_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "444:46:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string)" - }, - "typeName": { - "id": 22, - "keyType": { - "id": 20, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "453:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "444:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string)" - }, - "valueType": { - "id": 21, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "464:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 27, - "name": "domain_address_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "530:46:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "typeName": { - "id": 26, - "keyType": { - "id": 24, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "539:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "530:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "valueType": { - "id": 25, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "549:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 31, - "name": "is_domain_acquired", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "600:43:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "typeName": { - "id": 30, - "keyType": { - "id": 28, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "609:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "600:24:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "valueType": { - "id": 29, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "619:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 36, - "name": "admin_website_address_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "698:55:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[])" - }, - "typeName": { - "id": 35, - "keyType": { - "id": 32, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "706:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "698:29:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[])" - }, - "valueType": { - "baseType": { - "id": 33, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "717:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 34, - "length": null, - "nodeType": "ArrayTypeName", - "src": "717:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "body": { - "id": 50, - "nodeType": "Block", - "src": "796:75:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 46, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 41, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "814:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 42, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "814:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 43, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "828:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 45, - "indexExpression": { - "argumentTypes": null, - "id": 44, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "845:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "828:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "814:37:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 40, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "805:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 47, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "805:47:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 48, - "nodeType": "ExpressionStatement", - "src": "805:47:0" - }, - { - "id": 49, - "nodeType": "PlaceholderStatement", - "src": "861:1:0" - } - ] - }, - "documentation": null, - "id": 51, - "name": "restricted", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 39, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 38, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 51, - "src": "782:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 37, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "782:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "781:14:0" - }, - "src": "762:109:0", - "visibility": "internal" - }, - { - "body": { - "id": 62, - "nodeType": "Block", - "src": "918:62:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 56, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "936:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 58, - "indexExpression": { - "argumentTypes": null, - "id": 57, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 53, - "src": "955:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "936:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 55, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "927:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 59, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "927:35:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 60, - "nodeType": "ExpressionStatement", - "src": "927:35:0" - }, - { - "id": 61, - "nodeType": "PlaceholderStatement", - "src": "970:1:0" - } - ] - }, - "documentation": null, - "id": 63, - "name": "restricted_name", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 54, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 53, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 63, - "src": "904:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 52, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "904:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "903:14:0" - }, - "src": "879:101:0", - "visibility": "internal" - }, - { - "body": { - "id": 132, - "nodeType": "Block", - "src": "1040:444:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 72, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "1053:26:0", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 69, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1054:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 71, - "indexExpression": { - "argumentTypes": null, - "id": 70, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1073:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1054:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 68, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1045:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 73, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1045:35:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 74, - "nodeType": "ExpressionStatement", - "src": "1045:35:0" - }, - { - "assignments": [ - 76 - ], - "declarations": [ - { - "constant": false, - "id": 76, - "name": "_website_address", - "nodeType": "VariableDeclaration", - "scope": 133, - "src": "1085:24:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 75, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1085:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 83, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 79, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "1124:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 80, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1124:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 81, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1136:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "id": 78, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "NewExpression", - "src": "1112:11:0", - "typeDescriptions": { - "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_string_memory_ptr_$returns$_t_contract$_Website_$594_$", - "typeString": "function (address,string memory) returns (contract Website)" - }, - "typeName": { - "contractScope": null, - "id": 77, - "name": "Website", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 594, - "src": "1116:7:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Website_$594", - "typeString": "contract Website" - } - } - }, - "id": 82, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1112:30:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Website_$594", - "typeString": "contract Website" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1085:57:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 87, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1168:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "expression": { - "argumentTypes": null, - "id": 84, - "name": "website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 11, - "src": "1147:15:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "id": 86, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1147:20:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) returns (uint256)" - } - }, - "id": 88, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1147:38:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 89, - "nodeType": "ExpressionStatement", - "src": "1147:38:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 93, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1207:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "expression": { - "argumentTypes": null, - "id": 90, - "name": "domain_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 5, - "src": "1190:11:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 92, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1190:16:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_string_storage_$returns$_t_uint256_$", - "typeString": "function (string storage ref) returns (uint256)" - } - }, - "id": 94, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1190:23:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 95, - "nodeType": "ExpressionStatement", - "src": "1190:23:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 97, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1218:20:0", - "subExpression": { - "argumentTypes": null, - "id": 96, - "name": "domain_name_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 8, - "src": "1218:18:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 98, - "nodeType": "ExpressionStatement", - "src": "1218:20:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 103, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 99, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1243:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 101, - "indexExpression": { - "argumentTypes": null, - "id": 100, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1262:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1243:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 102, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1271:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "src": "1243:32:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 104, - "nodeType": "ExpressionStatement", - "src": "1243:32:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 109, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 105, - "name": "address_domain_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 23, - "src": "1280:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string storage ref)" - } - }, - "id": 107, - "indexExpression": { - "argumentTypes": null, - "id": 106, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1299:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1280:36:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 108, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1319:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "1280:44:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 110, - "nodeType": "ExpressionStatement", - "src": "1280:44:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 116, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 111, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "1329:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 113, - "indexExpression": { - "argumentTypes": null, - "id": 112, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1346:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1329:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 114, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "1355:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 115, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1355:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1329:36:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 117, - "nodeType": "ExpressionStatement", - "src": "1329:36:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 123, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1413:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 118, - "name": "admin_website_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 36, - "src": "1370:25:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[] storage ref)" - } - }, - "id": 121, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 119, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "1396:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 120, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1396:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1370:37:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "id": 122, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1370:42:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) returns (uint256)" - } - }, - "id": 124, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1370:60:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 125, - "nodeType": "ExpressionStatement", - "src": "1370:60:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 130, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 126, - "name": "domain_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 27, - "src": "1435:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 128, - "indexExpression": { - "argumentTypes": null, - "id": 127, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1454:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1435:25:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 129, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1463:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1435:44:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 131, - "nodeType": "ExpressionStatement", - "src": "1435:44:0" - } - ] - }, - "documentation": null, - "id": 133, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "createWebsite", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 66, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 65, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 133, - "src": "1019:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 64, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1019:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1018:14:0" - }, - "payable": false, - "returnParameters": { - "id": 67, - "nodeType": "ParameterList", - "parameters": [], - "src": "1040:0:0" - }, - "scope": 271, - "src": "995:489:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 155, - "nodeType": "Block", - "src": "1567:91:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 144, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1580:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 146, - "indexExpression": { - "argumentTypes": null, - "id": 145, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 135, - "src": "1599:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1580:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 143, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1572:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 147, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1572:34:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 148, - "nodeType": "ExpressionStatement", - "src": "1572:34:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 153, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 149, - "name": "domain_redirect_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 15, - "src": "1611:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 151, - "indexExpression": { - "argumentTypes": null, - "id": 150, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 135, - "src": "1631:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1611:26:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 152, - "name": "_file_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 137, - "src": "1640:13:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "1611:42:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 154, - "nodeType": "ExpressionStatement", - "src": "1611:42:0" - } - ] - }, - "documentation": null, - "id": 156, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 140, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 135, - "src": "1560:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 141, - "modifierName": { - "argumentTypes": null, - "id": 139, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 51, - "src": "1549:10:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1549:17:0" - } - ], - "name": "mapDNS", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 138, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 135, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 156, - "src": "1506:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 134, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1506:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 137, - "name": "_file_address", - "nodeType": "VariableDeclaration", - "scope": 156, - "src": "1520:20:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 136, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1520:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1505:36:0" - }, - "payable": false, - "returnParameters": { - "id": 142, - "nodeType": "ParameterList", - "parameters": [], - "src": "1567:0:0" - }, - "scope": 271, - "src": "1490:168:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 178, - "nodeType": "Block", - "src": "1749:85:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 167, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1762:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 169, - "indexExpression": { - "argumentTypes": null, - "id": 168, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 158, - "src": "1781:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1762:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 166, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1754:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 170, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1754:34:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 171, - "nodeType": "ExpressionStatement", - "src": "1754:34:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 176, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 172, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "1793:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 174, - "indexExpression": { - "argumentTypes": null, - "id": 173, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 158, - "src": "1810:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1793:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 175, - "name": "_new_admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 160, - "src": "1819:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1793:36:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 177, - "nodeType": "ExpressionStatement", - "src": "1793:36:0" - } - ] - }, - "documentation": null, - "id": 179, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 163, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 158, - "src": "1742:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 164, - "modifierName": { - "argumentTypes": null, - "id": 162, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 51, - "src": "1731:10:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1731:17:0" - } - ], - "name": "transferOwnership", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 161, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 158, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 179, - "src": "1690:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 157, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1690:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 160, - "name": "_new_admin", - "nodeType": "VariableDeclaration", - "scope": 179, - "src": "1704:18:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 159, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1704:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1689:34:0" - }, - "payable": false, - "returnParameters": { - "id": 165, - "nodeType": "ParameterList", - "parameters": [], - "src": "1749:0:0" - }, - "scope": 271, - "src": "1663:171:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 191, - "nodeType": "Block", - "src": "1924:43:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 189, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "1936:26:0", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 186, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1937:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 188, - "indexExpression": { - "argumentTypes": null, - "id": 187, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "1956:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1937:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "functionReturnParameters": 185, - "id": 190, - "nodeType": "Return", - "src": "1929:33:0" - } - ] - }, - "documentation": null, - "id": 192, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "checkDomainAvaibility", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 182, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 181, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 192, - "src": "1883:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 180, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1883:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1882:14:0" - }, - "payable": false, - "returnParameters": { - "id": 185, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 184, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 192, - "src": "1918:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 183, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "1918:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1917:6:0" - }, - "scope": 271, - "src": "1852:115:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 206, - "nodeType": "Block", - "src": "2064:43:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 202, - "name": "domain_redirect_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 15, - "src": "2076:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 204, - "indexExpression": { - "argumentTypes": null, - "id": 203, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 194, - "src": "2096:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2076:26:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 201, - "id": 205, - "nodeType": "Return", - "src": "2069:33:0" - } - ] - }, - "documentation": null, - "id": 207, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 197, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 194, - "src": "2035:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 198, - "modifierName": { - "argumentTypes": null, - "id": 196, - "name": "restricted_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 63, - "src": "2019:15:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2019:22:0" - } - ], - "name": "getDomainAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 195, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 194, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 207, - "src": "1998:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 193, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1998:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1997:14:0" - }, - "payable": false, - "returnParameters": { - "id": 201, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 200, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 207, - "src": "2056:6:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 199, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2056:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2055:8:0" - }, - "scope": 271, - "src": "1972:135:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 221, - "nodeType": "Block", - "src": "2203:40:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 217, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "2215:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 219, - "indexExpression": { - "argumentTypes": null, - "id": 218, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 209, - "src": "2232:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2215:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "functionReturnParameters": 216, - "id": 220, - "nodeType": "Return", - "src": "2208:30:0" - } - ] - }, - "documentation": null, - "id": 222, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 212, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 209, - "src": "2173:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 213, - "modifierName": { - "argumentTypes": null, - "id": 211, - "name": "restricted_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 63, - "src": "2157:15:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2157:22:0" - } - ], - "name": "getDomainOwner", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 210, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 209, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 222, - "src": "2136:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 208, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2136:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2135:14:0" - }, - "payable": false, - "returnParameters": { - "id": 216, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 215, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 222, - "src": "2194:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 214, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2194:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2193:9:0" - }, - "scope": 271, - "src": "2112:131:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 236, - "nodeType": "Block", - "src": "2341:42:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 232, - "name": "domain_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 27, - "src": "2353:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 234, - "indexExpression": { - "argumentTypes": null, - "id": 233, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 224, - "src": "2372:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2353:25:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "functionReturnParameters": 231, - "id": 235, - "nodeType": "Return", - "src": "2346:32:0" - } - ] - }, - "documentation": null, - "id": 237, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 227, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 224, - "src": "2312:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 228, - "modifierName": { - "argumentTypes": null, - "id": 226, - "name": "restricted_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 63, - "src": "2296:15:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2296:22:0" - } - ], - "name": "getWebsiteAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 225, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 224, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 237, - "src": "2275:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 223, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2275:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2274:14:0" - }, - "payable": false, - "returnParameters": { - "id": 231, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 230, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 237, - "src": "2332:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 229, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2332:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2331:9:0" - }, - "scope": 271, - "src": "2248:135:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 248, - "nodeType": "Block", - "src": "2458:45:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 244, - "name": "address_domain_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 23, - "src": "2470:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string storage ref)" - } - }, - "id": 246, - "indexExpression": { - "argumentTypes": null, - "id": 245, - "name": "_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 239, - "src": "2489:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2470:28:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 243, - "id": 247, - "nodeType": "Return", - "src": "2463:35:0" - } - ] - }, - "documentation": null, - "id": 249, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getWebsiteName", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 240, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 239, - "name": "_address", - "nodeType": "VariableDeclaration", - "scope": 249, - "src": "2412:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 238, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2412:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2411:18:0" - }, - "payable": false, - "returnParameters": { - "id": 243, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 242, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 249, - "src": "2450:6:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 241, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2450:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2449:8:0" - }, - "scope": 271, - "src": "2388:115:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 257, - "nodeType": "Block", - "src": "2572:32:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 255, - "name": "website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 11, - "src": "2584:15:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "functionReturnParameters": 254, - "id": 256, - "nodeType": "Return", - "src": "2577:22:0" - } - ] - }, - "documentation": null, - "id": 258, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getAllDomainAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 250, - "nodeType": "ParameterList", - "parameters": [], - "src": "2536:2:0" - }, - "payable": false, - "returnParameters": { - "id": 254, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 253, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 258, - "src": "2560:10:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 251, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2560:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 252, - "length": null, - "nodeType": "ArrayTypeName", - "src": "2560:10:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2559:12:0" - }, - "scope": 271, - "src": "2508:96:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 269, - "nodeType": "Block", - "src": "2667:63:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 264, - "name": "admin_website_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 36, - "src": "2685:25:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[] storage ref)" - } - }, - "id": 267, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 265, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "2711:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 266, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "2711:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2685:37:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "functionReturnParameters": 263, - "id": 268, - "nodeType": "Return", - "src": "2678:44:0" - } - ] - }, - "documentation": null, - "id": 270, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getUserWebsites", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 259, - "nodeType": "ParameterList", - "parameters": [], - "src": "2633:2:0" - }, - "payable": false, - "returnParameters": { - "id": 263, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 262, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 270, - "src": "2656:10:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 260, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2656:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 261, - "length": null, - "nodeType": "ArrayTypeName", - "src": "2656:10:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2655:12:0" - }, - "scope": 271, - "src": "2609:121:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 272, - "src": "96:2643:0" - } - ], - "src": "0:2744:0" - }, - "legacyAST": { - "absolutePath": "/mnt/e/code/bchosting_centralized/contracts/DNS.sol", - "exportedSymbols": { - "DNS": [ - 271 - ] - }, - "id": 272, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1, - "literals": [ - "solidity", - "^", - "0.4", - ".19" - ], - "nodeType": "PragmaDirective", - "src": "0:24:0" - }, - { - "absolutePath": "/mnt/e/code/bchosting_centralized/contracts/Website.sol", - "file": "./Website.sol", - "id": 2, - "nodeType": "ImportDirective", - "scope": 272, - "sourceUnit": 595, - "src": "30:23:0", - "symbolAliases": [], - "unitAlias": "" - }, - { - "baseContracts": [], - "contractDependencies": [ - 594 - ], - "contractKind": "contract", - "documentation": "The WebFactory contract \r", - "fullyImplemented": true, - "id": 271, - "linearizedBaseContracts": [ - 271 - ], - "name": "DNS", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": false, - "id": 5, - "name": "domain_name", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "115:20:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string[]" - }, - "typeName": { - "baseType": { - "id": 3, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "115:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "id": 4, - "length": null, - "nodeType": "ArrayTypeName", - "src": "115:8:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", - "typeString": "string[]" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 8, - "name": "domain_name_length", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "139:34:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 6, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "139:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "30", - "id": 7, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "172:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "visibility": "public" - }, - { - "constant": false, - "id": 11, - "name": "website_address", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "179:32:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 9, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "179:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 10, - "length": null, - "nodeType": "ArrayTypeName", - "src": "179:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 15, - "name": "domain_redirect_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "264:46:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "typeName": { - "id": 14, - "keyType": { - "id": 12, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "273:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "264:26:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "valueType": { - "id": 13, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "283:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 19, - "name": "domain_admin_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "358:44:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "typeName": { - "id": 18, - "keyType": { - "id": 16, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "367:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "358:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "valueType": { - "id": 17, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "377:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 23, - "name": "address_domain_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "444:46:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string)" - }, - "typeName": { - "id": 22, - "keyType": { - "id": 20, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "453:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "444:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string)" - }, - "valueType": { - "id": 21, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "464:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 27, - "name": "domain_address_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "530:46:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "typeName": { - "id": 26, - "keyType": { - "id": 24, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "539:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "530:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "valueType": { - "id": 25, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "549:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 31, - "name": "is_domain_acquired", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "600:43:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "typeName": { - "id": 30, - "keyType": { - "id": 28, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "609:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "600:24:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "valueType": { - "id": 29, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "619:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 36, - "name": "admin_website_address_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "698:55:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[])" - }, - "typeName": { - "id": 35, - "keyType": { - "id": 32, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "706:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "698:29:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[])" - }, - "valueType": { - "baseType": { - "id": 33, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "717:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 34, - "length": null, - "nodeType": "ArrayTypeName", - "src": "717:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "body": { - "id": 50, - "nodeType": "Block", - "src": "796:75:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 46, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 41, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "814:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 42, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "814:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 43, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "828:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 45, - "indexExpression": { - "argumentTypes": null, - "id": 44, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "845:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "828:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "814:37:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 40, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "805:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 47, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "805:47:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 48, - "nodeType": "ExpressionStatement", - "src": "805:47:0" - }, - { - "id": 49, - "nodeType": "PlaceholderStatement", - "src": "861:1:0" - } - ] - }, - "documentation": null, - "id": 51, - "name": "restricted", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 39, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 38, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 51, - "src": "782:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 37, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "782:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "781:14:0" - }, - "src": "762:109:0", - "visibility": "internal" - }, - { - "body": { - "id": 62, - "nodeType": "Block", - "src": "918:62:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 56, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "936:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 58, - "indexExpression": { - "argumentTypes": null, - "id": 57, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 53, - "src": "955:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "936:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 55, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "927:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 59, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "927:35:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 60, - "nodeType": "ExpressionStatement", - "src": "927:35:0" - }, - { - "id": 61, - "nodeType": "PlaceholderStatement", - "src": "970:1:0" - } - ] - }, - "documentation": null, - "id": 63, - "name": "restricted_name", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 54, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 53, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 63, - "src": "904:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 52, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "904:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "903:14:0" - }, - "src": "879:101:0", - "visibility": "internal" - }, - { - "body": { - "id": 132, - "nodeType": "Block", - "src": "1040:444:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 72, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "1053:26:0", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 69, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1054:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 71, - "indexExpression": { - "argumentTypes": null, - "id": 70, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1073:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1054:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 68, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1045:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 73, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1045:35:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 74, - "nodeType": "ExpressionStatement", - "src": "1045:35:0" - }, - { - "assignments": [ - 76 - ], - "declarations": [ - { - "constant": false, - "id": 76, - "name": "_website_address", - "nodeType": "VariableDeclaration", - "scope": 133, - "src": "1085:24:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 75, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1085:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 83, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 79, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "1124:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 80, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1124:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 81, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1136:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "id": 78, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "NewExpression", - "src": "1112:11:0", - "typeDescriptions": { - "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_string_memory_ptr_$returns$_t_contract$_Website_$594_$", - "typeString": "function (address,string memory) returns (contract Website)" - }, - "typeName": { - "contractScope": null, - "id": 77, - "name": "Website", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 594, - "src": "1116:7:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Website_$594", - "typeString": "contract Website" - } - } - }, - "id": 82, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1112:30:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Website_$594", - "typeString": "contract Website" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1085:57:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 87, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1168:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "expression": { - "argumentTypes": null, - "id": 84, - "name": "website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 11, - "src": "1147:15:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "id": 86, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1147:20:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) returns (uint256)" - } - }, - "id": 88, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1147:38:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 89, - "nodeType": "ExpressionStatement", - "src": "1147:38:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 93, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1207:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "expression": { - "argumentTypes": null, - "id": 90, - "name": "domain_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 5, - "src": "1190:11:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 92, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1190:16:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_string_storage_$returns$_t_uint256_$", - "typeString": "function (string storage ref) returns (uint256)" - } - }, - "id": 94, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1190:23:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 95, - "nodeType": "ExpressionStatement", - "src": "1190:23:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 97, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1218:20:0", - "subExpression": { - "argumentTypes": null, - "id": 96, - "name": "domain_name_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 8, - "src": "1218:18:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 98, - "nodeType": "ExpressionStatement", - "src": "1218:20:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 103, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 99, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1243:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 101, - "indexExpression": { - "argumentTypes": null, - "id": 100, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1262:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1243:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 102, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1271:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "src": "1243:32:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 104, - "nodeType": "ExpressionStatement", - "src": "1243:32:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 109, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 105, - "name": "address_domain_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 23, - "src": "1280:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string storage ref)" - } - }, - "id": 107, - "indexExpression": { - "argumentTypes": null, - "id": 106, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1299:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1280:36:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 108, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1319:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "1280:44:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 110, - "nodeType": "ExpressionStatement", - "src": "1280:44:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 116, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 111, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "1329:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 113, - "indexExpression": { - "argumentTypes": null, - "id": 112, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1346:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1329:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 114, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "1355:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 115, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1355:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1329:36:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 117, - "nodeType": "ExpressionStatement", - "src": "1329:36:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 123, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1413:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 118, - "name": "admin_website_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 36, - "src": "1370:25:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[] storage ref)" - } - }, - "id": 121, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 119, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "1396:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 120, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1396:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1370:37:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "id": 122, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1370:42:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) returns (uint256)" - } - }, - "id": 124, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1370:60:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 125, - "nodeType": "ExpressionStatement", - "src": "1370:60:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 130, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 126, - "name": "domain_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 27, - "src": "1435:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 128, - "indexExpression": { - "argumentTypes": null, - "id": 127, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1454:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1435:25:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 129, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1463:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1435:44:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 131, - "nodeType": "ExpressionStatement", - "src": "1435:44:0" - } - ] - }, - "documentation": null, - "id": 133, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "createWebsite", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 66, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 65, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 133, - "src": "1019:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 64, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1019:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1018:14:0" - }, - "payable": false, - "returnParameters": { - "id": 67, - "nodeType": "ParameterList", - "parameters": [], - "src": "1040:0:0" - }, - "scope": 271, - "src": "995:489:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 155, - "nodeType": "Block", - "src": "1567:91:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 144, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1580:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 146, - "indexExpression": { - "argumentTypes": null, - "id": 145, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 135, - "src": "1599:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1580:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 143, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1572:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 147, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1572:34:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 148, - "nodeType": "ExpressionStatement", - "src": "1572:34:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 153, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 149, - "name": "domain_redirect_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 15, - "src": "1611:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 151, - "indexExpression": { - "argumentTypes": null, - "id": 150, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 135, - "src": "1631:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1611:26:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 152, - "name": "_file_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 137, - "src": "1640:13:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "1611:42:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 154, - "nodeType": "ExpressionStatement", - "src": "1611:42:0" - } - ] - }, - "documentation": null, - "id": 156, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 140, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 135, - "src": "1560:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 141, - "modifierName": { - "argumentTypes": null, - "id": 139, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 51, - "src": "1549:10:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1549:17:0" - } - ], - "name": "mapDNS", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 138, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 135, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 156, - "src": "1506:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 134, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1506:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 137, - "name": "_file_address", - "nodeType": "VariableDeclaration", - "scope": 156, - "src": "1520:20:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 136, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1520:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1505:36:0" - }, - "payable": false, - "returnParameters": { - "id": 142, - "nodeType": "ParameterList", - "parameters": [], - "src": "1567:0:0" - }, - "scope": 271, - "src": "1490:168:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 178, - "nodeType": "Block", - "src": "1749:85:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 167, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1762:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 169, - "indexExpression": { - "argumentTypes": null, - "id": 168, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 158, - "src": "1781:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1762:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 166, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1754:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 170, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1754:34:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 171, - "nodeType": "ExpressionStatement", - "src": "1754:34:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 176, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 172, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "1793:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 174, - "indexExpression": { - "argumentTypes": null, - "id": 173, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 158, - "src": "1810:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1793:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 175, - "name": "_new_admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 160, - "src": "1819:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1793:36:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 177, - "nodeType": "ExpressionStatement", - "src": "1793:36:0" - } - ] - }, - "documentation": null, - "id": 179, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 163, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 158, - "src": "1742:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 164, - "modifierName": { - "argumentTypes": null, - "id": 162, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 51, - "src": "1731:10:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1731:17:0" - } - ], - "name": "transferOwnership", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 161, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 158, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 179, - "src": "1690:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 157, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1690:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 160, - "name": "_new_admin", - "nodeType": "VariableDeclaration", - "scope": 179, - "src": "1704:18:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 159, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1704:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1689:34:0" - }, - "payable": false, - "returnParameters": { - "id": 165, - "nodeType": "ParameterList", - "parameters": [], - "src": "1749:0:0" - }, - "scope": 271, - "src": "1663:171:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 191, - "nodeType": "Block", - "src": "1924:43:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 189, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "1936:26:0", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 186, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1937:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 188, - "indexExpression": { - "argumentTypes": null, - "id": 187, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "1956:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1937:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "functionReturnParameters": 185, - "id": 190, - "nodeType": "Return", - "src": "1929:33:0" - } - ] - }, - "documentation": null, - "id": 192, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "checkDomainAvaibility", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 182, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 181, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 192, - "src": "1883:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 180, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1883:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1882:14:0" - }, - "payable": false, - "returnParameters": { - "id": 185, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 184, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 192, - "src": "1918:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 183, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "1918:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1917:6:0" - }, - "scope": 271, - "src": "1852:115:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 206, - "nodeType": "Block", - "src": "2064:43:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 202, - "name": "domain_redirect_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 15, - "src": "2076:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 204, - "indexExpression": { - "argumentTypes": null, - "id": 203, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 194, - "src": "2096:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2076:26:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 201, - "id": 205, - "nodeType": "Return", - "src": "2069:33:0" - } - ] - }, - "documentation": null, - "id": 207, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 197, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 194, - "src": "2035:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 198, - "modifierName": { - "argumentTypes": null, - "id": 196, - "name": "restricted_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 63, - "src": "2019:15:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2019:22:0" - } - ], - "name": "getDomainAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 195, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 194, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 207, - "src": "1998:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 193, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1998:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1997:14:0" - }, - "payable": false, - "returnParameters": { - "id": 201, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 200, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 207, - "src": "2056:6:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 199, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2056:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2055:8:0" - }, - "scope": 271, - "src": "1972:135:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 221, - "nodeType": "Block", - "src": "2203:40:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 217, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "2215:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 219, - "indexExpression": { - "argumentTypes": null, - "id": 218, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 209, - "src": "2232:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2215:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "functionReturnParameters": 216, - "id": 220, - "nodeType": "Return", - "src": "2208:30:0" - } - ] - }, - "documentation": null, - "id": 222, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 212, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 209, - "src": "2173:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 213, - "modifierName": { - "argumentTypes": null, - "id": 211, - "name": "restricted_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 63, - "src": "2157:15:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2157:22:0" - } - ], - "name": "getDomainOwner", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 210, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 209, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 222, - "src": "2136:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 208, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2136:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2135:14:0" - }, - "payable": false, - "returnParameters": { - "id": 216, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 215, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 222, - "src": "2194:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 214, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2194:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2193:9:0" - }, - "scope": 271, - "src": "2112:131:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 236, - "nodeType": "Block", - "src": "2341:42:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 232, - "name": "domain_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 27, - "src": "2353:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 234, - "indexExpression": { - "argumentTypes": null, - "id": 233, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 224, - "src": "2372:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2353:25:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "functionReturnParameters": 231, - "id": 235, - "nodeType": "Return", - "src": "2346:32:0" - } - ] - }, - "documentation": null, - "id": 237, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 227, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 224, - "src": "2312:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 228, - "modifierName": { - "argumentTypes": null, - "id": 226, - "name": "restricted_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 63, - "src": "2296:15:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2296:22:0" - } - ], - "name": "getWebsiteAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 225, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 224, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 237, - "src": "2275:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 223, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2275:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2274:14:0" - }, - "payable": false, - "returnParameters": { - "id": 231, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 230, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 237, - "src": "2332:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 229, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2332:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2331:9:0" - }, - "scope": 271, - "src": "2248:135:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 248, - "nodeType": "Block", - "src": "2458:45:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 244, - "name": "address_domain_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 23, - "src": "2470:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string storage ref)" - } - }, - "id": 246, - "indexExpression": { - "argumentTypes": null, - "id": 245, - "name": "_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 239, - "src": "2489:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2470:28:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 243, - "id": 247, - "nodeType": "Return", - "src": "2463:35:0" - } - ] - }, - "documentation": null, - "id": 249, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getWebsiteName", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 240, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 239, - "name": "_address", - "nodeType": "VariableDeclaration", - "scope": 249, - "src": "2412:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 238, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2412:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2411:18:0" - }, - "payable": false, - "returnParameters": { - "id": 243, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 242, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 249, - "src": "2450:6:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 241, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2450:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2449:8:0" - }, - "scope": 271, - "src": "2388:115:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 257, - "nodeType": "Block", - "src": "2572:32:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 255, - "name": "website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 11, - "src": "2584:15:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "functionReturnParameters": 254, - "id": 256, - "nodeType": "Return", - "src": "2577:22:0" - } - ] - }, - "documentation": null, - "id": 258, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getAllDomainAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 250, - "nodeType": "ParameterList", - "parameters": [], - "src": "2536:2:0" - }, - "payable": false, - "returnParameters": { - "id": 254, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 253, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 258, - "src": "2560:10:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 251, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2560:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 252, - "length": null, - "nodeType": "ArrayTypeName", - "src": "2560:10:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2559:12:0" - }, - "scope": 271, - "src": "2508:96:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 269, - "nodeType": "Block", - "src": "2667:63:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 264, - "name": "admin_website_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 36, - "src": "2685:25:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[] storage ref)" - } - }, - "id": 267, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 265, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "2711:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 266, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "2711:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2685:37:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "functionReturnParameters": 263, - "id": 268, - "nodeType": "Return", - "src": "2678:44:0" - } - ] - }, - "documentation": null, - "id": 270, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getUserWebsites", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 259, - "nodeType": "ParameterList", - "parameters": [], - "src": "2633:2:0" - }, - "payable": false, - "returnParameters": { - "id": 263, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 262, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 270, - "src": "2656:10:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 260, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2656:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 261, - "length": null, - "nodeType": "ArrayTypeName", - "src": "2656:10:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2655:12:0" - }, - "scope": 271, - "src": "2609:121:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 272, - "src": "96:2643:0" - } - ], - "src": "0:2744:0" - }, - "compiler": { - "name": "solc", - "version": "0.4.24+commit.e67f0147.Emscripten.clang" - }, - "networks": { - "4": { - "events": {}, - "links": {}, - "address": "0x0d1fc3d0bc93aca9fb5084dfbd7b1ffab58ec94c", - "transactionHash": "0x2d4fe8c93c520851be98f401e38e67f16d9b1cc8b6b3ebfa3e86949dea15eb8d" - } - }, - "schemaVersion": "2.0.1", - "updatedAt": "2018-10-27T19:17:39.601Z" -} \ No newline at end of file diff --git a/build/contracts/Migrations.json b/build/contracts/Migrations.json deleted file mode 100644 index e61da1f..0000000 --- a/build/contracts/Migrations.json +++ /dev/null @@ -1,1387 +0,0 @@ -{ - "contractName": "Migrations", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "last_completed_migration", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "owner", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "constant": false, - "inputs": [ - { - "name": "completed", - "type": "uint256" - } - ], - "name": "setCompleted", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "new_address", - "type": "address" - } - ], - "name": "upgrade", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - } - ], - "bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102f8806100606000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a72305820a9551ef231ba7879e763cdb6c90785c0aad7306e07cb4e3c36b886e40ebac35b0029", - "deployedBytecode": "0x608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a72305820a9551ef231ba7879e763cdb6c90785c0aad7306e07cb4e3c36b886e40ebac35b0029", - "sourceMap": "26:480:1:-;;;115:50;8:9:-1;5:2;;;30:1;27;20:12;5:2;115:50:1;150:10;142:5;;:18;;;;;;;;;;;;;;;;;;26:480;;;;;;", - "deployedSourceMap": "26:480:1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;339:165;;8:9:-1;5:2;;;30:1;27;20:12;5:2;339:165:1;;;;;;;;;;;;;;;;;;;;;;;;;;;;74:36;;8:9:-1;5:2;;;30:1;27;20:12;5:2;74:36:1;;;;;;;;;;;;;;;;;;;;;;;50:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;50:20:1;;;;;;;;;;;;;;;;;;;;;;;;;;;232:103;;8:9:-1;5:2;;;30:1;27;20:12;5:2;232:103:1;;;;;;;;;;;;;;;;;;;;;;;;;;339:165;401:19;215:5;;;;;;;;;;;201:19;;:10;:19;;;197:26;;;434:11;401:45;;452:8;:21;;;474:24;;452:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;452:47:1;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;452:47:1;;;;197:26;339:165;;:::o;74:36::-;;;;:::o;50:20::-;;;;;;;;;;;;;:::o;232:103::-;215:5;;;;;;;;;;;201:19;;:10;:19;;;197:26;;;321:9;294:24;:36;;;;197:26;232:103;:::o", - "source": "pragma solidity ^0.4.23;\n\ncontract Migrations {\n address public owner;\n uint public last_completed_migration;\n\n constructor() public {\n owner = msg.sender;\n }\n\n modifier restricted() {\n if (msg.sender == owner) _;\n }\n\n function setCompleted(uint completed) public restricted {\n last_completed_migration = completed;\n }\n\n function upgrade(address new_address) public restricted {\n Migrations upgraded = Migrations(new_address);\n upgraded.setCompleted(last_completed_migration);\n }\n}\n", - "sourcePath": "/mnt/e/code/bchosting_centralized/contracts/Migrations.sol", - "ast": { - "absolutePath": "/mnt/e/code/bchosting_centralized/contracts/Migrations.sol", - "exportedSymbols": { - "Migrations": [ - 328 - ] - }, - "id": 329, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 273, - "literals": [ - "solidity", - "^", - "0.4", - ".23" - ], - "nodeType": "PragmaDirective", - "src": "0:24:1" - }, - { - "baseContracts": [], - "contractDependencies": [], - "contractKind": "contract", - "documentation": null, - "fullyImplemented": true, - "id": 328, - "linearizedBaseContracts": [ - 328 - ], - "name": "Migrations", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": false, - "id": 275, - "name": "owner", - "nodeType": "VariableDeclaration", - "scope": 328, - "src": "50:20:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 274, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "50:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 277, - "name": "last_completed_migration", - "nodeType": "VariableDeclaration", - "scope": 328, - "src": "74:36:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 276, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "74:4:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "public" - }, - { - "body": { - "id": 285, - "nodeType": "Block", - "src": "136:29:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 283, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 280, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 275, - "src": "142:5:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 281, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "150:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 282, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "150:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "142:18:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 284, - "nodeType": "ExpressionStatement", - "src": "142:18:1" - } - ] - }, - "documentation": null, - "id": 286, - "implemented": true, - "isConstructor": true, - "isDeclaredConst": false, - "modifiers": [], - "name": "", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 278, - "nodeType": "ParameterList", - "parameters": [], - "src": "126:2:1" - }, - "payable": false, - "returnParameters": { - "id": 279, - "nodeType": "ParameterList", - "parameters": [], - "src": "136:0:1" - }, - "scope": 328, - "src": "115:50:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 294, - "nodeType": "Block", - "src": "191:37:1", - "statements": [ - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 291, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 288, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "201:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 289, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "201:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 290, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 275, - "src": "215:5:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "201:19:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": null, - "id": 293, - "nodeType": "IfStatement", - "src": "197:26:1", - "trueBody": { - "id": 292, - "nodeType": "PlaceholderStatement", - "src": "222:1:1" - } - } - ] - }, - "documentation": null, - "id": 295, - "name": "restricted", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 287, - "nodeType": "ParameterList", - "parameters": [], - "src": "188:2:1" - }, - "src": "169:59:1", - "visibility": "internal" - }, - { - "body": { - "id": 306, - "nodeType": "Block", - "src": "288:47:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 304, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 302, - "name": "last_completed_migration", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 277, - "src": "294:24:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 303, - "name": "completed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 297, - "src": "321:9:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "294:36:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 305, - "nodeType": "ExpressionStatement", - "src": "294:36:1" - } - ] - }, - "documentation": null, - "id": 307, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 300, - "modifierName": { - "argumentTypes": null, - "id": 299, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 295, - "src": "277:10:1", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "277:10:1" - } - ], - "name": "setCompleted", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 298, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 297, - "name": "completed", - "nodeType": "VariableDeclaration", - "scope": 307, - "src": "254:14:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 296, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "254:4:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "253:16:1" - }, - "payable": false, - "returnParameters": { - "id": 301, - "nodeType": "ParameterList", - "parameters": [], - "src": "288:0:1" - }, - "scope": 328, - "src": "232:103:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 326, - "nodeType": "Block", - "src": "395:109:1", - "statements": [ - { - "assignments": [ - 315 - ], - "declarations": [ - { - "constant": false, - "id": 315, - "name": "upgraded", - "nodeType": "VariableDeclaration", - "scope": 327, - "src": "401:19:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$328", - "typeString": "contract Migrations" - }, - "typeName": { - "contractScope": null, - "id": 314, - "name": "Migrations", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 328, - "src": "401:10:1", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$328", - "typeString": "contract Migrations" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 319, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 317, - "name": "new_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 309, - "src": "434:11:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 316, - "name": "Migrations", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 328, - "src": "423:10:1", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Migrations_$328_$", - "typeString": "type(contract Migrations)" - } - }, - "id": 318, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "423:23:1", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$328", - "typeString": "contract Migrations" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "401:45:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 323, - "name": "last_completed_migration", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 277, - "src": "474:24:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "id": 320, - "name": "upgraded", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "452:8:1", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$328", - "typeString": "contract Migrations" - } - }, - "id": 322, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "setCompleted", - "nodeType": "MemberAccess", - "referencedDeclaration": 307, - "src": "452:21:1", - "typeDescriptions": { - "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", - "typeString": "function (uint256) external" - } - }, - "id": 324, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "452:47:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 325, - "nodeType": "ExpressionStatement", - "src": "452:47:1" - } - ] - }, - "documentation": null, - "id": 327, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 312, - "modifierName": { - "argumentTypes": null, - "id": 311, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 295, - "src": "384:10:1", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "384:10:1" - } - ], - "name": "upgrade", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 310, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 309, - "name": "new_address", - "nodeType": "VariableDeclaration", - "scope": 327, - "src": "356:19:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 308, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "356:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "355:21:1" - }, - "payable": false, - "returnParameters": { - "id": 313, - "nodeType": "ParameterList", - "parameters": [], - "src": "395:0:1" - }, - "scope": 328, - "src": "339:165:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 329, - "src": "26:480:1" - } - ], - "src": "0:507:1" - }, - "legacyAST": { - "absolutePath": "/mnt/e/code/bchosting_centralized/contracts/Migrations.sol", - "exportedSymbols": { - "Migrations": [ - 328 - ] - }, - "id": 329, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 273, - "literals": [ - "solidity", - "^", - "0.4", - ".23" - ], - "nodeType": "PragmaDirective", - "src": "0:24:1" - }, - { - "baseContracts": [], - "contractDependencies": [], - "contractKind": "contract", - "documentation": null, - "fullyImplemented": true, - "id": 328, - "linearizedBaseContracts": [ - 328 - ], - "name": "Migrations", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": false, - "id": 275, - "name": "owner", - "nodeType": "VariableDeclaration", - "scope": 328, - "src": "50:20:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 274, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "50:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 277, - "name": "last_completed_migration", - "nodeType": "VariableDeclaration", - "scope": 328, - "src": "74:36:1", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 276, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "74:4:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "public" - }, - { - "body": { - "id": 285, - "nodeType": "Block", - "src": "136:29:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 283, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 280, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 275, - "src": "142:5:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 281, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "150:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 282, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "150:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "142:18:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 284, - "nodeType": "ExpressionStatement", - "src": "142:18:1" - } - ] - }, - "documentation": null, - "id": 286, - "implemented": true, - "isConstructor": true, - "isDeclaredConst": false, - "modifiers": [], - "name": "", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 278, - "nodeType": "ParameterList", - "parameters": [], - "src": "126:2:1" - }, - "payable": false, - "returnParameters": { - "id": 279, - "nodeType": "ParameterList", - "parameters": [], - "src": "136:0:1" - }, - "scope": 328, - "src": "115:50:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 294, - "nodeType": "Block", - "src": "191:37:1", - "statements": [ - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 291, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 288, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "201:3:1", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 289, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "201:10:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 290, - "name": "owner", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 275, - "src": "215:5:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "201:19:1", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": null, - "id": 293, - "nodeType": "IfStatement", - "src": "197:26:1", - "trueBody": { - "id": 292, - "nodeType": "PlaceholderStatement", - "src": "222:1:1" - } - } - ] - }, - "documentation": null, - "id": 295, - "name": "restricted", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 287, - "nodeType": "ParameterList", - "parameters": [], - "src": "188:2:1" - }, - "src": "169:59:1", - "visibility": "internal" - }, - { - "body": { - "id": 306, - "nodeType": "Block", - "src": "288:47:1", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 304, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 302, - "name": "last_completed_migration", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 277, - "src": "294:24:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 303, - "name": "completed", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 297, - "src": "321:9:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "294:36:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 305, - "nodeType": "ExpressionStatement", - "src": "294:36:1" - } - ] - }, - "documentation": null, - "id": 307, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 300, - "modifierName": { - "argumentTypes": null, - "id": 299, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 295, - "src": "277:10:1", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "277:10:1" - } - ], - "name": "setCompleted", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 298, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 297, - "name": "completed", - "nodeType": "VariableDeclaration", - "scope": 307, - "src": "254:14:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 296, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "254:4:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "253:16:1" - }, - "payable": false, - "returnParameters": { - "id": 301, - "nodeType": "ParameterList", - "parameters": [], - "src": "288:0:1" - }, - "scope": 328, - "src": "232:103:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 326, - "nodeType": "Block", - "src": "395:109:1", - "statements": [ - { - "assignments": [ - 315 - ], - "declarations": [ - { - "constant": false, - "id": 315, - "name": "upgraded", - "nodeType": "VariableDeclaration", - "scope": 327, - "src": "401:19:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$328", - "typeString": "contract Migrations" - }, - "typeName": { - "contractScope": null, - "id": 314, - "name": "Migrations", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 328, - "src": "401:10:1", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$328", - "typeString": "contract Migrations" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 319, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 317, - "name": "new_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 309, - "src": "434:11:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "id": 316, - "name": "Migrations", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 328, - "src": "423:10:1", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_contract$_Migrations_$328_$", - "typeString": "type(contract Migrations)" - } - }, - "id": 318, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "423:23:1", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$328", - "typeString": "contract Migrations" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "401:45:1" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 323, - "name": "last_completed_migration", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 277, - "src": "474:24:1", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - ], - "expression": { - "argumentTypes": null, - "id": 320, - "name": "upgraded", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 315, - "src": "452:8:1", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Migrations_$328", - "typeString": "contract Migrations" - } - }, - "id": 322, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "setCompleted", - "nodeType": "MemberAccess", - "referencedDeclaration": 307, - "src": "452:21:1", - "typeDescriptions": { - "typeIdentifier": "t_function_external_nonpayable$_t_uint256_$returns$__$", - "typeString": "function (uint256) external" - } - }, - "id": 324, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "452:47:1", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 325, - "nodeType": "ExpressionStatement", - "src": "452:47:1" - } - ] - }, - "documentation": null, - "id": 327, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 312, - "modifierName": { - "argumentTypes": null, - "id": 311, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 295, - "src": "384:10:1", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "384:10:1" - } - ], - "name": "upgrade", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 310, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 309, - "name": "new_address", - "nodeType": "VariableDeclaration", - "scope": 327, - "src": "356:19:1", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 308, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "356:7:1", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "355:21:1" - }, - "payable": false, - "returnParameters": { - "id": 313, - "nodeType": "ParameterList", - "parameters": [], - "src": "395:0:1" - }, - "scope": 328, - "src": "339:165:1", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 329, - "src": "26:480:1" - } - ], - "src": "0:507:1" - }, - "compiler": { - "name": "solc", - "version": "0.4.24+commit.e67f0147.Emscripten.clang" - }, - "networks": { - "4": { - "events": {}, - "links": {}, - "address": "0x85a214b917e7d7d846b1c4784e5c92586ee69003", - "transactionHash": "0xffc7c12f3867e45d6af01f65177e59bfba34adc9b35cab671b704369ec8767db" - } - }, - "schemaVersion": "2.0.1", - "updatedAt": "2018-10-27T19:17:39.607Z" -} \ No newline at end of file diff --git a/build/contracts/Website.json b/build/contracts/Website.json deleted file mode 100644 index 970db85..0000000 --- a/build/contracts/Website.json +++ /dev/null @@ -1,6695 +0,0 @@ -{ - "contractName": "Website", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "file_length", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "website_name", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "admin", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_admin", - "type": "address" - }, - { - "name": "_name", - "type": "string" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "constant": false, - "inputs": [ - { - "name": "_name", - "type": "string" - }, - { - "name": "_hash", - "type": "string" - } - ], - "name": "addFile", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_name", - "type": "string" - }, - { - "name": "_hash", - "type": "string" - } - ], - "name": "updateFile", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "deleteFile", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "getFileHash", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getFileLength", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_index", - "type": "uint256" - } - ], - "name": "getFileName", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - } - ], - "bytecode": "0x608060405260006006553480156200001657600080fd5b50604051620012ff380380620012ff8339810180604052810190808051906020019092919080518201929190505050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600190805190602001906200009d929190620000a6565b50505062000155565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000e957805160ff19168380011785556200011a565b828001600101855582156200011a579182015b8281111562000119578251825591602001919060010190620000fc565b5b5090506200012991906200012d565b5090565b6200015291905b808211156200014e57600081600090555060010162000134565b5090565b90565b61119a80620001656000396000f300608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063248bfc3b1461009e578063464ed51c1461014d5780639526419a146101fc578063a62ffbc414610227578063a991005414610252578063cbcdc4ab146102bb578063ed7c238d1461034b578063f851a440146103f1578063f880680b14610448575b600080fd5b3480156100aa57600080fd5b5061014b600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061052a565b005b34801561015957600080fd5b506101fa600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610802565b005b34801561020857600080fd5b506102116108e1565b6040518082815260200191505060405180910390f35b34801561023357600080fd5b5061023c6108eb565b6040518082815260200191505060405180910390f35b34801561025e57600080fd5b506102b9600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506108f1565b005b3480156102c757600080fd5b506102d0610cdb565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103105780820151818401526020810190506102f5565b50505050905090810190601f16801561033d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561035757600080fd5b5061037660048036038101908080359060200190929190505050610d79565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103b657808201518184015260208101905061039b565b50505050905090810190601f1680156103e35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103fd57600080fd5b50610406610e44565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561045457600080fd5b506104af600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e69565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104ef5780820151818401526020810190506104d4565b50505050905090810190601f16801561051c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561058557600080fd5b8160606000829150600090506000825114156105a057600190505b6000811415156105af57600080fd5b6003856040518082805190602001908083835b6020831015156105e757805182526020820191506020810190506020830392506105c2565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615151561063457600080fd5b836002866040518082805190602001908083835b60208310151561066d5780518252602082019150602081019050602083039250610648565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906106b3929190610ffa565b5060058590806001815401808255809150509060018203906000526020600020016000909192909190915090805190602001906106f1929190610ffa565b505060016003866040518082805190602001908083835b60208310151561072d5780518252602082019150602081019050602083039250610708565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506006546004866040518082805190602001908083835b6020831015156107b2578051825260208201915060208101905060208303925061078d565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020819055506006600081548092919060010191905055505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561085d57600080fd5b806002836040518082805190602001908083835b6020831015156108965780518252602082019150602081019050602083039250610871565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906108dc929190610ffa565b505050565b6000600654905090565b60065481565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561094f57600080fd5b6003836040518082805190602001908083835b6020831015156109875780518252602082019150602081019050602083039250610962565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615156109d357600080fd5b60006003846040518082805190602001908083835b602083101515610a0d57805182526020820191506020810190506020830392506109e8565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506003836040518082805190602001908083835b602083101515610a8f5780518252602082019150602081019050602083039250610a6a565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81549060ff02191690556004836040518082805190602001908083835b602083101515610b0a5780518252602082019150602081019050602083039250610ae5565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390205491506004836040518082805190602001908083835b602083101515610b785780518252602082019150602081019050602083039250610b53565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020600090556002836040518082805190602001908083835b602083101515610be75780518252602082019150602081019050602083039250610bc2565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390206000610c26919061107a565b8190505b600160065403811015610c9957600560018201815481101515610c4957fe5b90600052602060002001600582815481101515610c6257fe5b906000526020600020019080546001816001161561010002031660029004610c8b9291906110c2565b508080600101915050610c2a565b6005600160065403815481101515610cad57fe5b906000526020600020016000610cc3919061107a565b60066000815480929190600190039190505550505050565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d715780601f10610d4657610100808354040283529160200191610d71565b820191906000526020600020905b815481529060010190602001808311610d5457829003601f168201915b505050505081565b606060065482101515610d8b57600080fd5b600582815481101515610d9a57fe5b906000526020600020018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e385780601f10610e0d57610100808354040283529160200191610e38565b820191906000526020600020905b815481529060010190602001808311610e1b57829003601f168201915b50505050509050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606003826040518082805190602001908083835b602083101515610ea35780518252602082019150602081019050602083039250610e7e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515610eef57600080fd5b6002826040518082805190602001908083835b602083101515610f275780518252602082019150602081019050602083039250610f02565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610fee5780601f10610fc357610100808354040283529160200191610fee565b820191906000526020600020905b815481529060010190602001808311610fd157829003601f168201915b50505050509050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061103b57805160ff1916838001178555611069565b82800160010185558215611069579182015b8281111561106857825182559160200191906001019061104d565b5b5090506110769190611149565b5090565b50805460018160011615610100020316600290046000825580601f106110a057506110bf565b601f0160209004906000526020600020908101906110be9190611149565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106110fb5780548555611138565b8280016001018555821561113857600052602060002091601f016020900482015b8281111561113757825482559160010191906001019061111c565b5b5090506111459190611149565b5090565b61116b91905b8082111561116757600081600090555060010161114f565b5090565b905600a165627a7a72305820b8cf83f91137c2768d42d5f6f2dbcdad1775f3eb70ff176e2a5053422de513050029", - "deployedBytecode": "0x608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063248bfc3b1461009e578063464ed51c1461014d5780639526419a146101fc578063a62ffbc414610227578063a991005414610252578063cbcdc4ab146102bb578063ed7c238d1461034b578063f851a440146103f1578063f880680b14610448575b600080fd5b3480156100aa57600080fd5b5061014b600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061052a565b005b34801561015957600080fd5b506101fa600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610802565b005b34801561020857600080fd5b506102116108e1565b6040518082815260200191505060405180910390f35b34801561023357600080fd5b5061023c6108eb565b6040518082815260200191505060405180910390f35b34801561025e57600080fd5b506102b9600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506108f1565b005b3480156102c757600080fd5b506102d0610cdb565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103105780820151818401526020810190506102f5565b50505050905090810190601f16801561033d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561035757600080fd5b5061037660048036038101908080359060200190929190505050610d79565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103b657808201518184015260208101905061039b565b50505050905090810190601f1680156103e35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103fd57600080fd5b50610406610e44565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561045457600080fd5b506104af600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e69565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104ef5780820151818401526020810190506104d4565b50505050905090810190601f16801561051c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561058557600080fd5b8160606000829150600090506000825114156105a057600190505b6000811415156105af57600080fd5b6003856040518082805190602001908083835b6020831015156105e757805182526020820191506020810190506020830392506105c2565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615151561063457600080fd5b836002866040518082805190602001908083835b60208310151561066d5780518252602082019150602081019050602083039250610648565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906106b3929190610ffa565b5060058590806001815401808255809150509060018203906000526020600020016000909192909190915090805190602001906106f1929190610ffa565b505060016003866040518082805190602001908083835b60208310151561072d5780518252602082019150602081019050602083039250610708565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506006546004866040518082805190602001908083835b6020831015156107b2578051825260208201915060208101905060208303925061078d565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020819055506006600081548092919060010191905055505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561085d57600080fd5b806002836040518082805190602001908083835b6020831015156108965780518252602082019150602081019050602083039250610871565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906108dc929190610ffa565b505050565b6000600654905090565b60065481565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561094f57600080fd5b6003836040518082805190602001908083835b6020831015156109875780518252602082019150602081019050602083039250610962565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615156109d357600080fd5b60006003846040518082805190602001908083835b602083101515610a0d57805182526020820191506020810190506020830392506109e8565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506003836040518082805190602001908083835b602083101515610a8f5780518252602082019150602081019050602083039250610a6a565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81549060ff02191690556004836040518082805190602001908083835b602083101515610b0a5780518252602082019150602081019050602083039250610ae5565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390205491506004836040518082805190602001908083835b602083101515610b785780518252602082019150602081019050602083039250610b53565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020600090556002836040518082805190602001908083835b602083101515610be75780518252602082019150602081019050602083039250610bc2565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390206000610c26919061107a565b8190505b600160065403811015610c9957600560018201815481101515610c4957fe5b90600052602060002001600582815481101515610c6257fe5b906000526020600020019080546001816001161561010002031660029004610c8b9291906110c2565b508080600101915050610c2a565b6005600160065403815481101515610cad57fe5b906000526020600020016000610cc3919061107a565b60066000815480929190600190039190505550505050565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d715780601f10610d4657610100808354040283529160200191610d71565b820191906000526020600020905b815481529060010190602001808311610d5457829003601f168201915b505050505081565b606060065482101515610d8b57600080fd5b600582815481101515610d9a57fe5b906000526020600020018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e385780601f10610e0d57610100808354040283529160200191610e38565b820191906000526020600020905b815481529060010190602001808311610e1b57829003601f168201915b50505050509050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606003826040518082805190602001908083835b602083101515610ea35780518252602082019150602081019050602083039250610e7e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515610eef57600080fd5b6002826040518082805190602001908083835b602083101515610f275780518252602082019150602081019050602083039250610f02565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610fee5780601f10610fc357610100808354040283529160200191610fee565b820191906000526020600020905b815481529060010190602001808311610fd157829003601f168201915b50505050509050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061103b57805160ff1916838001178555611069565b82800160010185558215611069579182015b8281111561106857825182559160200191906001019061104d565b5b5090506110769190611149565b5090565b50805460018160011615610100020316600290046000825580601f106110a057506110bf565b601f0160209004906000526020600020908101906110be9190611149565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106110fb5780548555611138565b8280016001018555821561113857600052602060002091601f016020900482015b8281111561113757825482559160010191906001019061111c565b5b5090506111459190611149565b5090565b61116b91905b8082111561116757600081600090555060010161114f565b5090565b905600a165627a7a72305820b8cf83f91137c2768d42d5f6f2dbcdad1775f3eb70ff176e2a5053422de513050029", - "sourceMap": "63:1889:2:-;;;369:1;343:27;;680:97;8:9:-1;5:2;;;30:1;27;20:12;5:2;680:97:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;741:6;733:5;;:14;;;;;;;;;;;;;;;;;;767:5;752:12;:20;;;;;;;;;;;;:::i;:::-;;680:97;;63:1889;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;", - "deployedSourceMap": "63:1889:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;783:279;;8:9:-1;5:2;;;30:1;27;20:12;5:2;783:279:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1067:95;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1067:95:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1728:79;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1728:79:2;;;;;;;;;;;;;;;;;;;;;;;343:27;;8:9:-1;5:2;;;30:1;27;20:12;5:2;343:27:2;;;;;;;;;;;;;;;;;;;;;;;1167:405;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1167:405:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;116:26:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;116:26:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1812:137;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1812:137:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1812:137:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;89:20:2;;;;;;;;;;;;;;;;;;;;;;;;;;;1590:133;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1590:133:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1590:133:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;783:279;433:5;;;;;;;;;;;419:19;;:10;:19;;;410:29;;;;;;;;863:5;513:21;571:9;543:4;513:35;;581:1;571:11;;610:1;591:8;:15;:20;587:47;;;627:1;622:6;;587:47;655:1;647:4;:9;639:18;;;;;;;;884:21;906:5;884:28;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;884:28:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;883:29;875:38;;;;;;;;932:5;918:4;923:5;918:11;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;918:11:2;;;;;;;;;;;;;;;;;;;;;:19;;;;;;;;;;;;:::i;:::-;;942:9;957:5;942:21;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;942:21:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;999:4;968:21;990:5;968:28;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;968:28:2;;;;;;;;;;;;;;;;;;;;;;:35;;;;;;;;;;;;;;;;;;1028:11;;1008:10;1019:5;1008:17;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1008:17:2;;;;;;;;;;;;;;;;;;;;;:31;;;;1044:11;;:13;;;;;;;;;;;;;448:1;;;783:279;;:::o;1067:95::-;433:5;;;;;;;;;;;419:19;;:10;:19;;;410:29;;;;;;;;1152:5;1138:4;1143:5;1138:11;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1138:11:2;;;;;;;;;;;;;;;;;;;;;:19;;;;;;;;;;;;:::i;:::-;;1067:95;;:::o;1728:79::-;1773:4;1791:11;;1784:18;;1728:79;:::o;343:27::-;;;;:::o;1167:405::-;1347:10;1438:6;433:5;;;;;;;;;;;419:19;;:10;:19;;;410:29;;;;;;;;1232:21;1254:5;1232:28;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1232:28:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1224:37;;;;;;;;1297:5;1266:21;1288:5;1266:28;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1266:28:2;;;;;;;;;;;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;1314:21;1336:5;1314:28;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1314:28:2;;;;;;;;;;;;;;;;;;;;;;1307:35;;;;;;;;;;;1360:10;1371:5;1360:17;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1360:17:2;;;;;;;;;;;;;;;;;;;;;;1347:30;;1389:10;1400:5;1389:17;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1389:17:2;;;;;;;;;;;;;;;;;;;;;1382:24;;;1418:4;1423:5;1418:11;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1418:11:2;;;;;;;;;;;;;;;;;;;;;;1411:18;;;;:::i;:::-;1445:5;1438:12;;1434:80;1466:1;1454:11;;:13;1452:1;:15;1434:80;;;1494:9;1506:1;1504;:3;1494:14;;;;;;;;;;;;;;;;;1479:9;1489:1;1479:12;;;;;;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1468:3;;;;;;;1434:80;;;1525:9;1547:1;1535:11;;:13;1525:24;;;;;;;;;;;;;;;;;;1518:31;;;;:::i;:::-;1554:11;;:13;;;;;;;;;;;;;;1167:405;;;:::o;116:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1812:137::-;1867:6;1903:11;;1894:6;:20;1886:29;;;;;;;;1927:9;1937:6;1927:17;;;;;;;;;;;;;;;;;1920:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1812:137;;;:::o;89:20::-;;;;;;;;;;;;;:::o;1590:133::-;1645:6;1666:21;1688:5;1666:28;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1666:28:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1658:37;;;;;;;;1707:4;1712:5;1707:11;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1707:11:2;;;;;;;;;;;;;;;;;;;;;1700:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1590:133;;;:::o;63:1889::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o", - "source": "pragma solidity ^0.4.19;\r\n\r\n/**\r\n * The Website contract\r\n */\r\ncontract Website {\r\n\r\n address public admin;\r\n string public website_name;\r\n\r\n // (Filename => IPFS Hash)\r\n mapping (string => string) file;\r\n\r\n mapping (string => bool) is_file_name_acquired;\r\n mapping (string => uint) file_index;\r\n string[] file_name;\r\n uint public file_length = 0;\r\n\r\n modifier restricted() { \r\n \trequire (msg.sender == admin); \r\n \t_; \r\n }\r\n\r\n modifier emptyStringCheck(string name) {\r\n \tbytes memory tempName = bytes(name); // Uses memory\r\n \tuint flag=0;\r\n\t\tif (tempName.length == 0) {\r\n\t\t flag=1;\r\n\t\t} \r\n\t\trequire(flag == 0);\r\n\t\t_;\r\n }\r\n \r\n\tfunction Website (address _admin, string _name) {\r\n\t\tadmin = _admin;\r\n\t\twebsite_name = _name;\r\n\t}\t\r\n\r\n\tfunction addFile(string _name, string _hash) public restricted emptyStringCheck(_name) {\r\n\t\trequire(!is_file_name_acquired[_name]);\r\n\t\tfile[_name] = _hash;\r\n\t\tfile_name.push(_name);\r\n\t\tis_file_name_acquired[_name] = true;\r\n\t\tfile_index[_name] = file_length;\r\n\t\tfile_length++;\r\n\t}\r\n\r\n\tfunction updateFile(string _name, string _hash) public restricted {\r\n\t\tfile[_name] = _hash;\r\n\t}\r\n\r\n\tfunction deleteFile(string _name) public restricted {\r\n\t\trequire(is_file_name_acquired[_name]);\r\n\t\tis_file_name_acquired[_name] = false;\r\n\t\tdelete is_file_name_acquired[_name];\r\n\t\tuint index = file_index[_name];\r\n\t\tdelete file_index[_name];\r\n\t\tdelete file[_name];\r\n\t\tfor(uint i=index; i string)" - }, - "typeName": { - "id": 337, - "keyType": { - "id": 335, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "192:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "183:26:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "valueType": { - "id": 336, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "202:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 342, - "name": "is_file_name_acquired", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "223:46:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "typeName": { - "id": 341, - "keyType": { - "id": 339, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "232:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "223:24:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "valueType": { - "id": 340, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "242:4:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 346, - "name": "file_index", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "276:35:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string => uint256)" - }, - "typeName": { - "id": 345, - "keyType": { - "id": 343, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "285:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "276:24:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string => uint256)" - }, - "valueType": { - "id": 344, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "295:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 349, - "name": "file_name", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "318:18:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string[]" - }, - "typeName": { - "baseType": { - "id": 347, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "318:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "id": 348, - "length": null, - "nodeType": "ArrayTypeName", - "src": "318:8:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", - "typeString": "string[]" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 352, - "name": "file_length", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "343:27:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 350, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "343:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "30", - "id": 351, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "369:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "visibility": "public" - }, - { - "body": { - "id": 362, - "nodeType": "Block", - "src": "401:57:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 358, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 355, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "419:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 356, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "419:10:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 357, - "name": "admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 332, - "src": "433:5:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "419:19:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 354, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "410:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 359, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "410:29:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 360, - "nodeType": "ExpressionStatement", - "src": "410:29:2" - }, - { - "id": 361, - "nodeType": "PlaceholderStatement", - "src": "448:1:2" - } - ] - }, - "documentation": null, - "id": 363, - "name": "restricted", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 353, - "nodeType": "ParameterList", - "parameters": [], - "src": "398:2:2" - }, - "src": "379:79:2", - "visibility": "internal" - }, - { - "body": { - "id": 394, - "nodeType": "Block", - "src": "505:166:2", - "statements": [ - { - "assignments": [ - 368 - ], - "declarations": [ - { - "constant": false, - "id": 368, - "name": "tempName", - "nodeType": "VariableDeclaration", - "scope": 395, - "src": "513:21:2", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory_ptr", - "typeString": "bytes" - }, - "typeName": { - "id": 367, - "name": "bytes", - "nodeType": "ElementaryTypeName", - "src": "513:5:2", - "typeDescriptions": { - "typeIdentifier": "t_bytes_storage_ptr", - "typeString": "bytes" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 372, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 370, - "name": "name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 365, - "src": "543:4:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "id": 369, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "537:5:2", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_bytes_storage_ptr_$", - "typeString": "type(bytes storage pointer)" - }, - "typeName": "bytes" - }, - "id": 371, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "537:11:2", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory", - "typeString": "bytes memory" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "513:35:2" - }, - { - "assignments": [ - 374 - ], - "declarations": [ - { - "constant": false, - "id": 374, - "name": "flag", - "nodeType": "VariableDeclaration", - "scope": 395, - "src": "571:9:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 373, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "571:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 376, - "initialValue": { - "argumentTypes": null, - "hexValue": "30", - "id": 375, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "581:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "nodeType": "VariableDeclarationStatement", - "src": "571:11:2" - }, - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 380, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 377, - "name": "tempName", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 368, - "src": "591:8:2", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory_ptr", - "typeString": "bytes memory" - } - }, - "id": 378, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "591:15:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 379, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "610:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "591:20:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": null, - "id": 386, - "nodeType": "IfStatement", - "src": "587:47:2", - "trueBody": { - "id": 385, - "nodeType": "Block", - "src": "613:21:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 383, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 381, - "name": "flag", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 374, - "src": "622:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "31", - "id": 382, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "627:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "622:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 384, - "nodeType": "ExpressionStatement", - "src": "622:6:2" - } - ] - } - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 390, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 388, - "name": "flag", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 374, - "src": "647:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 389, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "655:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "647:9:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 387, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "639:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 391, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "639:18:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 392, - "nodeType": "ExpressionStatement", - "src": "639:18:2" - }, - { - "id": 393, - "nodeType": "PlaceholderStatement", - "src": "662:1:2" - } - ] - }, - "documentation": null, - "id": 395, - "name": "emptyStringCheck", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 366, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 365, - "name": "name", - "nodeType": "VariableDeclaration", - "scope": 395, - "src": "492:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 364, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "492:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "491:13:2" - }, - "src": "466:205:2", - "visibility": "internal" - }, - { - "body": { - "id": 410, - "nodeType": "Block", - "src": "728:49:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 404, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 402, - "name": "admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 332, - "src": "733:5:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 403, - "name": "_admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 397, - "src": "741:6:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "733:14:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 405, - "nodeType": "ExpressionStatement", - "src": "733:14:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 408, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 406, - "name": "website_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 334, - "src": "752:12:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 407, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 399, - "src": "767:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "752:20:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 409, - "nodeType": "ExpressionStatement", - "src": "752:20:2" - } - ] - }, - "documentation": null, - "id": 411, - "implemented": true, - "isConstructor": true, - "isDeclaredConst": false, - "modifiers": [], - "name": "Website", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 400, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 397, - "name": "_admin", - "nodeType": "VariableDeclaration", - "scope": 411, - "src": "698:14:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 396, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "698:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 399, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 411, - "src": "714:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 398, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "714:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "697:30:2" - }, - "payable": false, - "returnParameters": { - "id": 401, - "nodeType": "ParameterList", - "parameters": [], - "src": "728:0:2" - }, - "scope": 594, - "src": "680:97:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 457, - "nodeType": "Block", - "src": "870:192:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 427, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "883:29:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 424, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "884:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 426, - "indexExpression": { - "argumentTypes": null, - "id": 425, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "906:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "884:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 423, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "875:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 428, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "875:38:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 429, - "nodeType": "ExpressionStatement", - "src": "875:38:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 434, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 430, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "918:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 432, - "indexExpression": { - "argumentTypes": null, - "id": 431, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "923:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "918:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 433, - "name": "_hash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 415, - "src": "932:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "918:19:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 435, - "nodeType": "ExpressionStatement", - "src": "918:19:2" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 439, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "957:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "expression": { - "argumentTypes": null, - "id": 436, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "942:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 438, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "942:14:2", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_string_storage_$returns$_t_uint256_$", - "typeString": "function (string storage ref) returns (uint256)" - } - }, - "id": 440, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "942:21:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 441, - "nodeType": "ExpressionStatement", - "src": "942:21:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 446, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 442, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "968:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 444, - "indexExpression": { - "argumentTypes": null, - "id": 443, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "990:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "968:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 445, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "999:4:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "src": "968:35:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 447, - "nodeType": "ExpressionStatement", - "src": "968:35:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 452, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 448, - "name": "file_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 346, - "src": "1008:10:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string memory => uint256)" - } - }, - "id": 450, - "indexExpression": { - "argumentTypes": null, - "id": 449, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "1019:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1008:17:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 451, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1028:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1008:31:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 453, - "nodeType": "ExpressionStatement", - "src": "1008:31:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 455, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1044:13:2", - "subExpression": { - "argumentTypes": null, - "id": 454, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1044:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 456, - "nodeType": "ExpressionStatement", - "src": "1044:13:2" - } - ] - }, - "documentation": null, - "id": 458, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 418, - "modifierName": { - "argumentTypes": null, - "id": 417, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 363, - "src": "835:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "835:10:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "id": 420, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "863:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 421, - "modifierName": { - "argumentTypes": null, - "id": 419, - "name": "emptyStringCheck", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 395, - "src": "846:16:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "846:23:2" - } - ], - "name": "addFile", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 416, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 413, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 458, - "src": "800:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 412, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "800:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 415, - "name": "_hash", - "nodeType": "VariableDeclaration", - "scope": 458, - "src": "814:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 414, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "814:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "799:28:2" - }, - "payable": false, - "returnParameters": { - "id": 422, - "nodeType": "ParameterList", - "parameters": [], - "src": "870:0:2" - }, - "scope": 594, - "src": "783:279:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 473, - "nodeType": "Block", - "src": "1133:29:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 471, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 467, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "1138:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 469, - "indexExpression": { - "argumentTypes": null, - "id": 468, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 460, - "src": "1143:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1138:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 470, - "name": "_hash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 462, - "src": "1152:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "1138:19:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 472, - "nodeType": "ExpressionStatement", - "src": "1138:19:2" - } - ] - }, - "documentation": null, - "id": 474, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 465, - "modifierName": { - "argumentTypes": null, - "id": 464, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 363, - "src": "1122:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "1122:10:2" - } - ], - "name": "updateFile", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 463, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 460, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 474, - "src": "1087:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 459, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1087:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 462, - "name": "_hash", - "nodeType": "VariableDeclaration", - "scope": 474, - "src": "1101:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 461, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1101:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1086:28:2" - }, - "payable": false, - "returnParameters": { - "id": 466, - "nodeType": "ParameterList", - "parameters": [], - "src": "1133:0:2" - }, - "scope": 594, - "src": "1067:95:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 548, - "nodeType": "Block", - "src": "1219:353:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 482, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1232:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 484, - "indexExpression": { - "argumentTypes": null, - "id": 483, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1254:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1232:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 481, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1224:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 485, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1224:37:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 486, - "nodeType": "ExpressionStatement", - "src": "1224:37:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 491, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 487, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1266:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 489, - "indexExpression": { - "argumentTypes": null, - "id": 488, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1288:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1266:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "66616c7365", - "id": 490, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1297:5:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "false" - }, - "src": "1266:36:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 492, - "nodeType": "ExpressionStatement", - "src": "1266:36:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 496, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1307:35:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 493, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1314:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 495, - "indexExpression": { - "argumentTypes": null, - "id": 494, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1336:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1314:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 497, - "nodeType": "ExpressionStatement", - "src": "1307:35:2" - }, - { - "assignments": [ - 499 - ], - "declarations": [ - { - "constant": false, - "id": 499, - "name": "index", - "nodeType": "VariableDeclaration", - "scope": 549, - "src": "1347:10:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 498, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1347:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 503, - "initialValue": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 500, - "name": "file_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 346, - "src": "1360:10:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string memory => uint256)" - } - }, - "id": 502, - "indexExpression": { - "argumentTypes": null, - "id": 501, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1371:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1360:17:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1347:30:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 507, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1382:24:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 504, - "name": "file_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 346, - "src": "1389:10:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string memory => uint256)" - } - }, - "id": 506, - "indexExpression": { - "argumentTypes": null, - "id": 505, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1400:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1389:17:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 508, - "nodeType": "ExpressionStatement", - "src": "1382:24:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 512, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1411:18:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 509, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "1418:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 511, - "indexExpression": { - "argumentTypes": null, - "id": 510, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1423:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1418:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 513, - "nodeType": "ExpressionStatement", - "src": "1411:18:2" - }, - { - "body": { - "id": 536, - "nodeType": "Block", - "src": "1473:41:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 534, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 526, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1479:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 528, - "indexExpression": { - "argumentTypes": null, - "id": 527, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1489:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1479:12:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 529, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1494:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 533, - "indexExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 532, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 530, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1504:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "hexValue": "31", - "id": 531, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1506:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "1504:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1494:14:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "src": "1479:29:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 535, - "nodeType": "ExpressionStatement", - "src": "1479:29:2" - } - ] - }, - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 522, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 518, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1452:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<", - "rightExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 521, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 519, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1454:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "argumentTypes": null, - "hexValue": "31", - "id": 520, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1466:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "1454:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1452:15:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 537, - "initializationExpression": { - "assignments": [ - 515 - ], - "declarations": [ - { - "constant": false, - "id": 515, - "name": "i", - "nodeType": "VariableDeclaration", - "scope": 549, - "src": "1438:6:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 514, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1438:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 517, - "initialValue": { - "argumentTypes": null, - "id": 516, - "name": "index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 499, - "src": "1445:5:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1438:12:2" - }, - "loopExpression": { - "expression": { - "argumentTypes": null, - "id": 524, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1468:3:2", - "subExpression": { - "argumentTypes": null, - "id": 523, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1468:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 525, - "nodeType": "ExpressionStatement", - "src": "1468:3:2" - }, - "nodeType": "ForStatement", - "src": "1434:80:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 543, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1518:31:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 538, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1525:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 542, - "indexExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 541, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 539, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1535:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "argumentTypes": null, - "hexValue": "31", - "id": 540, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1547:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "1535:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1525:24:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 544, - "nodeType": "ExpressionStatement", - "src": "1518:31:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 546, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "--", - "prefix": false, - "src": "1554:13:2", - "subExpression": { - "argumentTypes": null, - "id": 545, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1554:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 547, - "nodeType": "ExpressionStatement", - "src": "1554:13:2" - } - ] - }, - "documentation": null, - "id": 549, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 479, - "modifierName": { - "argumentTypes": null, - "id": 478, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 363, - "src": "1208:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "1208:10:2" - } - ], - "name": "deleteFile", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 477, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 476, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 549, - "src": "1187:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 475, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1187:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1186:14:2" - }, - "payable": false, - "returnParameters": { - "id": 480, - "nodeType": "ParameterList", - "parameters": [], - "src": "1219:0:2" - }, - "scope": 594, - "src": "1167:405:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 566, - "nodeType": "Block", - "src": "1653:70:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 557, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1666:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 559, - "indexExpression": { - "argumentTypes": null, - "id": 558, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 551, - "src": "1688:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1666:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 556, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1658:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 560, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1658:37:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 561, - "nodeType": "ExpressionStatement", - "src": "1658:37:2" - }, - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 562, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "1707:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 564, - "indexExpression": { - "argumentTypes": null, - "id": 563, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 551, - "src": "1712:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1707:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 555, - "id": 565, - "nodeType": "Return", - "src": "1700:18:2" - } - ] - }, - "documentation": null, - "id": 567, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getFileHash", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 552, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 551, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 567, - "src": "1611:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 550, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1611:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1610:14:2" - }, - "payable": false, - "returnParameters": { - "id": 555, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 554, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 567, - "src": "1645:6:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 553, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1645:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1644:8:2" - }, - "scope": 594, - "src": "1590:133:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 574, - "nodeType": "Block", - "src": "1779:28:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 572, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1791:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 571, - "id": 573, - "nodeType": "Return", - "src": "1784:18:2" - } - ] - }, - "documentation": null, - "id": 575, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getFileLength", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 568, - "nodeType": "ParameterList", - "parameters": [], - "src": "1750:2:2" - }, - "payable": false, - "returnParameters": { - "id": 571, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 570, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 575, - "src": "1773:4:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 569, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1773:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1772:6:2" - }, - "scope": 594, - "src": "1728:79:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 592, - "nodeType": "Block", - "src": "1875:74:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 585, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 583, - "name": "_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 577, - "src": "1894:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<", - "rightExpression": { - "argumentTypes": null, - "id": 584, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1903:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1894:20:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 582, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1886:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 586, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1886:29:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 587, - "nodeType": "ExpressionStatement", - "src": "1886:29:2" - }, - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 588, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1927:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 590, - "indexExpression": { - "argumentTypes": null, - "id": 589, - "name": "_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 577, - "src": "1937:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1927:17:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 581, - "id": 591, - "nodeType": "Return", - "src": "1920:24:2" - } - ] - }, - "documentation": null, - "id": 593, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getFileName", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 578, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 577, - "name": "_index", - "nodeType": "VariableDeclaration", - "scope": 593, - "src": "1833:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 576, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1833:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1832:13:2" - }, - "payable": false, - "returnParameters": { - "id": 581, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 580, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 593, - "src": "1867:6:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 579, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1867:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1866:8:2" - }, - "scope": 594, - "src": "1812:137:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 595, - "src": "63:1889:2" - } - ], - "src": "0:1958:2" - }, - "legacyAST": { - "absolutePath": "/mnt/e/code/bchosting_centralized/contracts/Website.sol", - "exportedSymbols": { - "Website": [ - 594 - ] - }, - "id": 595, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 330, - "literals": [ - "solidity", - "^", - "0.4", - ".19" - ], - "nodeType": "PragmaDirective", - "src": "0:24:2" - }, - { - "baseContracts": [], - "contractDependencies": [], - "contractKind": "contract", - "documentation": "The Website contract\r", - "fullyImplemented": true, - "id": 594, - "linearizedBaseContracts": [ - 594 - ], - "name": "Website", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": false, - "id": 332, - "name": "admin", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "89:20:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 331, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "89:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 334, - "name": "website_name", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "116:26:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string" - }, - "typeName": { - "id": 333, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "116:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 338, - "name": "file", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "183:31:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "typeName": { - "id": 337, - "keyType": { - "id": 335, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "192:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "183:26:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "valueType": { - "id": 336, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "202:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 342, - "name": "is_file_name_acquired", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "223:46:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "typeName": { - "id": 341, - "keyType": { - "id": 339, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "232:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "223:24:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "valueType": { - "id": 340, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "242:4:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 346, - "name": "file_index", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "276:35:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string => uint256)" - }, - "typeName": { - "id": 345, - "keyType": { - "id": 343, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "285:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "276:24:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string => uint256)" - }, - "valueType": { - "id": 344, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "295:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 349, - "name": "file_name", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "318:18:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string[]" - }, - "typeName": { - "baseType": { - "id": 347, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "318:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "id": 348, - "length": null, - "nodeType": "ArrayTypeName", - "src": "318:8:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", - "typeString": "string[]" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 352, - "name": "file_length", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "343:27:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 350, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "343:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "30", - "id": 351, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "369:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "visibility": "public" - }, - { - "body": { - "id": 362, - "nodeType": "Block", - "src": "401:57:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 358, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 355, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "419:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 356, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "419:10:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 357, - "name": "admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 332, - "src": "433:5:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "419:19:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 354, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "410:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 359, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "410:29:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 360, - "nodeType": "ExpressionStatement", - "src": "410:29:2" - }, - { - "id": 361, - "nodeType": "PlaceholderStatement", - "src": "448:1:2" - } - ] - }, - "documentation": null, - "id": 363, - "name": "restricted", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 353, - "nodeType": "ParameterList", - "parameters": [], - "src": "398:2:2" - }, - "src": "379:79:2", - "visibility": "internal" - }, - { - "body": { - "id": 394, - "nodeType": "Block", - "src": "505:166:2", - "statements": [ - { - "assignments": [ - 368 - ], - "declarations": [ - { - "constant": false, - "id": 368, - "name": "tempName", - "nodeType": "VariableDeclaration", - "scope": 395, - "src": "513:21:2", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory_ptr", - "typeString": "bytes" - }, - "typeName": { - "id": 367, - "name": "bytes", - "nodeType": "ElementaryTypeName", - "src": "513:5:2", - "typeDescriptions": { - "typeIdentifier": "t_bytes_storage_ptr", - "typeString": "bytes" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 372, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 370, - "name": "name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 365, - "src": "543:4:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "id": 369, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "537:5:2", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_bytes_storage_ptr_$", - "typeString": "type(bytes storage pointer)" - }, - "typeName": "bytes" - }, - "id": 371, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "537:11:2", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory", - "typeString": "bytes memory" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "513:35:2" - }, - { - "assignments": [ - 374 - ], - "declarations": [ - { - "constant": false, - "id": 374, - "name": "flag", - "nodeType": "VariableDeclaration", - "scope": 395, - "src": "571:9:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 373, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "571:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 376, - "initialValue": { - "argumentTypes": null, - "hexValue": "30", - "id": 375, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "581:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "nodeType": "VariableDeclarationStatement", - "src": "571:11:2" - }, - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 380, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 377, - "name": "tempName", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 368, - "src": "591:8:2", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory_ptr", - "typeString": "bytes memory" - } - }, - "id": 378, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "591:15:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 379, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "610:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "591:20:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": null, - "id": 386, - "nodeType": "IfStatement", - "src": "587:47:2", - "trueBody": { - "id": 385, - "nodeType": "Block", - "src": "613:21:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 383, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 381, - "name": "flag", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 374, - "src": "622:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "31", - "id": 382, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "627:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "622:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 384, - "nodeType": "ExpressionStatement", - "src": "622:6:2" - } - ] - } - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 390, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 388, - "name": "flag", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 374, - "src": "647:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 389, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "655:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "647:9:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 387, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "639:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 391, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "639:18:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 392, - "nodeType": "ExpressionStatement", - "src": "639:18:2" - }, - { - "id": 393, - "nodeType": "PlaceholderStatement", - "src": "662:1:2" - } - ] - }, - "documentation": null, - "id": 395, - "name": "emptyStringCheck", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 366, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 365, - "name": "name", - "nodeType": "VariableDeclaration", - "scope": 395, - "src": "492:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 364, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "492:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "491:13:2" - }, - "src": "466:205:2", - "visibility": "internal" - }, - { - "body": { - "id": 410, - "nodeType": "Block", - "src": "728:49:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 404, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 402, - "name": "admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 332, - "src": "733:5:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 403, - "name": "_admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 397, - "src": "741:6:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "733:14:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 405, - "nodeType": "ExpressionStatement", - "src": "733:14:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 408, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 406, - "name": "website_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 334, - "src": "752:12:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 407, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 399, - "src": "767:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "752:20:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 409, - "nodeType": "ExpressionStatement", - "src": "752:20:2" - } - ] - }, - "documentation": null, - "id": 411, - "implemented": true, - "isConstructor": true, - "isDeclaredConst": false, - "modifiers": [], - "name": "Website", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 400, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 397, - "name": "_admin", - "nodeType": "VariableDeclaration", - "scope": 411, - "src": "698:14:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 396, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "698:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 399, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 411, - "src": "714:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 398, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "714:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "697:30:2" - }, - "payable": false, - "returnParameters": { - "id": 401, - "nodeType": "ParameterList", - "parameters": [], - "src": "728:0:2" - }, - "scope": 594, - "src": "680:97:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 457, - "nodeType": "Block", - "src": "870:192:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 427, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "883:29:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 424, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "884:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 426, - "indexExpression": { - "argumentTypes": null, - "id": 425, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "906:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "884:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 423, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "875:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 428, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "875:38:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 429, - "nodeType": "ExpressionStatement", - "src": "875:38:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 434, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 430, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "918:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 432, - "indexExpression": { - "argumentTypes": null, - "id": 431, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "923:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "918:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 433, - "name": "_hash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 415, - "src": "932:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "918:19:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 435, - "nodeType": "ExpressionStatement", - "src": "918:19:2" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 439, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "957:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "expression": { - "argumentTypes": null, - "id": 436, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "942:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 438, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "942:14:2", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_string_storage_$returns$_t_uint256_$", - "typeString": "function (string storage ref) returns (uint256)" - } - }, - "id": 440, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "942:21:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 441, - "nodeType": "ExpressionStatement", - "src": "942:21:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 446, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 442, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "968:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 444, - "indexExpression": { - "argumentTypes": null, - "id": 443, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "990:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "968:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 445, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "999:4:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "src": "968:35:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 447, - "nodeType": "ExpressionStatement", - "src": "968:35:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 452, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 448, - "name": "file_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 346, - "src": "1008:10:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string memory => uint256)" - } - }, - "id": 450, - "indexExpression": { - "argumentTypes": null, - "id": 449, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "1019:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1008:17:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 451, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1028:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1008:31:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 453, - "nodeType": "ExpressionStatement", - "src": "1008:31:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 455, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1044:13:2", - "subExpression": { - "argumentTypes": null, - "id": 454, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1044:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 456, - "nodeType": "ExpressionStatement", - "src": "1044:13:2" - } - ] - }, - "documentation": null, - "id": 458, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 418, - "modifierName": { - "argumentTypes": null, - "id": 417, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 363, - "src": "835:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "835:10:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "id": 420, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "863:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 421, - "modifierName": { - "argumentTypes": null, - "id": 419, - "name": "emptyStringCheck", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 395, - "src": "846:16:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "846:23:2" - } - ], - "name": "addFile", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 416, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 413, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 458, - "src": "800:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 412, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "800:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 415, - "name": "_hash", - "nodeType": "VariableDeclaration", - "scope": 458, - "src": "814:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 414, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "814:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "799:28:2" - }, - "payable": false, - "returnParameters": { - "id": 422, - "nodeType": "ParameterList", - "parameters": [], - "src": "870:0:2" - }, - "scope": 594, - "src": "783:279:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 473, - "nodeType": "Block", - "src": "1133:29:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 471, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 467, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "1138:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 469, - "indexExpression": { - "argumentTypes": null, - "id": 468, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 460, - "src": "1143:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1138:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 470, - "name": "_hash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 462, - "src": "1152:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "1138:19:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 472, - "nodeType": "ExpressionStatement", - "src": "1138:19:2" - } - ] - }, - "documentation": null, - "id": 474, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 465, - "modifierName": { - "argumentTypes": null, - "id": 464, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 363, - "src": "1122:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "1122:10:2" - } - ], - "name": "updateFile", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 463, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 460, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 474, - "src": "1087:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 459, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1087:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 462, - "name": "_hash", - "nodeType": "VariableDeclaration", - "scope": 474, - "src": "1101:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 461, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1101:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1086:28:2" - }, - "payable": false, - "returnParameters": { - "id": 466, - "nodeType": "ParameterList", - "parameters": [], - "src": "1133:0:2" - }, - "scope": 594, - "src": "1067:95:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 548, - "nodeType": "Block", - "src": "1219:353:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 482, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1232:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 484, - "indexExpression": { - "argumentTypes": null, - "id": 483, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1254:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1232:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 481, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1224:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 485, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1224:37:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 486, - "nodeType": "ExpressionStatement", - "src": "1224:37:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 491, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 487, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1266:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 489, - "indexExpression": { - "argumentTypes": null, - "id": 488, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1288:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1266:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "66616c7365", - "id": 490, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1297:5:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "false" - }, - "src": "1266:36:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 492, - "nodeType": "ExpressionStatement", - "src": "1266:36:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 496, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1307:35:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 493, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1314:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 495, - "indexExpression": { - "argumentTypes": null, - "id": 494, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1336:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1314:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 497, - "nodeType": "ExpressionStatement", - "src": "1307:35:2" - }, - { - "assignments": [ - 499 - ], - "declarations": [ - { - "constant": false, - "id": 499, - "name": "index", - "nodeType": "VariableDeclaration", - "scope": 549, - "src": "1347:10:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 498, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1347:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 503, - "initialValue": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 500, - "name": "file_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 346, - "src": "1360:10:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string memory => uint256)" - } - }, - "id": 502, - "indexExpression": { - "argumentTypes": null, - "id": 501, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1371:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1360:17:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1347:30:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 507, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1382:24:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 504, - "name": "file_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 346, - "src": "1389:10:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string memory => uint256)" - } - }, - "id": 506, - "indexExpression": { - "argumentTypes": null, - "id": 505, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1400:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1389:17:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 508, - "nodeType": "ExpressionStatement", - "src": "1382:24:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 512, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1411:18:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 509, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "1418:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 511, - "indexExpression": { - "argumentTypes": null, - "id": 510, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1423:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1418:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 513, - "nodeType": "ExpressionStatement", - "src": "1411:18:2" - }, - { - "body": { - "id": 536, - "nodeType": "Block", - "src": "1473:41:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 534, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 526, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1479:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 528, - "indexExpression": { - "argumentTypes": null, - "id": 527, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1489:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1479:12:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 529, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1494:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 533, - "indexExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 532, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 530, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1504:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "hexValue": "31", - "id": 531, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1506:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "1504:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1494:14:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "src": "1479:29:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 535, - "nodeType": "ExpressionStatement", - "src": "1479:29:2" - } - ] - }, - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 522, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 518, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1452:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<", - "rightExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 521, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 519, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1454:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "argumentTypes": null, - "hexValue": "31", - "id": 520, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1466:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "1454:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1452:15:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 537, - "initializationExpression": { - "assignments": [ - 515 - ], - "declarations": [ - { - "constant": false, - "id": 515, - "name": "i", - "nodeType": "VariableDeclaration", - "scope": 549, - "src": "1438:6:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 514, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1438:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 517, - "initialValue": { - "argumentTypes": null, - "id": 516, - "name": "index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 499, - "src": "1445:5:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1438:12:2" - }, - "loopExpression": { - "expression": { - "argumentTypes": null, - "id": 524, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1468:3:2", - "subExpression": { - "argumentTypes": null, - "id": 523, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1468:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 525, - "nodeType": "ExpressionStatement", - "src": "1468:3:2" - }, - "nodeType": "ForStatement", - "src": "1434:80:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 543, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1518:31:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 538, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1525:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 542, - "indexExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 541, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 539, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1535:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "argumentTypes": null, - "hexValue": "31", - "id": 540, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1547:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "1535:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1525:24:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 544, - "nodeType": "ExpressionStatement", - "src": "1518:31:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 546, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "--", - "prefix": false, - "src": "1554:13:2", - "subExpression": { - "argumentTypes": null, - "id": 545, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1554:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 547, - "nodeType": "ExpressionStatement", - "src": "1554:13:2" - } - ] - }, - "documentation": null, - "id": 549, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 479, - "modifierName": { - "argumentTypes": null, - "id": 478, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 363, - "src": "1208:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "1208:10:2" - } - ], - "name": "deleteFile", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 477, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 476, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 549, - "src": "1187:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 475, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1187:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1186:14:2" - }, - "payable": false, - "returnParameters": { - "id": 480, - "nodeType": "ParameterList", - "parameters": [], - "src": "1219:0:2" - }, - "scope": 594, - "src": "1167:405:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 566, - "nodeType": "Block", - "src": "1653:70:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 557, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1666:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 559, - "indexExpression": { - "argumentTypes": null, - "id": 558, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 551, - "src": "1688:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1666:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 556, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1658:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 560, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1658:37:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 561, - "nodeType": "ExpressionStatement", - "src": "1658:37:2" - }, - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 562, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "1707:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 564, - "indexExpression": { - "argumentTypes": null, - "id": 563, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 551, - "src": "1712:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1707:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 555, - "id": 565, - "nodeType": "Return", - "src": "1700:18:2" - } - ] - }, - "documentation": null, - "id": 567, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getFileHash", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 552, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 551, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 567, - "src": "1611:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 550, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1611:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1610:14:2" - }, - "payable": false, - "returnParameters": { - "id": 555, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 554, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 567, - "src": "1645:6:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 553, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1645:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1644:8:2" - }, - "scope": 594, - "src": "1590:133:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 574, - "nodeType": "Block", - "src": "1779:28:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 572, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1791:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 571, - "id": 573, - "nodeType": "Return", - "src": "1784:18:2" - } - ] - }, - "documentation": null, - "id": 575, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getFileLength", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 568, - "nodeType": "ParameterList", - "parameters": [], - "src": "1750:2:2" - }, - "payable": false, - "returnParameters": { - "id": 571, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 570, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 575, - "src": "1773:4:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 569, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1773:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1772:6:2" - }, - "scope": 594, - "src": "1728:79:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 592, - "nodeType": "Block", - "src": "1875:74:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 585, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 583, - "name": "_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 577, - "src": "1894:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<", - "rightExpression": { - "argumentTypes": null, - "id": 584, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1903:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1894:20:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 582, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1886:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 586, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1886:29:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 587, - "nodeType": "ExpressionStatement", - "src": "1886:29:2" - }, - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 588, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1927:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 590, - "indexExpression": { - "argumentTypes": null, - "id": 589, - "name": "_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 577, - "src": "1937:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1927:17:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 581, - "id": 591, - "nodeType": "Return", - "src": "1920:24:2" - } - ] - }, - "documentation": null, - "id": 593, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getFileName", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 578, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 577, - "name": "_index", - "nodeType": "VariableDeclaration", - "scope": 593, - "src": "1833:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 576, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1833:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1832:13:2" - }, - "payable": false, - "returnParameters": { - "id": 581, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 580, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 593, - "src": "1867:6:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 579, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1867:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1866:8:2" - }, - "scope": 594, - "src": "1812:137:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 595, - "src": "63:1889:2" - } - ], - "src": "0:1958:2" - }, - "compiler": { - "name": "solc", - "version": "0.4.24+commit.e67f0147.Emscripten.clang" - }, - "networks": {}, - "schemaVersion": "2.0.1", - "updatedAt": "2018-10-27T19:15:52.852Z" -} \ No newline at end of file diff --git a/chrome-ext/background.js b/chrome-ext/background.js deleted file mode 100644 index 06344ea..0000000 --- a/chrome-ext/background.js +++ /dev/null @@ -1,165 +0,0 @@ -var web3ProviderURL = "https://rinkeby.infura.io/v3/d23a14816f56400b851a0fbf812e998e"; -App = { - web3Provider: null, - contracts: {}, - account: '0x0', - loading: false, - website: null, - website_name: null -} - -function init() { - console.log("extension started"); - initWeb3(); -} - -function initWeb3() { - App.web3Provider = new Web3.providers.HttpProvider('https://rinkeby.infura.io/v3/d23a14816f56400b851a0fbf812e998e'); - web3 = new Web3(App.web3Provider); - initContract(); -} - -function initContract() { - $.getJSON(chrome.extension.getURL('/config_resources/DNS.json'), function(DNS){ - App.contracts.DNS = TruffleContract(DNS); - App.contracts.DNS.setProvider(App.web3Provider); - App.contracts.DNS.deployed().then(function(DNS) { - console.log("DNS address:", DNS.address); - $.getJSON(chrome.extension.getURL('/config_resources/Website.json'), function(website) { - website.networks[4] = {}; - website.networks[4].address = ""; - website.networks.events = {}; - website.networks.links = {}; - App.website = website; - }).done(function () { - console.log('done'); - }); - }); - }).done (function() { - - }); -} - -function loadWebsite(address) { - App.website.networks[4].address = address; - App.contracts.Website = TruffleContract(App.website); - App.contracts.Website.setProvider(App.web3Provider); -} - -function sleep(milliseconds, bithost) { - var start = new Date().getTime(); - for (var i = 0; i < 1e7; i++) { - if (((new Date().getTime() - start) > milliseconds) || (sessionStorage.getItem(bithost) != null)){ - break; - } - } -} - - -init(); - -chrome.webRequest.onBeforeRequest.addListener( - function(details) { - var url = details.url; - var domain = url.split("/")[2]; - var extension = domain.split(".")[domain.split(".").length-1]; - var name = domain.split(".")[domain.split(".").length-2]; - - // Redirection to bc domain - if (extension == 'bc') { - name = name + '.bc'; - chrome.tabs.update({url: chrome.extension.getURL('/config_resources/loading.html')}); - var current_tab_id; - chrome.tabs.query({active: true, currentWindow: true}, function(tabs) { - var currTab = tabs[0].id; - if (currTab) { // Sanity check - console.log("current tab", currTab); - current_tab_id = currTab; - } - }); - //handleUrl(name); - var DNSInstance; - App.contracts.DNS.deployed().then(function (instance) { - DNSInstance = instance; - console.log(name); - return DNSInstance.checkDomainAvaibility(name); - }).then(function (status) { - console.log(status, name, name.length); - if(status == false) { - return DNSInstance.getWebsiteAddress(name); - } - }).then(function(address) { - console.log(address); - App.website.networks[4].address = address; - App.contracts.Website = TruffleContract(App.website); - App.contracts.Website.setProvider(App.web3Provider); - App.contracts.Website.deployed().then(function(instance) { - return instance.getFileHash('index.html'); - }).then(function (hash) { - // sessionStorage.setItem(name, "https://ipfs.io/ipfs/"+hash); - console.log("current tab to be updated", current_tab_id); - chrome.tabs.update(current_tab_id, {url: "https://ipfs.io/ipfs/"+hash}); - }).catch(function (err) { - console.log(chrome.extension.getURL('/config_resources/404.html')); - chrome.tabs.update(current_tab_id, {url: chrome.extension.getURL('/config_resources/404.html')}); - }); - }); - } - - // For anchor tag redirection - if(name + '.' + extension == 'ipfs.io') { - try { - var address = url.split('/')[4]; - var fileName = url.split('/')[5]; - if (typeof fileName !== 'undefined') { - chrome.tabs.update({url: chrome.extension.getURL('/config_resources/loading.html')}); - console.log(address, fileName); - // Load website Address - App.website.networks[4].address = address; - App.contracts.Website = TruffleContract(App.website); - App.contracts.Website.setProvider(App.web3Provider); - - var websiteInstance; - App.contracts.Website.deployed().then(function(instance) { - websiteInstance = instance; - return websiteInstance.getFileHash(fileName); - }).then(function(hash) { - console.log(fileName, hash); - chrome.tabs.update({url: "https://ipfs.io/ipfs/"+hash}); - }); - } - } catch (err) { - - } - } - }, - {urls: [""]}, - ["blocking"] -); - - -function handleUrl(name) { - var DNSInstance; - App.contracts.DNS.deployed().then(function (instance) { - DNSInstance = instance; - console.log(name); - return DNSInstance.checkDomainAvaibility(name); - }).then(function (status) { - console.log(status, name, name.length); - if(status == false) { - return DNSInstance.getWebsiteAddress(name); - } - }).then(function(address) { - console.log(address); - App.website.networks[4].address = address; - App.contracts.Website = TruffleContract(App.website); - App.contracts.Website.setProvider(App.web3Provider); - App.contracts.Website.deployed().then(function(instance) { - return instance.getFileHash('index.html'); - }).then(function (hash) { - chrome.tabs.update({url: "https://ipfs.io/ipfs/"+hash}); - }).catch(function (err) { - console.log(err); - }); - }); -} \ No newline at end of file diff --git a/chrome-ext/config_resources/404.html b/chrome-ext/config_resources/404.html deleted file mode 100644 index c462f7e..0000000 --- a/chrome-ext/config_resources/404.html +++ /dev/null @@ -1,165 +0,0 @@ - - - -Oops 404 - - - - - - - -
- -
- - \ No newline at end of file diff --git a/chrome-ext/config_resources/DNS.json b/chrome-ext/config_resources/DNS.json deleted file mode 100644 index 88bf6bf..0000000 --- a/chrome-ext/config_resources/DNS.json +++ /dev/null @@ -1,6711 +0,0 @@ -{ - "contractName": "DNS", - "abi": [ - { - "constant": true, - "inputs": [ - { - "name": "", - "type": "uint256" - } - ], - "name": "website_address", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "domain_name_length", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "createWebsite", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_name", - "type": "string" - }, - { - "name": "_file_address", - "type": "string" - } - ], - "name": "mapDNS", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_name", - "type": "string" - }, - { - "name": "_new_admin", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "checkDomainAvaibility", - "outputs": [ - { - "name": "", - "type": "bool" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "getDomainAddress", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "getDomainOwner", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "getWebsiteAddress", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_address", - "type": "address" - } - ], - "name": "getWebsiteName", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getAllDomainAddress", - "outputs": [ - { - "name": "", - "type": "address[]" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getUserWebsites", - "outputs": [ - { - "name": "", - "type": "address[]" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - } - ], - "bytecode": "0x6080604052600060015534801561001557600080fd5b50612a8f806100256000396000f3006080604052600436106100ba576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806325970115146100bf57806325e554b51461016857806334fcd96d146101d15780633bec2b441461023d5780633c8803fa146102f9578063760c11ec14610366578063848ee2fd1461041557806394310e51146104be57806397591c5a146105a0578063bc5c3de3146105cb578063c0e793c21461064c578063e35ae2a5146106d5575b600080fd5b3480156100cb57600080fd5b50610126600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610741565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017457600080fd5b506101cf600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061085c565b005b3480156101dd57600080fd5b506101e6610d38565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561022957808201518184015260208101905061020e565b505050509050019250505060405180910390f35b34801561024957600080fd5b5061027e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dc6565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102be5780820151818401526020810190506102a3565b50505050905090810190601f1680156102eb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030557600080fd5b5061032460048036038101908080359060200190929190505050610ea7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561037257600080fd5b50610413600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610ee5565b005b34801561042157600080fd5b5061047c600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506110b4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104ca57600080fd5b50610525600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506111cf565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561056557808201518184015260208101905061054a565b50505050905090810190601f1680156105925780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156105ac57600080fd5b506105b5611362565b6040518082815260200191505060405180910390f35b3480156105d757600080fd5b50610632600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611368565b604051808215151515815260200191505060405180910390f35b34801561065857600080fd5b506106d3600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113eb565b005b3480156106e157600080fd5b506106ea6115e4565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561072d578082015181840152602081019050610712565b505050509050019250505060405180910390f35b6000816007816040518082805190602001908083835b60208310151561077c5780518252602082019150602081019050602083039250610757565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615156107c857600080fd5b6004836040518082805190602001908083835b60208310151561080057805182526020820191506020810190506020830392506107db565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b60006007826040518082805190602001908083835b6020831015156108965780518252602082019150602081019050602083039250610871565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515156108e357600080fd5b33826108ed6116af565b808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561095c578082015181840152602081019050610941565b50505050905090810190601f1680156109895780820380516001836020036101000a031916815260200191505b509350505050604051809103906000f0801580156109ab573d6000803e3d6000fd5b50905060028190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000829080600181540180825580915050906001820390600052602060002001600090919290919091509080519060200190610a519291906116bf565b505060016000815480929190600101919050555060016007836040518082805190602001908083835b602083101515610a9f5780518252602082019150602081019050602083039250610a7a565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff02191690831515021790555081600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209080519060200190610b3c9291906116bf565b50336004836040518082805190602001908083835b602083101515610b765780518252602082019150602081019050602083039250610b51565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050806006836040518082805190602001908083835b602083101515610cc35780518252602082019150602081019050602083039250610c9e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60606002805480602002602001604051908101604052809291908181526020018280548015610dbc57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610d72575b5050505050905090565b6060600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e9b5780601f10610e7057610100808354040283529160200191610e9b565b820191906000526020600020905b815481529060010190602001808311610e7e57829003601f168201915b50505050509050919050565b600281815481101515610eb657fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b816004816040518082805190602001908083835b602083101515610f1e5780518252602082019150602081019050602083039250610ef9565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610fab57600080fd5b6007836040518082805190602001908083835b602083101515610fe35780518252602082019150602081019050602083039250610fbe565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561102f57600080fd5b816003846040518082805190602001908083835b6020831015156110685780518252602082019150602081019050602083039250611043565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906110ae9291906116bf565b50505050565b6000816007816040518082805190602001908083835b6020831015156110ef57805182526020820191506020810190506020830392506110ca565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561113b57600080fd5b6006836040518082805190602001908083835b602083101515611173578051825260208201915060208101905060208303925061114e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b6060816007816040518082805190602001908083835b60208310151561120a57805182526020820191506020810190506020830392506111e5565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561125657600080fd5b6003836040518082805190602001908083835b60208310151561128e5780518252602082019150602081019050602083039250611269565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113555780601f1061132a57610100808354040283529160200191611355565b820191906000526020600020905b81548152906001019060200180831161133857829003601f168201915b5050505050915050919050565b60015481565b60006007826040518082805190602001908083835b6020831015156113a2578051825260208201915060208101905060208303925061137d565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16159050919050565b816004816040518082805190602001908083835b60208310151561142457805182526020820191506020810190506020830392506113ff565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156114b157600080fd5b6007836040518082805190602001908083835b6020831015156114e957805182526020820191506020810190506020830392506114c4565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561153557600080fd5b816004846040518082805190602001908083835b60208310151561156e5780518252602082019150602081019050602083039250611549565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6060600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156116a557602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161165b575b5050505050905090565b6040516112ff8061176583390190565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061170057805160ff191683800117855561172e565b8280016001018555821561172e579182015b8281111561172d578251825591602001919060010190611712565b5b50905061173b919061173f565b5090565b61176191905b8082111561175d576000816000905550600101611745565b5090565b905600608060405260006006553480156200001657600080fd5b50604051620012ff380380620012ff8339810180604052810190808051906020019092919080518201929190505050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600190805190602001906200009d929190620000a6565b50505062000155565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000e957805160ff19168380011785556200011a565b828001600101855582156200011a579182015b8281111562000119578251825591602001919060010190620000fc565b5b5090506200012991906200012d565b5090565b6200015291905b808211156200014e57600081600090555060010162000134565b5090565b90565b61119a80620001656000396000f300608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063248bfc3b1461009e578063464ed51c1461014d5780639526419a146101fc578063a62ffbc414610227578063a991005414610252578063cbcdc4ab146102bb578063ed7c238d1461034b578063f851a440146103f1578063f880680b14610448575b600080fd5b3480156100aa57600080fd5b5061014b600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061052a565b005b34801561015957600080fd5b506101fa600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610802565b005b34801561020857600080fd5b506102116108e1565b6040518082815260200191505060405180910390f35b34801561023357600080fd5b5061023c6108eb565b6040518082815260200191505060405180910390f35b34801561025e57600080fd5b506102b9600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506108f1565b005b3480156102c757600080fd5b506102d0610cdb565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103105780820151818401526020810190506102f5565b50505050905090810190601f16801561033d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561035757600080fd5b5061037660048036038101908080359060200190929190505050610d79565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103b657808201518184015260208101905061039b565b50505050905090810190601f1680156103e35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103fd57600080fd5b50610406610e44565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561045457600080fd5b506104af600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e69565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104ef5780820151818401526020810190506104d4565b50505050905090810190601f16801561051c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561058557600080fd5b8160606000829150600090506000825114156105a057600190505b6000811415156105af57600080fd5b6003856040518082805190602001908083835b6020831015156105e757805182526020820191506020810190506020830392506105c2565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615151561063457600080fd5b836002866040518082805190602001908083835b60208310151561066d5780518252602082019150602081019050602083039250610648565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906106b3929190610ffa565b5060058590806001815401808255809150509060018203906000526020600020016000909192909190915090805190602001906106f1929190610ffa565b505060016003866040518082805190602001908083835b60208310151561072d5780518252602082019150602081019050602083039250610708565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506006546004866040518082805190602001908083835b6020831015156107b2578051825260208201915060208101905060208303925061078d565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020819055506006600081548092919060010191905055505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561085d57600080fd5b806002836040518082805190602001908083835b6020831015156108965780518252602082019150602081019050602083039250610871565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906108dc929190610ffa565b505050565b6000600654905090565b60065481565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561094f57600080fd5b6003836040518082805190602001908083835b6020831015156109875780518252602082019150602081019050602083039250610962565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615156109d357600080fd5b60006003846040518082805190602001908083835b602083101515610a0d57805182526020820191506020810190506020830392506109e8565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506003836040518082805190602001908083835b602083101515610a8f5780518252602082019150602081019050602083039250610a6a565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81549060ff02191690556004836040518082805190602001908083835b602083101515610b0a5780518252602082019150602081019050602083039250610ae5565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390205491506004836040518082805190602001908083835b602083101515610b785780518252602082019150602081019050602083039250610b53565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020600090556002836040518082805190602001908083835b602083101515610be75780518252602082019150602081019050602083039250610bc2565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390206000610c26919061107a565b8190505b600160065403811015610c9957600560018201815481101515610c4957fe5b90600052602060002001600582815481101515610c6257fe5b906000526020600020019080546001816001161561010002031660029004610c8b9291906110c2565b508080600101915050610c2a565b6005600160065403815481101515610cad57fe5b906000526020600020016000610cc3919061107a565b60066000815480929190600190039190505550505050565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d715780601f10610d4657610100808354040283529160200191610d71565b820191906000526020600020905b815481529060010190602001808311610d5457829003601f168201915b505050505081565b606060065482101515610d8b57600080fd5b600582815481101515610d9a57fe5b906000526020600020018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e385780601f10610e0d57610100808354040283529160200191610e38565b820191906000526020600020905b815481529060010190602001808311610e1b57829003601f168201915b50505050509050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606003826040518082805190602001908083835b602083101515610ea35780518252602082019150602081019050602083039250610e7e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515610eef57600080fd5b6002826040518082805190602001908083835b602083101515610f275780518252602082019150602081019050602083039250610f02565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610fee5780601f10610fc357610100808354040283529160200191610fee565b820191906000526020600020905b815481529060010190602001808311610fd157829003601f168201915b50505050509050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061103b57805160ff1916838001178555611069565b82800160010185558215611069579182015b8281111561106857825182559160200191906001019061104d565b5b5090506110769190611149565b5090565b50805460018160011615610100020316600290046000825580601f106110a057506110bf565b601f0160209004906000526020600020908101906110be9190611149565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106110fb5780548555611138565b8280016001018555821561113857600052602060002091601f016020900482015b8281111561113757825482559160010191906001019061111c565b5b5090506111459190611149565b5090565b61116b91905b8082111561116757600081600090555060010161114f565b5090565b905600a165627a7a723058208b9cc026be96cd7be515e4f361ee4647f55f6cbb22d84d8834346e2c895cacac0029a165627a7a723058208d44dbe2d03eb5e09dea356a76a490bfe0094b0ccd7f047b71071a2214c5b2500029", - "deployedBytecode": "0x6080604052600436106100ba576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806325970115146100bf57806325e554b51461016857806334fcd96d146101d15780633bec2b441461023d5780633c8803fa146102f9578063760c11ec14610366578063848ee2fd1461041557806394310e51146104be57806397591c5a146105a0578063bc5c3de3146105cb578063c0e793c21461064c578063e35ae2a5146106d5575b600080fd5b3480156100cb57600080fd5b50610126600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610741565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561017457600080fd5b506101cf600480360381019080803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061085c565b005b3480156101dd57600080fd5b506101e6610d38565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561022957808201518184015260208101905061020e565b505050509050019250505060405180910390f35b34801561024957600080fd5b5061027e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610dc6565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156102be5780820151818401526020810190506102a3565b50505050905090810190601f1680156102eb5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561030557600080fd5b5061032460048036038101908080359060200190929190505050610ea7565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561037257600080fd5b50610413600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610ee5565b005b34801561042157600080fd5b5061047c600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506110b4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b3480156104ca57600080fd5b50610525600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506111cf565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561056557808201518184015260208101905061054a565b50505050905090810190601f1680156105925780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156105ac57600080fd5b506105b5611362565b6040518082815260200191505060405180910390f35b3480156105d757600080fd5b50610632600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611368565b604051808215151515815260200191505060405180910390f35b34801561065857600080fd5b506106d3600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506113eb565b005b3480156106e157600080fd5b506106ea6115e4565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b8381101561072d578082015181840152602081019050610712565b505050509050019250505060405180910390f35b6000816007816040518082805190602001908083835b60208310151561077c5780518252602082019150602081019050602083039250610757565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615156107c857600080fd5b6004836040518082805190602001908083835b60208310151561080057805182526020820191506020810190506020830392506107db565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b60006007826040518082805190602001908083835b6020831015156108965780518252602082019150602081019050602083039250610871565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515156108e357600080fd5b33826108ed6116af565b808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561095c578082015181840152602081019050610941565b50505050905090810190601f1680156109895780820380516001836020036101000a031916815260200191505b509350505050604051809103906000f0801580156109ab573d6000803e3d6000fd5b50905060028190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000829080600181540180825580915050906001820390600052602060002001600090919290919091509080519060200190610a519291906116bf565b505060016000815480929190600101919050555060016007836040518082805190602001908083835b602083101515610a9f5780518252602082019150602081019050602083039250610a7a565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff02191690831515021790555081600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000209080519060200190610b3c9291906116bf565b50336004836040518082805190602001908083835b602083101515610b765780518252602082019150602081019050602083039250610b51565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190806001815401808255809150509060018203906000526020600020016000909192909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050806006836040518082805190602001908083835b602083101515610cc35780518252602082019150602081019050602083039250610c9e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b60606002805480602002602001604051908101604052809291908181526020018280548015610dbc57602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019060010190808311610d72575b5050505050905090565b6060600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e9b5780601f10610e7057610100808354040283529160200191610e9b565b820191906000526020600020905b815481529060010190602001808311610e7e57829003601f168201915b50505050509050919050565b600281815481101515610eb657fe5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b816004816040518082805190602001908083835b602083101515610f1e5780518252602082019150602081019050602083039250610ef9565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610fab57600080fd5b6007836040518082805190602001908083835b602083101515610fe35780518252602082019150602081019050602083039250610fbe565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561102f57600080fd5b816003846040518082805190602001908083835b6020831015156110685780518252602082019150602081019050602083039250611043565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906110ae9291906116bf565b50505050565b6000816007816040518082805190602001908083835b6020831015156110ef57805182526020820191506020810190506020830392506110ca565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561113b57600080fd5b6006836040518082805190602001908083835b602083101515611173578051825260208201915060208101905060208303925061114e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16915050919050565b6060816007816040518082805190602001908083835b60208310151561120a57805182526020820191506020810190506020830392506111e5565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561125657600080fd5b6003836040518082805190602001908083835b60208310151561128e5780518252602082019150602081019050602083039250611269565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113555780601f1061132a57610100808354040283529160200191611355565b820191906000526020600020905b81548152906001019060200180831161133857829003601f168201915b5050505050915050919050565b60015481565b60006007826040518082805190602001908083835b6020831015156113a2578051825260208201915060208101905060208303925061137d565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16159050919050565b816004816040518082805190602001908083835b60208310151561142457805182526020820191506020810190506020830392506113ff565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156114b157600080fd5b6007836040518082805190602001908083835b6020831015156114e957805182526020820191506020810190506020830392506114c4565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff16151561153557600080fd5b816004846040518082805190602001908083835b60208310151561156e5780518252602082019150602081019050602083039250611549565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550505050565b6060600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156116a557602002820191906000526020600020905b8160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001906001019080831161165b575b5050505050905090565b6040516112ff8061176583390190565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061170057805160ff191683800117855561172e565b8280016001018555821561172e579182015b8281111561172d578251825591602001919060010190611712565b5b50905061173b919061173f565b5090565b61176191905b8082111561175d576000816000905550600101611745565b5090565b905600608060405260006006553480156200001657600080fd5b50604051620012ff380380620012ff8339810180604052810190808051906020019092919080518201929190505050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600190805190602001906200009d929190620000a6565b50505062000155565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000e957805160ff19168380011785556200011a565b828001600101855582156200011a579182015b8281111562000119578251825591602001919060010190620000fc565b5b5090506200012991906200012d565b5090565b6200015291905b808211156200014e57600081600090555060010162000134565b5090565b90565b61119a80620001656000396000f300608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063248bfc3b1461009e578063464ed51c1461014d5780639526419a146101fc578063a62ffbc414610227578063a991005414610252578063cbcdc4ab146102bb578063ed7c238d1461034b578063f851a440146103f1578063f880680b14610448575b600080fd5b3480156100aa57600080fd5b5061014b600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061052a565b005b34801561015957600080fd5b506101fa600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610802565b005b34801561020857600080fd5b506102116108e1565b6040518082815260200191505060405180910390f35b34801561023357600080fd5b5061023c6108eb565b6040518082815260200191505060405180910390f35b34801561025e57600080fd5b506102b9600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506108f1565b005b3480156102c757600080fd5b506102d0610cdb565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103105780820151818401526020810190506102f5565b50505050905090810190601f16801561033d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561035757600080fd5b5061037660048036038101908080359060200190929190505050610d79565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103b657808201518184015260208101905061039b565b50505050905090810190601f1680156103e35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103fd57600080fd5b50610406610e44565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561045457600080fd5b506104af600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e69565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104ef5780820151818401526020810190506104d4565b50505050905090810190601f16801561051c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561058557600080fd5b8160606000829150600090506000825114156105a057600190505b6000811415156105af57600080fd5b6003856040518082805190602001908083835b6020831015156105e757805182526020820191506020810190506020830392506105c2565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615151561063457600080fd5b836002866040518082805190602001908083835b60208310151561066d5780518252602082019150602081019050602083039250610648565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906106b3929190610ffa565b5060058590806001815401808255809150509060018203906000526020600020016000909192909190915090805190602001906106f1929190610ffa565b505060016003866040518082805190602001908083835b60208310151561072d5780518252602082019150602081019050602083039250610708565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506006546004866040518082805190602001908083835b6020831015156107b2578051825260208201915060208101905060208303925061078d565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020819055506006600081548092919060010191905055505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561085d57600080fd5b806002836040518082805190602001908083835b6020831015156108965780518252602082019150602081019050602083039250610871565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906108dc929190610ffa565b505050565b6000600654905090565b60065481565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561094f57600080fd5b6003836040518082805190602001908083835b6020831015156109875780518252602082019150602081019050602083039250610962565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615156109d357600080fd5b60006003846040518082805190602001908083835b602083101515610a0d57805182526020820191506020810190506020830392506109e8565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506003836040518082805190602001908083835b602083101515610a8f5780518252602082019150602081019050602083039250610a6a565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81549060ff02191690556004836040518082805190602001908083835b602083101515610b0a5780518252602082019150602081019050602083039250610ae5565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390205491506004836040518082805190602001908083835b602083101515610b785780518252602082019150602081019050602083039250610b53565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020600090556002836040518082805190602001908083835b602083101515610be75780518252602082019150602081019050602083039250610bc2565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390206000610c26919061107a565b8190505b600160065403811015610c9957600560018201815481101515610c4957fe5b90600052602060002001600582815481101515610c6257fe5b906000526020600020019080546001816001161561010002031660029004610c8b9291906110c2565b508080600101915050610c2a565b6005600160065403815481101515610cad57fe5b906000526020600020016000610cc3919061107a565b60066000815480929190600190039190505550505050565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d715780601f10610d4657610100808354040283529160200191610d71565b820191906000526020600020905b815481529060010190602001808311610d5457829003601f168201915b505050505081565b606060065482101515610d8b57600080fd5b600582815481101515610d9a57fe5b906000526020600020018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e385780601f10610e0d57610100808354040283529160200191610e38565b820191906000526020600020905b815481529060010190602001808311610e1b57829003601f168201915b50505050509050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606003826040518082805190602001908083835b602083101515610ea35780518252602082019150602081019050602083039250610e7e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515610eef57600080fd5b6002826040518082805190602001908083835b602083101515610f275780518252602082019150602081019050602083039250610f02565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610fee5780601f10610fc357610100808354040283529160200191610fee565b820191906000526020600020905b815481529060010190602001808311610fd157829003601f168201915b50505050509050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061103b57805160ff1916838001178555611069565b82800160010185558215611069579182015b8281111561106857825182559160200191906001019061104d565b5b5090506110769190611149565b5090565b50805460018160011615610100020316600290046000825580601f106110a057506110bf565b601f0160209004906000526020600020908101906110be9190611149565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106110fb5780548555611138565b8280016001018555821561113857600052602060002091601f016020900482015b8281111561113757825482559160010191906001019061111c565b5b5090506111459190611149565b5090565b61116b91905b8082111561116757600081600090555060010161114f565b5090565b905600a165627a7a723058208b9cc026be96cd7be515e4f361ee4647f55f6cbb22d84d8834346e2c895cacac0029a165627a7a723058208d44dbe2d03eb5e09dea356a76a490bfe0094b0ccd7f047b71071a2214c5b2500029", - "sourceMap": "96:2643:0:-;;;172:1;139:34;;96:2643;8:9:-1;5:2;;;30:1;27;20:12;5:2;96:2643:0;;;;;;;", - "deployedSourceMap": "96:2643:0:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2112:131;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2112:131:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;995:489;;8:9:-1;5:2;;;30:1;27;20:12;5:2;995:489:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2508:96;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2508:96:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;2508:96:0;;;;;;;;;;;;;;;;;2388:115;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2388:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;2388:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;179:32;;8:9:-1;5:2;;;30:1;27;20:12;5:2;179:32:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1490:168;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1490:168:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2248:135;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2248:135:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1972;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1972:135:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1972:135:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;139:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;139:34:0;;;;;;;;;;;;;;;;;;;;;;;1852:115;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1852:115:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1663:171;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1663:171:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2609:121;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2609:121:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;2609:121:0;;;;;;;;;;;;;;;;;2112:131;2194:7;2173:5;936:18;955:5;936:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;936:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;927:35;;;;;;;;2215:16;2232:5;2215:23;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;2215:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2208:30;;2112:131;;;;:::o;995:489::-;1085:24;1054:18;1073:5;1054:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1054:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1053:26;1045:35;;;;;;;;1124:10;1136:5;1112:30;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1112:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1112:30:0;1085:57;;1147:15;1168:16;1147:38;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;1147:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1190:11;1207:5;1190:23;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;1190:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;1218:18;;:20;;;;;;;;;;;;;1271:4;1243:18;1262:5;1243:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1243:25:0;;;;;;;;;;;;;;;;;;;;;;:32;;;;;;;;;;;;;;;;;;1319:5;1280:18;:36;1299:16;1280:36;;;;;;;;;;;;;;;:44;;;;;;;;;;;;:::i;:::-;;1355:10;1329:16;1346:5;1329:23;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1329:23:0;;;;;;;;;;;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;1370:25;:37;1396:10;1370:37;;;;;;;;;;;;;;;1413:16;1370:60;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;1370:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1463:16;1435:18;1454:5;1435:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1435:25:0;;;;;;;;;;;;;;;;;;;;;;:44;;;;;;;;;;;;;;;;;;995:489;;:::o;2508:96::-;2560:10;2584:15;2577:22;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2508:96;:::o;2388:115::-;2450:6;2470:18;:28;2489:8;2470:28;;;;;;;;;;;;;;;2463:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2388:115;;;:::o;179:32::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1490:168::-;1560:5;828:16;845:5;828:23;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;828:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;814:37;;:10;:37;;;805:47;;;;;;;;1580:18;1599:5;1580:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1580:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1572:34;;;;;;;;1640:13;1611:19;1631:5;1611:26;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1611:26:0;;;;;;;;;;;;;;;;;;;;;:42;;;;;;;;;;;;:::i;:::-;;1490:168;;;:::o;2248:135::-;2332:7;2312:5;936:18;955:5;936:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;936:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;927:35;;;;;;;;2353:18;2372:5;2353:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;2353:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2346:32;;2248:135;;;;:::o;1972:::-;2056:6;2035:5;936:18;955:5;936:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;936:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;927:35;;;;;;;;2076:19;2096:5;2076:26;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;2076:26:0;;;;;;;;;;;;;;;;;;;;;2069:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1972:135;;;;:::o;139:34::-;;;;:::o;1852:115::-;1918:4;1937:18;1956:5;1937:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1937:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1936:26;1929:33;;1852:115;;;:::o;1663:171::-;1742:5;828:16;845:5;828:23;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;828:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;814:37;;:10;:37;;;805:47;;;;;;;;1762:18;1781:5;1762:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1762:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1754:34;;;;;;;;1819:10;1793:16;1810:5;1793:23;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1793:23:0;;;;;;;;;;;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;1663:171;;;:::o;2609:121::-;2656:10;2685:25;:37;2711:10;2685:37;;;;;;;;;;;;;;;2678:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2609:121;:::o;96:2643::-;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o", - "source": "pragma solidity ^0.4.19;\r\n\r\n\r\nimport \"./Website.sol\";\r\n\r\n/**\r\n * The WebFactory contract \r\n */\r\ncontract DNS {\r\n\r\n\tstring[] domain_name;\r\n\tuint public domain_name_length = 0;\r\n\r\n\taddress[] public website_address;\r\n \r\n // (DomainName => index.html hash)\r\n mapping (string => string) domain_redirect_map;\r\n\r\n // (Domain_name => Admin_Address)\r\n mapping (string => address) domain_admin_map;\r\n\r\n // (WebsiteAddress => Name)\r\n mapping (address => string) address_domain_map;\r\n // (Name => WebsiteAddress)\r\n mapping (string => address) domain_address_map;\r\n\r\n // Checks\r\n mapping (string => bool) is_domain_acquired;\r\n\r\n // Admin => address array of all website\r\n mapping(address => address[]) admin_website_address_map;\r\n\r\n modifier restricted(string _name) { \r\n \trequire (msg.sender == domain_admin_map[_name]); \r\n \t_; \r\n }\r\n\r\n modifier restricted_name(string _name) { \r\n \trequire (is_domain_acquired[_name]);\r\n \t_; \r\n }\r\n \r\n \r\n\tfunction createWebsite (string _name) public {\r\n\t\trequire(!is_domain_acquired[_name]);\r\n\t\taddress _website_address = new Website(msg.sender, _name);\r\n\t\twebsite_address.push(_website_address);\r\n\t\tdomain_name.push(_name);\r\n\t\tdomain_name_length++;\r\n\t\tis_domain_acquired[_name] = true;\r\n\t\taddress_domain_map[_website_address] = _name;\r\n\t\tdomain_admin_map[_name] = msg.sender;\r\n\t\tadmin_website_address_map[msg.sender].push(_website_address);\r\n\t\tdomain_address_map[_name] = _website_address;\r\n\t}\t\r\n\r\n\tfunction mapDNS(string _name, string _file_address) public restricted(_name) {\r\n\t\trequire(is_domain_acquired[_name]);\r\n\t\tdomain_redirect_map[_name] = _file_address;\r\n\t}\r\n\r\n\tfunction transferOwnership(string _name, address _new_admin) public restricted(_name) {\r\n\t\trequire(is_domain_acquired[_name]);\r\n\t\tdomain_admin_map[_name] = _new_admin;\r\n\t}\r\n\r\n\t// Views\r\n\r\n\tfunction checkDomainAvaibility(string _name) public view returns (bool) {\r\n\t\treturn !is_domain_acquired[_name];\r\n\t}\r\n\r\n\tfunction getDomainAddress(string _name) public restricted_name(_name) view returns (string) {\r\n\t\treturn domain_redirect_map[_name];\r\n\t}\r\n\r\n\tfunction getDomainOwner(string _name) public restricted_name(_name) view returns (address) {\r\n\t\treturn domain_admin_map[_name];\r\n\t}\r\n\r\n\tfunction getWebsiteAddress(string _name) public restricted_name(_name) view returns(address) {\r\n\t\treturn domain_address_map[_name];\r\n\t}\r\n\r\n\tfunction getWebsiteName(address _address) public view returns(string) {\r\n\t\treturn address_domain_map[_address];\r\n\t}\r\n\r\n\tfunction getAllDomainAddress() public view returns (address []) {\r\n\t\treturn website_address;\r\n\t}\r\n\r\n\tfunction getUserWebsites() public view returns(address []){\r\n return admin_website_address_map[msg.sender];\r\n }\r\n \r\n}\r\n \r\n", - "sourcePath": "/mnt/e/code/bchosting_bitbucket/contracts/DNS.sol", - "ast": { - "absolutePath": "/mnt/e/code/bchosting_bitbucket/contracts/DNS.sol", - "exportedSymbols": { - "DNS": [ - 271 - ] - }, - "id": 272, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1, - "literals": [ - "solidity", - "^", - "0.4", - ".19" - ], - "nodeType": "PragmaDirective", - "src": "0:24:0" - }, - { - "absolutePath": "/mnt/e/code/bchosting_bitbucket/contracts/Website.sol", - "file": "./Website.sol", - "id": 2, - "nodeType": "ImportDirective", - "scope": 272, - "sourceUnit": 595, - "src": "30:23:0", - "symbolAliases": [], - "unitAlias": "" - }, - { - "baseContracts": [], - "contractDependencies": [ - 594 - ], - "contractKind": "contract", - "documentation": "The WebFactory contract \r", - "fullyImplemented": true, - "id": 271, - "linearizedBaseContracts": [ - 271 - ], - "name": "DNS", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": false, - "id": 5, - "name": "domain_name", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "115:20:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string[]" - }, - "typeName": { - "baseType": { - "id": 3, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "115:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "id": 4, - "length": null, - "nodeType": "ArrayTypeName", - "src": "115:8:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", - "typeString": "string[]" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 8, - "name": "domain_name_length", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "139:34:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 6, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "139:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "30", - "id": 7, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "172:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "visibility": "public" - }, - { - "constant": false, - "id": 11, - "name": "website_address", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "179:32:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 9, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "179:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 10, - "length": null, - "nodeType": "ArrayTypeName", - "src": "179:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 15, - "name": "domain_redirect_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "264:46:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "typeName": { - "id": 14, - "keyType": { - "id": 12, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "273:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "264:26:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "valueType": { - "id": 13, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "283:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 19, - "name": "domain_admin_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "358:44:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "typeName": { - "id": 18, - "keyType": { - "id": 16, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "367:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "358:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "valueType": { - "id": 17, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "377:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 23, - "name": "address_domain_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "444:46:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string)" - }, - "typeName": { - "id": 22, - "keyType": { - "id": 20, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "453:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "444:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string)" - }, - "valueType": { - "id": 21, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "464:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 27, - "name": "domain_address_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "530:46:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "typeName": { - "id": 26, - "keyType": { - "id": 24, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "539:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "530:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "valueType": { - "id": 25, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "549:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 31, - "name": "is_domain_acquired", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "600:43:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "typeName": { - "id": 30, - "keyType": { - "id": 28, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "609:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "600:24:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "valueType": { - "id": 29, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "619:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 36, - "name": "admin_website_address_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "698:55:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[])" - }, - "typeName": { - "id": 35, - "keyType": { - "id": 32, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "706:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "698:29:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[])" - }, - "valueType": { - "baseType": { - "id": 33, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "717:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 34, - "length": null, - "nodeType": "ArrayTypeName", - "src": "717:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "body": { - "id": 50, - "nodeType": "Block", - "src": "796:75:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 46, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 41, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "814:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 42, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "814:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 43, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "828:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 45, - "indexExpression": { - "argumentTypes": null, - "id": 44, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "845:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "828:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "814:37:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 40, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "805:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 47, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "805:47:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 48, - "nodeType": "ExpressionStatement", - "src": "805:47:0" - }, - { - "id": 49, - "nodeType": "PlaceholderStatement", - "src": "861:1:0" - } - ] - }, - "documentation": null, - "id": 51, - "name": "restricted", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 39, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 38, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 51, - "src": "782:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 37, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "782:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "781:14:0" - }, - "src": "762:109:0", - "visibility": "internal" - }, - { - "body": { - "id": 62, - "nodeType": "Block", - "src": "918:62:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 56, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "936:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 58, - "indexExpression": { - "argumentTypes": null, - "id": 57, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 53, - "src": "955:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "936:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 55, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "927:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 59, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "927:35:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 60, - "nodeType": "ExpressionStatement", - "src": "927:35:0" - }, - { - "id": 61, - "nodeType": "PlaceholderStatement", - "src": "970:1:0" - } - ] - }, - "documentation": null, - "id": 63, - "name": "restricted_name", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 54, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 53, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 63, - "src": "904:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 52, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "904:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "903:14:0" - }, - "src": "879:101:0", - "visibility": "internal" - }, - { - "body": { - "id": 132, - "nodeType": "Block", - "src": "1040:444:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 72, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "1053:26:0", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 69, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1054:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 71, - "indexExpression": { - "argumentTypes": null, - "id": 70, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1073:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1054:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 68, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1045:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 73, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1045:35:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 74, - "nodeType": "ExpressionStatement", - "src": "1045:35:0" - }, - { - "assignments": [ - 76 - ], - "declarations": [ - { - "constant": false, - "id": 76, - "name": "_website_address", - "nodeType": "VariableDeclaration", - "scope": 133, - "src": "1085:24:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 75, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1085:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 83, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 79, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "1124:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 80, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1124:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 81, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1136:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "id": 78, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "NewExpression", - "src": "1112:11:0", - "typeDescriptions": { - "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_string_memory_ptr_$returns$_t_contract$_Website_$594_$", - "typeString": "function (address,string memory) returns (contract Website)" - }, - "typeName": { - "contractScope": null, - "id": 77, - "name": "Website", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 594, - "src": "1116:7:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Website_$594", - "typeString": "contract Website" - } - } - }, - "id": 82, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1112:30:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Website_$594", - "typeString": "contract Website" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1085:57:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 87, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1168:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "expression": { - "argumentTypes": null, - "id": 84, - "name": "website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 11, - "src": "1147:15:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "id": 86, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1147:20:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) returns (uint256)" - } - }, - "id": 88, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1147:38:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 89, - "nodeType": "ExpressionStatement", - "src": "1147:38:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 93, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1207:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "expression": { - "argumentTypes": null, - "id": 90, - "name": "domain_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 5, - "src": "1190:11:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 92, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1190:16:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_string_storage_$returns$_t_uint256_$", - "typeString": "function (string storage ref) returns (uint256)" - } - }, - "id": 94, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1190:23:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 95, - "nodeType": "ExpressionStatement", - "src": "1190:23:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 97, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1218:20:0", - "subExpression": { - "argumentTypes": null, - "id": 96, - "name": "domain_name_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 8, - "src": "1218:18:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 98, - "nodeType": "ExpressionStatement", - "src": "1218:20:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 103, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 99, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1243:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 101, - "indexExpression": { - "argumentTypes": null, - "id": 100, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1262:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1243:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 102, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1271:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "src": "1243:32:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 104, - "nodeType": "ExpressionStatement", - "src": "1243:32:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 109, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 105, - "name": "address_domain_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 23, - "src": "1280:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string storage ref)" - } - }, - "id": 107, - "indexExpression": { - "argumentTypes": null, - "id": 106, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1299:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1280:36:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 108, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1319:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "1280:44:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 110, - "nodeType": "ExpressionStatement", - "src": "1280:44:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 116, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 111, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "1329:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 113, - "indexExpression": { - "argumentTypes": null, - "id": 112, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1346:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1329:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 114, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "1355:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 115, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1355:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1329:36:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 117, - "nodeType": "ExpressionStatement", - "src": "1329:36:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 123, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1413:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 118, - "name": "admin_website_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 36, - "src": "1370:25:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[] storage ref)" - } - }, - "id": 121, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 119, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "1396:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 120, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1396:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1370:37:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "id": 122, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1370:42:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) returns (uint256)" - } - }, - "id": 124, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1370:60:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 125, - "nodeType": "ExpressionStatement", - "src": "1370:60:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 130, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 126, - "name": "domain_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 27, - "src": "1435:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 128, - "indexExpression": { - "argumentTypes": null, - "id": 127, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1454:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1435:25:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 129, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1463:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1435:44:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 131, - "nodeType": "ExpressionStatement", - "src": "1435:44:0" - } - ] - }, - "documentation": null, - "id": 133, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "createWebsite", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 66, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 65, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 133, - "src": "1019:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 64, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1019:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1018:14:0" - }, - "payable": false, - "returnParameters": { - "id": 67, - "nodeType": "ParameterList", - "parameters": [], - "src": "1040:0:0" - }, - "scope": 271, - "src": "995:489:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 155, - "nodeType": "Block", - "src": "1567:91:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 144, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1580:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 146, - "indexExpression": { - "argumentTypes": null, - "id": 145, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 135, - "src": "1599:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1580:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 143, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1572:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 147, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1572:34:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 148, - "nodeType": "ExpressionStatement", - "src": "1572:34:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 153, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 149, - "name": "domain_redirect_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 15, - "src": "1611:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 151, - "indexExpression": { - "argumentTypes": null, - "id": 150, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 135, - "src": "1631:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1611:26:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 152, - "name": "_file_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 137, - "src": "1640:13:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "1611:42:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 154, - "nodeType": "ExpressionStatement", - "src": "1611:42:0" - } - ] - }, - "documentation": null, - "id": 156, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 140, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 135, - "src": "1560:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 141, - "modifierName": { - "argumentTypes": null, - "id": 139, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 51, - "src": "1549:10:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1549:17:0" - } - ], - "name": "mapDNS", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 138, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 135, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 156, - "src": "1506:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 134, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1506:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 137, - "name": "_file_address", - "nodeType": "VariableDeclaration", - "scope": 156, - "src": "1520:20:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 136, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1520:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1505:36:0" - }, - "payable": false, - "returnParameters": { - "id": 142, - "nodeType": "ParameterList", - "parameters": [], - "src": "1567:0:0" - }, - "scope": 271, - "src": "1490:168:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 178, - "nodeType": "Block", - "src": "1749:85:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 167, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1762:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 169, - "indexExpression": { - "argumentTypes": null, - "id": 168, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 158, - "src": "1781:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1762:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 166, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1754:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 170, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1754:34:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 171, - "nodeType": "ExpressionStatement", - "src": "1754:34:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 176, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 172, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "1793:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 174, - "indexExpression": { - "argumentTypes": null, - "id": 173, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 158, - "src": "1810:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1793:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 175, - "name": "_new_admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 160, - "src": "1819:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1793:36:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 177, - "nodeType": "ExpressionStatement", - "src": "1793:36:0" - } - ] - }, - "documentation": null, - "id": 179, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 163, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 158, - "src": "1742:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 164, - "modifierName": { - "argumentTypes": null, - "id": 162, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 51, - "src": "1731:10:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1731:17:0" - } - ], - "name": "transferOwnership", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 161, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 158, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 179, - "src": "1690:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 157, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1690:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 160, - "name": "_new_admin", - "nodeType": "VariableDeclaration", - "scope": 179, - "src": "1704:18:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 159, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1704:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1689:34:0" - }, - "payable": false, - "returnParameters": { - "id": 165, - "nodeType": "ParameterList", - "parameters": [], - "src": "1749:0:0" - }, - "scope": 271, - "src": "1663:171:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 191, - "nodeType": "Block", - "src": "1924:43:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 189, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "1936:26:0", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 186, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1937:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 188, - "indexExpression": { - "argumentTypes": null, - "id": 187, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "1956:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1937:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "functionReturnParameters": 185, - "id": 190, - "nodeType": "Return", - "src": "1929:33:0" - } - ] - }, - "documentation": null, - "id": 192, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "checkDomainAvaibility", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 182, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 181, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 192, - "src": "1883:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 180, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1883:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1882:14:0" - }, - "payable": false, - "returnParameters": { - "id": 185, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 184, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 192, - "src": "1918:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 183, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "1918:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1917:6:0" - }, - "scope": 271, - "src": "1852:115:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 206, - "nodeType": "Block", - "src": "2064:43:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 202, - "name": "domain_redirect_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 15, - "src": "2076:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 204, - "indexExpression": { - "argumentTypes": null, - "id": 203, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 194, - "src": "2096:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2076:26:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 201, - "id": 205, - "nodeType": "Return", - "src": "2069:33:0" - } - ] - }, - "documentation": null, - "id": 207, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 197, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 194, - "src": "2035:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 198, - "modifierName": { - "argumentTypes": null, - "id": 196, - "name": "restricted_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 63, - "src": "2019:15:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2019:22:0" - } - ], - "name": "getDomainAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 195, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 194, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 207, - "src": "1998:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 193, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1998:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1997:14:0" - }, - "payable": false, - "returnParameters": { - "id": 201, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 200, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 207, - "src": "2056:6:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 199, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2056:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2055:8:0" - }, - "scope": 271, - "src": "1972:135:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 221, - "nodeType": "Block", - "src": "2203:40:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 217, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "2215:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 219, - "indexExpression": { - "argumentTypes": null, - "id": 218, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 209, - "src": "2232:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2215:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "functionReturnParameters": 216, - "id": 220, - "nodeType": "Return", - "src": "2208:30:0" - } - ] - }, - "documentation": null, - "id": 222, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 212, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 209, - "src": "2173:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 213, - "modifierName": { - "argumentTypes": null, - "id": 211, - "name": "restricted_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 63, - "src": "2157:15:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2157:22:0" - } - ], - "name": "getDomainOwner", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 210, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 209, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 222, - "src": "2136:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 208, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2136:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2135:14:0" - }, - "payable": false, - "returnParameters": { - "id": 216, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 215, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 222, - "src": "2194:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 214, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2194:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2193:9:0" - }, - "scope": 271, - "src": "2112:131:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 236, - "nodeType": "Block", - "src": "2341:42:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 232, - "name": "domain_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 27, - "src": "2353:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 234, - "indexExpression": { - "argumentTypes": null, - "id": 233, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 224, - "src": "2372:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2353:25:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "functionReturnParameters": 231, - "id": 235, - "nodeType": "Return", - "src": "2346:32:0" - } - ] - }, - "documentation": null, - "id": 237, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 227, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 224, - "src": "2312:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 228, - "modifierName": { - "argumentTypes": null, - "id": 226, - "name": "restricted_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 63, - "src": "2296:15:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2296:22:0" - } - ], - "name": "getWebsiteAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 225, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 224, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 237, - "src": "2275:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 223, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2275:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2274:14:0" - }, - "payable": false, - "returnParameters": { - "id": 231, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 230, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 237, - "src": "2332:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 229, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2332:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2331:9:0" - }, - "scope": 271, - "src": "2248:135:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 248, - "nodeType": "Block", - "src": "2458:45:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 244, - "name": "address_domain_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 23, - "src": "2470:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string storage ref)" - } - }, - "id": 246, - "indexExpression": { - "argumentTypes": null, - "id": 245, - "name": "_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 239, - "src": "2489:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2470:28:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 243, - "id": 247, - "nodeType": "Return", - "src": "2463:35:0" - } - ] - }, - "documentation": null, - "id": 249, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getWebsiteName", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 240, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 239, - "name": "_address", - "nodeType": "VariableDeclaration", - "scope": 249, - "src": "2412:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 238, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2412:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2411:18:0" - }, - "payable": false, - "returnParameters": { - "id": 243, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 242, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 249, - "src": "2450:6:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 241, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2450:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2449:8:0" - }, - "scope": 271, - "src": "2388:115:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 257, - "nodeType": "Block", - "src": "2572:32:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 255, - "name": "website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 11, - "src": "2584:15:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "functionReturnParameters": 254, - "id": 256, - "nodeType": "Return", - "src": "2577:22:0" - } - ] - }, - "documentation": null, - "id": 258, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getAllDomainAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 250, - "nodeType": "ParameterList", - "parameters": [], - "src": "2536:2:0" - }, - "payable": false, - "returnParameters": { - "id": 254, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 253, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 258, - "src": "2560:10:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 251, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2560:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 252, - "length": null, - "nodeType": "ArrayTypeName", - "src": "2560:10:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2559:12:0" - }, - "scope": 271, - "src": "2508:96:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 269, - "nodeType": "Block", - "src": "2667:63:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 264, - "name": "admin_website_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 36, - "src": "2685:25:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[] storage ref)" - } - }, - "id": 267, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 265, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "2711:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 266, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "2711:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2685:37:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "functionReturnParameters": 263, - "id": 268, - "nodeType": "Return", - "src": "2678:44:0" - } - ] - }, - "documentation": null, - "id": 270, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getUserWebsites", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 259, - "nodeType": "ParameterList", - "parameters": [], - "src": "2633:2:0" - }, - "payable": false, - "returnParameters": { - "id": 263, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 262, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 270, - "src": "2656:10:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 260, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2656:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 261, - "length": null, - "nodeType": "ArrayTypeName", - "src": "2656:10:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2655:12:0" - }, - "scope": 271, - "src": "2609:121:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 272, - "src": "96:2643:0" - } - ], - "src": "0:2744:0" - }, - "legacyAST": { - "absolutePath": "/mnt/e/code/bchosting_bitbucket/contracts/DNS.sol", - "exportedSymbols": { - "DNS": [ - 271 - ] - }, - "id": 272, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 1, - "literals": [ - "solidity", - "^", - "0.4", - ".19" - ], - "nodeType": "PragmaDirective", - "src": "0:24:0" - }, - { - "absolutePath": "/mnt/e/code/bchosting_bitbucket/contracts/Website.sol", - "file": "./Website.sol", - "id": 2, - "nodeType": "ImportDirective", - "scope": 272, - "sourceUnit": 595, - "src": "30:23:0", - "symbolAliases": [], - "unitAlias": "" - }, - { - "baseContracts": [], - "contractDependencies": [ - 594 - ], - "contractKind": "contract", - "documentation": "The WebFactory contract \r", - "fullyImplemented": true, - "id": 271, - "linearizedBaseContracts": [ - 271 - ], - "name": "DNS", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": false, - "id": 5, - "name": "domain_name", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "115:20:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string[]" - }, - "typeName": { - "baseType": { - "id": 3, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "115:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "id": 4, - "length": null, - "nodeType": "ArrayTypeName", - "src": "115:8:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", - "typeString": "string[]" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 8, - "name": "domain_name_length", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "139:34:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 6, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "139:4:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "30", - "id": 7, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "172:1:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "visibility": "public" - }, - { - "constant": false, - "id": 11, - "name": "website_address", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "179:32:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 9, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "179:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 10, - "length": null, - "nodeType": "ArrayTypeName", - "src": "179:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 15, - "name": "domain_redirect_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "264:46:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "typeName": { - "id": 14, - "keyType": { - "id": 12, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "273:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "264:26:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "valueType": { - "id": 13, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "283:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 19, - "name": "domain_admin_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "358:44:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "typeName": { - "id": 18, - "keyType": { - "id": 16, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "367:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "358:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "valueType": { - "id": 17, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "377:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 23, - "name": "address_domain_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "444:46:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string)" - }, - "typeName": { - "id": 22, - "keyType": { - "id": 20, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "453:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "444:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string)" - }, - "valueType": { - "id": 21, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "464:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 27, - "name": "domain_address_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "530:46:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "typeName": { - "id": 26, - "keyType": { - "id": 24, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "539:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "530:27:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string => address)" - }, - "valueType": { - "id": 25, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "549:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 31, - "name": "is_domain_acquired", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "600:43:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "typeName": { - "id": 30, - "keyType": { - "id": 28, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "609:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "600:24:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "valueType": { - "id": 29, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "619:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 36, - "name": "admin_website_address_map", - "nodeType": "VariableDeclaration", - "scope": 271, - "src": "698:55:0", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[])" - }, - "typeName": { - "id": 35, - "keyType": { - "id": 32, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "706:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Mapping", - "src": "698:29:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[])" - }, - "valueType": { - "baseType": { - "id": 33, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "717:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 34, - "length": null, - "nodeType": "ArrayTypeName", - "src": "717:9:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "body": { - "id": 50, - "nodeType": "Block", - "src": "796:75:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 46, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 41, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "814:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 42, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "814:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 43, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "828:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 45, - "indexExpression": { - "argumentTypes": null, - "id": 44, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 38, - "src": "845:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "828:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "814:37:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 40, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "805:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 47, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "805:47:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 48, - "nodeType": "ExpressionStatement", - "src": "805:47:0" - }, - { - "id": 49, - "nodeType": "PlaceholderStatement", - "src": "861:1:0" - } - ] - }, - "documentation": null, - "id": 51, - "name": "restricted", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 39, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 38, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 51, - "src": "782:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 37, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "782:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "781:14:0" - }, - "src": "762:109:0", - "visibility": "internal" - }, - { - "body": { - "id": 62, - "nodeType": "Block", - "src": "918:62:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 56, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "936:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 58, - "indexExpression": { - "argumentTypes": null, - "id": 57, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 53, - "src": "955:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "936:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 55, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "927:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 59, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "927:35:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 60, - "nodeType": "ExpressionStatement", - "src": "927:35:0" - }, - { - "id": 61, - "nodeType": "PlaceholderStatement", - "src": "970:1:0" - } - ] - }, - "documentation": null, - "id": 63, - "name": "restricted_name", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 54, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 53, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 63, - "src": "904:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 52, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "904:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "903:14:0" - }, - "src": "879:101:0", - "visibility": "internal" - }, - { - "body": { - "id": 132, - "nodeType": "Block", - "src": "1040:444:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 72, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "1053:26:0", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 69, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1054:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 71, - "indexExpression": { - "argumentTypes": null, - "id": 70, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1073:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1054:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 68, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1045:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 73, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1045:35:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 74, - "nodeType": "ExpressionStatement", - "src": "1045:35:0" - }, - { - "assignments": [ - 76 - ], - "declarations": [ - { - "constant": false, - "id": 76, - "name": "_website_address", - "nodeType": "VariableDeclaration", - "scope": 133, - "src": "1085:24:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 75, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1085:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 83, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 79, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "1124:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 80, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1124:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - { - "argumentTypes": null, - "id": 81, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1136:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - }, - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "id": 78, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "NewExpression", - "src": "1112:11:0", - "typeDescriptions": { - "typeIdentifier": "t_function_creation_nonpayable$_t_address_$_t_string_memory_ptr_$returns$_t_contract$_Website_$594_$", - "typeString": "function (address,string memory) returns (contract Website)" - }, - "typeName": { - "contractScope": null, - "id": 77, - "name": "Website", - "nodeType": "UserDefinedTypeName", - "referencedDeclaration": 594, - "src": "1116:7:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Website_$594", - "typeString": "contract Website" - } - } - }, - "id": 82, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1112:30:0", - "typeDescriptions": { - "typeIdentifier": "t_contract$_Website_$594", - "typeString": "contract Website" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1085:57:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 87, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1168:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "expression": { - "argumentTypes": null, - "id": 84, - "name": "website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 11, - "src": "1147:15:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "id": 86, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1147:20:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) returns (uint256)" - } - }, - "id": 88, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1147:38:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 89, - "nodeType": "ExpressionStatement", - "src": "1147:38:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 93, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1207:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "expression": { - "argumentTypes": null, - "id": 90, - "name": "domain_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 5, - "src": "1190:11:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 92, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1190:16:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_string_storage_$returns$_t_uint256_$", - "typeString": "function (string storage ref) returns (uint256)" - } - }, - "id": 94, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1190:23:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 95, - "nodeType": "ExpressionStatement", - "src": "1190:23:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 97, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1218:20:0", - "subExpression": { - "argumentTypes": null, - "id": 96, - "name": "domain_name_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 8, - "src": "1218:18:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 98, - "nodeType": "ExpressionStatement", - "src": "1218:20:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 103, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 99, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1243:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 101, - "indexExpression": { - "argumentTypes": null, - "id": 100, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1262:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1243:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 102, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1271:4:0", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "src": "1243:32:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 104, - "nodeType": "ExpressionStatement", - "src": "1243:32:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 109, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 105, - "name": "address_domain_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 23, - "src": "1280:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string storage ref)" - } - }, - "id": 107, - "indexExpression": { - "argumentTypes": null, - "id": 106, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1299:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1280:36:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 108, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1319:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "1280:44:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 110, - "nodeType": "ExpressionStatement", - "src": "1280:44:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 116, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 111, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "1329:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 113, - "indexExpression": { - "argumentTypes": null, - "id": 112, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1346:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1329:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 114, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "1355:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 115, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1355:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1329:36:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 117, - "nodeType": "ExpressionStatement", - "src": "1329:36:0" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 123, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1413:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_address", - "typeString": "address" - } - ], - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 118, - "name": "admin_website_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 36, - "src": "1370:25:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[] storage ref)" - } - }, - "id": 121, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 119, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "1396:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 120, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1396:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1370:37:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "id": 122, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "1370:42:0", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_address_$returns$_t_uint256_$", - "typeString": "function (address) returns (uint256)" - } - }, - "id": 124, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1370:60:0", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 125, - "nodeType": "ExpressionStatement", - "src": "1370:60:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 130, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 126, - "name": "domain_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 27, - "src": "1435:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 128, - "indexExpression": { - "argumentTypes": null, - "id": 127, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 65, - "src": "1454:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1435:25:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 129, - "name": "_website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 76, - "src": "1463:16:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1435:44:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 131, - "nodeType": "ExpressionStatement", - "src": "1435:44:0" - } - ] - }, - "documentation": null, - "id": 133, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [], - "name": "createWebsite", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 66, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 65, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 133, - "src": "1019:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 64, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1019:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1018:14:0" - }, - "payable": false, - "returnParameters": { - "id": 67, - "nodeType": "ParameterList", - "parameters": [], - "src": "1040:0:0" - }, - "scope": 271, - "src": "995:489:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 155, - "nodeType": "Block", - "src": "1567:91:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 144, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1580:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 146, - "indexExpression": { - "argumentTypes": null, - "id": 145, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 135, - "src": "1599:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1580:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 143, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1572:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 147, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1572:34:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 148, - "nodeType": "ExpressionStatement", - "src": "1572:34:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 153, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 149, - "name": "domain_redirect_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 15, - "src": "1611:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 151, - "indexExpression": { - "argumentTypes": null, - "id": 150, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 135, - "src": "1631:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1611:26:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 152, - "name": "_file_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 137, - "src": "1640:13:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "1611:42:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 154, - "nodeType": "ExpressionStatement", - "src": "1611:42:0" - } - ] - }, - "documentation": null, - "id": 156, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 140, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 135, - "src": "1560:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 141, - "modifierName": { - "argumentTypes": null, - "id": 139, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 51, - "src": "1549:10:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1549:17:0" - } - ], - "name": "mapDNS", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 138, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 135, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 156, - "src": "1506:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 134, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1506:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 137, - "name": "_file_address", - "nodeType": "VariableDeclaration", - "scope": 156, - "src": "1520:20:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 136, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1520:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1505:36:0" - }, - "payable": false, - "returnParameters": { - "id": 142, - "nodeType": "ParameterList", - "parameters": [], - "src": "1567:0:0" - }, - "scope": 271, - "src": "1490:168:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 178, - "nodeType": "Block", - "src": "1749:85:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 167, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1762:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 169, - "indexExpression": { - "argumentTypes": null, - "id": 168, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 158, - "src": "1781:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1762:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 166, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1754:7:0", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 170, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1754:34:0", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 171, - "nodeType": "ExpressionStatement", - "src": "1754:34:0" - }, - { - "expression": { - "argumentTypes": null, - "id": 176, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 172, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "1793:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 174, - "indexExpression": { - "argumentTypes": null, - "id": 173, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 158, - "src": "1810:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1793:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 175, - "name": "_new_admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 160, - "src": "1819:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "1793:36:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 177, - "nodeType": "ExpressionStatement", - "src": "1793:36:0" - } - ] - }, - "documentation": null, - "id": 179, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 163, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 158, - "src": "1742:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 164, - "modifierName": { - "argumentTypes": null, - "id": 162, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 51, - "src": "1731:10:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "1731:17:0" - } - ], - "name": "transferOwnership", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 161, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 158, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 179, - "src": "1690:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 157, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1690:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 160, - "name": "_new_admin", - "nodeType": "VariableDeclaration", - "scope": 179, - "src": "1704:18:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 159, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "1704:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1689:34:0" - }, - "payable": false, - "returnParameters": { - "id": 165, - "nodeType": "ParameterList", - "parameters": [], - "src": "1749:0:0" - }, - "scope": 271, - "src": "1663:171:0", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 191, - "nodeType": "Block", - "src": "1924:43:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 189, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "1936:26:0", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 186, - "name": "is_domain_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 31, - "src": "1937:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 188, - "indexExpression": { - "argumentTypes": null, - "id": 187, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 181, - "src": "1956:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1937:25:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "functionReturnParameters": 185, - "id": 190, - "nodeType": "Return", - "src": "1929:33:0" - } - ] - }, - "documentation": null, - "id": 192, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "checkDomainAvaibility", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 182, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 181, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 192, - "src": "1883:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 180, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1883:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1882:14:0" - }, - "payable": false, - "returnParameters": { - "id": 185, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 184, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 192, - "src": "1918:4:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "typeName": { - "id": 183, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "1918:4:0", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1917:6:0" - }, - "scope": 271, - "src": "1852:115:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 206, - "nodeType": "Block", - "src": "2064:43:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 202, - "name": "domain_redirect_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 15, - "src": "2076:19:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 204, - "indexExpression": { - "argumentTypes": null, - "id": 203, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 194, - "src": "2096:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2076:26:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 201, - "id": 205, - "nodeType": "Return", - "src": "2069:33:0" - } - ] - }, - "documentation": null, - "id": 207, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 197, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 194, - "src": "2035:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 198, - "modifierName": { - "argumentTypes": null, - "id": 196, - "name": "restricted_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 63, - "src": "2019:15:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2019:22:0" - } - ], - "name": "getDomainAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 195, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 194, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 207, - "src": "1998:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 193, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1998:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1997:14:0" - }, - "payable": false, - "returnParameters": { - "id": 201, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 200, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 207, - "src": "2056:6:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 199, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2056:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2055:8:0" - }, - "scope": 271, - "src": "1972:135:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 221, - "nodeType": "Block", - "src": "2203:40:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 217, - "name": "domain_admin_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 19, - "src": "2215:16:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 219, - "indexExpression": { - "argumentTypes": null, - "id": 218, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 209, - "src": "2232:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2215:23:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "functionReturnParameters": 216, - "id": 220, - "nodeType": "Return", - "src": "2208:30:0" - } - ] - }, - "documentation": null, - "id": 222, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 212, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 209, - "src": "2173:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 213, - "modifierName": { - "argumentTypes": null, - "id": 211, - "name": "restricted_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 63, - "src": "2157:15:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2157:22:0" - } - ], - "name": "getDomainOwner", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 210, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 209, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 222, - "src": "2136:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 208, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2136:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2135:14:0" - }, - "payable": false, - "returnParameters": { - "id": 216, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 215, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 222, - "src": "2194:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 214, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2194:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2193:9:0" - }, - "scope": 271, - "src": "2112:131:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 236, - "nodeType": "Block", - "src": "2341:42:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 232, - "name": "domain_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 27, - "src": "2353:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_address_$", - "typeString": "mapping(string memory => address)" - } - }, - "id": 234, - "indexExpression": { - "argumentTypes": null, - "id": 233, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 224, - "src": "2372:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2353:25:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "functionReturnParameters": 231, - "id": 235, - "nodeType": "Return", - "src": "2346:32:0" - } - ] - }, - "documentation": null, - "id": 237, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [ - { - "arguments": [ - { - "argumentTypes": null, - "id": 227, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 224, - "src": "2312:5:0", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 228, - "modifierName": { - "argumentTypes": null, - "id": 226, - "name": "restricted_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 63, - "src": "2296:15:0", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "2296:22:0" - } - ], - "name": "getWebsiteAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 225, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 224, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 237, - "src": "2275:12:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 223, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2275:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2274:14:0" - }, - "payable": false, - "returnParameters": { - "id": 231, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 230, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 237, - "src": "2332:7:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 229, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2332:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2331:9:0" - }, - "scope": 271, - "src": "2248:135:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 248, - "nodeType": "Block", - "src": "2458:45:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 244, - "name": "address_domain_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 23, - "src": "2470:18:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_string_storage_$", - "typeString": "mapping(address => string storage ref)" - } - }, - "id": 246, - "indexExpression": { - "argumentTypes": null, - "id": 245, - "name": "_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 239, - "src": "2489:8:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2470:28:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 243, - "id": 247, - "nodeType": "Return", - "src": "2463:35:0" - } - ] - }, - "documentation": null, - "id": 249, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getWebsiteName", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 240, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 239, - "name": "_address", - "nodeType": "VariableDeclaration", - "scope": 249, - "src": "2412:16:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 238, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2412:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2411:18:0" - }, - "payable": false, - "returnParameters": { - "id": 243, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 242, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 249, - "src": "2450:6:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 241, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "2450:6:0", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2449:8:0" - }, - "scope": 271, - "src": "2388:115:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 257, - "nodeType": "Block", - "src": "2572:32:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 255, - "name": "website_address", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 11, - "src": "2584:15:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "functionReturnParameters": 254, - "id": 256, - "nodeType": "Return", - "src": "2577:22:0" - } - ] - }, - "documentation": null, - "id": 258, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getAllDomainAddress", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 250, - "nodeType": "ParameterList", - "parameters": [], - "src": "2536:2:0" - }, - "payable": false, - "returnParameters": { - "id": 254, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 253, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 258, - "src": "2560:10:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 251, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2560:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 252, - "length": null, - "nodeType": "ArrayTypeName", - "src": "2560:10:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2559:12:0" - }, - "scope": 271, - "src": "2508:96:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 269, - "nodeType": "Block", - "src": "2667:63:0", - "statements": [ - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 264, - "name": "admin_website_address_map", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 36, - "src": "2685:25:0", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_address_$_t_array$_t_address_$dyn_storage_$", - "typeString": "mapping(address => address[] storage ref)" - } - }, - "id": 267, - "indexExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 265, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "2711:3:0", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 266, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "2711:10:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "2685:37:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage", - "typeString": "address[] storage ref" - } - }, - "functionReturnParameters": 263, - "id": 268, - "nodeType": "Return", - "src": "2678:44:0" - } - ] - }, - "documentation": null, - "id": 270, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getUserWebsites", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 259, - "nodeType": "ParameterList", - "parameters": [], - "src": "2633:2:0" - }, - "payable": false, - "returnParameters": { - "id": 263, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 262, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 270, - "src": "2656:10:0", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", - "typeString": "address[]" - }, - "typeName": { - "baseType": { - "id": 260, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "2656:7:0", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 261, - "length": null, - "nodeType": "ArrayTypeName", - "src": "2656:10:0", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", - "typeString": "address[]" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "2655:12:0" - }, - "scope": 271, - "src": "2609:121:0", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 272, - "src": "96:2643:0" - } - ], - "src": "0:2744:0" - }, - "compiler": { - "name": "solc", - "version": "0.4.24+commit.e67f0147.Emscripten.clang" - }, - "networks": { - "4": { - "events": {}, - "links": {}, - "address": "0x189f5b061885b03513b9ba90ec7ea31a1441e0fa", - "transactionHash": "0xbe8f8c1bb219de59383c24a5455378de4a3e21a47128b3d20abbe999953e6f11" - } - }, - "schemaVersion": "2.0.1", - "updatedAt": "2018-10-27T09:19:04.185Z" -} \ No newline at end of file diff --git a/chrome-ext/config_resources/Website.json b/chrome-ext/config_resources/Website.json deleted file mode 100644 index 065bd07..0000000 --- a/chrome-ext/config_resources/Website.json +++ /dev/null @@ -1,6695 +0,0 @@ -{ - "contractName": "Website", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "file_length", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "website_name", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "admin", - "outputs": [ - { - "name": "", - "type": "address" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "name": "_admin", - "type": "address" - }, - { - "name": "_name", - "type": "string" - } - ], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "constant": false, - "inputs": [ - { - "name": "_name", - "type": "string" - }, - { - "name": "_hash", - "type": "string" - } - ], - "name": "addFile", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_name", - "type": "string" - }, - { - "name": "_hash", - "type": "string" - } - ], - "name": "updateFile", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": false, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "deleteFile", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_name", - "type": "string" - } - ], - "name": "getFileHash", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [], - "name": "getFileLength", - "outputs": [ - { - "name": "", - "type": "uint256" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - }, - { - "constant": true, - "inputs": [ - { - "name": "_index", - "type": "uint256" - } - ], - "name": "getFileName", - "outputs": [ - { - "name": "", - "type": "string" - } - ], - "payable": false, - "stateMutability": "view", - "type": "function" - } - ], - "bytecode": "0x608060405260006006553480156200001657600080fd5b50604051620012ff380380620012ff8339810180604052810190808051906020019092919080518201929190505050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600190805190602001906200009d929190620000a6565b50505062000155565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000e957805160ff19168380011785556200011a565b828001600101855582156200011a579182015b8281111562000119578251825591602001919060010190620000fc565b5b5090506200012991906200012d565b5090565b6200015291905b808211156200014e57600081600090555060010162000134565b5090565b90565b61119a80620001656000396000f300608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063248bfc3b1461009e578063464ed51c1461014d5780639526419a146101fc578063a62ffbc414610227578063a991005414610252578063cbcdc4ab146102bb578063ed7c238d1461034b578063f851a440146103f1578063f880680b14610448575b600080fd5b3480156100aa57600080fd5b5061014b600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061052a565b005b34801561015957600080fd5b506101fa600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610802565b005b34801561020857600080fd5b506102116108e1565b6040518082815260200191505060405180910390f35b34801561023357600080fd5b5061023c6108eb565b6040518082815260200191505060405180910390f35b34801561025e57600080fd5b506102b9600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506108f1565b005b3480156102c757600080fd5b506102d0610cdb565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103105780820151818401526020810190506102f5565b50505050905090810190601f16801561033d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561035757600080fd5b5061037660048036038101908080359060200190929190505050610d79565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103b657808201518184015260208101905061039b565b50505050905090810190601f1680156103e35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103fd57600080fd5b50610406610e44565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561045457600080fd5b506104af600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e69565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104ef5780820151818401526020810190506104d4565b50505050905090810190601f16801561051c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561058557600080fd5b8160606000829150600090506000825114156105a057600190505b6000811415156105af57600080fd5b6003856040518082805190602001908083835b6020831015156105e757805182526020820191506020810190506020830392506105c2565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615151561063457600080fd5b836002866040518082805190602001908083835b60208310151561066d5780518252602082019150602081019050602083039250610648565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906106b3929190610ffa565b5060058590806001815401808255809150509060018203906000526020600020016000909192909190915090805190602001906106f1929190610ffa565b505060016003866040518082805190602001908083835b60208310151561072d5780518252602082019150602081019050602083039250610708565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506006546004866040518082805190602001908083835b6020831015156107b2578051825260208201915060208101905060208303925061078d565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020819055506006600081548092919060010191905055505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561085d57600080fd5b806002836040518082805190602001908083835b6020831015156108965780518252602082019150602081019050602083039250610871565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906108dc929190610ffa565b505050565b6000600654905090565b60065481565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561094f57600080fd5b6003836040518082805190602001908083835b6020831015156109875780518252602082019150602081019050602083039250610962565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615156109d357600080fd5b60006003846040518082805190602001908083835b602083101515610a0d57805182526020820191506020810190506020830392506109e8565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506003836040518082805190602001908083835b602083101515610a8f5780518252602082019150602081019050602083039250610a6a565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81549060ff02191690556004836040518082805190602001908083835b602083101515610b0a5780518252602082019150602081019050602083039250610ae5565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390205491506004836040518082805190602001908083835b602083101515610b785780518252602082019150602081019050602083039250610b53565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020600090556002836040518082805190602001908083835b602083101515610be75780518252602082019150602081019050602083039250610bc2565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390206000610c26919061107a565b8190505b600160065403811015610c9957600560018201815481101515610c4957fe5b90600052602060002001600582815481101515610c6257fe5b906000526020600020019080546001816001161561010002031660029004610c8b9291906110c2565b508080600101915050610c2a565b6005600160065403815481101515610cad57fe5b906000526020600020016000610cc3919061107a565b60066000815480929190600190039190505550505050565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d715780601f10610d4657610100808354040283529160200191610d71565b820191906000526020600020905b815481529060010190602001808311610d5457829003601f168201915b505050505081565b606060065482101515610d8b57600080fd5b600582815481101515610d9a57fe5b906000526020600020018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e385780601f10610e0d57610100808354040283529160200191610e38565b820191906000526020600020905b815481529060010190602001808311610e1b57829003601f168201915b50505050509050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606003826040518082805190602001908083835b602083101515610ea35780518252602082019150602081019050602083039250610e7e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515610eef57600080fd5b6002826040518082805190602001908083835b602083101515610f275780518252602082019150602081019050602083039250610f02565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610fee5780601f10610fc357610100808354040283529160200191610fee565b820191906000526020600020905b815481529060010190602001808311610fd157829003601f168201915b50505050509050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061103b57805160ff1916838001178555611069565b82800160010185558215611069579182015b8281111561106857825182559160200191906001019061104d565b5b5090506110769190611149565b5090565b50805460018160011615610100020316600290046000825580601f106110a057506110bf565b601f0160209004906000526020600020908101906110be9190611149565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106110fb5780548555611138565b8280016001018555821561113857600052602060002091601f016020900482015b8281111561113757825482559160010191906001019061111c565b5b5090506111459190611149565b5090565b61116b91905b8082111561116757600081600090555060010161114f565b5090565b905600a165627a7a723058208b9cc026be96cd7be515e4f361ee4647f55f6cbb22d84d8834346e2c895cacac0029", - "deployedBytecode": "0x608060405260043610610099576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063248bfc3b1461009e578063464ed51c1461014d5780639526419a146101fc578063a62ffbc414610227578063a991005414610252578063cbcdc4ab146102bb578063ed7c238d1461034b578063f851a440146103f1578063f880680b14610448575b600080fd5b3480156100aa57600080fd5b5061014b600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929050505061052a565b005b34801561015957600080fd5b506101fa600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610802565b005b34801561020857600080fd5b506102116108e1565b6040518082815260200191505060405180910390f35b34801561023357600080fd5b5061023c6108eb565b6040518082815260200191505060405180910390f35b34801561025e57600080fd5b506102b9600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506108f1565b005b3480156102c757600080fd5b506102d0610cdb565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103105780820151818401526020810190506102f5565b50505050905090810190601f16801561033d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561035757600080fd5b5061037660048036038101908080359060200190929190505050610d79565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156103b657808201518184015260208101905061039b565b50505050905090810190601f1680156103e35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156103fd57600080fd5b50610406610e44565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561045457600080fd5b506104af600480360381019080803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610e69565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156104ef5780820151818401526020810190506104d4565b50505050905090810190601f16801561051c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561058557600080fd5b8160606000829150600090506000825114156105a057600190505b6000811415156105af57600080fd5b6003856040518082805190602001908083835b6020831015156105e757805182526020820191506020810190506020830392506105c2565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615151561063457600080fd5b836002866040518082805190602001908083835b60208310151561066d5780518252602082019150602081019050602083039250610648565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906106b3929190610ffa565b5060058590806001815401808255809150509060018203906000526020600020016000909192909190915090805190602001906106f1929190610ffa565b505060016003866040518082805190602001908083835b60208310151561072d5780518252602082019150602081019050602083039250610708565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506006546004866040518082805190602001908083835b6020831015156107b2578051825260208201915060208101905060208303925061078d565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020819055506006600081548092919060010191905055505050505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561085d57600080fd5b806002836040518082805190602001908083835b6020831015156108965780518252602082019150602081019050602083039250610871565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902090805190602001906108dc929190610ffa565b505050565b6000600654905090565b60065481565b6000806000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561094f57600080fd5b6003836040518082805190602001908083835b6020831015156109875780518252602082019150602081019050602083039250610962565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff1615156109d357600080fd5b60006003846040518082805190602001908083835b602083101515610a0d57805182526020820191506020810190506020830392506109e8565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81548160ff0219169083151502179055506003836040518082805190602001908083835b602083101515610a8f5780518252602082019150602081019050602083039250610a6a565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060006101000a81549060ff02191690556004836040518082805190602001908083835b602083101515610b0a5780518252602082019150602081019050602083039250610ae5565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390205491506004836040518082805190602001908083835b602083101515610b785780518252602082019150602081019050602083039250610b53565b6001836020036101000a0380198251168184511680821785525050505050509050019150509081526020016040518091039020600090556002836040518082805190602001908083835b602083101515610be75780518252602082019150602081019050602083039250610bc2565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390206000610c26919061107a565b8190505b600160065403811015610c9957600560018201815481101515610c4957fe5b90600052602060002001600582815481101515610c6257fe5b906000526020600020019080546001816001161561010002031660029004610c8b9291906110c2565b508080600101915050610c2a565b6005600160065403815481101515610cad57fe5b906000526020600020016000610cc3919061107a565b60066000815480929190600190039190505550505050565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d715780601f10610d4657610100808354040283529160200191610d71565b820191906000526020600020905b815481529060010190602001808311610d5457829003601f168201915b505050505081565b606060065482101515610d8b57600080fd5b600582815481101515610d9a57fe5b906000526020600020018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e385780601f10610e0d57610100808354040283529160200191610e38565b820191906000526020600020905b815481529060010190602001808311610e1b57829003601f168201915b50505050509050919050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60606003826040518082805190602001908083835b602083101515610ea35780518252602082019150602081019050602083039250610e7e565b6001836020036101000a038019825116818451168082178552505050505050905001915050908152602001604051809103902060009054906101000a900460ff161515610eef57600080fd5b6002826040518082805190602001908083835b602083101515610f275780518252602082019150602081019050602083039250610f02565b6001836020036101000a03801982511681845116808217855250505050505090500191505090815260200160405180910390208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610fee5780601f10610fc357610100808354040283529160200191610fee565b820191906000526020600020905b815481529060010190602001808311610fd157829003601f168201915b50505050509050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061103b57805160ff1916838001178555611069565b82800160010185558215611069579182015b8281111561106857825182559160200191906001019061104d565b5b5090506110769190611149565b5090565b50805460018160011615610100020316600290046000825580601f106110a057506110bf565b601f0160209004906000526020600020908101906110be9190611149565b5b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106110fb5780548555611138565b8280016001018555821561113857600052602060002091601f016020900482015b8281111561113757825482559160010191906001019061111c565b5b5090506111459190611149565b5090565b61116b91905b8082111561116757600081600090555060010161114f565b5090565b905600a165627a7a723058208b9cc026be96cd7be515e4f361ee4647f55f6cbb22d84d8834346e2c895cacac0029", - "sourceMap": "63:1889:2:-;;;369:1;343:27;;680:97;8:9:-1;5:2;;;30:1;27;20:12;5:2;680:97:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;741:6;733:5;;:14;;;;;;;;;;;;;;;;;;767:5;752:12;:20;;;;;;;;;;;;:::i;:::-;;680:97;;63:1889;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;", - "deployedSourceMap": "63:1889:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;783:279;;8:9:-1;5:2;;;30:1;27;20:12;5:2;783:279:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1067:95;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1067:95:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1728:79;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1728:79:2;;;;;;;;;;;;;;;;;;;;;;;343:27;;8:9:-1;5:2;;;30:1;27;20:12;5:2;343:27:2;;;;;;;;;;;;;;;;;;;;;;;1167:405;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1167:405:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116:26;;8:9:-1;5:2;;;30:1;27;20:12;5:2;116:26:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;116:26:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1812:137;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1812:137:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1812:137:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89:20;;8:9:-1;5:2;;;30:1;27;20:12;5:2;89:20:2;;;;;;;;;;;;;;;;;;;;;;;;;;;1590:133;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1590:133:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1590:133:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;783:279;433:5;;;;;;;;;;;419:19;;:10;:19;;;410:29;;;;;;;;863:5;513:21;571:9;543:4;513:35;;581:1;571:11;;610:1;591:8;:15;:20;587:47;;;627:1;622:6;;587:47;655:1;647:4;:9;639:18;;;;;;;;884:21;906:5;884:28;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;884:28:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;883:29;875:38;;;;;;;;932:5;918:4;923:5;918:11;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;918:11:2;;;;;;;;;;;;;;;;;;;;;:19;;;;;;;;;;;;:::i;:::-;;942:9;957:5;942:21;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;942:21:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;999:4;968:21;990:5;968:28;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;968:28:2;;;;;;;;;;;;;;;;;;;;;;:35;;;;;;;;;;;;;;;;;;1028:11;;1008:10;1019:5;1008:17;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1008:17:2;;;;;;;;;;;;;;;;;;;;;:31;;;;1044:11;;:13;;;;;;;;;;;;;448:1;;;783:279;;:::o;1067:95::-;433:5;;;;;;;;;;;419:19;;:10;:19;;;410:29;;;;;;;;1152:5;1138:4;1143:5;1138:11;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1138:11:2;;;;;;;;;;;;;;;;;;;;;:19;;;;;;;;;;;;:::i;:::-;;1067:95;;:::o;1728:79::-;1773:4;1791:11;;1784:18;;1728:79;:::o;343:27::-;;;;:::o;1167:405::-;1347:10;1438:6;433:5;;;;;;;;;;;419:19;;:10;:19;;;410:29;;;;;;;;1232:21;1254:5;1232:28;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1232:28:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1224:37;;;;;;;;1297:5;1266:21;1288:5;1266:28;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1266:28:2;;;;;;;;;;;;;;;;;;;;;;:36;;;;;;;;;;;;;;;;;;1314:21;1336:5;1314:28;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1314:28:2;;;;;;;;;;;;;;;;;;;;;;1307:35;;;;;;;;;;;1360:10;1371:5;1360:17;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1360:17:2;;;;;;;;;;;;;;;;;;;;;;1347:30;;1389:10;1400:5;1389:17;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1389:17:2;;;;;;;;;;;;;;;;;;;;;1382:24;;;1418:4;1423:5;1418:11;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1418:11:2;;;;;;;;;;;;;;;;;;;;;;1411:18;;;;:::i;:::-;1445:5;1438:12;;1434:80;1466:1;1454:11;;:13;1452:1;:15;1434:80;;;1494:9;1506:1;1504;:3;1494:14;;;;;;;;;;;;;;;;;1479:9;1489:1;1479:12;;;;;;;;;;;;;;;;;:29;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1468:3;;;;;;;1434:80;;;1525:9;1547:1;1535:11;;:13;1525:24;;;;;;;;;;;;;;;;;;1518:31;;;;:::i;:::-;1554:11;;:13;;;;;;;;;;;;;;1167:405;;;:::o;116:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1812:137::-;1867:6;1903:11;;1894:6;:20;1886:29;;;;;;;;1927:9;1937:6;1927:17;;;;;;;;;;;;;;;;;1920:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1812:137;;;:::o;89:20::-;;;;;;;;;;;;;:::o;1590:133::-;1645:6;1666:21;1688:5;1666:28;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1666:28:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1658:37;;;;;;;;1707:4;1712:5;1707:11;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;51:19;36:153;;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1707:11:2;;;;;;;;;;;;;;;;;;;;;1700:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1590:133;;;:::o;63:1889::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o", - "source": "pragma solidity ^0.4.19;\r\n\r\n/**\r\n * The Website contract\r\n */\r\ncontract Website {\r\n\r\n address public admin;\r\n string public website_name;\r\n\r\n // (Filename => IPFS Hash)\r\n mapping (string => string) file;\r\n\r\n mapping (string => bool) is_file_name_acquired;\r\n mapping (string => uint) file_index;\r\n string[] file_name;\r\n uint public file_length = 0;\r\n\r\n modifier restricted() { \r\n \trequire (msg.sender == admin); \r\n \t_; \r\n }\r\n\r\n modifier emptyStringCheck(string name) {\r\n \tbytes memory tempName = bytes(name); // Uses memory\r\n \tuint flag=0;\r\n\t\tif (tempName.length == 0) {\r\n\t\t flag=1;\r\n\t\t} \r\n\t\trequire(flag == 0);\r\n\t\t_;\r\n }\r\n \r\n\tfunction Website (address _admin, string _name) {\r\n\t\tadmin = _admin;\r\n\t\twebsite_name = _name;\r\n\t}\t\r\n\r\n\tfunction addFile(string _name, string _hash) public restricted emptyStringCheck(_name) {\r\n\t\trequire(!is_file_name_acquired[_name]);\r\n\t\tfile[_name] = _hash;\r\n\t\tfile_name.push(_name);\r\n\t\tis_file_name_acquired[_name] = true;\r\n\t\tfile_index[_name] = file_length;\r\n\t\tfile_length++;\r\n\t}\r\n\r\n\tfunction updateFile(string _name, string _hash) public restricted {\r\n\t\tfile[_name] = _hash;\r\n\t}\r\n\r\n\tfunction deleteFile(string _name) public restricted {\r\n\t\trequire(is_file_name_acquired[_name]);\r\n\t\tis_file_name_acquired[_name] = false;\r\n\t\tdelete is_file_name_acquired[_name];\r\n\t\tuint index = file_index[_name];\r\n\t\tdelete file_index[_name];\r\n\t\tdelete file[_name];\r\n\t\tfor(uint i=index; i string)" - }, - "typeName": { - "id": 337, - "keyType": { - "id": 335, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "192:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "183:26:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "valueType": { - "id": 336, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "202:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 342, - "name": "is_file_name_acquired", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "223:46:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "typeName": { - "id": 341, - "keyType": { - "id": 339, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "232:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "223:24:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "valueType": { - "id": 340, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "242:4:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 346, - "name": "file_index", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "276:35:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string => uint256)" - }, - "typeName": { - "id": 345, - "keyType": { - "id": 343, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "285:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "276:24:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string => uint256)" - }, - "valueType": { - "id": 344, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "295:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 349, - "name": "file_name", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "318:18:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string[]" - }, - "typeName": { - "baseType": { - "id": 347, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "318:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "id": 348, - "length": null, - "nodeType": "ArrayTypeName", - "src": "318:8:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", - "typeString": "string[]" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 352, - "name": "file_length", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "343:27:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 350, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "343:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "30", - "id": 351, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "369:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "visibility": "public" - }, - { - "body": { - "id": 362, - "nodeType": "Block", - "src": "401:57:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 358, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 355, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "419:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 356, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "419:10:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 357, - "name": "admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 332, - "src": "433:5:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "419:19:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 354, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "410:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 359, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "410:29:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 360, - "nodeType": "ExpressionStatement", - "src": "410:29:2" - }, - { - "id": 361, - "nodeType": "PlaceholderStatement", - "src": "448:1:2" - } - ] - }, - "documentation": null, - "id": 363, - "name": "restricted", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 353, - "nodeType": "ParameterList", - "parameters": [], - "src": "398:2:2" - }, - "src": "379:79:2", - "visibility": "internal" - }, - { - "body": { - "id": 394, - "nodeType": "Block", - "src": "505:166:2", - "statements": [ - { - "assignments": [ - 368 - ], - "declarations": [ - { - "constant": false, - "id": 368, - "name": "tempName", - "nodeType": "VariableDeclaration", - "scope": 395, - "src": "513:21:2", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory_ptr", - "typeString": "bytes" - }, - "typeName": { - "id": 367, - "name": "bytes", - "nodeType": "ElementaryTypeName", - "src": "513:5:2", - "typeDescriptions": { - "typeIdentifier": "t_bytes_storage_ptr", - "typeString": "bytes" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 372, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 370, - "name": "name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 365, - "src": "543:4:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "id": 369, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "537:5:2", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_bytes_storage_ptr_$", - "typeString": "type(bytes storage pointer)" - }, - "typeName": "bytes" - }, - "id": 371, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "537:11:2", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory", - "typeString": "bytes memory" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "513:35:2" - }, - { - "assignments": [ - 374 - ], - "declarations": [ - { - "constant": false, - "id": 374, - "name": "flag", - "nodeType": "VariableDeclaration", - "scope": 395, - "src": "571:9:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 373, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "571:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 376, - "initialValue": { - "argumentTypes": null, - "hexValue": "30", - "id": 375, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "581:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "nodeType": "VariableDeclarationStatement", - "src": "571:11:2" - }, - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 380, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 377, - "name": "tempName", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 368, - "src": "591:8:2", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory_ptr", - "typeString": "bytes memory" - } - }, - "id": 378, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "591:15:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 379, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "610:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "591:20:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": null, - "id": 386, - "nodeType": "IfStatement", - "src": "587:47:2", - "trueBody": { - "id": 385, - "nodeType": "Block", - "src": "613:21:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 383, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 381, - "name": "flag", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 374, - "src": "622:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "31", - "id": 382, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "627:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "622:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 384, - "nodeType": "ExpressionStatement", - "src": "622:6:2" - } - ] - } - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 390, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 388, - "name": "flag", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 374, - "src": "647:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 389, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "655:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "647:9:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 387, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "639:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 391, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "639:18:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 392, - "nodeType": "ExpressionStatement", - "src": "639:18:2" - }, - { - "id": 393, - "nodeType": "PlaceholderStatement", - "src": "662:1:2" - } - ] - }, - "documentation": null, - "id": 395, - "name": "emptyStringCheck", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 366, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 365, - "name": "name", - "nodeType": "VariableDeclaration", - "scope": 395, - "src": "492:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 364, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "492:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "491:13:2" - }, - "src": "466:205:2", - "visibility": "internal" - }, - { - "body": { - "id": 410, - "nodeType": "Block", - "src": "728:49:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 404, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 402, - "name": "admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 332, - "src": "733:5:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 403, - "name": "_admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 397, - "src": "741:6:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "733:14:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 405, - "nodeType": "ExpressionStatement", - "src": "733:14:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 408, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 406, - "name": "website_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 334, - "src": "752:12:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 407, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 399, - "src": "767:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "752:20:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 409, - "nodeType": "ExpressionStatement", - "src": "752:20:2" - } - ] - }, - "documentation": null, - "id": 411, - "implemented": true, - "isConstructor": true, - "isDeclaredConst": false, - "modifiers": [], - "name": "Website", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 400, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 397, - "name": "_admin", - "nodeType": "VariableDeclaration", - "scope": 411, - "src": "698:14:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 396, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "698:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 399, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 411, - "src": "714:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 398, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "714:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "697:30:2" - }, - "payable": false, - "returnParameters": { - "id": 401, - "nodeType": "ParameterList", - "parameters": [], - "src": "728:0:2" - }, - "scope": 594, - "src": "680:97:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 457, - "nodeType": "Block", - "src": "870:192:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 427, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "883:29:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 424, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "884:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 426, - "indexExpression": { - "argumentTypes": null, - "id": 425, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "906:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "884:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 423, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "875:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 428, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "875:38:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 429, - "nodeType": "ExpressionStatement", - "src": "875:38:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 434, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 430, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "918:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 432, - "indexExpression": { - "argumentTypes": null, - "id": 431, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "923:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "918:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 433, - "name": "_hash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 415, - "src": "932:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "918:19:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 435, - "nodeType": "ExpressionStatement", - "src": "918:19:2" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 439, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "957:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "expression": { - "argumentTypes": null, - "id": 436, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "942:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 438, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "942:14:2", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_string_storage_$returns$_t_uint256_$", - "typeString": "function (string storage ref) returns (uint256)" - } - }, - "id": 440, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "942:21:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 441, - "nodeType": "ExpressionStatement", - "src": "942:21:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 446, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 442, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "968:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 444, - "indexExpression": { - "argumentTypes": null, - "id": 443, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "990:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "968:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 445, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "999:4:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "src": "968:35:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 447, - "nodeType": "ExpressionStatement", - "src": "968:35:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 452, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 448, - "name": "file_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 346, - "src": "1008:10:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string memory => uint256)" - } - }, - "id": 450, - "indexExpression": { - "argumentTypes": null, - "id": 449, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "1019:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1008:17:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 451, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1028:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1008:31:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 453, - "nodeType": "ExpressionStatement", - "src": "1008:31:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 455, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1044:13:2", - "subExpression": { - "argumentTypes": null, - "id": 454, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1044:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 456, - "nodeType": "ExpressionStatement", - "src": "1044:13:2" - } - ] - }, - "documentation": null, - "id": 458, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 418, - "modifierName": { - "argumentTypes": null, - "id": 417, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 363, - "src": "835:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "835:10:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "id": 420, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "863:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 421, - "modifierName": { - "argumentTypes": null, - "id": 419, - "name": "emptyStringCheck", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 395, - "src": "846:16:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "846:23:2" - } - ], - "name": "addFile", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 416, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 413, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 458, - "src": "800:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 412, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "800:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 415, - "name": "_hash", - "nodeType": "VariableDeclaration", - "scope": 458, - "src": "814:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 414, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "814:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "799:28:2" - }, - "payable": false, - "returnParameters": { - "id": 422, - "nodeType": "ParameterList", - "parameters": [], - "src": "870:0:2" - }, - "scope": 594, - "src": "783:279:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 473, - "nodeType": "Block", - "src": "1133:29:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 471, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 467, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "1138:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 469, - "indexExpression": { - "argumentTypes": null, - "id": 468, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 460, - "src": "1143:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1138:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 470, - "name": "_hash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 462, - "src": "1152:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "1138:19:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 472, - "nodeType": "ExpressionStatement", - "src": "1138:19:2" - } - ] - }, - "documentation": null, - "id": 474, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 465, - "modifierName": { - "argumentTypes": null, - "id": 464, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 363, - "src": "1122:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "1122:10:2" - } - ], - "name": "updateFile", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 463, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 460, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 474, - "src": "1087:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 459, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1087:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 462, - "name": "_hash", - "nodeType": "VariableDeclaration", - "scope": 474, - "src": "1101:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 461, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1101:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1086:28:2" - }, - "payable": false, - "returnParameters": { - "id": 466, - "nodeType": "ParameterList", - "parameters": [], - "src": "1133:0:2" - }, - "scope": 594, - "src": "1067:95:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 548, - "nodeType": "Block", - "src": "1219:353:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 482, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1232:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 484, - "indexExpression": { - "argumentTypes": null, - "id": 483, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1254:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1232:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 481, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1224:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 485, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1224:37:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 486, - "nodeType": "ExpressionStatement", - "src": "1224:37:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 491, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 487, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1266:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 489, - "indexExpression": { - "argumentTypes": null, - "id": 488, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1288:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1266:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "66616c7365", - "id": 490, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1297:5:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "false" - }, - "src": "1266:36:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 492, - "nodeType": "ExpressionStatement", - "src": "1266:36:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 496, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1307:35:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 493, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1314:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 495, - "indexExpression": { - "argumentTypes": null, - "id": 494, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1336:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1314:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 497, - "nodeType": "ExpressionStatement", - "src": "1307:35:2" - }, - { - "assignments": [ - 499 - ], - "declarations": [ - { - "constant": false, - "id": 499, - "name": "index", - "nodeType": "VariableDeclaration", - "scope": 549, - "src": "1347:10:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 498, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1347:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 503, - "initialValue": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 500, - "name": "file_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 346, - "src": "1360:10:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string memory => uint256)" - } - }, - "id": 502, - "indexExpression": { - "argumentTypes": null, - "id": 501, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1371:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1360:17:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1347:30:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 507, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1382:24:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 504, - "name": "file_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 346, - "src": "1389:10:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string memory => uint256)" - } - }, - "id": 506, - "indexExpression": { - "argumentTypes": null, - "id": 505, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1400:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1389:17:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 508, - "nodeType": "ExpressionStatement", - "src": "1382:24:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 512, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1411:18:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 509, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "1418:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 511, - "indexExpression": { - "argumentTypes": null, - "id": 510, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1423:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1418:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 513, - "nodeType": "ExpressionStatement", - "src": "1411:18:2" - }, - { - "body": { - "id": 536, - "nodeType": "Block", - "src": "1473:41:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 534, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 526, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1479:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 528, - "indexExpression": { - "argumentTypes": null, - "id": 527, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1489:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1479:12:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 529, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1494:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 533, - "indexExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 532, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 530, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1504:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "hexValue": "31", - "id": 531, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1506:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "1504:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1494:14:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "src": "1479:29:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 535, - "nodeType": "ExpressionStatement", - "src": "1479:29:2" - } - ] - }, - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 522, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 518, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1452:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<", - "rightExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 521, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 519, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1454:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "argumentTypes": null, - "hexValue": "31", - "id": 520, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1466:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "1454:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1452:15:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 537, - "initializationExpression": { - "assignments": [ - 515 - ], - "declarations": [ - { - "constant": false, - "id": 515, - "name": "i", - "nodeType": "VariableDeclaration", - "scope": 549, - "src": "1438:6:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 514, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1438:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 517, - "initialValue": { - "argumentTypes": null, - "id": 516, - "name": "index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 499, - "src": "1445:5:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1438:12:2" - }, - "loopExpression": { - "expression": { - "argumentTypes": null, - "id": 524, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1468:3:2", - "subExpression": { - "argumentTypes": null, - "id": 523, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1468:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 525, - "nodeType": "ExpressionStatement", - "src": "1468:3:2" - }, - "nodeType": "ForStatement", - "src": "1434:80:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 543, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1518:31:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 538, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1525:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 542, - "indexExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 541, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 539, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1535:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "argumentTypes": null, - "hexValue": "31", - "id": 540, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1547:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "1535:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1525:24:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 544, - "nodeType": "ExpressionStatement", - "src": "1518:31:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 546, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "--", - "prefix": false, - "src": "1554:13:2", - "subExpression": { - "argumentTypes": null, - "id": 545, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1554:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 547, - "nodeType": "ExpressionStatement", - "src": "1554:13:2" - } - ] - }, - "documentation": null, - "id": 549, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 479, - "modifierName": { - "argumentTypes": null, - "id": 478, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 363, - "src": "1208:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "1208:10:2" - } - ], - "name": "deleteFile", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 477, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 476, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 549, - "src": "1187:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 475, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1187:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1186:14:2" - }, - "payable": false, - "returnParameters": { - "id": 480, - "nodeType": "ParameterList", - "parameters": [], - "src": "1219:0:2" - }, - "scope": 594, - "src": "1167:405:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 566, - "nodeType": "Block", - "src": "1653:70:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 557, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1666:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 559, - "indexExpression": { - "argumentTypes": null, - "id": 558, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 551, - "src": "1688:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1666:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 556, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1658:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 560, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1658:37:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 561, - "nodeType": "ExpressionStatement", - "src": "1658:37:2" - }, - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 562, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "1707:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 564, - "indexExpression": { - "argumentTypes": null, - "id": 563, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 551, - "src": "1712:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1707:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 555, - "id": 565, - "nodeType": "Return", - "src": "1700:18:2" - } - ] - }, - "documentation": null, - "id": 567, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getFileHash", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 552, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 551, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 567, - "src": "1611:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 550, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1611:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1610:14:2" - }, - "payable": false, - "returnParameters": { - "id": 555, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 554, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 567, - "src": "1645:6:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 553, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1645:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1644:8:2" - }, - "scope": 594, - "src": "1590:133:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 574, - "nodeType": "Block", - "src": "1779:28:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 572, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1791:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 571, - "id": 573, - "nodeType": "Return", - "src": "1784:18:2" - } - ] - }, - "documentation": null, - "id": 575, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getFileLength", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 568, - "nodeType": "ParameterList", - "parameters": [], - "src": "1750:2:2" - }, - "payable": false, - "returnParameters": { - "id": 571, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 570, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 575, - "src": "1773:4:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 569, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1773:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1772:6:2" - }, - "scope": 594, - "src": "1728:79:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 592, - "nodeType": "Block", - "src": "1875:74:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 585, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 583, - "name": "_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 577, - "src": "1894:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<", - "rightExpression": { - "argumentTypes": null, - "id": 584, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1903:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1894:20:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 582, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1886:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 586, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1886:29:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 587, - "nodeType": "ExpressionStatement", - "src": "1886:29:2" - }, - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 588, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1927:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 590, - "indexExpression": { - "argumentTypes": null, - "id": 589, - "name": "_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 577, - "src": "1937:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1927:17:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 581, - "id": 591, - "nodeType": "Return", - "src": "1920:24:2" - } - ] - }, - "documentation": null, - "id": 593, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getFileName", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 578, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 577, - "name": "_index", - "nodeType": "VariableDeclaration", - "scope": 593, - "src": "1833:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 576, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1833:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1832:13:2" - }, - "payable": false, - "returnParameters": { - "id": 581, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 580, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 593, - "src": "1867:6:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 579, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1867:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1866:8:2" - }, - "scope": 594, - "src": "1812:137:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 595, - "src": "63:1889:2" - } - ], - "src": "0:1958:2" - }, - "legacyAST": { - "absolutePath": "/mnt/e/code/bchosting_bitbucket/contracts/Website.sol", - "exportedSymbols": { - "Website": [ - 594 - ] - }, - "id": 595, - "nodeType": "SourceUnit", - "nodes": [ - { - "id": 330, - "literals": [ - "solidity", - "^", - "0.4", - ".19" - ], - "nodeType": "PragmaDirective", - "src": "0:24:2" - }, - { - "baseContracts": [], - "contractDependencies": [], - "contractKind": "contract", - "documentation": "The Website contract\r", - "fullyImplemented": true, - "id": 594, - "linearizedBaseContracts": [ - 594 - ], - "name": "Website", - "nodeType": "ContractDefinition", - "nodes": [ - { - "constant": false, - "id": 332, - "name": "admin", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "89:20:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 331, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "89:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 334, - "name": "website_name", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "116:26:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string" - }, - "typeName": { - "id": 333, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "116:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "public" - }, - { - "constant": false, - "id": 338, - "name": "file", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "183:31:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "typeName": { - "id": 337, - "keyType": { - "id": 335, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "192:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "183:26:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string => string)" - }, - "valueType": { - "id": 336, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "202:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 342, - "name": "is_file_name_acquired", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "223:46:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "typeName": { - "id": 341, - "keyType": { - "id": 339, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "232:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "223:24:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string => bool)" - }, - "valueType": { - "id": 340, - "name": "bool", - "nodeType": "ElementaryTypeName", - "src": "242:4:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 346, - "name": "file_index", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "276:35:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string => uint256)" - }, - "typeName": { - "id": 345, - "keyType": { - "id": 343, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "285:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "nodeType": "Mapping", - "src": "276:24:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string => uint256)" - }, - "valueType": { - "id": 344, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "295:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 349, - "name": "file_name", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "318:18:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string[]" - }, - "typeName": { - "baseType": { - "id": 347, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "318:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "id": 348, - "length": null, - "nodeType": "ArrayTypeName", - "src": "318:8:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage_ptr", - "typeString": "string[]" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 352, - "name": "file_length", - "nodeType": "VariableDeclaration", - "scope": 594, - "src": "343:27:2", - "stateVariable": true, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 350, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "343:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": { - "argumentTypes": null, - "hexValue": "30", - "id": 351, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "369:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "visibility": "public" - }, - { - "body": { - "id": 362, - "nodeType": "Block", - "src": "401:57:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "id": 358, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 355, - "name": "msg", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 609, - "src": "419:3:2", - "typeDescriptions": { - "typeIdentifier": "t_magic_message", - "typeString": "msg" - } - }, - "id": 356, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "sender", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "419:10:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "id": 357, - "name": "admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 332, - "src": "433:5:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "419:19:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 354, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "410:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 359, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "410:29:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 360, - "nodeType": "ExpressionStatement", - "src": "410:29:2" - }, - { - "id": 361, - "nodeType": "PlaceholderStatement", - "src": "448:1:2" - } - ] - }, - "documentation": null, - "id": 363, - "name": "restricted", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 353, - "nodeType": "ParameterList", - "parameters": [], - "src": "398:2:2" - }, - "src": "379:79:2", - "visibility": "internal" - }, - { - "body": { - "id": 394, - "nodeType": "Block", - "src": "505:166:2", - "statements": [ - { - "assignments": [ - 368 - ], - "declarations": [ - { - "constant": false, - "id": 368, - "name": "tempName", - "nodeType": "VariableDeclaration", - "scope": 395, - "src": "513:21:2", - "stateVariable": false, - "storageLocation": "memory", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory_ptr", - "typeString": "bytes" - }, - "typeName": { - "id": 367, - "name": "bytes", - "nodeType": "ElementaryTypeName", - "src": "513:5:2", - "typeDescriptions": { - "typeIdentifier": "t_bytes_storage_ptr", - "typeString": "bytes" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 372, - "initialValue": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 370, - "name": "name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 365, - "src": "543:4:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "id": 369, - "isConstant": false, - "isLValue": false, - "isPure": true, - "lValueRequested": false, - "nodeType": "ElementaryTypeNameExpression", - "src": "537:5:2", - "typeDescriptions": { - "typeIdentifier": "t_type$_t_bytes_storage_ptr_$", - "typeString": "type(bytes storage pointer)" - }, - "typeName": "bytes" - }, - "id": 371, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "typeConversion", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "537:11:2", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory", - "typeString": "bytes memory" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "513:35:2" - }, - { - "assignments": [ - 374 - ], - "declarations": [ - { - "constant": false, - "id": 374, - "name": "flag", - "nodeType": "VariableDeclaration", - "scope": 395, - "src": "571:9:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 373, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "571:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 376, - "initialValue": { - "argumentTypes": null, - "hexValue": "30", - "id": 375, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "581:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "nodeType": "VariableDeclarationStatement", - "src": "571:11:2" - }, - { - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 380, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "expression": { - "argumentTypes": null, - "id": 377, - "name": "tempName", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 368, - "src": "591:8:2", - "typeDescriptions": { - "typeIdentifier": "t_bytes_memory_ptr", - "typeString": "bytes memory" - } - }, - "id": 378, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "length", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "591:15:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 379, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "610:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "591:20:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "falseBody": null, - "id": 386, - "nodeType": "IfStatement", - "src": "587:47:2", - "trueBody": { - "id": 385, - "nodeType": "Block", - "src": "613:21:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 383, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 381, - "name": "flag", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 374, - "src": "622:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "31", - "id": 382, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "627:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "622:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 384, - "nodeType": "ExpressionStatement", - "src": "622:6:2" - } - ] - } - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 390, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 388, - "name": "flag", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 374, - "src": "647:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "==", - "rightExpression": { - "argumentTypes": null, - "hexValue": "30", - "id": 389, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "655:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_0_by_1", - "typeString": "int_const 0" - }, - "value": "0" - }, - "src": "647:9:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 387, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "639:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 391, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "639:18:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 392, - "nodeType": "ExpressionStatement", - "src": "639:18:2" - }, - { - "id": 393, - "nodeType": "PlaceholderStatement", - "src": "662:1:2" - } - ] - }, - "documentation": null, - "id": 395, - "name": "emptyStringCheck", - "nodeType": "ModifierDefinition", - "parameters": { - "id": 366, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 365, - "name": "name", - "nodeType": "VariableDeclaration", - "scope": 395, - "src": "492:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 364, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "492:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "491:13:2" - }, - "src": "466:205:2", - "visibility": "internal" - }, - { - "body": { - "id": 410, - "nodeType": "Block", - "src": "728:49:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 404, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 402, - "name": "admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 332, - "src": "733:5:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 403, - "name": "_admin", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 397, - "src": "741:6:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "src": "733:14:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "id": 405, - "nodeType": "ExpressionStatement", - "src": "733:14:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 408, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "id": 406, - "name": "website_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 334, - "src": "752:12:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 407, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 399, - "src": "767:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "752:20:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 409, - "nodeType": "ExpressionStatement", - "src": "752:20:2" - } - ] - }, - "documentation": null, - "id": 411, - "implemented": true, - "isConstructor": true, - "isDeclaredConst": false, - "modifiers": [], - "name": "Website", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 400, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 397, - "name": "_admin", - "nodeType": "VariableDeclaration", - "scope": 411, - "src": "698:14:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - }, - "typeName": { - "id": 396, - "name": "address", - "nodeType": "ElementaryTypeName", - "src": "698:7:2", - "typeDescriptions": { - "typeIdentifier": "t_address", - "typeString": "address" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 399, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 411, - "src": "714:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 398, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "714:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "697:30:2" - }, - "payable": false, - "returnParameters": { - "id": 401, - "nodeType": "ParameterList", - "parameters": [], - "src": "728:0:2" - }, - "scope": 594, - "src": "680:97:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 457, - "nodeType": "Block", - "src": "870:192:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 427, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "!", - "prefix": true, - "src": "883:29:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 424, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "884:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 426, - "indexExpression": { - "argumentTypes": null, - "id": 425, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "906:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "884:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 423, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "875:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 428, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "875:38:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 429, - "nodeType": "ExpressionStatement", - "src": "875:38:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 434, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 430, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "918:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 432, - "indexExpression": { - "argumentTypes": null, - "id": 431, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "923:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "918:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 433, - "name": "_hash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 415, - "src": "932:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "918:19:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 435, - "nodeType": "ExpressionStatement", - "src": "918:19:2" - }, - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "id": 439, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "957:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - ], - "expression": { - "argumentTypes": null, - "id": 436, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "942:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 438, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "memberName": "push", - "nodeType": "MemberAccess", - "referencedDeclaration": null, - "src": "942:14:2", - "typeDescriptions": { - "typeIdentifier": "t_function_arraypush_nonpayable$_t_string_storage_$returns$_t_uint256_$", - "typeString": "function (string storage ref) returns (uint256)" - } - }, - "id": 440, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "942:21:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 441, - "nodeType": "ExpressionStatement", - "src": "942:21:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 446, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 442, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "968:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 444, - "indexExpression": { - "argumentTypes": null, - "id": 443, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "990:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "968:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "74727565", - "id": 445, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "999:4:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "true" - }, - "src": "968:35:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 447, - "nodeType": "ExpressionStatement", - "src": "968:35:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 452, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 448, - "name": "file_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 346, - "src": "1008:10:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string memory => uint256)" - } - }, - "id": 450, - "indexExpression": { - "argumentTypes": null, - "id": 449, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "1019:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1008:17:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 451, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1028:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1008:31:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 453, - "nodeType": "ExpressionStatement", - "src": "1008:31:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 455, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1044:13:2", - "subExpression": { - "argumentTypes": null, - "id": 454, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1044:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 456, - "nodeType": "ExpressionStatement", - "src": "1044:13:2" - } - ] - }, - "documentation": null, - "id": 458, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 418, - "modifierName": { - "argumentTypes": null, - "id": 417, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 363, - "src": "835:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "835:10:2" - }, - { - "arguments": [ - { - "argumentTypes": null, - "id": 420, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 413, - "src": "863:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - } - ], - "id": 421, - "modifierName": { - "argumentTypes": null, - "id": 419, - "name": "emptyStringCheck", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 395, - "src": "846:16:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$_t_string_memory_ptr_$", - "typeString": "modifier (string memory)" - } - }, - "nodeType": "ModifierInvocation", - "src": "846:23:2" - } - ], - "name": "addFile", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 416, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 413, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 458, - "src": "800:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 412, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "800:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 415, - "name": "_hash", - "nodeType": "VariableDeclaration", - "scope": 458, - "src": "814:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 414, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "814:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "799:28:2" - }, - "payable": false, - "returnParameters": { - "id": 422, - "nodeType": "ParameterList", - "parameters": [], - "src": "870:0:2" - }, - "scope": 594, - "src": "783:279:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 473, - "nodeType": "Block", - "src": "1133:29:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 471, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 467, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "1138:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 469, - "indexExpression": { - "argumentTypes": null, - "id": 468, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 460, - "src": "1143:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1138:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "id": 470, - "name": "_hash", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 462, - "src": "1152:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "src": "1138:19:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 472, - "nodeType": "ExpressionStatement", - "src": "1138:19:2" - } - ] - }, - "documentation": null, - "id": 474, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 465, - "modifierName": { - "argumentTypes": null, - "id": 464, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 363, - "src": "1122:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "1122:10:2" - } - ], - "name": "updateFile", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 463, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 460, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 474, - "src": "1087:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 459, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1087:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - }, - { - "constant": false, - "id": 462, - "name": "_hash", - "nodeType": "VariableDeclaration", - "scope": 474, - "src": "1101:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 461, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1101:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1086:28:2" - }, - "payable": false, - "returnParameters": { - "id": 466, - "nodeType": "ParameterList", - "parameters": [], - "src": "1133:0:2" - }, - "scope": 594, - "src": "1067:95:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 548, - "nodeType": "Block", - "src": "1219:353:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 482, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1232:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 484, - "indexExpression": { - "argumentTypes": null, - "id": 483, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1254:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1232:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 481, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1224:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 485, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1224:37:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 486, - "nodeType": "ExpressionStatement", - "src": "1224:37:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 491, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 487, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1266:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 489, - "indexExpression": { - "argumentTypes": null, - "id": 488, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1288:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1266:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "hexValue": "66616c7365", - "id": 490, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "bool", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1297:5:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - }, - "value": "false" - }, - "src": "1266:36:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 492, - "nodeType": "ExpressionStatement", - "src": "1266:36:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 496, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1307:35:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 493, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1314:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 495, - "indexExpression": { - "argumentTypes": null, - "id": 494, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1336:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1314:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 497, - "nodeType": "ExpressionStatement", - "src": "1307:35:2" - }, - { - "assignments": [ - 499 - ], - "declarations": [ - { - "constant": false, - "id": 499, - "name": "index", - "nodeType": "VariableDeclaration", - "scope": 549, - "src": "1347:10:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 498, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1347:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 503, - "initialValue": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 500, - "name": "file_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 346, - "src": "1360:10:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string memory => uint256)" - } - }, - "id": 502, - "indexExpression": { - "argumentTypes": null, - "id": 501, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1371:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1360:17:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1347:30:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 507, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1382:24:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 504, - "name": "file_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 346, - "src": "1389:10:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_uint256_$", - "typeString": "mapping(string memory => uint256)" - } - }, - "id": 506, - "indexExpression": { - "argumentTypes": null, - "id": 505, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1400:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1389:17:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 508, - "nodeType": "ExpressionStatement", - "src": "1382:24:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 512, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1411:18:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 509, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "1418:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 511, - "indexExpression": { - "argumentTypes": null, - "id": 510, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 476, - "src": "1423:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1418:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 513, - "nodeType": "ExpressionStatement", - "src": "1411:18:2" - }, - { - "body": { - "id": 536, - "nodeType": "Block", - "src": "1473:41:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 534, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 526, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1479:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 528, - "indexExpression": { - "argumentTypes": null, - "id": 527, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1489:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1479:12:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "nodeType": "Assignment", - "operator": "=", - "rightHandSide": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 529, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1494:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 533, - "indexExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 532, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 530, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1504:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "+", - "rightExpression": { - "argumentTypes": null, - "hexValue": "31", - "id": 531, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1506:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "1504:3:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1494:14:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "src": "1479:29:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "id": 535, - "nodeType": "ExpressionStatement", - "src": "1479:29:2" - } - ] - }, - "condition": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 522, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 518, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1452:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<", - "rightExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 521, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 519, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1454:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "argumentTypes": null, - "hexValue": "31", - "id": 520, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1466:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "1454:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1452:15:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - }, - "id": 537, - "initializationExpression": { - "assignments": [ - 515 - ], - "declarations": [ - { - "constant": false, - "id": 515, - "name": "i", - "nodeType": "VariableDeclaration", - "scope": 549, - "src": "1438:6:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 514, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1438:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "id": 517, - "initialValue": { - "argumentTypes": null, - "id": 516, - "name": "index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 499, - "src": "1445:5:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "VariableDeclarationStatement", - "src": "1438:12:2" - }, - "loopExpression": { - "expression": { - "argumentTypes": null, - "id": 524, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "++", - "prefix": false, - "src": "1468:3:2", - "subExpression": { - "argumentTypes": null, - "id": 523, - "name": "i", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 515, - "src": "1468:1:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 525, - "nodeType": "ExpressionStatement", - "src": "1468:3:2" - }, - "nodeType": "ForStatement", - "src": "1434:80:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 543, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "delete", - "prefix": true, - "src": "1518:31:2", - "subExpression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 538, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1525:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 542, - "indexExpression": { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 541, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 539, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1535:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "-", - "rightExpression": { - "argumentTypes": null, - "hexValue": "31", - "id": 540, - "isConstant": false, - "isLValue": false, - "isPure": true, - "kind": "number", - "lValueRequested": false, - "nodeType": "Literal", - "src": "1547:1:2", - "subdenomination": null, - "typeDescriptions": { - "typeIdentifier": "t_rational_1_by_1", - "typeString": "int_const 1" - }, - "value": "1" - }, - "src": "1535:13:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": true, - "nodeType": "IndexAccess", - "src": "1525:24:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 544, - "nodeType": "ExpressionStatement", - "src": "1518:31:2" - }, - { - "expression": { - "argumentTypes": null, - "id": 546, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "nodeType": "UnaryOperation", - "operator": "--", - "prefix": false, - "src": "1554:13:2", - "subExpression": { - "argumentTypes": null, - "id": 545, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1554:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "id": 547, - "nodeType": "ExpressionStatement", - "src": "1554:13:2" - } - ] - }, - "documentation": null, - "id": 549, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": false, - "modifiers": [ - { - "arguments": null, - "id": 479, - "modifierName": { - "argumentTypes": null, - "id": 478, - "name": "restricted", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 363, - "src": "1208:10:2", - "typeDescriptions": { - "typeIdentifier": "t_modifier$__$", - "typeString": "modifier ()" - } - }, - "nodeType": "ModifierInvocation", - "src": "1208:10:2" - } - ], - "name": "deleteFile", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 477, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 476, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 549, - "src": "1187:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 475, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1187:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1186:14:2" - }, - "payable": false, - "returnParameters": { - "id": 480, - "nodeType": "ParameterList", - "parameters": [], - "src": "1219:0:2" - }, - "scope": 594, - "src": "1167:405:2", - "stateMutability": "nonpayable", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 566, - "nodeType": "Block", - "src": "1653:70:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 557, - "name": "is_file_name_acquired", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 342, - "src": "1666:21:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_bool_$", - "typeString": "mapping(string memory => bool)" - } - }, - "id": 559, - "indexExpression": { - "argumentTypes": null, - "id": 558, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 551, - "src": "1688:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1666:28:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 556, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1658:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 560, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1658:37:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 561, - "nodeType": "ExpressionStatement", - "src": "1658:37:2" - }, - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 562, - "name": "file", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 338, - "src": "1707:4:2", - "typeDescriptions": { - "typeIdentifier": "t_mapping$_t_string_memory_$_t_string_storage_$", - "typeString": "mapping(string memory => string storage ref)" - } - }, - "id": 564, - "indexExpression": { - "argumentTypes": null, - "id": 563, - "name": "_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 551, - "src": "1712:5:2", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string memory" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1707:11:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 555, - "id": 565, - "nodeType": "Return", - "src": "1700:18:2" - } - ] - }, - "documentation": null, - "id": 567, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getFileHash", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 552, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 551, - "name": "_name", - "nodeType": "VariableDeclaration", - "scope": 567, - "src": "1611:12:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 550, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1611:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1610:14:2" - }, - "payable": false, - "returnParameters": { - "id": 555, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 554, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 567, - "src": "1645:6:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 553, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1645:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1644:8:2" - }, - "scope": 594, - "src": "1590:133:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 574, - "nodeType": "Block", - "src": "1779:28:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "id": 572, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1791:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "functionReturnParameters": 571, - "id": 573, - "nodeType": "Return", - "src": "1784:18:2" - } - ] - }, - "documentation": null, - "id": 575, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getFileLength", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 568, - "nodeType": "ParameterList", - "parameters": [], - "src": "1750:2:2" - }, - "payable": false, - "returnParameters": { - "id": 571, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 570, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 575, - "src": "1773:4:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 569, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1773:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1772:6:2" - }, - "scope": 594, - "src": "1728:79:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - }, - { - "body": { - "id": 592, - "nodeType": "Block", - "src": "1875:74:2", - "statements": [ - { - "expression": { - "argumentTypes": null, - "arguments": [ - { - "argumentTypes": null, - "commonType": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "id": 585, - "isConstant": false, - "isLValue": false, - "isPure": false, - "lValueRequested": false, - "leftExpression": { - "argumentTypes": null, - "id": 583, - "name": "_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 577, - "src": "1894:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "nodeType": "BinaryOperation", - "operator": "<", - "rightExpression": { - "argumentTypes": null, - "id": 584, - "name": "file_length", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 352, - "src": "1903:11:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "src": "1894:20:2", - "typeDescriptions": { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - } - ], - "expression": { - "argumentTypes": [ - { - "typeIdentifier": "t_bool", - "typeString": "bool" - } - ], - "id": 582, - "name": "require", - "nodeType": "Identifier", - "overloadedDeclarations": [ - 612, - 613 - ], - "referencedDeclaration": 612, - "src": "1886:7:2", - "typeDescriptions": { - "typeIdentifier": "t_function_require_pure$_t_bool_$returns$__$", - "typeString": "function (bool) pure" - } - }, - "id": 586, - "isConstant": false, - "isLValue": false, - "isPure": false, - "kind": "functionCall", - "lValueRequested": false, - "names": [], - "nodeType": "FunctionCall", - "src": "1886:29:2", - "typeDescriptions": { - "typeIdentifier": "t_tuple$__$", - "typeString": "tuple()" - } - }, - "id": 587, - "nodeType": "ExpressionStatement", - "src": "1886:29:2" - }, - { - "expression": { - "argumentTypes": null, - "baseExpression": { - "argumentTypes": null, - "id": 588, - "name": "file_name", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 349, - "src": "1927:9:2", - "typeDescriptions": { - "typeIdentifier": "t_array$_t_string_storage_$dyn_storage", - "typeString": "string storage ref[] storage ref" - } - }, - "id": 590, - "indexExpression": { - "argumentTypes": null, - "id": 589, - "name": "_index", - "nodeType": "Identifier", - "overloadedDeclarations": [], - "referencedDeclaration": 577, - "src": "1937:6:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "isConstant": false, - "isLValue": true, - "isPure": false, - "lValueRequested": false, - "nodeType": "IndexAccess", - "src": "1927:17:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage", - "typeString": "string storage ref" - } - }, - "functionReturnParameters": 581, - "id": 591, - "nodeType": "Return", - "src": "1920:24:2" - } - ] - }, - "documentation": null, - "id": 593, - "implemented": true, - "isConstructor": false, - "isDeclaredConst": true, - "modifiers": [], - "name": "getFileName", - "nodeType": "FunctionDefinition", - "parameters": { - "id": 578, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 577, - "name": "_index", - "nodeType": "VariableDeclaration", - "scope": 593, - "src": "1833:11:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - }, - "typeName": { - "id": 576, - "name": "uint", - "nodeType": "ElementaryTypeName", - "src": "1833:4:2", - "typeDescriptions": { - "typeIdentifier": "t_uint256", - "typeString": "uint256" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1832:13:2" - }, - "payable": false, - "returnParameters": { - "id": 581, - "nodeType": "ParameterList", - "parameters": [ - { - "constant": false, - "id": 580, - "name": "", - "nodeType": "VariableDeclaration", - "scope": 593, - "src": "1867:6:2", - "stateVariable": false, - "storageLocation": "default", - "typeDescriptions": { - "typeIdentifier": "t_string_memory_ptr", - "typeString": "string" - }, - "typeName": { - "id": 579, - "name": "string", - "nodeType": "ElementaryTypeName", - "src": "1867:6:2", - "typeDescriptions": { - "typeIdentifier": "t_string_storage_ptr", - "typeString": "string" - } - }, - "value": null, - "visibility": "internal" - } - ], - "src": "1866:8:2" - }, - "scope": 594, - "src": "1812:137:2", - "stateMutability": "view", - "superFunction": null, - "visibility": "public" - } - ], - "scope": 595, - "src": "63:1889:2" - } - ], - "src": "0:1958:2" - }, - "compiler": { - "name": "solc", - "version": "0.4.24+commit.e67f0147.Emscripten.clang" - }, - "networks": {}, - "schemaVersion": "2.0.1", - "updatedAt": "2018-10-27T09:17:07.081Z" -} \ No newline at end of file diff --git a/chrome-ext/config_resources/loading.html b/chrome-ext/config_resources/loading.html deleted file mode 100644 index 94b46ef..0000000 --- a/chrome-ext/config_resources/loading.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - -
-
-
-
-
- - - \ No newline at end of file diff --git a/chrome-ext/js/jquery.min.js b/chrome-ext/js/jquery.min.js deleted file mode 100644 index e836475..0000000 --- a/chrome-ext/js/jquery.min.js +++ /dev/null @@ -1,5 +0,0 @@ -/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */ -!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d):void 0},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=fa.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),t===!1)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return t-=e,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if(f=d.getElementById(e[2]),f&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||(e=n.uniqueSort(e)),D.test(a)&&(e=e.reverse())),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",K),a.removeEventListener("load",K)):(d.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",K),a.addEventListener("load",K);else{d.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&!function f(){if(!n.isReady){try{c.doScroll("left")}catch(b){return a.setTimeout(f,50)}J(),n.ready()}}()}return I.promise(b)},n.ready.promise();var L;for(L in n(l))break;l.ownFirst="0"===L,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;c=d.getElementsByTagName("body")[0],c&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),"undefined"!=typeof b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var M=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b},N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0; -}return c}function Q(a){var b;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function R(a,b,d,e){if(M(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(M(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Z=/^(?:checkbox|radio)$/i,$=/<([\w:-]+)/,_=/^$|\/(?:java|ecma)script/i,aa=/^\s+/,ba="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ca(a){var b=ba.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML="
a",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var da={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:l.htmlSerialize?[0,"",""]:[1,"X
","
"]};da.optgroup=da.option,da.tbody=da.tfoot=da.colgroup=da.caption=da.thead,da.th=da.td;function ea(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,ea(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function fa(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var ga=/<|&#?\w+;/,ha=/r;r++)if(g=a[r],g||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(ga.test(g)){i=i||p.appendChild(b.createElement("div")),j=($.exec(g)||["",""])[1].toLowerCase(),m=da[j]||da._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&aa.test(g)&&q.push(b.createTextNode(aa.exec(g)[0])),!l.tbody){g="table"!==j||ha.test(g)?""!==m[1]||ha.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(ea(q,"input"),ia),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=ea(p.appendChild(g),"script"),h&&fa(i),c){f=0;while(g=i[f++])_.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=e.attributes[c].expando===!1);e=null}();var ka=/^(?:input|select|textarea)$/i,la=/^key/,ma=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,na=/^(?:focusinfocus|focusoutblur)$/,oa=/^([^.]*)(?:\.(.+)|)/;function pa(){return!0}function qa(){return!1}function ra(){try{return d.activeElement}catch(a){}}function sa(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)sa(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=qa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return"undefined"==typeof n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(G)||[""],h=b.length;while(h--)f=oa.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=oa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!na.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||l.trigger.apply(e,c)!==!1)){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,na.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),g=h&&i[h],g&&g.apply&&M(i)&&(b.result=g.apply(i,c),b.result===!1&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||l._default.apply(p.pop(),c)===!1)&&M(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]","i"),va=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,wa=/\s*$/g,Aa=ca(d),Ba=Aa.appendChild(d.createElement("div"));function Ca(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Da(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Ea(a){var b=ya.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Fa(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Ga(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Da(b).text=a.text,Ea(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Z.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function Ha(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&xa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ha(f,b,c,d)});if(o&&(k=ja(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(ea(k,"script"),Da),h=i.length;o>m;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,ea(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Ea),m=0;h>m;m++)g=i[m],_.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(za,"")));k=e=null}return a}function Ia(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(ea(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&fa(ea(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(va,"<$1>")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ua.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Ba.innerHTML=a.outerHTML,Ba.removeChild(f=Ba.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=ea(f),h=ea(a),g=0;null!=(e=h[g]);++g)d[g]&&Ga(e,d[g]);if(b)if(c)for(h=h||ea(a),d=d||ea(f),g=0;null!=(e=h[g]);g++)Fa(e,d[g]);else Fa(a,f);return d=ea(f,"script"),d.length>0&&fa(d,!i&&ea(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||M(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||"undefined"==typeof d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ha,detach:function(a){return Ia(this,a,!0)},remove:function(a){return Ia(this,a)},text:function(a){return Y(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.appendChild(a)}})},prepend:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(ea(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return Y(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(ta,""):void 0;if("string"==typeof a&&!wa.test(a)&&(l.htmlSerialize||!ua.test(a))&&(l.leadingWhitespace||!aa.test(a))&&!da[($.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(ea(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ha(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(ea(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ja,Ka={HTML:"block",BODY:"block"};function La(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function Ma(a){var b=d,c=Ka[a];return c||(c=La(a,b),"none"!==c&&c||(Ja=(Ja||n("