{
  "contractName": "ExternalLocking4Reputation",
  "abi": [
    {
      "constant": true,
      "inputs": [],
      "name": "redeemEnableTime",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "lockingStartTime",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "totalLocked",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "avatar",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "getAgreementHash",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "name": "scores",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "externalLockingContract",
      "outputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "address"
        },
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "name": "lockers",
      "outputs": [
        {
          "name": "amount",
          "type": "uint256"
        },
        {
          "name": "releaseTime",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_beneficiary",
          "type": "address"
        }
      ],
      "name": "redeem",
      "outputs": [
        {
          "name": "reputation",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "lockingEndTime",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "reputationRewardLeft",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "maxLockingPeriod",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "totalScore",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "lockingsCounter",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "totalLockedLeft",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "name": "externalLockers",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [
        {
          "name": "",
          "type": "address"
        }
      ],
      "name": "registrar",
      "outputs": [
        {
          "name": "",
          "type": "bool"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "reputationReward",
      "outputs": [
        {
          "name": "",
          "type": "uint256"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "constant": true,
      "inputs": [],
      "name": "getBalanceFuncSignature",
      "outputs": [
        {
          "name": "",
          "type": "string"
        }
      ],
      "payable": false,
      "stateMutability": "view",
      "type": "function"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_beneficiary",
          "type": "address"
        }
      ],
      "name": "Register",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_beneficiary",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "Redeem",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_lockingId",
          "type": "bytes32"
        },
        {
          "indexed": true,
          "name": "_beneficiary",
          "type": "address"
        },
        {
          "indexed": false,
          "name": "_amount",
          "type": "uint256"
        }
      ],
      "name": "Release",
      "type": "event"
    },
    {
      "anonymous": false,
      "inputs": [
        {
          "indexed": true,
          "name": "_locker",
          "type": "address"
        },
        {
          "indexed": true,
          "name": "_lockingId",
          "type": "bytes32"
        },
        {
          "indexed": false,
          "name": "_amount",
          "type": "uint256"
        },
        {
          "indexed": false,
          "name": "_period",
          "type": "uint256"
        }
      ],
      "name": "Lock",
      "type": "event"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_avatar",
          "type": "address"
        },
        {
          "name": "_reputationReward",
          "type": "uint256"
        },
        {
          "name": "_claimingStartTime",
          "type": "uint256"
        },
        {
          "name": "_claimingEndTime",
          "type": "uint256"
        },
        {
          "name": "_redeemEnableTime",
          "type": "uint256"
        },
        {
          "name": "_externalLockingContract",
          "type": "address"
        },
        {
          "name": "_getBalanceFuncSignature",
          "type": "string"
        },
        {
          "name": "_agreementHash",
          "type": "bytes32"
        }
      ],
      "name": "initialize",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_beneficiary",
          "type": "address"
        },
        {
          "name": "_agreementHash",
          "type": "bytes32"
        }
      ],
      "name": "claim",
      "outputs": [
        {
          "name": "",
          "type": "bytes32"
        }
      ],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    },
    {
      "constant": false,
      "inputs": [
        {
          "name": "_agreementHash",
          "type": "bytes32"
        }
      ],
      "name": "register",
      "outputs": [],
      "payable": false,
      "stateMutability": "nonpayable",
      "type": "function"
    }
  ],
  "metadata": "{\"compiler\":{\"version\":\"0.5.4+commit.9549d8ff\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"redeemEnableTime\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"lockingStartTime\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalLocked\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"avatar\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getAgreementHash\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"scores\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"externalLockingContract\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"},{\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"lockers\",\"outputs\":[{\"name\":\"amount\",\"type\":\"uint256\"},{\"name\":\"releaseTime\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_beneficiary\",\"type\":\"address\"}],\"name\":\"redeem\",\"outputs\":[{\"name\":\"reputation\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"lockingEndTime\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"reputationRewardLeft\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"maxLockingPeriod\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalScore\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"lockingsCounter\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalLockedLeft\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_beneficiary\",\"type\":\"address\"},{\"name\":\"_agreementHash\",\"type\":\"bytes32\"}],\"name\":\"claim\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"externalLockers\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_agreementHash\",\"type\":\"bytes32\"}],\"name\":\"register\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"registrar\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"reputationReward\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getBalanceFuncSignature\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_avatar\",\"type\":\"address\"},{\"name\":\"_reputationReward\",\"type\":\"uint256\"},{\"name\":\"_claimingStartTime\",\"type\":\"uint256\"},{\"name\":\"_claimingEndTime\",\"type\":\"uint256\"},{\"name\":\"_redeemEnableTime\",\"type\":\"uint256\"},{\"name\":\"_externalLockingContract\",\"type\":\"address\"},{\"name\":\"_getBalanceFuncSignature\",\"type\":\"string\"},{\"name\":\"_agreementHash\",\"type\":\"bytes32\"}],\"name\":\"initialize\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_beneficiary\",\"type\":\"address\"}],\"name\":\"Register\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_beneficiary\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"Redeem\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_lockingId\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_beneficiary\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_amount\",\"type\":\"uint256\"}],\"name\":\"Release\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_locker\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_lockingId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_amount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_period\",\"type\":\"uint256\"}],\"name\":\"Lock\",\"type\":\"event\"}],\"devdoc\":{\"methods\":{\"claim(address,bytes32)\":{\"details\":\"claim function\",\"params\":{\"_beneficiary\":\"the beneficiary address to claim for       if _beneficiary == 0 the claim will be for the msg.sender.\"},\"return\":\"claimId\"},\"getAgreementHash()\":{\"details\":\"getAgreementHash\",\"return\":\"bytes32 agreementHash\"},\"initialize(address,uint256,uint256,uint256,uint256,address,string,bytes32)\":{\"details\":\"initialize\",\"params\":{\"_avatar\":\"the avatar to mint reputation from\",\"_claimingEndTime\":\"the claiming end time.       claiming is disable after this time.\",\"_claimingStartTime\":\"claiming starting period time.\",\"_externalLockingContract\":\"the contract which lock the token.\",\"_getBalanceFuncSignature\":\"get balance function signature       e.g \\\"lockedTokenBalances(address)\\\"\",\"_redeemEnableTime\":\"redeem enable time .       redeem reputation can be done after this time.\",\"_reputationReward\":\"the total reputation this contract will reward       for the token locking\"}},\"redeem(address)\":{\"details\":\"redeem reputation function\",\"params\":{\"_beneficiary\":\"the beneficiary for the release\"},\"return\":\"uint256 reputation rewarded\"},\"register(bytes32)\":{\"details\":\"register function     register for external locking claim\"}},\"title\":\"A scheme for external locking Tokens for reputation\"},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"@daostack/arc/contracts/schemes/ExternalLocking4Reputation.sol\":\"ExternalLocking4Reputation\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@daostack/arc/contracts/controller/Avatar.sol\":{\"keccak256\":\"0x4e4fb9d3bc21f42fbfc6a01e9f8aa483a59e9f447b0d604f55b587a81ec09ef4\",\"urls\":[\"bzzr://b0af60e651a75274a028dc4b53d06091a46ca0efa3bfb4153879e76cf86a49dc\"]},\"@daostack/arc/contracts/controller/ControllerInterface.sol\":{\"keccak256\":\"0x933e92612c90f292c7b59908958b003f1a13d90b97bed0572b566353c20974dc\",\"urls\":[\"bzzr://e8050774c20b9b22636b47cdd353eaf5df72e0bca8f2b8569365be30f4eaef0c\"]},\"@daostack/arc/contracts/controller/DAOToken.sol\":{\"keccak256\":\"0x9b213e4e3ceeffcfc1c962a43b70b8d763d8091a2dd713fc1989b97bb68786e6\",\"urls\":[\"bzzr://7ba306fdbad344e01474e3ae9c37b27b64efdc1cb17ffc0f3ec1c4427fde359d\"]},\"@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol\":{\"keccak256\":\"0xc006c4591ec10b845a56e13f6791db2c428610953034686d52b2a934b6c8f36f\",\"urls\":[\"bzzr://d1f293a0bbaa292296a83977cb36a14048db404a32e3f6aa9bd79ea61ac3c4c3\"]},\"@daostack/arc/contracts/libs/SafeERC20.sol\":{\"keccak256\":\"0xf6727d432f67046145b078f40c1cc4f6be7b0d12a6678ecaf457edf7550d244c\",\"urls\":[\"bzzr://cd706a2dc7540d093b591a280b464256c596ddad598b68886e6db2e7958f9916\"]},\"@daostack/arc/contracts/schemes/Agreement.sol\":{\"keccak256\":\"0x5c5aae71ecbfc3125cb33d1e5780b0bb9df6e3fabf2c03def44dba2f2375ec8a\",\"urls\":[\"bzzr://484e0d67ab6c9f595e179cc0fda53ef637481570734fa7c7594e5bd5337dafde\"]},\"@daostack/arc/contracts/schemes/ExternalLocking4Reputation.sol\":{\"keccak256\":\"0xc8db754b845486db399a7d58e9dae6873a58fddc02ce4ad43fe6206c02f10451\",\"urls\":[\"bzzr://306b1d6bf28aa2d2ba83bf6769f526c240d03fc7041ca62954f05865a8a685e5\"]},\"@daostack/arc/contracts/schemes/Locking4Reputation.sol\":{\"keccak256\":\"0xce05abc1a346f699aa205e9518bdc7865bb16629f185d9f83afb0a1d59f46c1c\",\"urls\":[\"bzzr://bca474bb2c3f8e7796e8e4ad4d50d984953c1a05b90b3fc566421845d6d0751a\"]},\"@daostack/infra/contracts/Reputation.sol\":{\"keccak256\":\"0x3d226dac0fe7d758f0287fb28bc25fcec1f69d19888ae3a550fa49856d61c482\",\"urls\":[\"bzzr://7f219e1874d4f1aea860cc665b75015797f55f149e9bf490abab5d7ad2adfeb9\"]},\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x965012d27b4262d7a41f5028cbb30c51ebd9ecd4be8fb30380aaa7a3c64fbc8b\",\"urls\":[\"bzzr://41ca38f6b0fa4b77b0feec43e422cfbec48b7eb38a41edf0b85c77e8d9a296b1\"]},\"openzeppelin-solidity/contracts/ownership/Ownable.sol\":{\"keccak256\":\"0x980de387a1a020a498f53d00f89fecebb12c949a17e8f160093c0303ede2b786\",\"urls\":[\"bzzr://08894efa2a557982070beda6a81a032407e70532d24bdafe80d39660c74904d9\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xba431353cb4fe70777ac026231eb5468e41aa1e81240a2b8136917acc5fff4dc\",\"urls\":[\"bzzr://80cd02a56e6e33504318124d0d645c82e615cc8a4b5829cc9d82d17635c644c8\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol\":{\"keccak256\":\"0xa3e68fd7f987c8fbdaf4867d428a69a15f3cf2f69709a5b0a0fbef750b0e6fbc\",\"urls\":[\"bzzr://f4ebb7c5b9e429b98b07e2caca6156c13c3724e9b1191cca8423ab8427bc6265\"]},\"openzeppelin-solidity/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x079c4e23ee448f529e43bfa3c4e8fb4be52cd0318ee923a276835bedf45b93d8\",\"urls\":[\"bzzr://48248e86f64407a95f241d6c5c8cfea6b4d4ebf4ebb467e5c98c8af3868fafe4\"]},\"openzeppelin-solidity/contracts/utils/Address.sol\":{\"keccak256\":\"0x5c731061b804fa256fc8c05150eafe5d20b6bb94541a8f187912bf84f7033f34\",\"urls\":[\"bzzr://63fc4af0d7a99a770925b96a6cf48f25fc00d30274266f82db05f30baa238267\"]}},\"version\":1}",
  "bytecode": "0x608060405234801561001057600080fd5b506115f9806100206000396000f3fe608060405234801561001057600080fd5b506004361061015f576000357c010000000000000000000000000000000000000000000000000000000090048063bf0df445116100d5578063dd9d2deb11610099578063dd9d2deb146102af578063e1fa8e84146102e9578063e397cb9e14610308578063ed1ff6d81461032e578063f0167cfa14610336578063f27a5505146103b35761015f565b8063bf0df44514610263578063c006719f1461026b578063c3201add14610273578063c348a24b1461027b578063c8622c24146102835761015f565b806376dd110f1161012757806376dd110f146101ba5780637f33ccac146101e057806383805742146101e857806395a2251f1461022d578063a8c3301714610253578063afe0e33c1461025b5761015f565b80633d1678f41461016457806355bfec881461017e57806356891412146101865780635aef7de61461018e578063696da921146101b2575b600080fd5b61016c610455565b60408051918252519081900360200190f35b61016c61045b565b61016c610461565b610196610467565b60408051600160a060020a039092168252519081900360200190f35b61016c610476565b61016c600480360360208110156101d057600080fd5b5035600160a060020a031661047d565b61019661048f565b610214600480360360408110156101fe57600080fd5b50600160a060020a03813516906020013561049e565b6040805192835260208301919091528051918290030190f35b61016c6004803603602081101561024357600080fd5b5035600160a060020a03166104c2565b61016c6107ba565b61016c6107c0565b61016c6107c6565b61016c6107cc565b61016c6107d2565b61016c6107d8565b61016c6004803603604081101561029957600080fd5b50600160a060020a0381351690602001356107de565b6102d5600480360360208110156102c557600080fd5b5035600160a060020a0316610b35565b604080519115158252519081900360200190f35b610306600480360360208110156102ff57600080fd5b5035610b4a565b005b6102d56004803603602081101561031e57600080fd5b5035600160a060020a0316610bd3565b61016c610be8565b61033e610bee565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610378578181015183820152602001610360565b50505050905090810190601f1680156103a55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61030660048036036101008110156103ca57600080fd5b600160a060020a03823581169260208101359260408201359260608301359260808101359260a08201359092169181019060e0810160c082013564010000000081111561041657600080fd5b82018360208201111561042857600080fd5b8035906020019184600183028401116401000000008311171561044a57600080fd5b919350915035610c7c565b600d5481565b600c5481565b60045481565b600154600160a060020a031681565b6000545b90565b60036020526000908152604090205481565b600e54600160a060020a031681565b60026020908152600092835260408084209091529082529020805460019091015482565b600d54600090421161051e576040805160e560020a62461bcd02815260206004820152601660248201527f6e6f77203e2072656465656d456e61626c6554696d6500000000000000000000604482015290519081900360640190fd5b600160a060020a0382166000908152600360205260408120541161058c576040805160e560020a62461bcd02815260206004820152601360248201527f73636f72652073686f756c64206265203e203000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03821660009081526003602052604081208054908290556008549091906105c190839063ffffffff610d0d16565b90506105d860065482610d3f90919063ffffffff16565b6009549093506105ee908463ffffffff610d6316565b600955600154604080517f8da5cb5b0000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921691638da5cb5b91600480820192602092909190829003018186803b15801561064f57600080fd5b505afa158015610663573d6000803e3d6000fd5b505050506040513d602081101561067957600080fd5b5051600154604080517feaf994b200000000000000000000000000000000000000000000000000000000815260048101879052600160a060020a03888116602483015292831660448201529051919092169163eaf994b29160648083019260209291908290030181600087803b1580156106f257600080fd5b505af1158015610706573d6000803e3d6000fd5b505050506040513d602081101561071c57600080fd5b50511515610774576040805160e560020a62461bcd02815260206004820152601e60248201527f6d696e742072657075746174696f6e2073686f756c6420737563636565640000604482015290519081900360640190fd5b604080518481529051600160a060020a038616917f222838db2794d11532d940e8dec38ae307ed0b63cd97c233322e221f998767a6919081900360200190a25050919050565b600a5481565b60095481565b600b5481565b60065481565b60075481565b60055481565b600154600090600160a060020a03161515610843576040805160e560020a62461bcd02815260206004820152601760248201527f73686f756c6420696e697469616c697a65206669727374000000000000000000604482015290519081900360640190fd5b6000600160a060020a038416151561085c5750336108d1565b600160a060020a03841660009081526011602052604090205460ff1615156108ce576040805160e560020a62461bcd02815260206004820152601e60248201527f62656e65666963696172792073686f756c642062652072656769737465720000604482015290519081900360640190fd5b50825b600160a060020a03811660009081526010602052604090205460ff161561092c5760405160e560020a62461bcd02815260040180806020018281038252603681526020018061153c6036913960400191505060405180910390fd5b600160a060020a03808216600081815260106020526040808220805460ff19166001908117909155600e5482516024808201969096528351808203909601865260440192839052600f80549496606096921694919390929091829184916002600019928216156101000292909201160480156109df5780601f106109bd5761010080835404028352918201916109df565b820191906000526020600020905b8154815290600101906020018083116109cb575b505060408051918290039091206020850180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909216919091178152905184519093508392508083835b60208310610a675780518252601f199092019160209182019101610a48565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610ac9576040519150601f19603f3d011682016040523d82523d6000602084013e610ace565b606091505b5091509150811515610b145760405160e560020a62461bcd02815260040180806020018281038252602881526020018061142e6028913960400191505060405180910390fd5b6020810151610b288160018681808b610d78565b9450505050505b92915050565b60106020526000908152604090205460ff1681565b60005481908114610b8f5760405160e560020a62461bcd0281526004018080602001828103825260288152602001806114e86028913960400191505060405180910390fd5b33600081815260116020526040808220805460ff19166001179055517feeda149c76076b34d4b9d8896c2f7efc0d33d1c7b53ea3c5db490d64613f603a9190a25050565b60116020526000908152604090205460ff1681565b60085481565b600f805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610c745780601f10610c4957610100808354040283529160200191610c74565b820191906000526020600020905b815481529060010190602001808311610c5757829003601f168201915b505050505081565b868611610cbd5760405160e560020a62461bcd02815260040180806020018281038252603a815260200180611594603a913960400191505060405180910390fd5b600e805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038616179055610cf1600f8484611395565b50610d02898989898960018761118a565b505050505050505050565b6000821515610d1e57506000610b2f565b828202828482811515610d2d57fe5b0414610d3857600080fd5b9392505050565b6000808211610d4d57600080fd5b60008284811515610d5a57fe5b04949350505050565b600082821115610d7257600080fd5b50900390565b6000805482908114610dbe5760405160e560020a62461bcd0281526004018080602001828103825260288152602001806114e86028913960400191505060405180910390fd5b60008811610e16576040805160e560020a62461bcd02815260206004820152601c60248201527f6c6f636b696e6720616d6f756e742073686f756c64206265203e203000000000604482015290519081900360640190fd5b600b54871115610e5a5760405160e560020a62461bcd02815260040180806020018281038252602c815260200180611510602c913960400191505060405180910390fd5b60008711610eb2576040805160e560020a62461bcd02815260206004820152601c60248201527f6c6f636b696e6720706572696f642073686f756c64206265203e203000000000604482015290519081900360640190fd5b600a54421115610ef65760405160e560020a62461bcd02815260040180806020018281038252603081526020018061147e6030913960400191505060405180910390fd5b600c54421015610f3a5760405160e560020a62461bcd0281526004018080602001828103825260288152602001806114566028913960400191505060405180910390fd5b600754604080516c010000000000000000000000003002602080830191909152603480830185905283518084039091018152605490920190925280519101209250610f8c90600163ffffffff61132616565b600755600160a060020a038616600090815260026020908152604080832085845290915290208881554288016001820155600454610fd0908a63ffffffff61132616565b600455600554610fe6908a63ffffffff61132616565b600555600061101b8661100f896110038d8f63ffffffff610d0d16565b9063ffffffff610d0d16565b9063ffffffff610d3f16565b905060008111611075576040805160e560020a62461bcd02815260206004820152601160248201527f73636f7265206d757374206d65203e2030000000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03881660009081526003602052604090205461109e908263ffffffff61132616565b600160a060020a0389166000908152600360205260409020819055600854908181028115156110c957fe5b041461111f576040805160e560020a62461bcd02815260206004820152601160248201527f73636f726520697320746f6f2068696768000000000000000000000000000000604482015290519081900360640190fd5b600654611132908263ffffffff61132616565b600655604080518b8152602081018b905281518692600160a060020a038c16927fd173f98f4a2080eab40a0bff4d9a575753270cb2401c74efdec1feb0ba31b426929081900390910190a35050509695505050505050565b600154600160a060020a0316156111eb576040805160e560020a62461bcd02815260206004820152601b60248201527f63616e2062652063616c6c6564206f6e6c79206f6e652074696d650000000000604482015290519081900360640190fd5b600160a060020a038716151561124b576040805160e560020a62461bcd02815260206004820152601560248201527f6176617461722063616e6e6f74206265207a65726f0000000000000000000000604482015290519081900360640190fd5b84841161128c5760405160e560020a62461bcd02815260040180806020018281038252603a8152602001806114ae603a913960400191505060405180910390fd5b838310156112ce5760405160e560020a62461bcd0281526004018080602001828103825260228152602001806115726022913960400191505060405180910390fd5b60088690556009869055600a849055600b8290556001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038916179055600c859055600d83905561131d81611338565b50505050505050565b600082820183811015610d3857600080fd5b60005415611390576040805160e560020a62461bcd02815260206004820152601b60248201527f43616e206e6f74207365742061677265656d656e742074776963650000000000604482015290519081900360640190fd5b600055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106113d65782800160ff19823516178555611403565b82800160010185558215611403579182015b828111156114035782358255916020019190600101906113e8565b5061140f929150611413565b5090565b61047a91905b8082111561140f576000815560010161141956fe63616c6c20746f2065787465726e616c20636f6e74726163742073686f756c6420737563636565646c6f636b2073686f756c64207374617274206166746572206c6f636b696e67537461727454696d656c6f636b2073686f756c642062652077697468696e2074686520616c6c6f776564206c6f636b696e6720706572696f646c6f636b696e6720656e642074696d652073686f756c642062652067726561746572207468616e206c6f636b696e672073746172742074696d6553656e646572206d7573742073656e64207468652072696768742061677265656d656e74486173686c6f636b696e6720706572696f642073686f756c64206265203c3d206d61784c6f636b696e67506572696f64636c61696d696e6720747769636520666f72207468652073616d652062656e6566696369617279206973206e6f7420616c6c6f77656472656465656d456e61626c6554696d65203e3d206c6f636b696e67456e6454696d655f636c61696d696e67456e6454696d652073686f756c642062652067726561746572207468616e205f636c61696d696e67537461727454696d65a165627a7a723058201706557eb1dcc55bac5c49030a5fe90c5873103299dad396e2aea1dab3869f8a0029",
  "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061015f576000357c010000000000000000000000000000000000000000000000000000000090048063bf0df445116100d5578063dd9d2deb11610099578063dd9d2deb146102af578063e1fa8e84146102e9578063e397cb9e14610308578063ed1ff6d81461032e578063f0167cfa14610336578063f27a5505146103b35761015f565b8063bf0df44514610263578063c006719f1461026b578063c3201add14610273578063c348a24b1461027b578063c8622c24146102835761015f565b806376dd110f1161012757806376dd110f146101ba5780637f33ccac146101e057806383805742146101e857806395a2251f1461022d578063a8c3301714610253578063afe0e33c1461025b5761015f565b80633d1678f41461016457806355bfec881461017e57806356891412146101865780635aef7de61461018e578063696da921146101b2575b600080fd5b61016c610455565b60408051918252519081900360200190f35b61016c61045b565b61016c610461565b610196610467565b60408051600160a060020a039092168252519081900360200190f35b61016c610476565b61016c600480360360208110156101d057600080fd5b5035600160a060020a031661047d565b61019661048f565b610214600480360360408110156101fe57600080fd5b50600160a060020a03813516906020013561049e565b6040805192835260208301919091528051918290030190f35b61016c6004803603602081101561024357600080fd5b5035600160a060020a03166104c2565b61016c6107ba565b61016c6107c0565b61016c6107c6565b61016c6107cc565b61016c6107d2565b61016c6107d8565b61016c6004803603604081101561029957600080fd5b50600160a060020a0381351690602001356107de565b6102d5600480360360208110156102c557600080fd5b5035600160a060020a0316610b35565b604080519115158252519081900360200190f35b610306600480360360208110156102ff57600080fd5b5035610b4a565b005b6102d56004803603602081101561031e57600080fd5b5035600160a060020a0316610bd3565b61016c610be8565b61033e610bee565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610378578181015183820152602001610360565b50505050905090810190601f1680156103a55780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61030660048036036101008110156103ca57600080fd5b600160a060020a03823581169260208101359260408201359260608301359260808101359260a08201359092169181019060e0810160c082013564010000000081111561041657600080fd5b82018360208201111561042857600080fd5b8035906020019184600183028401116401000000008311171561044a57600080fd5b919350915035610c7c565b600d5481565b600c5481565b60045481565b600154600160a060020a031681565b6000545b90565b60036020526000908152604090205481565b600e54600160a060020a031681565b60026020908152600092835260408084209091529082529020805460019091015482565b600d54600090421161051e576040805160e560020a62461bcd02815260206004820152601660248201527f6e6f77203e2072656465656d456e61626c6554696d6500000000000000000000604482015290519081900360640190fd5b600160a060020a0382166000908152600360205260408120541161058c576040805160e560020a62461bcd02815260206004820152601360248201527f73636f72652073686f756c64206265203e203000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03821660009081526003602052604081208054908290556008549091906105c190839063ffffffff610d0d16565b90506105d860065482610d3f90919063ffffffff16565b6009549093506105ee908463ffffffff610d6316565b600955600154604080517f8da5cb5b0000000000000000000000000000000000000000000000000000000081529051600160a060020a0390921691638da5cb5b91600480820192602092909190829003018186803b15801561064f57600080fd5b505afa158015610663573d6000803e3d6000fd5b505050506040513d602081101561067957600080fd5b5051600154604080517feaf994b200000000000000000000000000000000000000000000000000000000815260048101879052600160a060020a03888116602483015292831660448201529051919092169163eaf994b29160648083019260209291908290030181600087803b1580156106f257600080fd5b505af1158015610706573d6000803e3d6000fd5b505050506040513d602081101561071c57600080fd5b50511515610774576040805160e560020a62461bcd02815260206004820152601e60248201527f6d696e742072657075746174696f6e2073686f756c6420737563636565640000604482015290519081900360640190fd5b604080518481529051600160a060020a038616917f222838db2794d11532d940e8dec38ae307ed0b63cd97c233322e221f998767a6919081900360200190a25050919050565b600a5481565b60095481565b600b5481565b60065481565b60075481565b60055481565b600154600090600160a060020a03161515610843576040805160e560020a62461bcd02815260206004820152601760248201527f73686f756c6420696e697469616c697a65206669727374000000000000000000604482015290519081900360640190fd5b6000600160a060020a038416151561085c5750336108d1565b600160a060020a03841660009081526011602052604090205460ff1615156108ce576040805160e560020a62461bcd02815260206004820152601e60248201527f62656e65666963696172792073686f756c642062652072656769737465720000604482015290519081900360640190fd5b50825b600160a060020a03811660009081526010602052604090205460ff161561092c5760405160e560020a62461bcd02815260040180806020018281038252603681526020018061153c6036913960400191505060405180910390fd5b600160a060020a03808216600081815260106020526040808220805460ff19166001908117909155600e5482516024808201969096528351808203909601865260440192839052600f80549496606096921694919390929091829184916002600019928216156101000292909201160480156109df5780601f106109bd5761010080835404028352918201916109df565b820191906000526020600020905b8154815290600101906020018083116109cb575b505060408051918290039091206020850180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909216919091178152905184519093508392508083835b60208310610a675780518252601f199092019160209182019101610a48565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610ac9576040519150601f19603f3d011682016040523d82523d6000602084013e610ace565b606091505b5091509150811515610b145760405160e560020a62461bcd02815260040180806020018281038252602881526020018061142e6028913960400191505060405180910390fd5b6020810151610b288160018681808b610d78565b9450505050505b92915050565b60106020526000908152604090205460ff1681565b60005481908114610b8f5760405160e560020a62461bcd0281526004018080602001828103825260288152602001806114e86028913960400191505060405180910390fd5b33600081815260116020526040808220805460ff19166001179055517feeda149c76076b34d4b9d8896c2f7efc0d33d1c7b53ea3c5db490d64613f603a9190a25050565b60116020526000908152604090205460ff1681565b60085481565b600f805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610c745780601f10610c4957610100808354040283529160200191610c74565b820191906000526020600020905b815481529060010190602001808311610c5757829003601f168201915b505050505081565b868611610cbd5760405160e560020a62461bcd02815260040180806020018281038252603a815260200180611594603a913960400191505060405180910390fd5b600e805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038616179055610cf1600f8484611395565b50610d02898989898960018761118a565b505050505050505050565b6000821515610d1e57506000610b2f565b828202828482811515610d2d57fe5b0414610d3857600080fd5b9392505050565b6000808211610d4d57600080fd5b60008284811515610d5a57fe5b04949350505050565b600082821115610d7257600080fd5b50900390565b6000805482908114610dbe5760405160e560020a62461bcd0281526004018080602001828103825260288152602001806114e86028913960400191505060405180910390fd5b60008811610e16576040805160e560020a62461bcd02815260206004820152601c60248201527f6c6f636b696e6720616d6f756e742073686f756c64206265203e203000000000604482015290519081900360640190fd5b600b54871115610e5a5760405160e560020a62461bcd02815260040180806020018281038252602c815260200180611510602c913960400191505060405180910390fd5b60008711610eb2576040805160e560020a62461bcd02815260206004820152601c60248201527f6c6f636b696e6720706572696f642073686f756c64206265203e203000000000604482015290519081900360640190fd5b600a54421115610ef65760405160e560020a62461bcd02815260040180806020018281038252603081526020018061147e6030913960400191505060405180910390fd5b600c54421015610f3a5760405160e560020a62461bcd0281526004018080602001828103825260288152602001806114566028913960400191505060405180910390fd5b600754604080516c010000000000000000000000003002602080830191909152603480830185905283518084039091018152605490920190925280519101209250610f8c90600163ffffffff61132616565b600755600160a060020a038616600090815260026020908152604080832085845290915290208881554288016001820155600454610fd0908a63ffffffff61132616565b600455600554610fe6908a63ffffffff61132616565b600555600061101b8661100f896110038d8f63ffffffff610d0d16565b9063ffffffff610d0d16565b9063ffffffff610d3f16565b905060008111611075576040805160e560020a62461bcd02815260206004820152601160248201527f73636f7265206d757374206d65203e2030000000000000000000000000000000604482015290519081900360640190fd5b600160a060020a03881660009081526003602052604090205461109e908263ffffffff61132616565b600160a060020a0389166000908152600360205260409020819055600854908181028115156110c957fe5b041461111f576040805160e560020a62461bcd02815260206004820152601160248201527f73636f726520697320746f6f2068696768000000000000000000000000000000604482015290519081900360640190fd5b600654611132908263ffffffff61132616565b600655604080518b8152602081018b905281518692600160a060020a038c16927fd173f98f4a2080eab40a0bff4d9a575753270cb2401c74efdec1feb0ba31b426929081900390910190a35050509695505050505050565b600154600160a060020a0316156111eb576040805160e560020a62461bcd02815260206004820152601b60248201527f63616e2062652063616c6c6564206f6e6c79206f6e652074696d650000000000604482015290519081900360640190fd5b600160a060020a038716151561124b576040805160e560020a62461bcd02815260206004820152601560248201527f6176617461722063616e6e6f74206265207a65726f0000000000000000000000604482015290519081900360640190fd5b84841161128c5760405160e560020a62461bcd02815260040180806020018281038252603a8152602001806114ae603a913960400191505060405180910390fd5b838310156112ce5760405160e560020a62461bcd0281526004018080602001828103825260228152602001806115726022913960400191505060405180910390fd5b60088690556009869055600a849055600b8290556001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a038916179055600c859055600d83905561131d81611338565b50505050505050565b600082820183811015610d3857600080fd5b60005415611390576040805160e560020a62461bcd02815260206004820152601b60248201527f43616e206e6f74207365742061677265656d656e742074776963650000000000604482015290519081900360640190fd5b600055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106113d65782800160ff19823516178555611403565b82800160010185558215611403579182015b828111156114035782358255916020019190600101906113e8565b5061140f929150611413565b5090565b61047a91905b8082111561140f576000815560010161141956fe63616c6c20746f2065787465726e616c20636f6e74726163742073686f756c6420737563636565646c6f636b2073686f756c64207374617274206166746572206c6f636b696e67537461727454696d656c6f636b2073686f756c642062652077697468696e2074686520616c6c6f776564206c6f636b696e6720706572696f646c6f636b696e6720656e642074696d652073686f756c642062652067726561746572207468616e206c6f636b696e672073746172742074696d6553656e646572206d7573742073656e64207468652072696768742061677265656d656e74486173686c6f636b696e6720706572696f642073686f756c64206265203c3d206d61784c6f636b696e67506572696f64636c61696d696e6720747769636520666f72207468652073616d652062656e6566696369617279206973206e6f7420616c6c6f77656472656465656d456e61626c6554696d65203e3d206c6f636b696e67456e6454696d655f636c61696d696e67456e6454696d652073686f756c642062652067726561746572207468616e205f636c61696d696e67537461727454696d65a165627a7a723058201706557eb1dcc55bac5c49030a5fe90c5873103299dad396e2aea1dab3869f8a0029",
  "sourceMap": "132:3392:29:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;132:3392:29;;;;;;;",
  "deployedSourceMap": "132:3392:29:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;132:3392:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1165:31:31;;;:::i;:::-;;;;;;;;;;;;;;;;1128;;;:::i;815:26::-;;;:::i;560:20::-;;;:::i;:::-;;;;-1:-1:-1;;;;;560:20:31;;;;;;;;;;;;;;407:101:27;;;:::i;770:38:31:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;770:38:31;-1:-1:-1;;;;;770:38:31;;:::i;248::29:-;;;:::i;648:59:31:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;648:59:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1360:807;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1360:807:31;-1:-1:-1;;;;;1360:807:31;;:::i;1056:29::-;;;:::i;1015:35::-;;;:::i;1091:31::-;;;:::i;883:25::-;;;:::i;914:30::-;;;:::i;847:::-;;;:::i;2150:1121:29:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2150:1121:29;;;;;;;;:::i;358:47::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;358:47:29;-1:-1:-1;;;;;358:47:29;;:::i;:::-;;;;;;;;;;;;;;;;;;3367:155;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3367:155:29;;:::i;:::-;;443:45;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;443:45:29;-1:-1:-1;;;;;443:45:29;;:::i;978:31:31:-;;;:::i;292:37:29:-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;292:37:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1182:759;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;1182:759:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;1182:759:29;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1182:759:29;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;1182:759:29;;-1:-1:-1;1182:759:29;-1:-1:-1;1182:759:29;;:::i;1165:31:31:-;;;;:::o;1128:::-;;;;:::o;815:26::-;;;;:::o;560:20::-;;;-1:-1:-1;;;;;560:20:31;;:::o;407:101:27:-;458:7;488:13;407:101;;:::o;770:38:31:-;;;;;;;;;;;;;:::o;248::29:-;;;-1:-1:-1;;;;;248:38:29;;:::o;648:59:31:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1360:807::-;1523:16;;1413:18;;1505:15;:34;1497:69;;;;;-1:-1:-1;;;;;1497:69:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1584:20:31;;1607:1;1584:20;;;:6;:20;;;;;;:24;1576:56;;;;;-1:-1:-1;;;;;1576:56:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;1658:20:31;;1642:13;1658:20;;;:6;:20;;;;;;;1688:24;;;;1754:16;;1658:20;;1642:13;1744:27;;1658:20;;1744:27;:9;:27;:::i;:::-;1722:49;;1794:27;1810:10;;1794:11;:15;;:27;;;;:::i;:::-;1903:20;;1781:40;;-1:-1:-1;1903:36:31;;1781:40;1903:36;:24;:36;:::i;:::-;1880:20;:59;1995:6;;:14;;;;;;;;-1:-1:-1;;;;;1995:6:31;;;;:12;;:14;;;;;;;;;;;;;;;:6;:14;;;5:2:-1;;;;30:1;27;20:12;5:2;1995:14:31;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1995:14:31;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1995:14:31;2069:6;;1966:111;;;;;;;;;;;;-1:-1:-1;;;;;1966:111:31;;;;;;;2069:6;;;1966:111;;;;;;:68;;;;;;;:111;;;;;1995:14;;1966:111;;;;;;;2069:6;1966:68;:111;;;5:2:-1;;;;30:1;27;20:12;5:2;1966:111:31;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1966:111:31;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1966:111:31;1949:163;;;;;;;-1:-1:-1;;;;;1949:163:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;2128:32;;;;;;;;-1:-1:-1;;;;;2128:32:31;;;;;;;;;;;;;1360:807;;;;;:::o;1056:29::-;;;;:::o;1015:35::-;;;;:::o;1091:31::-;;;;:::o;883:25::-;;;;:::o;914:30::-;;;;:::o;847:::-;;;;:::o;2150:1121:29:-;2253:6;;2226:7;;-1:-1:-1;;;;;2253:6:29;:19;;2245:55;;;;;-1:-1:-1;;;;;2245:55:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;2310:19;-1:-1:-1;;;;;2343:26:29;;;2339:218;;;-1:-1:-1;2399:10:29;2339:218;;;-1:-1:-1;;;;;2448:23:29;;;;;;:9;:23;;;;;;;;2440:66;;;;;;;-1:-1:-1;;;;;2440:66:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2534:12:29;2339:218;-1:-1:-1;;;;;2574:28:29;;;;;;:15;:28;;;;;;;;:37;2566:104;;;;-1:-1:-1;;;;;2566:104:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2680:28:29;;;;;;;:15;:28;;;;;;:35;;-1:-1:-1;;2680:35:29;2711:4;2680:35;;;;;;2851:23;;2880:61;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;2880:61:29;;;;;;2904:23;2880:61;;2680:28;;2739:24;;2851:23;;;2880:61;;2904:23;;2880:61;;;;2904:23;;2880:61;-1:-1:-1;;2880:61:29;;;;2680:35;2880:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;2880:61:29;;;;;;;;;;38:4:-1;25:18;;61:17;;2880:61:29;182:15:-1;2880:61:29;;;;179:29:-1;;;;160:49;;2851:91:29;;;;;;-1:-1:-1;2851:91:29;;-1:-1:-1;2851:91:29;;25:18:-1;36:153;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;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;;;2851:91:29;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;2725:217:29;;;;2960:6;2952:59;;;;;;-1:-1:-1;;;;;2952:59:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3169:4;3152:22;;3146:29;3201:63;3146:29;3227:1;3230:11;3227:1;;3249:14;3201:11;:63::i;:::-;3194:70;;;;;;2150:1121;;;;;:::o;358:47::-;;;;;;;;;;;;;;;:::o;3367:155::-;243:13:27;;3426:14:29;;225:31:27;;217:84;;;;-1:-1:-1;;;;;217:84:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3462:10:29;3452:21;;;;:9;:21;;;;;;:28;;-1:-1:-1;;3452:28:29;3476:4;3452:28;;;3495:20;;;3452:21;3495:20;3367:155;;:::o;443:45::-;;;;;;;;;;;;;;;:::o;978:31:31:-;;;;:::o;292:37:29:-;;;;;;;;;;;;;;;-1:-1:-1;;292:37:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1182:759::-;1526:37;;;1518:108;;;;-1:-1:-1;;;;;1518:108:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1636:23;:50;;-1:-1:-1;;1636:50:29;-1:-1:-1;;;;;1636:50:29;;;;;1696;:23;1722:24;;1696:50;:::i;:::-;;1756:178;1783:7;1800:17;1827:18;1855:16;1881:17;1908:1;1919:14;1756:17;:178::i;:::-;1182:759;;;;;;;;;:::o;229:421:87:-;287:7;527:6;;523:45;;;-1:-1:-1;556:1:87;549:8;;523:45;590:5;;;594:1;590;:5;613;;;;;;;;:10;605:19;;;;;;642:1;229:421;-1:-1:-1;;;229:421:87:o;778:296::-;836:7;929:5;;;921:14;;;;;;945:9;961:1;957;:5;;;;;;;;;778:296;-1:-1:-1;;;;778:296:87:o;1205:145::-;1263:7;1290:6;;;;1282:15;;;;;;-1:-1:-1;1319:5:87;;;1205:145::o;3159:1683:31:-;3407:17;243:13:27;;3375:14:31;;225:31:27;;217:84;;;;-1:-1:-1;;;;;217:84:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3462:1:31;3452:11;;3444:52;;;;;-1:-1:-1;;;;;3444:52:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;3525:16;;3514:27;;;3506:84;;;;-1:-1:-1;;;;;3506:84:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3618:1;3608:11;;3600:52;;;;;-1:-1:-1;;;;;3600:52:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;3731:14;;3724:3;:21;;3716:82;;;;-1:-1:-1;;;;;3716:82:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3877:16;;3870:3;:23;;3862:76;;;;-1:-1:-1;;;;;3862:76:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4003:15;;3971:48;;;;3996:4;3971:48;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;3971:48:31;;;;;;;3961:59;;;;;;-1:-1:-1;4048:22:31;;4068:1;4048:22;:19;:22;:::i;:::-;4030:15;:40;-1:-1:-1;;;;;4105:16:31;;4081:21;4105:16;;;:7;:16;;;;;;;;:27;;;;;;;;4142:23;;;4250:3;:13;;4229:18;;;:34;4287:11;;:24;;4158:7;4287:24;:15;:24;:::i;:::-;4273:11;:38;4339:15;;:28;;4359:7;4339:28;:19;:28;:::i;:::-;4321:15;:46;4377:13;4393:54;4434:12;4393:36;4418:10;4393:20;:7;4405;4393:20;:11;:20;:::i;:::-;:24;:36;:24;:36;:::i;:::-;:40;:54;:40;:54;:::i;:::-;4377:70;-1:-1:-1;4473:1:31;4465:9;;4457:39;;;;;-1:-1:-1;;;;;4457:39:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;4524:15:31;;;;;;:6;:15;;;;;;:26;;4544:5;4524:26;:19;:26;:::i;:::-;-1:-1:-1;;;;;4506:15:31;;;;;;:6;:15;;;;;:44;;;4687:16;;;4632:34;;;4631:52;;;;;;;;:72;4623:110;;;;;-1:-1:-1;;;;;4623:110:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;4756:10;;:21;;4771:5;4756:21;:14;:21;:::i;:::-;4743:10;:34;4793:42;;;;;;;;;;;;;;4807:9;;-1:-1:-1;;;;;4793:42:31;;;;;;;;;;;;;;311:1:27;;3159:1683:31;;;;;;;;;:::o;5396:969::-;5683:6;;-1:-1:-1;;;;;5683:6:31;:19;5675:59;;;;;-1:-1:-1;;;;;5675:59:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;5752:20:31;;;;5744:54;;;;;-1:-1:-1;;;;;5744:54:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;5816:35;;;5808:106;;;;-1:-1:-1;;;;;5808:106:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5932:36;;;;5924:83;;;;-1:-1:-1;;;;;5924:83:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6018:16;:36;;;6064:20;:40;;;6114:14;:32;;;6156:16;:36;;;6202:6;:16;;-1:-1:-1;;6202:16:31;-1:-1:-1;;;;;6202:16:31;;;;;6228;:36;;;6274:16;:36;;;6320:38;6343:14;6320:22;:38::i;:::-;5396:969;;;;;;;:::o;1431:145:87:-;1489:7;1520:5;;;1543:6;;;;1535:15;;;;;658:187:27;764:1;739:13;:27;731:67;;;;;-1:-1:-1;;;;;731:67:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;808:13;:30;658:187::o;132:3392:29:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;132:3392:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;132:3392:29;;;-1:-1:-1;132:3392:29;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;",
  "source": "pragma solidity ^0.5.4;\n\nimport \"./Locking4Reputation.sol\";\n\n/**\n * @title A scheme for external locking Tokens for reputation\n */\n\ncontract ExternalLocking4Reputation is Locking4Reputation {\n\n    event Register(address indexed _beneficiary);\n\n    address public externalLockingContract;\n    string public getBalanceFuncSignature;\n\n    // locker -> bool\n    mapping(address => bool) public externalLockers;\n    //      beneficiary -> bool\n    mapping(address     => bool) public registrar;\n\n    /**\n     * @dev initialize\n     * @param _avatar the avatar to mint reputation from\n     * @param _reputationReward the total reputation this contract will reward\n     *        for the token locking\n     * @param _claimingStartTime claiming starting period time.\n     * @param _claimingEndTime the claiming end time.\n     *        claiming is disable after this time.\n     * @param _redeemEnableTime redeem enable time .\n     *        redeem reputation can be done after this time.\n     * @param _externalLockingContract the contract which lock the token.\n     * @param _getBalanceFuncSignature get balance function signature\n     *        e.g \"lockedTokenBalances(address)\"\n     */\n    function initialize(\n        Avatar _avatar,\n        uint256 _reputationReward,\n        uint256 _claimingStartTime,\n        uint256 _claimingEndTime,\n        uint256 _redeemEnableTime,\n        address _externalLockingContract,\n        string calldata _getBalanceFuncSignature,\n        bytes32 _agreementHash)\n    external\n    {\n        require(_claimingEndTime > _claimingStartTime, \"_claimingEndTime should be greater than _claimingStartTime\");\n        externalLockingContract = _externalLockingContract;\n        getBalanceFuncSignature = _getBalanceFuncSignature;\n        super._initialize(\n        _avatar,\n        _reputationReward,\n        _claimingStartTime,\n        _claimingEndTime,\n        _redeemEnableTime,\n        1,\n        _agreementHash);\n    }\n\n    /**\n     * @dev claim function\n     * @param _beneficiary the beneficiary address to claim for\n     *        if _beneficiary == 0 the claim will be for the msg.sender.\n     * @return claimId\n     */\n    function claim(address _beneficiary, bytes32 _agreementHash) public returns(bytes32) {\n        require(avatar != Avatar(0), \"should initialize first\");\n        address beneficiary;\n        if (_beneficiary == address(0)) {\n            beneficiary = msg.sender;\n        } else {\n            require(registrar[_beneficiary], \"beneficiary should be register\");\n            beneficiary = _beneficiary;\n        }\n        require(externalLockers[beneficiary] == false, \"claiming twice for the same beneficiary is not allowed\");\n        externalLockers[beneficiary] = true;\n        (bool result, bytes memory returnValue) =\n        // solhint-disable-next-line avoid-call-value,avoid-low-level-calls\n        externalLockingContract.call(abi.encodeWithSignature(getBalanceFuncSignature, beneficiary));\n        require(result, \"call to external contract should succeed\");\n        uint256 lockedAmount;\n        // solhint-disable-next-line no-inline-assembly\n        assembly {\n            lockedAmount := mload(add(returnValue, 0x20))\n        }\n        return super._lock(lockedAmount, 1, beneficiary, 1, 1, _agreementHash);\n    }\n\n   /**\n    * @dev register function\n    *      register for external locking claim\n    */\n    function register(bytes32 _agreementHash) public onlyAgree(_agreementHash) {\n        registrar[msg.sender] = true;\n        emit Register(msg.sender);\n    }\n}\n",
  "sourcePath": "@daostack/arc/contracts/schemes/ExternalLocking4Reputation.sol",
  "ast": {
    "absolutePath": "@daostack/arc/contracts/schemes/ExternalLocking4Reputation.sol",
    "exportedSymbols": {
      "ExternalLocking4Reputation": [
        4671
      ]
    },
    "id": 4672,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 4490,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".4"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:29"
      },
      {
        "absolutePath": "@daostack/arc/contracts/schemes/Locking4Reputation.sol",
        "file": "./Locking4Reputation.sol",
        "id": 4491,
        "nodeType": "ImportDirective",
        "scope": 4672,
        "sourceUnit": 5349,
        "src": "25:34:29",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 4492,
              "name": "Locking4Reputation",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 5348,
              "src": "171:18:29",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Locking4Reputation_$5348",
                "typeString": "contract Locking4Reputation"
              }
            },
            "id": 4493,
            "nodeType": "InheritanceSpecifier",
            "src": "171:18:29"
          }
        ],
        "contractDependencies": [
          4074,
          5348
        ],
        "contractKind": "contract",
        "documentation": "@title A scheme for external locking Tokens for reputation",
        "fullyImplemented": true,
        "id": 4671,
        "linearizedBaseContracts": [
          4671,
          5348,
          4074
        ],
        "name": "ExternalLocking4Reputation",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": null,
            "id": 4497,
            "name": "Register",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 4496,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4495,
                  "indexed": true,
                  "name": "_beneficiary",
                  "nodeType": "VariableDeclaration",
                  "scope": 4497,
                  "src": "212:28:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4494,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "212:7:29",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "211:30:29"
            },
            "src": "197:45:29"
          },
          {
            "constant": false,
            "id": 4499,
            "name": "externalLockingContract",
            "nodeType": "VariableDeclaration",
            "scope": 4671,
            "src": "248:38:29",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 4498,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "248:7:29",
              "stateMutability": "nonpayable",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 4501,
            "name": "getBalanceFuncSignature",
            "nodeType": "VariableDeclaration",
            "scope": 4671,
            "src": "292:37:29",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_string_storage",
              "typeString": "string"
            },
            "typeName": {
              "id": 4500,
              "name": "string",
              "nodeType": "ElementaryTypeName",
              "src": "292:6:29",
              "typeDescriptions": {
                "typeIdentifier": "t_string_storage_ptr",
                "typeString": "string"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 4505,
            "name": "externalLockers",
            "nodeType": "VariableDeclaration",
            "scope": 4671,
            "src": "358:47:29",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
              "typeString": "mapping(address => bool)"
            },
            "typeName": {
              "id": 4504,
              "keyType": {
                "id": 4502,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "366:7:29",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              },
              "nodeType": "Mapping",
              "src": "358:24:29",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                "typeString": "mapping(address => bool)"
              },
              "valueType": {
                "id": 4503,
                "name": "bool",
                "nodeType": "ElementaryTypeName",
                "src": "377:4:29",
                "typeDescriptions": {
                  "typeIdentifier": "t_bool",
                  "typeString": "bool"
                }
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 4509,
            "name": "registrar",
            "nodeType": "VariableDeclaration",
            "scope": 4671,
            "src": "443:45:29",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
              "typeString": "mapping(address => bool)"
            },
            "typeName": {
              "id": 4508,
              "keyType": {
                "id": 4506,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "451:7:29",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              },
              "nodeType": "Mapping",
              "src": "443:28:29",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                "typeString": "mapping(address => bool)"
              },
              "valueType": {
                "id": 4507,
                "name": "bool",
                "nodeType": "ElementaryTypeName",
                "src": "466:4:29",
                "typeDescriptions": {
                  "typeIdentifier": "t_bool",
                  "typeString": "bool"
                }
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 4555,
              "nodeType": "Block",
              "src": "1508:433:29",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 4531,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "id": 4529,
                          "name": "_claimingEndTime",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 4517,
                          "src": "1526:16:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": ">",
                        "rightExpression": {
                          "argumentTypes": null,
                          "id": 4530,
                          "name": "_claimingStartTime",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 4515,
                          "src": "1545:18:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "src": "1526:37:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "5f636c61696d696e67456e6454696d652073686f756c642062652067726561746572207468616e205f636c61696d696e67537461727454696d65",
                        "id": 4532,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1565:60:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_f43cd45023caad6fa78d92af28dc95821751fdd2341c795a7ce3d3a5ccfc4125",
                          "typeString": "literal_string \"_claimingEndTime should be greater than _claimingStartTime\""
                        },
                        "value": "_claimingEndTime should be greater than _claimingStartTime"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_f43cd45023caad6fa78d92af28dc95821751fdd2341c795a7ce3d3a5ccfc4125",
                          "typeString": "literal_string \"_claimingEndTime should be greater than _claimingStartTime\""
                        }
                      ],
                      "id": 4528,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23694,
                      "src": "1518:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 4533,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1518:108:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4534,
                  "nodeType": "ExpressionStatement",
                  "src": "1518:108:29"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4537,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 4535,
                      "name": "externalLockingContract",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4499,
                      "src": "1636:23:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 4536,
                      "name": "_externalLockingContract",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4521,
                      "src": "1662:24:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "1636:50:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 4538,
                  "nodeType": "ExpressionStatement",
                  "src": "1636:50:29"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4541,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 4539,
                      "name": "getBalanceFuncSignature",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4501,
                      "src": "1696:23:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_string_storage",
                        "typeString": "string storage ref"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 4540,
                      "name": "_getBalanceFuncSignature",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4523,
                      "src": "1722:24:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_string_calldata_ptr",
                        "typeString": "string calldata"
                      }
                    },
                    "src": "1696:50:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage",
                      "typeString": "string storage ref"
                    }
                  },
                  "id": 4542,
                  "nodeType": "ExpressionStatement",
                  "src": "1696:50:29"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 4546,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4511,
                        "src": "1783:7:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4547,
                        "name": "_reputationReward",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4513,
                        "src": "1800:17:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4548,
                        "name": "_claimingStartTime",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4515,
                        "src": "1827:18:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4549,
                        "name": "_claimingEndTime",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4517,
                        "src": "1855:16:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4550,
                        "name": "_redeemEnableTime",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4519,
                        "src": "1881:17:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "31",
                        "id": 4551,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1908:1:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        "value": "1"
                      },
                      {
                        "argumentTypes": null,
                        "id": 4552,
                        "name": "_agreementHash",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4525,
                        "src": "1919:14:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 4543,
                        "name": "super",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 23881,
                        "src": "1756:5:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_super$_ExternalLocking4Reputation_$4671",
                          "typeString": "contract super ExternalLocking4Reputation"
                        }
                      },
                      "id": 4545,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "_initialize",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5347,
                      "src": "1756:17:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_Avatar_$2010_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_bytes32_$returns$__$",
                        "typeString": "function (contract Avatar,uint256,uint256,uint256,uint256,uint256,bytes32)"
                      }
                    },
                    "id": 4553,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1756:178:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4554,
                  "nodeType": "ExpressionStatement",
                  "src": "1756:178:29"
                }
              ]
            },
            "documentation": "@dev initialize\n@param _avatar the avatar to mint reputation from\n@param _reputationReward the total reputation this contract will reward\n       for the token locking\n@param _claimingStartTime claiming starting period time.\n@param _claimingEndTime the claiming end time.\n       claiming is disable after this time.\n@param _redeemEnableTime redeem enable time .\n       redeem reputation can be done after this time.\n@param _externalLockingContract the contract which lock the token.\n@param _getBalanceFuncSignature get balance function signature\n       e.g \"lockedTokenBalances(address)\"",
            "id": 4556,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "initialize",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4526,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4511,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1211:14:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4510,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "1211:6:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4513,
                  "name": "_reputationReward",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1235:25:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4512,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1235:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4515,
                  "name": "_claimingStartTime",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1270:26:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4514,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1270:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4517,
                  "name": "_claimingEndTime",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1306:24:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4516,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1306:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4519,
                  "name": "_redeemEnableTime",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1340:25:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4518,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1340:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4521,
                  "name": "_externalLockingContract",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1375:32:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4520,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1375:7:29",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4523,
                  "name": "_getBalanceFuncSignature",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1417:40:29",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_calldata_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 4522,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "1417:6:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4525,
                  "name": "_agreementHash",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1467:22:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 4524,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1467:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1201:289:29"
            },
            "returnParameters": {
              "id": 4527,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1508:0:29"
            },
            "scope": 4671,
            "src": "1182:759:29",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 4648,
              "nodeType": "Block",
              "src": "2235:1036:29",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        },
                        "id": 4570,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "id": 4566,
                          "name": "avatar",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 4923,
                          "src": "2253:6:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Avatar_$2010",
                            "typeString": "contract Avatar"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "!=",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 4568,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "2270:1:29",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 4567,
                            "name": "Avatar",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2010,
                            "src": "2263:6:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_contract$_Avatar_$2010_$",
                              "typeString": "type(contract Avatar)"
                            }
                          },
                          "id": 4569,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "2263:9:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Avatar_$2010",
                            "typeString": "contract Avatar"
                          }
                        },
                        "src": "2253:19:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "73686f756c6420696e697469616c697a65206669727374",
                        "id": 4571,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2274:25:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_561d5bddf15c4f8c2230fcefd793337c8655660b728b0387ea5593dd307089fa",
                          "typeString": "literal_string \"should initialize first\""
                        },
                        "value": "should initialize first"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_561d5bddf15c4f8c2230fcefd793337c8655660b728b0387ea5593dd307089fa",
                          "typeString": "literal_string \"should initialize first\""
                        }
                      ],
                      "id": 4565,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23694,
                      "src": "2245:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 4572,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2245:55:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4573,
                  "nodeType": "ExpressionStatement",
                  "src": "2245:55:29"
                },
                {
                  "assignments": [
                    4575
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 4575,
                      "name": "beneficiary",
                      "nodeType": "VariableDeclaration",
                      "scope": 4648,
                      "src": "2310:19:29",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      },
                      "typeName": {
                        "id": 4574,
                        "name": "address",
                        "nodeType": "ElementaryTypeName",
                        "src": "2310:7:29",
                        "stateMutability": "nonpayable",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 4576,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "2310:19:29"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    },
                    "id": 4581,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 4577,
                      "name": "_beneficiary",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4558,
                      "src": "2343:12:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "hexValue": "30",
                          "id": 4579,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "number",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "2367:1:29",
                          "subdenomination": null,
                          "typeDescriptions": {
                            "typeIdentifier": "t_rational_0_by_1",
                            "typeString": "int_const 0"
                          },
                          "value": "0"
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_rational_0_by_1",
                            "typeString": "int_const 0"
                          }
                        ],
                        "id": 4578,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "2359:7:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_address_$",
                          "typeString": "type(address)"
                        },
                        "typeName": "address"
                      },
                      "id": 4580,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "2359:10:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address_payable",
                        "typeString": "address payable"
                      }
                    },
                    "src": "2343:26:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "id": 4599,
                    "nodeType": "Block",
                    "src": "2426:131:29",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 4589,
                                "name": "registrar",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 4509,
                                "src": "2448:9:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                                  "typeString": "mapping(address => bool)"
                                }
                              },
                              "id": 4591,
                              "indexExpression": {
                                "argumentTypes": null,
                                "id": 4590,
                                "name": "_beneficiary",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 4558,
                                "src": "2458:12:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "2448:23:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            },
                            {
                              "argumentTypes": null,
                              "hexValue": "62656e65666963696172792073686f756c64206265207265676973746572",
                              "id": 4592,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "2473:32:29",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_ea7a1e9fa31cef2874e739c66382dac4b84526b8b6a2427afa00104ff337dead",
                                "typeString": "literal_string \"beneficiary should be register\""
                              },
                              "value": "beneficiary should be register"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              },
                              {
                                "typeIdentifier": "t_stringliteral_ea7a1e9fa31cef2874e739c66382dac4b84526b8b6a2427afa00104ff337dead",
                                "typeString": "literal_string \"beneficiary should be register\""
                              }
                            ],
                            "id": 4588,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              23693,
                              23694
                            ],
                            "referencedDeclaration": 23694,
                            "src": "2440:7:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                              "typeString": "function (bool,string memory) pure"
                            }
                          },
                          "id": 4593,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "2440:66:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 4594,
                        "nodeType": "ExpressionStatement",
                        "src": "2440:66:29"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 4597,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 4595,
                            "name": "beneficiary",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4575,
                            "src": "2520:11:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "id": 4596,
                            "name": "_beneficiary",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4558,
                            "src": "2534:12:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "src": "2520:26:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "id": 4598,
                        "nodeType": "ExpressionStatement",
                        "src": "2520:26:29"
                      }
                    ]
                  },
                  "id": 4600,
                  "nodeType": "IfStatement",
                  "src": "2339:218:29",
                  "trueBody": {
                    "id": 4587,
                    "nodeType": "Block",
                    "src": "2371:49:29",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 4585,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 4582,
                            "name": "beneficiary",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4575,
                            "src": "2385:11:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "id": 4583,
                              "name": "msg",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 23690,
                              "src": "2399:3:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_magic_message",
                                "typeString": "msg"
                              }
                            },
                            "id": 4584,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "sender",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "2399:10:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address_payable",
                              "typeString": "address payable"
                            }
                          },
                          "src": "2385:24:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "id": 4586,
                        "nodeType": "ExpressionStatement",
                        "src": "2385:24:29"
                      }
                    ]
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "id": 4606,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "baseExpression": {
                            "argumentTypes": null,
                            "id": 4602,
                            "name": "externalLockers",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4505,
                            "src": "2574:15:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                              "typeString": "mapping(address => bool)"
                            }
                          },
                          "id": 4604,
                          "indexExpression": {
                            "argumentTypes": null,
                            "id": 4603,
                            "name": "beneficiary",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4575,
                            "src": "2590:11:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "2574:28:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "hexValue": "66616c7365",
                          "id": 4605,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "bool",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "2606:5:29",
                          "subdenomination": null,
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          },
                          "value": "false"
                        },
                        "src": "2574:37:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "636c61696d696e6720747769636520666f72207468652073616d652062656e6566696369617279206973206e6f7420616c6c6f776564",
                        "id": 4607,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2613:56:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_c797443103e3b630ad9d7b3dbf1b4a67aea7116a7770e00d639804b7458fe5bd",
                          "typeString": "literal_string \"claiming twice for the same beneficiary is not allowed\""
                        },
                        "value": "claiming twice for the same beneficiary is not allowed"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_c797443103e3b630ad9d7b3dbf1b4a67aea7116a7770e00d639804b7458fe5bd",
                          "typeString": "literal_string \"claiming twice for the same beneficiary is not allowed\""
                        }
                      ],
                      "id": 4601,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23694,
                      "src": "2566:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 4608,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2566:104:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4609,
                  "nodeType": "ExpressionStatement",
                  "src": "2566:104:29"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4614,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 4610,
                        "name": "externalLockers",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4505,
                        "src": "2680:15:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                          "typeString": "mapping(address => bool)"
                        }
                      },
                      "id": 4612,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 4611,
                        "name": "beneficiary",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4575,
                        "src": "2696:11:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "2680:28:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "hexValue": "74727565",
                      "id": 4613,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "bool",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "2711:4:29",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "value": "true"
                    },
                    "src": "2680:35:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 4615,
                  "nodeType": "ExpressionStatement",
                  "src": "2680:35:29"
                },
                {
                  "assignments": [
                    4617,
                    4619
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 4617,
                      "name": "result",
                      "nodeType": "VariableDeclaration",
                      "scope": 4648,
                      "src": "2726:11:29",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "typeName": {
                        "id": 4616,
                        "name": "bool",
                        "nodeType": "ElementaryTypeName",
                        "src": "2726:4:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    },
                    {
                      "constant": false,
                      "id": 4619,
                      "name": "returnValue",
                      "nodeType": "VariableDeclaration",
                      "scope": 4648,
                      "src": "2739:24:29",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes_memory_ptr",
                        "typeString": "bytes"
                      },
                      "typeName": {
                        "id": 4618,
                        "name": "bytes",
                        "nodeType": "ElementaryTypeName",
                        "src": "2739:5:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_storage_ptr",
                          "typeString": "bytes"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 4628,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 4624,
                            "name": "getBalanceFuncSignature",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4501,
                            "src": "2904:23:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_string_storage",
                              "typeString": "string storage ref"
                            }
                          },
                          {
                            "argumentTypes": null,
                            "id": 4625,
                            "name": "beneficiary",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4575,
                            "src": "2929:11:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_string_storage",
                              "typeString": "string storage ref"
                            },
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "expression": {
                            "argumentTypes": null,
                            "id": 4622,
                            "name": "abi",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 23677,
                            "src": "2880:3:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_abi",
                              "typeString": "abi"
                            }
                          },
                          "id": 4623,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "encodeWithSignature",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "2880:23:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$",
                            "typeString": "function (string memory) pure returns (bytes memory)"
                          }
                        },
                        "id": 4626,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2880:61:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 4620,
                        "name": "externalLockingContract",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4499,
                        "src": "2851:23:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "id": 4621,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "call",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": null,
                      "src": "2851:28:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$",
                        "typeString": "function (bytes memory) payable returns (bool,bytes memory)"
                      }
                    },
                    "id": 4627,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2851:91:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_bool_$_t_bytes_memory_ptr_$",
                      "typeString": "tuple(bool,bytes memory)"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "2725:217:29"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 4630,
                        "name": "result",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4617,
                        "src": "2960:6:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "63616c6c20746f2065787465726e616c20636f6e74726163742073686f756c642073756363656564",
                        "id": 4631,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2968:42:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_0aee880375833f4119d9f67d7e91d1f55cd11578de475f8f1242b127c621e305",
                          "typeString": "literal_string \"call to external contract should succeed\""
                        },
                        "value": "call to external contract should succeed"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_0aee880375833f4119d9f67d7e91d1f55cd11578de475f8f1242b127c621e305",
                          "typeString": "literal_string \"call to external contract should succeed\""
                        }
                      ],
                      "id": 4629,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23694,
                      "src": "2952:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 4632,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2952:59:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4633,
                  "nodeType": "ExpressionStatement",
                  "src": "2952:59:29"
                },
                {
                  "assignments": [
                    4635
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 4635,
                      "name": "lockedAmount",
                      "nodeType": "VariableDeclaration",
                      "scope": 4648,
                      "src": "3021:20:29",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 4634,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "3021:7:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 4636,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "3021:20:29"
                },
                {
                  "externalReferences": [
                    {
                      "lockedAmount": {
                        "declaration": 4635,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "3130:12:29",
                        "valueSize": 1
                      }
                    },
                    {
                      "returnValue": {
                        "declaration": 4619,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "3156:11:29",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 4637,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    lockedAmount := mload(add(returnValue, 0x20))\n}",
                  "src": "3107:93:29"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 4640,
                        "name": "lockedAmount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4635,
                        "src": "3213:12:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "31",
                        "id": 4641,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "3227:1:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        "value": "1"
                      },
                      {
                        "argumentTypes": null,
                        "id": 4642,
                        "name": "beneficiary",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4575,
                        "src": "3230:11:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "31",
                        "id": 4643,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "3243:1:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        "value": "1"
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "31",
                        "id": 4644,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "3246:1:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        "value": "1"
                      },
                      {
                        "argumentTypes": null,
                        "id": 4645,
                        "name": "_agreementHash",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4560,
                        "src": "3249:14:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 4638,
                        "name": "super",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 23881,
                        "src": "3201:5:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_super$_ExternalLocking4Reputation_$4671",
                          "typeString": "contract super ExternalLocking4Reputation"
                        }
                      },
                      "id": 4639,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "_lock",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5263,
                      "src": "3201:11:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$_t_address_$_t_uint256_$_t_uint256_$_t_bytes32_$returns$_t_bytes32_$",
                        "typeString": "function (uint256,uint256,address,uint256,uint256,bytes32) returns (bytes32)"
                      }
                    },
                    "id": 4646,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3201:63:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 4564,
                  "id": 4647,
                  "nodeType": "Return",
                  "src": "3194:70:29"
                }
              ]
            },
            "documentation": "@dev claim function\n@param _beneficiary the beneficiary address to claim for\n       if _beneficiary == 0 the claim will be for the msg.sender.\n@return claimId",
            "id": 4649,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "claim",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4561,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4558,
                  "name": "_beneficiary",
                  "nodeType": "VariableDeclaration",
                  "scope": 4649,
                  "src": "2165:20:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4557,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2165:7:29",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4560,
                  "name": "_agreementHash",
                  "nodeType": "VariableDeclaration",
                  "scope": 4649,
                  "src": "2187:22:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 4559,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2187:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2164:46:29"
            },
            "returnParameters": {
              "id": 4564,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4563,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 4649,
                  "src": "2226:7:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 4562,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2226:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2225:9:29"
            },
            "scope": 4671,
            "src": "2150:1121:29",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 4669,
              "nodeType": "Block",
              "src": "3442:80:29",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4662,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 4657,
                        "name": "registrar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4509,
                        "src": "3452:9:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                          "typeString": "mapping(address => bool)"
                        }
                      },
                      "id": 4660,
                      "indexExpression": {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 4658,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "3462:3:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 4659,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "3462:10:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "3452:21:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "hexValue": "74727565",
                      "id": 4661,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "bool",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "3476:4:29",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "value": "true"
                    },
                    "src": "3452:28:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 4663,
                  "nodeType": "ExpressionStatement",
                  "src": "3452:28:29"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 4665,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "3504:3:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 4666,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "3504:10:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      ],
                      "id": 4664,
                      "name": "Register",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4497,
                      "src": "3495:8:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 4667,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3495:20:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4668,
                  "nodeType": "EmitStatement",
                  "src": "3490:25:29"
                }
              ]
            },
            "documentation": "@dev register function\n     register for external locking claim",
            "id": 4670,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 4654,
                    "name": "_agreementHash",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 4651,
                    "src": "3426:14:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  }
                ],
                "id": 4655,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 4653,
                  "name": "onlyAgree",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 4046,
                  "src": "3416:9:29",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "3416:25:29"
              }
            ],
            "name": "register",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4652,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4651,
                  "name": "_agreementHash",
                  "nodeType": "VariableDeclaration",
                  "scope": 4670,
                  "src": "3385:22:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 4650,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "3385:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "3384:24:29"
            },
            "returnParameters": {
              "id": 4656,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3442:0:29"
            },
            "scope": 4671,
            "src": "3367:155:29",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 4672,
        "src": "132:3392:29"
      }
    ],
    "src": "0:3525:29"
  },
  "legacyAST": {
    "absolutePath": "@daostack/arc/contracts/schemes/ExternalLocking4Reputation.sol",
    "exportedSymbols": {
      "ExternalLocking4Reputation": [
        4671
      ]
    },
    "id": 4672,
    "nodeType": "SourceUnit",
    "nodes": [
      {
        "id": 4490,
        "literals": [
          "solidity",
          "^",
          "0.5",
          ".4"
        ],
        "nodeType": "PragmaDirective",
        "src": "0:23:29"
      },
      {
        "absolutePath": "@daostack/arc/contracts/schemes/Locking4Reputation.sol",
        "file": "./Locking4Reputation.sol",
        "id": 4491,
        "nodeType": "ImportDirective",
        "scope": 4672,
        "sourceUnit": 5349,
        "src": "25:34:29",
        "symbolAliases": [],
        "unitAlias": ""
      },
      {
        "baseContracts": [
          {
            "arguments": null,
            "baseName": {
              "contractScope": null,
              "id": 4492,
              "name": "Locking4Reputation",
              "nodeType": "UserDefinedTypeName",
              "referencedDeclaration": 5348,
              "src": "171:18:29",
              "typeDescriptions": {
                "typeIdentifier": "t_contract$_Locking4Reputation_$5348",
                "typeString": "contract Locking4Reputation"
              }
            },
            "id": 4493,
            "nodeType": "InheritanceSpecifier",
            "src": "171:18:29"
          }
        ],
        "contractDependencies": [
          4074,
          5348
        ],
        "contractKind": "contract",
        "documentation": "@title A scheme for external locking Tokens for reputation",
        "fullyImplemented": true,
        "id": 4671,
        "linearizedBaseContracts": [
          4671,
          5348,
          4074
        ],
        "name": "ExternalLocking4Reputation",
        "nodeType": "ContractDefinition",
        "nodes": [
          {
            "anonymous": false,
            "documentation": null,
            "id": 4497,
            "name": "Register",
            "nodeType": "EventDefinition",
            "parameters": {
              "id": 4496,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4495,
                  "indexed": true,
                  "name": "_beneficiary",
                  "nodeType": "VariableDeclaration",
                  "scope": 4497,
                  "src": "212:28:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4494,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "212:7:29",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "211:30:29"
            },
            "src": "197:45:29"
          },
          {
            "constant": false,
            "id": 4499,
            "name": "externalLockingContract",
            "nodeType": "VariableDeclaration",
            "scope": 4671,
            "src": "248:38:29",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_address",
              "typeString": "address"
            },
            "typeName": {
              "id": 4498,
              "name": "address",
              "nodeType": "ElementaryTypeName",
              "src": "248:7:29",
              "stateMutability": "nonpayable",
              "typeDescriptions": {
                "typeIdentifier": "t_address",
                "typeString": "address"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 4501,
            "name": "getBalanceFuncSignature",
            "nodeType": "VariableDeclaration",
            "scope": 4671,
            "src": "292:37:29",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_string_storage",
              "typeString": "string"
            },
            "typeName": {
              "id": 4500,
              "name": "string",
              "nodeType": "ElementaryTypeName",
              "src": "292:6:29",
              "typeDescriptions": {
                "typeIdentifier": "t_string_storage_ptr",
                "typeString": "string"
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 4505,
            "name": "externalLockers",
            "nodeType": "VariableDeclaration",
            "scope": 4671,
            "src": "358:47:29",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
              "typeString": "mapping(address => bool)"
            },
            "typeName": {
              "id": 4504,
              "keyType": {
                "id": 4502,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "366:7:29",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              },
              "nodeType": "Mapping",
              "src": "358:24:29",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                "typeString": "mapping(address => bool)"
              },
              "valueType": {
                "id": 4503,
                "name": "bool",
                "nodeType": "ElementaryTypeName",
                "src": "377:4:29",
                "typeDescriptions": {
                  "typeIdentifier": "t_bool",
                  "typeString": "bool"
                }
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "constant": false,
            "id": 4509,
            "name": "registrar",
            "nodeType": "VariableDeclaration",
            "scope": 4671,
            "src": "443:45:29",
            "stateVariable": true,
            "storageLocation": "default",
            "typeDescriptions": {
              "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
              "typeString": "mapping(address => bool)"
            },
            "typeName": {
              "id": 4508,
              "keyType": {
                "id": 4506,
                "name": "address",
                "nodeType": "ElementaryTypeName",
                "src": "451:7:29",
                "typeDescriptions": {
                  "typeIdentifier": "t_address",
                  "typeString": "address"
                }
              },
              "nodeType": "Mapping",
              "src": "443:28:29",
              "typeDescriptions": {
                "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                "typeString": "mapping(address => bool)"
              },
              "valueType": {
                "id": 4507,
                "name": "bool",
                "nodeType": "ElementaryTypeName",
                "src": "466:4:29",
                "typeDescriptions": {
                  "typeIdentifier": "t_bool",
                  "typeString": "bool"
                }
              }
            },
            "value": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 4555,
              "nodeType": "Block",
              "src": "1508:433:29",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        "id": 4531,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "id": 4529,
                          "name": "_claimingEndTime",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 4517,
                          "src": "1526:16:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": ">",
                        "rightExpression": {
                          "argumentTypes": null,
                          "id": 4530,
                          "name": "_claimingStartTime",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 4515,
                          "src": "1545:18:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_uint256",
                            "typeString": "uint256"
                          }
                        },
                        "src": "1526:37:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "5f636c61696d696e67456e6454696d652073686f756c642062652067726561746572207468616e205f636c61696d696e67537461727454696d65",
                        "id": 4532,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1565:60:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_f43cd45023caad6fa78d92af28dc95821751fdd2341c795a7ce3d3a5ccfc4125",
                          "typeString": "literal_string \"_claimingEndTime should be greater than _claimingStartTime\""
                        },
                        "value": "_claimingEndTime should be greater than _claimingStartTime"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_f43cd45023caad6fa78d92af28dc95821751fdd2341c795a7ce3d3a5ccfc4125",
                          "typeString": "literal_string \"_claimingEndTime should be greater than _claimingStartTime\""
                        }
                      ],
                      "id": 4528,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23694,
                      "src": "1518:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 4533,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1518:108:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4534,
                  "nodeType": "ExpressionStatement",
                  "src": "1518:108:29"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4537,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 4535,
                      "name": "externalLockingContract",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4499,
                      "src": "1636:23:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 4536,
                      "name": "_externalLockingContract",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4521,
                      "src": "1662:24:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "src": "1636:50:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "id": 4538,
                  "nodeType": "ExpressionStatement",
                  "src": "1636:50:29"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4541,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "id": 4539,
                      "name": "getBalanceFuncSignature",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4501,
                      "src": "1696:23:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_string_storage",
                        "typeString": "string storage ref"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "id": 4540,
                      "name": "_getBalanceFuncSignature",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4523,
                      "src": "1722:24:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_string_calldata_ptr",
                        "typeString": "string calldata"
                      }
                    },
                    "src": "1696:50:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage",
                      "typeString": "string storage ref"
                    }
                  },
                  "id": 4542,
                  "nodeType": "ExpressionStatement",
                  "src": "1696:50:29"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 4546,
                        "name": "_avatar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4511,
                        "src": "1783:7:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4547,
                        "name": "_reputationReward",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4513,
                        "src": "1800:17:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4548,
                        "name": "_claimingStartTime",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4515,
                        "src": "1827:18:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4549,
                        "name": "_claimingEndTime",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4517,
                        "src": "1855:16:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "id": 4550,
                        "name": "_redeemEnableTime",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4519,
                        "src": "1881:17:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "31",
                        "id": 4551,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "1908:1:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        "value": "1"
                      },
                      {
                        "argumentTypes": null,
                        "id": 4552,
                        "name": "_agreementHash",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4525,
                        "src": "1919:14:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 4543,
                        "name": "super",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 23881,
                        "src": "1756:5:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_super$_ExternalLocking4Reputation_$4671",
                          "typeString": "contract super ExternalLocking4Reputation"
                        }
                      },
                      "id": 4545,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "_initialize",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5347,
                      "src": "1756:17:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_contract$_Avatar_$2010_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_uint256_$_t_bytes32_$returns$__$",
                        "typeString": "function (contract Avatar,uint256,uint256,uint256,uint256,uint256,bytes32)"
                      }
                    },
                    "id": 4553,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "1756:178:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4554,
                  "nodeType": "ExpressionStatement",
                  "src": "1756:178:29"
                }
              ]
            },
            "documentation": "@dev initialize\n@param _avatar the avatar to mint reputation from\n@param _reputationReward the total reputation this contract will reward\n       for the token locking\n@param _claimingStartTime claiming starting period time.\n@param _claimingEndTime the claiming end time.\n       claiming is disable after this time.\n@param _redeemEnableTime redeem enable time .\n       redeem reputation can be done after this time.\n@param _externalLockingContract the contract which lock the token.\n@param _getBalanceFuncSignature get balance function signature\n       e.g \"lockedTokenBalances(address)\"",
            "id": 4556,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "initialize",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4526,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4511,
                  "name": "_avatar",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1211:14:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_contract$_Avatar_$2010",
                    "typeString": "contract Avatar"
                  },
                  "typeName": {
                    "contractScope": null,
                    "id": 4510,
                    "name": "Avatar",
                    "nodeType": "UserDefinedTypeName",
                    "referencedDeclaration": 2010,
                    "src": "1211:6:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_contract$_Avatar_$2010",
                      "typeString": "contract Avatar"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4513,
                  "name": "_reputationReward",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1235:25:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4512,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1235:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4515,
                  "name": "_claimingStartTime",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1270:26:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4514,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1270:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4517,
                  "name": "_claimingEndTime",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1306:24:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4516,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1306:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4519,
                  "name": "_redeemEnableTime",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1340:25:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_uint256",
                    "typeString": "uint256"
                  },
                  "typeName": {
                    "id": 4518,
                    "name": "uint256",
                    "nodeType": "ElementaryTypeName",
                    "src": "1340:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_uint256",
                      "typeString": "uint256"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4521,
                  "name": "_externalLockingContract",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1375:32:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4520,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "1375:7:29",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4523,
                  "name": "_getBalanceFuncSignature",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1417:40:29",
                  "stateVariable": false,
                  "storageLocation": "calldata",
                  "typeDescriptions": {
                    "typeIdentifier": "t_string_calldata_ptr",
                    "typeString": "string"
                  },
                  "typeName": {
                    "id": 4522,
                    "name": "string",
                    "nodeType": "ElementaryTypeName",
                    "src": "1417:6:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_string_storage_ptr",
                      "typeString": "string"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4525,
                  "name": "_agreementHash",
                  "nodeType": "VariableDeclaration",
                  "scope": 4556,
                  "src": "1467:22:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 4524,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "1467:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "1201:289:29"
            },
            "returnParameters": {
              "id": 4527,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "1508:0:29"
            },
            "scope": 4671,
            "src": "1182:759:29",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "external"
          },
          {
            "body": {
              "id": 4648,
              "nodeType": "Block",
              "src": "2235:1036:29",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_contract$_Avatar_$2010",
                          "typeString": "contract Avatar"
                        },
                        "id": 4570,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "id": 4566,
                          "name": "avatar",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 4923,
                          "src": "2253:6:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Avatar_$2010",
                            "typeString": "contract Avatar"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "!=",
                        "rightExpression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "hexValue": "30",
                              "id": 4568,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "number",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "2270:1:29",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              },
                              "value": "0"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_rational_0_by_1",
                                "typeString": "int_const 0"
                              }
                            ],
                            "id": 4567,
                            "name": "Avatar",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 2010,
                            "src": "2263:6:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_type$_t_contract$_Avatar_$2010_$",
                              "typeString": "type(contract Avatar)"
                            }
                          },
                          "id": 4569,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "typeConversion",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "2263:9:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_contract$_Avatar_$2010",
                            "typeString": "contract Avatar"
                          }
                        },
                        "src": "2253:19:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "73686f756c6420696e697469616c697a65206669727374",
                        "id": 4571,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2274:25:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_561d5bddf15c4f8c2230fcefd793337c8655660b728b0387ea5593dd307089fa",
                          "typeString": "literal_string \"should initialize first\""
                        },
                        "value": "should initialize first"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_561d5bddf15c4f8c2230fcefd793337c8655660b728b0387ea5593dd307089fa",
                          "typeString": "literal_string \"should initialize first\""
                        }
                      ],
                      "id": 4565,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23694,
                      "src": "2245:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 4572,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2245:55:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4573,
                  "nodeType": "ExpressionStatement",
                  "src": "2245:55:29"
                },
                {
                  "assignments": [
                    4575
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 4575,
                      "name": "beneficiary",
                      "nodeType": "VariableDeclaration",
                      "scope": 4648,
                      "src": "2310:19:29",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      },
                      "typeName": {
                        "id": 4574,
                        "name": "address",
                        "nodeType": "ElementaryTypeName",
                        "src": "2310:7:29",
                        "stateMutability": "nonpayable",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 4576,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "2310:19:29"
                },
                {
                  "condition": {
                    "argumentTypes": null,
                    "commonType": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    },
                    "id": 4581,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftExpression": {
                      "argumentTypes": null,
                      "id": 4577,
                      "name": "_beneficiary",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4558,
                      "src": "2343:12:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address",
                        "typeString": "address"
                      }
                    },
                    "nodeType": "BinaryOperation",
                    "operator": "==",
                    "rightExpression": {
                      "argumentTypes": null,
                      "arguments": [
                        {
                          "argumentTypes": null,
                          "hexValue": "30",
                          "id": 4579,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "number",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "2367:1:29",
                          "subdenomination": null,
                          "typeDescriptions": {
                            "typeIdentifier": "t_rational_0_by_1",
                            "typeString": "int_const 0"
                          },
                          "value": "0"
                        }
                      ],
                      "expression": {
                        "argumentTypes": [
                          {
                            "typeIdentifier": "t_rational_0_by_1",
                            "typeString": "int_const 0"
                          }
                        ],
                        "id": 4578,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "lValueRequested": false,
                        "nodeType": "ElementaryTypeNameExpression",
                        "src": "2359:7:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_type$_t_address_$",
                          "typeString": "type(address)"
                        },
                        "typeName": "address"
                      },
                      "id": 4580,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "typeConversion",
                      "lValueRequested": false,
                      "names": [],
                      "nodeType": "FunctionCall",
                      "src": "2359:10:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_address_payable",
                        "typeString": "address payable"
                      }
                    },
                    "src": "2343:26:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "falseBody": {
                    "id": 4599,
                    "nodeType": "Block",
                    "src": "2426:131:29",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "arguments": [
                            {
                              "argumentTypes": null,
                              "baseExpression": {
                                "argumentTypes": null,
                                "id": 4589,
                                "name": "registrar",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 4509,
                                "src": "2448:9:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                                  "typeString": "mapping(address => bool)"
                                }
                              },
                              "id": 4591,
                              "indexExpression": {
                                "argumentTypes": null,
                                "id": 4590,
                                "name": "_beneficiary",
                                "nodeType": "Identifier",
                                "overloadedDeclarations": [],
                                "referencedDeclaration": 4558,
                                "src": "2458:12:29",
                                "typeDescriptions": {
                                  "typeIdentifier": "t_address",
                                  "typeString": "address"
                                }
                              },
                              "isConstant": false,
                              "isLValue": true,
                              "isPure": false,
                              "lValueRequested": false,
                              "nodeType": "IndexAccess",
                              "src": "2448:23:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              }
                            },
                            {
                              "argumentTypes": null,
                              "hexValue": "62656e65666963696172792073686f756c64206265207265676973746572",
                              "id": 4592,
                              "isConstant": false,
                              "isLValue": false,
                              "isPure": true,
                              "kind": "string",
                              "lValueRequested": false,
                              "nodeType": "Literal",
                              "src": "2473:32:29",
                              "subdenomination": null,
                              "typeDescriptions": {
                                "typeIdentifier": "t_stringliteral_ea7a1e9fa31cef2874e739c66382dac4b84526b8b6a2427afa00104ff337dead",
                                "typeString": "literal_string \"beneficiary should be register\""
                              },
                              "value": "beneficiary should be register"
                            }
                          ],
                          "expression": {
                            "argumentTypes": [
                              {
                                "typeIdentifier": "t_bool",
                                "typeString": "bool"
                              },
                              {
                                "typeIdentifier": "t_stringliteral_ea7a1e9fa31cef2874e739c66382dac4b84526b8b6a2427afa00104ff337dead",
                                "typeString": "literal_string \"beneficiary should be register\""
                              }
                            ],
                            "id": 4588,
                            "name": "require",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [
                              23693,
                              23694
                            ],
                            "referencedDeclaration": 23694,
                            "src": "2440:7:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                              "typeString": "function (bool,string memory) pure"
                            }
                          },
                          "id": 4593,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "kind": "functionCall",
                          "lValueRequested": false,
                          "names": [],
                          "nodeType": "FunctionCall",
                          "src": "2440:66:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_tuple$__$",
                            "typeString": "tuple()"
                          }
                        },
                        "id": 4594,
                        "nodeType": "ExpressionStatement",
                        "src": "2440:66:29"
                      },
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 4597,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 4595,
                            "name": "beneficiary",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4575,
                            "src": "2520:11:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "id": 4596,
                            "name": "_beneficiary",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4558,
                            "src": "2534:12:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "src": "2520:26:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "id": 4598,
                        "nodeType": "ExpressionStatement",
                        "src": "2520:26:29"
                      }
                    ]
                  },
                  "id": 4600,
                  "nodeType": "IfStatement",
                  "src": "2339:218:29",
                  "trueBody": {
                    "id": 4587,
                    "nodeType": "Block",
                    "src": "2371:49:29",
                    "statements": [
                      {
                        "expression": {
                          "argumentTypes": null,
                          "id": 4585,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": false,
                          "lValueRequested": false,
                          "leftHandSide": {
                            "argumentTypes": null,
                            "id": 4582,
                            "name": "beneficiary",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4575,
                            "src": "2385:11:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "nodeType": "Assignment",
                          "operator": "=",
                          "rightHandSide": {
                            "argumentTypes": null,
                            "expression": {
                              "argumentTypes": null,
                              "id": 4583,
                              "name": "msg",
                              "nodeType": "Identifier",
                              "overloadedDeclarations": [],
                              "referencedDeclaration": 23690,
                              "src": "2399:3:29",
                              "typeDescriptions": {
                                "typeIdentifier": "t_magic_message",
                                "typeString": "msg"
                              }
                            },
                            "id": 4584,
                            "isConstant": false,
                            "isLValue": false,
                            "isPure": false,
                            "lValueRequested": false,
                            "memberName": "sender",
                            "nodeType": "MemberAccess",
                            "referencedDeclaration": null,
                            "src": "2399:10:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address_payable",
                              "typeString": "address payable"
                            }
                          },
                          "src": "2385:24:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_address",
                            "typeString": "address"
                          }
                        },
                        "id": 4586,
                        "nodeType": "ExpressionStatement",
                        "src": "2385:24:29"
                      }
                    ]
                  }
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "commonType": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        "id": 4606,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "leftExpression": {
                          "argumentTypes": null,
                          "baseExpression": {
                            "argumentTypes": null,
                            "id": 4602,
                            "name": "externalLockers",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4505,
                            "src": "2574:15:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                              "typeString": "mapping(address => bool)"
                            }
                          },
                          "id": 4604,
                          "indexExpression": {
                            "argumentTypes": null,
                            "id": 4603,
                            "name": "beneficiary",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4575,
                            "src": "2590:11:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          },
                          "isConstant": false,
                          "isLValue": true,
                          "isPure": false,
                          "lValueRequested": false,
                          "nodeType": "IndexAccess",
                          "src": "2574:28:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          }
                        },
                        "nodeType": "BinaryOperation",
                        "operator": "==",
                        "rightExpression": {
                          "argumentTypes": null,
                          "hexValue": "66616c7365",
                          "id": 4605,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "kind": "bool",
                          "lValueRequested": false,
                          "nodeType": "Literal",
                          "src": "2606:5:29",
                          "subdenomination": null,
                          "typeDescriptions": {
                            "typeIdentifier": "t_bool",
                            "typeString": "bool"
                          },
                          "value": "false"
                        },
                        "src": "2574:37:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "636c61696d696e6720747769636520666f72207468652073616d652062656e6566696369617279206973206e6f7420616c6c6f776564",
                        "id": 4607,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2613:56:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_c797443103e3b630ad9d7b3dbf1b4a67aea7116a7770e00d639804b7458fe5bd",
                          "typeString": "literal_string \"claiming twice for the same beneficiary is not allowed\""
                        },
                        "value": "claiming twice for the same beneficiary is not allowed"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_c797443103e3b630ad9d7b3dbf1b4a67aea7116a7770e00d639804b7458fe5bd",
                          "typeString": "literal_string \"claiming twice for the same beneficiary is not allowed\""
                        }
                      ],
                      "id": 4601,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23694,
                      "src": "2566:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 4608,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2566:104:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4609,
                  "nodeType": "ExpressionStatement",
                  "src": "2566:104:29"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4614,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 4610,
                        "name": "externalLockers",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4505,
                        "src": "2680:15:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                          "typeString": "mapping(address => bool)"
                        }
                      },
                      "id": 4612,
                      "indexExpression": {
                        "argumentTypes": null,
                        "id": 4611,
                        "name": "beneficiary",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4575,
                        "src": "2696:11:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "2680:28:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "hexValue": "74727565",
                      "id": 4613,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "bool",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "2711:4:29",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "value": "true"
                    },
                    "src": "2680:35:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 4615,
                  "nodeType": "ExpressionStatement",
                  "src": "2680:35:29"
                },
                {
                  "assignments": [
                    4617,
                    4619
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 4617,
                      "name": "result",
                      "nodeType": "VariableDeclaration",
                      "scope": 4648,
                      "src": "2726:11:29",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "typeName": {
                        "id": 4616,
                        "name": "bool",
                        "nodeType": "ElementaryTypeName",
                        "src": "2726:4:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    },
                    {
                      "constant": false,
                      "id": 4619,
                      "name": "returnValue",
                      "nodeType": "VariableDeclaration",
                      "scope": 4648,
                      "src": "2739:24:29",
                      "stateVariable": false,
                      "storageLocation": "memory",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bytes_memory_ptr",
                        "typeString": "bytes"
                      },
                      "typeName": {
                        "id": 4618,
                        "name": "bytes",
                        "nodeType": "ElementaryTypeName",
                        "src": "2739:5:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_storage_ptr",
                          "typeString": "bytes"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 4628,
                  "initialValue": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "arguments": [
                          {
                            "argumentTypes": null,
                            "id": 4624,
                            "name": "getBalanceFuncSignature",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4501,
                            "src": "2904:23:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_string_storage",
                              "typeString": "string storage ref"
                            }
                          },
                          {
                            "argumentTypes": null,
                            "id": 4625,
                            "name": "beneficiary",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 4575,
                            "src": "2929:11:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          }
                        ],
                        "expression": {
                          "argumentTypes": [
                            {
                              "typeIdentifier": "t_string_storage",
                              "typeString": "string storage ref"
                            },
                            {
                              "typeIdentifier": "t_address",
                              "typeString": "address"
                            }
                          ],
                          "expression": {
                            "argumentTypes": null,
                            "id": 4622,
                            "name": "abi",
                            "nodeType": "Identifier",
                            "overloadedDeclarations": [],
                            "referencedDeclaration": 23677,
                            "src": "2880:3:29",
                            "typeDescriptions": {
                              "typeIdentifier": "t_magic_abi",
                              "typeString": "abi"
                            }
                          },
                          "id": 4623,
                          "isConstant": false,
                          "isLValue": false,
                          "isPure": true,
                          "lValueRequested": false,
                          "memberName": "encodeWithSignature",
                          "nodeType": "MemberAccess",
                          "referencedDeclaration": null,
                          "src": "2880:23:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_function_abiencodewithsignature_pure$_t_string_memory_ptr_$returns$_t_bytes_memory_ptr_$",
                            "typeString": "function (string memory) pure returns (bytes memory)"
                          }
                        },
                        "id": 4626,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "kind": "functionCall",
                        "lValueRequested": false,
                        "names": [],
                        "nodeType": "FunctionCall",
                        "src": "2880:61:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bytes_memory_ptr",
                          "typeString": "bytes memory"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 4620,
                        "name": "externalLockingContract",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4499,
                        "src": "2851:23:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      "id": 4621,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "call",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": null,
                      "src": "2851:28:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_barecall_payable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$",
                        "typeString": "function (bytes memory) payable returns (bool,bytes memory)"
                      }
                    },
                    "id": 4627,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2851:91:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$_t_bool_$_t_bytes_memory_ptr_$",
                      "typeString": "tuple(bool,bytes memory)"
                    }
                  },
                  "nodeType": "VariableDeclarationStatement",
                  "src": "2725:217:29"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 4630,
                        "name": "result",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4617,
                        "src": "2960:6:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "63616c6c20746f2065787465726e616c20636f6e74726163742073686f756c642073756363656564",
                        "id": 4631,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "string",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "2968:42:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_stringliteral_0aee880375833f4119d9f67d7e91d1f55cd11578de475f8f1242b127c621e305",
                          "typeString": "literal_string \"call to external contract should succeed\""
                        },
                        "value": "call to external contract should succeed"
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_bool",
                          "typeString": "bool"
                        },
                        {
                          "typeIdentifier": "t_stringliteral_0aee880375833f4119d9f67d7e91d1f55cd11578de475f8f1242b127c621e305",
                          "typeString": "literal_string \"call to external contract should succeed\""
                        }
                      ],
                      "id": 4629,
                      "name": "require",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [
                        23693,
                        23694
                      ],
                      "referencedDeclaration": 23694,
                      "src": "2952:7:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$",
                        "typeString": "function (bool,string memory) pure"
                      }
                    },
                    "id": 4632,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "2952:59:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4633,
                  "nodeType": "ExpressionStatement",
                  "src": "2952:59:29"
                },
                {
                  "assignments": [
                    4635
                  ],
                  "declarations": [
                    {
                      "constant": false,
                      "id": 4635,
                      "name": "lockedAmount",
                      "nodeType": "VariableDeclaration",
                      "scope": 4648,
                      "src": "3021:20:29",
                      "stateVariable": false,
                      "storageLocation": "default",
                      "typeDescriptions": {
                        "typeIdentifier": "t_uint256",
                        "typeString": "uint256"
                      },
                      "typeName": {
                        "id": 4634,
                        "name": "uint256",
                        "nodeType": "ElementaryTypeName",
                        "src": "3021:7:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      "value": null,
                      "visibility": "internal"
                    }
                  ],
                  "id": 4636,
                  "initialValue": null,
                  "nodeType": "VariableDeclarationStatement",
                  "src": "3021:20:29"
                },
                {
                  "externalReferences": [
                    {
                      "lockedAmount": {
                        "declaration": 4635,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "3130:12:29",
                        "valueSize": 1
                      }
                    },
                    {
                      "returnValue": {
                        "declaration": 4619,
                        "isOffset": false,
                        "isSlot": false,
                        "src": "3156:11:29",
                        "valueSize": 1
                      }
                    }
                  ],
                  "id": 4637,
                  "nodeType": "InlineAssembly",
                  "operations": "{\n    lockedAmount := mload(add(returnValue, 0x20))\n}",
                  "src": "3107:93:29"
                },
                {
                  "expression": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "id": 4640,
                        "name": "lockedAmount",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4635,
                        "src": "3213:12:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "31",
                        "id": 4641,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "3227:1:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        "value": "1"
                      },
                      {
                        "argumentTypes": null,
                        "id": 4642,
                        "name": "beneficiary",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4575,
                        "src": "3230:11:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        }
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "31",
                        "id": 4643,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "3243:1:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        "value": "1"
                      },
                      {
                        "argumentTypes": null,
                        "hexValue": "31",
                        "id": 4644,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": true,
                        "kind": "number",
                        "lValueRequested": false,
                        "nodeType": "Literal",
                        "src": "3246:1:29",
                        "subdenomination": null,
                        "typeDescriptions": {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        "value": "1"
                      },
                      {
                        "argumentTypes": null,
                        "id": 4645,
                        "name": "_agreementHash",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4560,
                        "src": "3249:14:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_uint256",
                          "typeString": "uint256"
                        },
                        {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        {
                          "typeIdentifier": "t_address",
                          "typeString": "address"
                        },
                        {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        {
                          "typeIdentifier": "t_rational_1_by_1",
                          "typeString": "int_const 1"
                        },
                        {
                          "typeIdentifier": "t_bytes32",
                          "typeString": "bytes32"
                        }
                      ],
                      "expression": {
                        "argumentTypes": null,
                        "id": 4638,
                        "name": "super",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 23881,
                        "src": "3201:5:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_super$_ExternalLocking4Reputation_$4671",
                          "typeString": "contract super ExternalLocking4Reputation"
                        }
                      },
                      "id": 4639,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": false,
                      "lValueRequested": false,
                      "memberName": "_lock",
                      "nodeType": "MemberAccess",
                      "referencedDeclaration": 5263,
                      "src": "3201:11:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_internal_nonpayable$_t_uint256_$_t_uint256_$_t_address_$_t_uint256_$_t_uint256_$_t_bytes32_$returns$_t_bytes32_$",
                        "typeString": "function (uint256,uint256,address,uint256,uint256,bytes32) returns (bytes32)"
                      }
                    },
                    "id": 4646,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3201:63:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "functionReturnParameters": 4564,
                  "id": 4647,
                  "nodeType": "Return",
                  "src": "3194:70:29"
                }
              ]
            },
            "documentation": "@dev claim function\n@param _beneficiary the beneficiary address to claim for\n       if _beneficiary == 0 the claim will be for the msg.sender.\n@return claimId",
            "id": 4649,
            "implemented": true,
            "kind": "function",
            "modifiers": [],
            "name": "claim",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4561,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4558,
                  "name": "_beneficiary",
                  "nodeType": "VariableDeclaration",
                  "scope": 4649,
                  "src": "2165:20:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_address",
                    "typeString": "address"
                  },
                  "typeName": {
                    "id": 4557,
                    "name": "address",
                    "nodeType": "ElementaryTypeName",
                    "src": "2165:7:29",
                    "stateMutability": "nonpayable",
                    "typeDescriptions": {
                      "typeIdentifier": "t_address",
                      "typeString": "address"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                },
                {
                  "constant": false,
                  "id": 4560,
                  "name": "_agreementHash",
                  "nodeType": "VariableDeclaration",
                  "scope": 4649,
                  "src": "2187:22:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 4559,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2187:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2164:46:29"
            },
            "returnParameters": {
              "id": 4564,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4563,
                  "name": "",
                  "nodeType": "VariableDeclaration",
                  "scope": 4649,
                  "src": "2226:7:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 4562,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "2226:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "2225:9:29"
            },
            "scope": 4671,
            "src": "2150:1121:29",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          },
          {
            "body": {
              "id": 4669,
              "nodeType": "Block",
              "src": "3442:80:29",
              "statements": [
                {
                  "expression": {
                    "argumentTypes": null,
                    "id": 4662,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "lValueRequested": false,
                    "leftHandSide": {
                      "argumentTypes": null,
                      "baseExpression": {
                        "argumentTypes": null,
                        "id": 4657,
                        "name": "registrar",
                        "nodeType": "Identifier",
                        "overloadedDeclarations": [],
                        "referencedDeclaration": 4509,
                        "src": "3452:9:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_mapping$_t_address_$_t_bool_$",
                          "typeString": "mapping(address => bool)"
                        }
                      },
                      "id": 4660,
                      "indexExpression": {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 4658,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "3462:3:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 4659,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "3462:10:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      },
                      "isConstant": false,
                      "isLValue": true,
                      "isPure": false,
                      "lValueRequested": true,
                      "nodeType": "IndexAccess",
                      "src": "3452:21:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      }
                    },
                    "nodeType": "Assignment",
                    "operator": "=",
                    "rightHandSide": {
                      "argumentTypes": null,
                      "hexValue": "74727565",
                      "id": 4661,
                      "isConstant": false,
                      "isLValue": false,
                      "isPure": true,
                      "kind": "bool",
                      "lValueRequested": false,
                      "nodeType": "Literal",
                      "src": "3476:4:29",
                      "subdenomination": null,
                      "typeDescriptions": {
                        "typeIdentifier": "t_bool",
                        "typeString": "bool"
                      },
                      "value": "true"
                    },
                    "src": "3452:28:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bool",
                      "typeString": "bool"
                    }
                  },
                  "id": 4663,
                  "nodeType": "ExpressionStatement",
                  "src": "3452:28:29"
                },
                {
                  "eventCall": {
                    "argumentTypes": null,
                    "arguments": [
                      {
                        "argumentTypes": null,
                        "expression": {
                          "argumentTypes": null,
                          "id": 4665,
                          "name": "msg",
                          "nodeType": "Identifier",
                          "overloadedDeclarations": [],
                          "referencedDeclaration": 23690,
                          "src": "3504:3:29",
                          "typeDescriptions": {
                            "typeIdentifier": "t_magic_message",
                            "typeString": "msg"
                          }
                        },
                        "id": 4666,
                        "isConstant": false,
                        "isLValue": false,
                        "isPure": false,
                        "lValueRequested": false,
                        "memberName": "sender",
                        "nodeType": "MemberAccess",
                        "referencedDeclaration": null,
                        "src": "3504:10:29",
                        "typeDescriptions": {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      }
                    ],
                    "expression": {
                      "argumentTypes": [
                        {
                          "typeIdentifier": "t_address_payable",
                          "typeString": "address payable"
                        }
                      ],
                      "id": 4664,
                      "name": "Register",
                      "nodeType": "Identifier",
                      "overloadedDeclarations": [],
                      "referencedDeclaration": 4497,
                      "src": "3495:8:29",
                      "typeDescriptions": {
                        "typeIdentifier": "t_function_event_nonpayable$_t_address_$returns$__$",
                        "typeString": "function (address)"
                      }
                    },
                    "id": 4667,
                    "isConstant": false,
                    "isLValue": false,
                    "isPure": false,
                    "kind": "functionCall",
                    "lValueRequested": false,
                    "names": [],
                    "nodeType": "FunctionCall",
                    "src": "3495:20:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_tuple$__$",
                      "typeString": "tuple()"
                    }
                  },
                  "id": 4668,
                  "nodeType": "EmitStatement",
                  "src": "3490:25:29"
                }
              ]
            },
            "documentation": "@dev register function\n     register for external locking claim",
            "id": 4670,
            "implemented": true,
            "kind": "function",
            "modifiers": [
              {
                "arguments": [
                  {
                    "argumentTypes": null,
                    "id": 4654,
                    "name": "_agreementHash",
                    "nodeType": "Identifier",
                    "overloadedDeclarations": [],
                    "referencedDeclaration": 4651,
                    "src": "3426:14:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  }
                ],
                "id": 4655,
                "modifierName": {
                  "argumentTypes": null,
                  "id": 4653,
                  "name": "onlyAgree",
                  "nodeType": "Identifier",
                  "overloadedDeclarations": [],
                  "referencedDeclaration": 4046,
                  "src": "3416:9:29",
                  "typeDescriptions": {
                    "typeIdentifier": "t_modifier$_t_bytes32_$",
                    "typeString": "modifier (bytes32)"
                  }
                },
                "nodeType": "ModifierInvocation",
                "src": "3416:25:29"
              }
            ],
            "name": "register",
            "nodeType": "FunctionDefinition",
            "parameters": {
              "id": 4652,
              "nodeType": "ParameterList",
              "parameters": [
                {
                  "constant": false,
                  "id": 4651,
                  "name": "_agreementHash",
                  "nodeType": "VariableDeclaration",
                  "scope": 4670,
                  "src": "3385:22:29",
                  "stateVariable": false,
                  "storageLocation": "default",
                  "typeDescriptions": {
                    "typeIdentifier": "t_bytes32",
                    "typeString": "bytes32"
                  },
                  "typeName": {
                    "id": 4650,
                    "name": "bytes32",
                    "nodeType": "ElementaryTypeName",
                    "src": "3385:7:29",
                    "typeDescriptions": {
                      "typeIdentifier": "t_bytes32",
                      "typeString": "bytes32"
                    }
                  },
                  "value": null,
                  "visibility": "internal"
                }
              ],
              "src": "3384:24:29"
            },
            "returnParameters": {
              "id": 4656,
              "nodeType": "ParameterList",
              "parameters": [],
              "src": "3442:0:29"
            },
            "scope": 4671,
            "src": "3367:155:29",
            "stateMutability": "nonpayable",
            "superFunction": null,
            "visibility": "public"
          }
        ],
        "scope": 4672,
        "src": "132:3392:29"
      }
    ],
    "src": "0:3525:29"
  },
  "compiler": {
    "name": "solc",
    "version": "0.5.4+commit.9549d8ff.Emscripten.clang"
  },
  "networks": {},
  "schemaVersion": "3.0.9",
  "updatedAt": "2019-05-28T21:12:52.300Z",
  "devdoc": {
    "methods": {
      "claim(address,bytes32)": {
        "details": "claim function",
        "params": {
          "_beneficiary": "the beneficiary address to claim for       if _beneficiary == 0 the claim will be for the msg.sender."
        },
        "return": "claimId"
      },
      "getAgreementHash()": {
        "details": "getAgreementHash",
        "return": "bytes32 agreementHash"
      },
      "initialize(address,uint256,uint256,uint256,uint256,address,string,bytes32)": {
        "details": "initialize",
        "params": {
          "_avatar": "the avatar to mint reputation from",
          "_claimingEndTime": "the claiming end time.       claiming is disable after this time.",
          "_claimingStartTime": "claiming starting period time.",
          "_externalLockingContract": "the contract which lock the token.",
          "_getBalanceFuncSignature": "get balance function signature       e.g \"lockedTokenBalances(address)\"",
          "_redeemEnableTime": "redeem enable time .       redeem reputation can be done after this time.",
          "_reputationReward": "the total reputation this contract will reward       for the token locking"
        }
      },
      "redeem(address)": {
        "details": "redeem reputation function",
        "params": {
          "_beneficiary": "the beneficiary for the release"
        },
        "return": "uint256 reputation rewarded"
      },
      "register(bytes32)": {
        "details": "register function     register for external locking claim"
      }
    },
    "title": "A scheme for external locking Tokens for reputation"
  },
  "userdoc": {
    "methods": {}
  }
}